Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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 3.2.3+maint.om/package.mo): time 0.0009714/0.0009714, allocations: 174.2 kB / 8.475 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.258/1.258, allocations: 205.2 MB / 214.1 MB, free: 5.137 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009396/0.0009396, allocations: 83.34 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1853/0.1863, allocations: 52.96 MB / 315 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07884/0.2652, allocations: 47.57 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2408/0.5061, allocations: 74.34 MB / 437 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001826/0.5063, allocations: 64.62 kB / 437 MB, free: 10.98 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.006644/0.5129, allocations: 2.908 MB / 439.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.513, allocations: 11.66 kB / 439.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.166e-05/0.5131, allocations: 20.31 kB / 440 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.5133, allocations: 218.6 kB / 440.2 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/0.5133, allocations: 10.66 kB / 440.2 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.5134, allocations: 16.94 kB / 440.2 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002674/0.5136, allocations: 143.8 kB / 440.3 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.5139, allocations: 212.3 kB / 440.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.514, allocations: 0 / 440.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.514, allocations: 0 / 440.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.514, allocations: 3.844 kB / 440.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008188/0.5148, allocations: 0.6382 MB / 441.2 MB, free: 9.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.5151, allocations: 144.4 kB / 441.3 MB, free: 9.742 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.882e-05/0.5152, allocations: 73.91 kB / 441.4 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.5152, allocations: 3.812 kB / 441.4 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.5153, allocations: 106.4 kB / 441.5 MB, free: 9.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.5153, allocations: 3.938 kB / 441.5 MB, free: 9.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002516/0.5156, allocations: 138.4 kB / 441.6 MB, free: 9.633 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.335e-05/0.5156, allocations: 56.66 kB / 441.7 MB, free: 9.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.213e-05/0.5157, allocations: 129.2 kB / 441.8 MB, free: 9.469 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.5158, allocations: 41.67 kB / 441.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.241e-05/0.5158, allocations: 123.5 kB / 442 MB, free: 9.324 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/0.5159, allocations: 66.22 kB / 442.1 MB, free: 9.289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-06/0.5159, allocations: 0 / 442.1 MB, free: 9.289 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.547e-05/0.5159, allocations: 326.4 kB / 442.4 MB, free: 8.977 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-05/0.516, allocations: 51.31 kB / 442.4 MB, free: 8.973 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.5161, allocations: 114.4 kB / 442.5 MB, free: 8.906 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.5163, allocations: 62.28 kB / 442.6 MB, free: 8.898 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.5163, allocations: 0 / 442.6 MB, free: 8.898 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002827/0.5165, allocations: 209.3 kB / 442.8 MB, free: 8.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.5166, allocations: 7.812 kB / 442.8 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.5166, allocations: 0 / 442.8 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.5166, allocations: 3.875 kB / 442.8 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.5167, allocations: 32.08 kB / 442.8 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.5167, allocations: 3.781 kB / 442.8 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.5169, allocations: 17.55 kB / 442.9 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.5169, allocations: 12.97 kB / 442.9 MB, free: 8.824 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 6.94e-05/0.517, allocations: 127.7 kB / 443 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.517, allocations: 19.16 kB / 443 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000294/0.5173, allocations: 157.9 kB / 443.2 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.5173, allocations: 3.844 kB / 443.2 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.5173, allocations: 0 / 443.2 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.5173, allocations: 1.641 kB / 443.2 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005601/0.5179, allocations: 0.4905 MB / 443.7 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5179, allocations: 0 / 443.7 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.919e-05/0.518, allocations: 25.7 kB / 443.7 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.518, allocations: 4.438 kB / 443.7 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.518, allocations: 0.5156 kB / 443.7 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.518, allocations: 4.562 kB / 443.7 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.518, allocations: 0 / 443.7 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002554/0.5183, allocations: 255.6 kB / 444 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002639/0.5186, allocations: 0.6148 MB / 444.6 MB, free: 7.699 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.777e-05/0.5186, allocations: 89.41 kB / 444.7 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.5186, allocations: 8.375 kB / 444.7 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.539e-05/0.5187, allocations: 9.469 kB / 444.7 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.434e-05/0.5188, allocations: 28.86 kB / 444.7 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/0.5188, allocations: 9.297 kB / 444.7 MB, free: 7.582 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.15e-05/0.5189, allocations: 92.23 kB / 444.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008339/0.5197, allocations: 31.45 kB / 444.8 MB, free: 7.508 MB / 314.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: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001376/0.5199, allocations: 107.7 kB / 444.9 MB, free: 7.418 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002376/0.5201, allocations: 163.3 kB / 445.1 MB, free: 7.402 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.5201, allocations: 0 / 445.1 MB, free: 7.402 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.85e-05/0.5202, allocations: 81.39 kB / 445.2 MB, free: 7.395 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.5204, allocations: 18.11 kB / 445.2 MB, free: 7.391 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004475/0.5209, allocations: 218.7 kB / 445.4 MB, free: 7.293 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.5211, allocations: 0.7671 MB / 446.2 MB, free: 6.582 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5211, allocations: 0 / 446.2 MB, free: 6.582 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)