Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") [: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.1+maint.om/package.mo): time 0.003818/0.003818, allocations: 173.3 kB / 7.447 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.374/1.374, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001633/0.001633, allocations: 115.8 kB / 217.7 MB, free: 8.227 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.456e-06/8.646e-06, allocations: 4 kB / 261.7 MB, free: 26.67 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08158/0.08161, allocations: 38.76 MB / 300.5 MB, free: 3.918 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2571/0.3388, allocations: 65.39 MB / 365.9 MB, free: 3.113 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.3391, allocations: 60.03 kB / 365.9 MB, free: 3.086 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.00647/0.3456, allocations: 2.564 MB / 368.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.3456, allocations: 4.875 kB / 368.5 MB, free: 0.9258 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0004682/0.3461, allocations: 441 kB / 368.9 MB, free: 476 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.3461, allocations: 8.031 kB / 369 MB, free: 468 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.816e-05/0.3462, allocations: 23.72 kB / 369 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.3465, allocations: 224.9 kB / 369.2 MB, free: 192 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.3465, allocations: 11.12 kB / 369.2 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.3465, allocations: 16 kB / 369.2 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002717/0.3468, allocations: 145.6 kB / 369.4 MB, free: 72 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003641/0.3472, allocations: 231.2 kB / 369.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.3472, allocations: 3.938 kB / 369.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.3472, allocations: 0 / 369.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.3473, allocations: 11.91 kB / 369.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.3483, allocations: 0.8845 MB / 370.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000215/0.3485, allocations: 133.3 kB / 370.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.671e-05/0.3486, allocations: 68.19 kB / 370.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.3487, allocations: 8.172 kB / 370.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001486/0.3488, allocations: 109.5 kB / 370.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.3488, allocations: 0 / 370.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.000281/0.3491, allocations: 140.4 kB / 370.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.3492, allocations: 55.28 kB / 371 MB, free: 14.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.3493, allocations: 139.4 kB / 371.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.3493, allocations: 37.38 kB / 371.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.3494, allocations: 131.5 kB / 371.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.107e-05/0.3495, allocations: 53.83 kB / 371.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.337e-06/0.3495, allocations: 4 kB / 371.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3496, allocations: 330.4 kB / 371.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.923e-05/0.3497, allocations: 51.09 kB / 371.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.3499, allocations: 125.2 kB / 371.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.35, allocations: 61.16 kB / 371.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.35, allocations: 0 / 371.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003144/0.3503, allocations: 215.9 kB / 372.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.3503, allocations: 4 kB / 372.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3504, allocations: 4 kB / 372.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3504, allocations: 4 kB / 372.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.3505, allocations: 30.86 kB / 372.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.3505, allocations: 7.984 kB / 372.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.3507, allocations: 17.88 kB / 372.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.3507, allocations: 15.62 kB / 372.2 MB, free: 13.45 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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 0.0001166/0.3508, allocations: 122.5 kB / 372.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.546e-05/0.3508, allocations: 15.81 kB / 372.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003782/0.3512, allocations: 165.1 kB / 372.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3512, allocations: 4 kB / 372.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3513, allocations: 0 / 372.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.3513, allocations: 7.891 kB / 372.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006792/0.352, allocations: 0.5148 MB / 373 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.352, allocations: 0 / 373 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.401e-05/0.3521, allocations: 15.94 kB / 373 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3521, allocations: 0 / 373 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.3521, allocations: 3.938 kB / 373 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.563e-06/0.3521, allocations: 7.984 kB / 373 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3521, allocations: 0 / 373 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000273/0.3524, allocations: 242.5 kB / 373.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.329e-05/0.3525, allocations: 96.55 kB / 373.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.3525, allocations: 0 / 373.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.564e-05/0.3526, allocations: 7.984 kB / 373.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.3527, allocations: 15.97 kB / 373.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.3527, allocations: 7.188 kB / 373.4 MB, free: 12.28 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.625e-05/0.3528, allocations: 98.67 kB / 373.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002764/0.353, allocations: 32 kB / 373.5 MB, free: 12.16 MB / 266.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 (step.active,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,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001678/0.3532, allocations: 106.4 kB / 373.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002604/0.3535, allocations: 155 kB / 373.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3535, allocations: 0 / 373.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.3536, allocations: 79.11 kB / 373.9 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.3538, allocations: 18.91 kB / 373.9 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005044/0.3543, allocations: 228.6 kB / 374.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003793/0.3547, allocations: 0.7668 MB / 374.9 MB, free: 10.85 MB / 266.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3547, allocations: 0 / 374.9 MB, free: 10.85 MB / 266.7 MB Notification: Performance of Templates: time 0.004814/0.3596, allocations: 1.855 MB / 376.7 MB, free: 9.004 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)