Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",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.001107/0.001107, allocations: 205.1 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008816/0.0008816, allocations: 90.23 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1078/0.1087, allocations: 56.91 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0967/0.2055, allocations: 51.48 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2443/0.4498, allocations: 78.74 MB / 473.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.45, allocations: 72.66 kB / 473.5 MB, free: 13.09 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.01332/0.4633, allocations: 4.966 MB / 478.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.4634, allocations: 8 kB / 478.5 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.4636, allocations: 31.7 kB / 478.5 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.4639, allocations: 231.5 kB / 478.8 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.4639, allocations: 8 kB / 478.8 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.464, allocations: 11.94 kB / 478.8 MB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001323/0.4641, allocations: 60.23 kB / 478.8 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.4645, allocations: 273.6 kB / 479.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/0.4645, allocations: 0 / 479.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.4645, allocations: 3.562 kB / 479.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.4645, allocations: 4 kB / 479.1 MB, free: 9.512 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.4649, allocations: 320.9 kB / 479.4 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.4652, allocations: 217.5 kB / 479.6 MB, free: 8.977 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.4653, allocations: 78.22 kB / 479.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004371/0.4657, allocations: 0.5811 MB / 480.3 MB, free: 8.211 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.4658, allocations: 42.59 kB / 480.3 MB, free: 8.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.4658, allocations: 0 / 480.3 MB, free: 8.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003096/0.4661, allocations: 141 kB / 480.5 MB, free: 8.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.4661, allocations: 116.8 kB / 480.6 MB, free: 7.906 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.4663, allocations: 167.2 kB / 480.7 MB, free: 7.762 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.4663, allocations: 25.7 kB / 480.8 MB, free: 7.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.551e-05/0.4663, allocations: 96.38 kB / 480.9 MB, free: 7.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.4664, allocations: 15.77 kB / 480.9 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.4664, allocations: 0 / 480.9 MB, free: 7.625 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.58e-05/0.4664, allocations: 330.6 kB / 481.2 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.35e-05/0.4665, allocations: 31.81 kB / 481.2 MB, free: 7.277 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.433e-05/0.4666, allocations: 160.3 kB / 481.4 MB, free: 7.082 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.73e-05/0.4667, allocations: 55.56 kB / 481.4 MB, free: 7.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4667, allocations: 4 kB / 481.5 MB, free: 7.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000215/0.4669, allocations: 175.9 kB / 481.6 MB, free: 6.883 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.4669, allocations: 4 kB / 481.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.4669, allocations: 4 kB / 481.6 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.4669, allocations: 11.98 kB / 481.6 MB, free: 6.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.4671, allocations: 40.52 kB / 481.7 MB, free: 6.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.4671, allocations: 19.92 kB / 481.7 MB, free: 6.805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.4672, allocations: 15.98 kB / 481.7 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.4672, allocations: 8 kB / 481.7 MB, free: 6.781 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 7.058e-05/0.4673, allocations: 119.3 kB / 481.8 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.4676, allocations: 132.4 kB / 482 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002461/0.4678, allocations: 160.7 kB / 482.1 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.4678, allocations: 11.94 kB / 482.1 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.4678, allocations: 0.875 kB / 482.1 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.4678, allocations: 0 / 482.1 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001341/0.468, allocations: 193.2 kB / 482.3 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.468, allocations: 0 / 482.3 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.4682, allocations: 42.12 kB / 482.4 MB, free: 6.168 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4682, allocations: 7.906 kB / 482.4 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.4682, allocations: 1 kB / 482.4 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4682, allocations: 4 kB / 482.4 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.4682, allocations: 0 / 482.4 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002248/0.4684, allocations: 268 kB / 482.6 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000256/0.4687, allocations: 0.6413 MB / 483.3 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.224e-05/0.4688, allocations: 116.7 kB / 483.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.4688, allocations: 0 / 483.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.469, allocations: 17.05 kB / 483.4 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.171e-05/0.469, allocations: 4 kB / 483.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.469, allocations: 7.938 kB / 483.4 MB, free: 5.125 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.688e-05/0.4691, allocations: 135.4 kB / 483.6 MB, free: 5.012 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000891/0.47, allocations: 32 kB / 483.6 MB, free: 4.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 0.0001594/0.4702, allocations: 119 kB / 483.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001911/0.4704, allocations: 108.1 kB / 483.8 MB, free: 4.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4704, allocations: 4.188 kB / 483.8 MB, free: 4.773 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.494e-05/0.4704, allocations: 11.81 kB / 483.8 MB, free: 4.766 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.4708, allocations: 119.7 kB / 483.9 MB, free: 4.668 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004359/0.4713, allocations: 215.5 kB / 484.2 MB, free: 4.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.4715, allocations: 0.7612 MB / 484.9 MB, free: 3.676 MB / 346.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4715, allocations: 0 / 484.9 MB, free: 3.676 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1)