Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") [: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 4.0.0+maint.om/package.mo): time 0.001905/0.001905, allocations: 179.3 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.133/1.133, allocations: 221.4 MB / 229.3 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009656/0.0009655, allocations: 94.77 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.06765/0.06765, allocations: 13.58 MB / 344.5 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.83e-06/4.949e-06, allocations: 0 / 404.2 MB, free: 61.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08156/0.08158, allocations: 53.7 MB / 457.9 MB, free: 8.027 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2405/0.3222, allocations: 76.77 MB / 0.5221 GB, free: 6.402 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001266/0.3223, allocations: 48.86 kB / 0.5222 GB, free: 6.383 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Performance of FrontEnd: time 0.01474/0.3371, allocations: 6.459 MB / 0.5285 GB, free: 1.102 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.3371, allocations: 19.98 kB / 0.5285 GB, free: 1.082 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.0006334/0.3378, allocations: 0.6247 MB / 0.5291 GB, free: 452 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.3378, allocations: 8.031 kB / 0.5291 GB, free: 444 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.793e-05/0.3379, allocations: 59.34 kB / 0.5292 GB, free: 384 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005024/0.3384, allocations: 360.1 kB / 0.5295 GB, free: 32 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.3385, allocations: 23.98 kB / 0.5296 GB, free: 8 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.9e-05/0.3385, allocations: 36.05 kB / 0.5296 GB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005571/0.3391, allocations: 348.2 kB / 0.5299 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007315/0.3399, allocations: 0.5681 MB / 0.5305 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.3399, allocations: 3.938 kB / 0.5305 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.886e-05/0.3399, allocations: 7.984 kB / 0.5305 GB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.34, allocations: 19.91 kB / 0.5305 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.342, allocations: 2.415 MB / 0.5329 GB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003421/0.3424, allocations: 442.3 kB / 0.5333 GB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3425, allocations: 88.83 kB / 0.5334 GB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006897/0.3432, allocations: 0.8422 MB / 0.5342 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001527/0.3433, allocations: 121.2 kB / 0.5343 GB, free: 11.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.793e-06/0.3434, allocations: 4 kB / 0.5343 GB, free: 11.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.000333/0.3437, allocations: 169.2 kB / 0.5345 GB, free: 11.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.3437, allocations: 55.41 kB / 0.5345 GB, free: 11.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.344, allocations: 283.3 kB / 0.5348 GB, free: 11.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.344, allocations: 29.7 kB / 0.5348 GB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.3441, allocations: 236.3 kB / 0.535 GB, free: 10.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.432e-05/0.3442, allocations: 57.38 kB / 0.5351 GB, free: 10.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.121e-05/0.3442, allocations: 0 / 0.5351 GB, free: 10.72 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.3443, allocations: 348.5 kB / 0.5354 GB, free: 10.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.3444, allocations: 73.69 kB / 0.5355 GB, free: 10.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.3446, allocations: 262.8 kB / 0.5358 GB, free: 10.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.3449, allocations: 108 kB / 0.5359 GB, free: 9.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3449, allocations: 0 / 0.5359 GB, free: 9.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000501/0.3454, allocations: 340.1 kB / 0.5362 GB, free: 9.676 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.3454, allocations: 4 kB / 0.5362 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3454, allocations: 7.938 kB / 0.5362 GB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3454, allocations: 12 kB / 0.5362 GB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.3456, allocations: 39.05 kB / 0.5362 GB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.3456, allocations: 15.92 kB / 0.5363 GB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.3457, allocations: 12.28 kB / 0.5363 GB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.141e-05/0.3458, allocations: 31.06 kB / 0.5363 GB, free: 9.562 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.step4.oldActive,step4.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.activePort,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.activePort,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,$PRE.timer2.entryTime,timer2.entryTime,step3.outPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step4.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T4.condition,T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001165/0.3459, allocations: 145 kB / 0.5364 GB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.558e-05/0.3459, allocations: 31.61 kB / 0.5365 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003376/0.3463, allocations: 193 kB / 0.5367 GB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3463, allocations: 4 kB / 0.5367 GB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3463, allocations: 4 kB / 0.5367 GB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3463, allocations: 0 / 0.5367 GB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006629/0.347, allocations: 0.5949 MB / 0.5372 GB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.347, allocations: 0 / 0.5372 GB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.966e-05/0.347, allocations: 7.812 kB / 0.5373 GB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.347, allocations: 0 / 0.5373 GB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3471, allocations: 7.984 kB / 0.5373 GB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3471, allocations: 0 / 0.5373 GB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3471, allocations: 3.938 kB / 0.5373 GB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002851/0.3474, allocations: 282.9 kB / 0.5375 GB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.48e-05/0.3474, allocations: 112 kB / 0.5376 GB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.3475, allocations: 7.547 kB / 0.5376 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.849e-05/0.3476, allocations: 4 kB / 0.5376 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/0.3477, allocations: 23.7 kB / 0.5377 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.3477, allocations: 8 kB / 0.5377 GB, free: 8.242 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001062/0.3478, allocations: 162.1 kB / 0.5378 GB, free: 8.105 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003575/0.3482, allocations: 59.67 kB / 0.5379 GB, free: 8.051 MB / 362.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: 27 (initialStep.inport_fire,step3.activePort,step2.activePort,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,T3.enableFire,timer1.entryTime,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,timer2.entryTime) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001555/0.3483, allocations: 113 kB / 0.538 GB, free: 7.934 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003022/0.3486, allocations: 226.1 kB / 0.5382 GB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3487, allocations: 192 / 0.5382 GB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.3488, allocations: 80.38 kB / 0.5383 GB, free: 7.707 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.349, allocations: 34.75 kB / 0.5383 GB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007923/0.3498, allocations: 457.5 kB / 0.5388 GB, free: 7.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004393/0.3502, allocations: 0.8877 MB / 0.5396 GB, free: 6.344 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3502, allocations: 0 / 0.5396 GB, free: 6.344 MB / 362.7 MB Notification: Performance of Templates: time 0.006009/0.3562, allocations: 2.638 MB / 0.5422 GB, free: 3.734 MB / 362.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe 2>&1)