Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001573/0.001573, allocations: 197 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008764/0.0008764, allocations: 89.72 kB / 286.3 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1017/0.1026, allocations: 56.91 MB / 343.2 MB, free: 8.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09183/0.1945, allocations: 51.47 MB / 394.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.255/0.4496, allocations: 76.67 MB / 471.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/0.4498, allocations: 77.59 kB / 471.5 MB, free: 14.57 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.003018/0.4528, allocations: 1.14 MB / 472.6 MB, free: 13.78 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.4529, allocations: 8 kB / 472.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.453, allocations: 21.28 kB / 472.6 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.4532, allocations: 181.5 kB / 472.8 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.156e-06/0.4532, allocations: 8 kB / 472.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.886e-06/0.4532, allocations: 0 / 472.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.274e-05/0.4533, allocations: 15.23 kB / 472.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.4535, allocations: 100 kB / 472.9 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.4535, allocations: 0 / 472.9 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.4535, allocations: 0 / 472.9 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.4535, allocations: 0 / 472.9 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.046e-05/0.4536, allocations: 140.8 kB / 473.1 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.765e-05/0.4537, allocations: 40.58 kB / 473.1 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.484e-05/0.4537, allocations: 19.52 kB / 473.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.4537, allocations: 4 kB / 473.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.333e-05/0.4537, allocations: 30.56 kB / 473.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.4538, allocations: 0 / 473.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001279/0.4539, allocations: 59.56 kB / 473.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.4539, allocations: 55.41 kB / 473.3 MB, free: 13.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.339e-05/0.454, allocations: 103.5 kB / 473.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.264e-06/0.454, allocations: 25.7 kB / 473.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.177e-05/0.454, allocations: 83.7 kB / 473.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.019e-06/0.454, allocations: 0 / 473.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.454, allocations: 0 / 473.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.982e-05/0.4541, allocations: 318.2 kB / 473.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.305e-06/0.4541, allocations: 3.562 kB / 473.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.573e-05/0.4541, allocations: 27.44 kB / 473.8 MB, free: 12.49 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.42e-05/0.4541, allocations: 11.38 kB / 473.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4541, allocations: 3.906 kB / 473.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.083e-05/0.4542, allocations: 53.2 kB / 473.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.778e-06/0.4542, allocations: 4 kB / 473.9 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.4542, allocations: 3.391 kB / 473.9 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.077e-06/0.4542, allocations: 0 / 473.9 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.197e-05/0.4543, allocations: 11.38 kB / 473.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.4543, allocations: 0.7812 kB / 473.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.22e-05/0.4543, allocations: 8.781 kB / 473.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-06/0.4543, allocations: 0 / 473.9 MB, free: 12.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.777e-05/0.4544, allocations: 104.2 kB / 474 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.787e-05/0.4544, allocations: 55.42 kB / 474.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.819e-05/0.4545, allocations: 10.66 kB / 474.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.4545, allocations: 0 / 474.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4545, allocations: 0 / 474.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.4545, allocations: 4 kB / 474.1 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.441e-05/0.4546, allocations: 137.2 kB / 474.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4546, allocations: 3.906 kB / 474.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.598e-05/0.4546, allocations: 11.38 kB / 474.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.4546, allocations: 0 / 474.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.4546, allocations: 0 / 474.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4547, allocations: 4 kB / 474.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4547, allocations: 0 / 474.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.482e-05/0.4547, allocations: 85.72 kB / 474.3 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 9.854e-05/0.4548, allocations: 459.7 kB / 474.8 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.787e-05/0.4549, allocations: 92.33 kB / 474.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.4549, allocations: 4 kB / 474.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.119e-05/0.455, allocations: 4 kB / 474.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-06/0.455, allocations: 0 / 474.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.455, allocations: 0 / 474.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.508e-05/0.455, allocations: 92.44 kB / 475 MB, free: 11.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007954/0.4558, allocations: 8 kB / 475 MB, free: 11.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.164e-05/0.4559, allocations: 95.25 kB / 475.1 MB, free: 11.21 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.376e-05/0.456, allocations: 23.12 kB / 475.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.456, allocations: 0 / 475.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.456, allocations: 3.828 kB / 475.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001489/0.4561, allocations: 26.33 kB / 475.1 MB, free: 11.18 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001494/0.4563, allocations: 61.45 kB / 475.2 MB, free: 11.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.4564, allocations: 0.6974 MB / 475.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4564, allocations: 3.938 kB / 475.9 MB, free: 10.39 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1)