﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2142	It is not clear when simulation code files are generated	anonymous	Adeel Asghar	"OMEdit 1.9.0 beta4+dev(r15749)
Mac OS X 10.7.5
User account without administrator rights
It is not clear when simulation code files are generated


model Pendulum
  annotation(Icon(coordinateSystem(extent = {{-100,-100},{100,100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2,2})), Diagram(coordinateSystem(extent = {{-100,-100},{100,100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2,2})));
  parameter Real L = 0.2;
  constant Real g = 9.81;
  Real theta(start = 0.1);
  Real omega;
equation
  der(theta) = omega;
  der(omega) = -g / L * Modelica.Math.sin(theta);
end Pendulum;

Choose command simulate
Choose tab named output (Ausgabe)
Leave textfield file name (Dateiname (optional)) empty
Press button named simulate

-> No files are generated


Choose command simulate
Choose tab named output (Ausgabe)
Choose a filename f.x. simCode
Press button named simulate

-> No files are generated


Choose command simulate
Choose tab named output (Ausgabe)
Choose a filename with an absolute path f.x. /Users/tom/Desktop/simCode
Press button named simulate

-> The following files are generated (ls command). Some with a '?' in their name.
simCode
simCode?.c
simCode?.libs
simCode?.makefile
simCode?_functions.c
simCode?_functions.h
simCode?_info.xml
simCode?_init.xml
simCode?_model.h
simCode?_records.c

Non valid code in simCode
_functions.h:

#ifndef /Users/tom/Desktop/simCode
__H
#define /Users/tom/Desktop/simCode
__H
#ifdef _OPENMP_
#include <omp.h>
#else
#define omp_get_thread_num() 0
#define omp_get_max_threads() 1
#endif
#include ""modelica.h""
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>

#include ""simulation_runtime.h""
#ifdef __cplusplus
extern ""C"" {
#endif
#ifdef __cplusplus
}
#endif
#endif"	defect	closed	high	1.9.1	OMEdit	trunk	fixed	OMEdit	
