Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.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.Actions2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2") [: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.002916/0.002916, allocations: 175.2 kB / 7.451 MB, free: 2.504 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.208/1.208, allocations: 221.4 MB / 229.3 MB, free: 3.129 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.001039/0.001039, allocations: 102 kB / 280.1 MB, free: 1.312 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.07096/0.07096, allocations: 13.58 MB / 344.5 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.152e-06/6.182e-06, allocations: 0 / 404.2 MB, free: 61.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08389/0.08392, allocations: 53.71 MB / 457.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2733/0.3573, allocations: 76.71 MB / 0.5221 GB, free: 6.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.3576, allocations: 49.73 kB / 0.5221 GB, free: 6.168 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.01973/0.3773, allocations: 7.941 MB / 0.5299 GB, free: 15.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.237e-05/0.3774, allocations: 27.92 kB / 0.5299 GB, free: 15.62 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.001025/0.3784, allocations: 0.7387 MB / 0.5306 GB, free: 14.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3785, allocations: 8.031 kB / 0.5306 GB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.3786, allocations: 75.8 kB / 0.5307 GB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007373/0.3794, allocations: 434 kB / 0.5311 GB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.592e-05/0.3794, allocations: 27.94 kB / 0.5312 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.656e-05/0.3795, allocations: 47.94 kB / 0.5312 GB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007813/0.3803, allocations: 463.5 kB / 0.5316 GB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009856/0.3813, allocations: 0.6985 MB / 0.5323 GB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.3813, allocations: 11.92 kB / 0.5323 GB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.541e-05/0.3814, allocations: 7.984 kB / 0.5323 GB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.983e-05/0.3814, allocations: 25.31 kB / 0.5324 GB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/0.3844, allocations: 2.984 MB / 0.5353 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.3849, allocations: 0.6461 MB / 0.5359 GB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.3851, allocations: 110.7 kB / 0.536 GB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.614e-05/0.3852, allocations: 81.95 kB / 0.5361 GB, free: 9.688 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.3855, allocations: 178.7 kB / 0.5363 GB, free: 9.539 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 3.196e-06/0.3855, allocations: 4 kB / 0.5363 GB, free: 9.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005526/0.386, allocations: 274.6 kB / 0.5365 GB, free: 9.309 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.3862, allocations: 191.9 kB / 0.5367 GB, free: 9.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.3865, allocations: 330.4 kB / 0.537 GB, free: 8.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.972e-05/0.3865, allocations: 33.33 kB / 0.5371 GB, free: 8.793 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.3867, allocations: 260.1 kB / 0.5373 GB, free: 8.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.591e-05/0.3868, allocations: 99.72 kB / 0.5374 GB, free: 8.477 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.728e-05/0.3869, allocations: 0 / 0.5374 GB, free: 8.477 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.387, allocations: 362.7 kB / 0.5378 GB, free: 8.133 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.3872, allocations: 125.4 kB / 0.5379 GB, free: 8.051 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003793/0.3876, allocations: 391.3 kB / 0.5382 GB, free: 7.621 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/0.388, allocations: 171.6 kB / 0.5384 GB, free: 7.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.388, allocations: 4 kB / 0.5384 GB, free: 7.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008118/0.3888, allocations: 0.4915 MB / 0.5389 GB, free: 7.074 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3888, allocations: 15.06 kB / 0.5389 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.3888, allocations: 8 kB / 0.5389 GB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.975e-05/0.3889, allocations: 12 kB / 0.5389 GB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.389, allocations: 53.53 kB / 0.539 GB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.2e-05/0.3891, allocations: 15.94 kB / 0.539 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/0.3894, allocations: 31.97 kB / 0.539 GB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.607e-05/0.3895, allocations: 33.62 kB / 0.5391 GB, free: 6.922 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 93 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.T5.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step4.oldActive,step4.oldActive,$PRE.step1.oldActive,step1.oldActive,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.fire,T1.enableFire,$PRE.T1.t_start,T1.t_start,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.fire,T4.enableFire,$PRE.T4.t_start,T4.t_start,T5.fire,T5.enableFire,$PRE.T5.t_start,T5.t_start,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.risingEdge.u,risingEdge.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.fallingEdge.not_u,fallingEdge.not_u,set1.expr[1],set1.expr[2],T5.condition,T4.condition,T3.condition,T2.condition,T1.condition,T5.outPort.checkOneDelayedTransitionPerLoop,step1.outPort[1].checkOneDelayedTransitionPerLoop,step1.inPort[1].checkUnaryConnection,T4.outPort.checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,T1.outPort.checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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.0001994/0.3897, allocations: 173.2 kB / 0.5392 GB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.476e-05/0.3898, allocations: 39.53 kB / 0.5393 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006111/0.3904, allocations: 287.8 kB / 0.5395 GB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.3904, allocations: 4 kB / 0.5395 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.3904, allocations: 0 / 0.5395 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.3904, allocations: 3.984 kB / 0.5395 GB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.3918, allocations: 0.8577 MB / 0.5404 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3919, allocations: 0 / 0.5404 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.2e-05/0.3919, allocations: 18.23 kB / 0.5404 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3919, allocations: 0 / 0.5404 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.392, allocations: 5.688 kB / 0.5404 GB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.392, allocations: 4.062 kB / 0.5404 GB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.392, allocations: 3.938 kB / 0.5404 GB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005501/0.3926, allocations: 375.4 kB / 0.5408 GB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.3927, allocations: 144.6 kB / 0.5409 GB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/0.3928, allocations: 5.672 kB / 0.5409 GB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.393, allocations: 20.61 kB / 0.5409 GB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3931, allocations: 54.61 kB / 0.541 GB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.3932, allocations: 14.98 kB / 0.541 GB, free: 5.137 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000183/0.3934, allocations: 184.8 kB / 0.5412 GB, free: 4.988 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004752/0.3939, allocations: 89.23 kB / 0.5413 GB, free: 4.902 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: 46 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.enableFire,T3.enableFire,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,T3.fire,T3.t_start,step4.newActive,step4.oldActive,step4.inport_fire,T4.fire,T4.t_start,T5.fire,T5.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,risingEdge.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,fallingEdge.not_u) * Number of discrete states: 8 (step1.newActive,step4.newActive,step3.newActive,fallingEdge.not_u,step2.newActive,initialStep.newActive,risingEdge.u,set1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0002221/0.3941, allocations: 126.7 kB / 0.5414 GB, free: 4.777 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005556/0.3946, allocations: 361.2 kB / 0.5417 GB, free: 4.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3947, allocations: 0 / 0.5417 GB, free: 4.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.3949, allocations: 153.4 kB / 0.5419 GB, free: 4.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.3951, allocations: 36.56 kB / 0.5419 GB, free: 4.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.3963, allocations: 0.5967 MB / 0.5425 GB, free: 3.805 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/0.397, allocations: 0.9448 MB / 0.5434 GB, free: 2.844 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.397, allocations: 3.938 kB / 0.5434 GB, free: 2.84 MB / 362.7 MB Notification: Performance of Templates: time 0.009825/0.4068, allocations: 4.633 MB / 0.5479 GB, free: 14.25 MB / 378.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.pipe 2>&1)