Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.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.Actions3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008765/0.008765, allocations: 169 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.2 MB / 239 MB, free: 1.777 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.0008599/0.00086, allocations: 102.2 kB / 290.2 MB, free: 13.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.08654/0.08654, allocations: 13.59 MB / 354.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003328, allocations: 9.875 kB / 419.1 MB, free: 87.51 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1265, allocations: 53.71 MB / 472.8 MB, free: 34.54 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4142/0.5407, allocations: 77.34 MB / 0.5373 GB, free: 16.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001537/0.5409, allocations: 48.5 kB / 0.5373 GB, free: 16.52 MB / 362.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 - DAE generated: time 0.02327/0.5642, allocations: 8.477 MB / 0.5456 GB, free: 15.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5643, allocations: 0 / 0.5456 GB, free: 15.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.268e-05/0.5643, allocations: 23.67 kB / 0.5456 GB, free: 15.64 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.001341/0.5657, allocations: 0.7818 MB / 0.5464 GB, free: 15.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.5657, allocations: 8.5 kB / 0.5464 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.5659, allocations: 79.38 kB / 0.5464 GB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008984/0.5668, allocations: 445.5 kB / 0.5469 GB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.237e-05/0.5669, allocations: 58.08 kB / 0.5469 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.567, allocations: 71.95 kB / 0.547 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.5684, allocations: 0.8188 MB / 0.5478 GB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.5685, allocations: 4 kB / 0.5478 GB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.974e-05/0.5685, allocations: 32.11 kB / 0.5478 GB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.301e-05/0.5686, allocations: 26.97 kB / 0.5479 GB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000976/0.5696, allocations: 0.5146 MB / 0.5484 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003093/0.5727, allocations: 3.227 MB / 0.5515 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006001/0.5733, allocations: 0.6656 MB / 0.5522 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.126e-05/0.5734, allocations: 89.09 kB / 0.5522 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002933/0.5737, allocations: 192.3 kB / 0.5524 GB, free: 11.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.344e-06/0.5737, allocations: 3.938 kB / 0.5524 GB, free: 11.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.0007367/0.5744, allocations: 418.5 kB / 0.5528 GB, free: 11.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.869e-05/0.5745, allocations: 202.1 kB / 0.553 GB, free: 11.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000331/0.5749, allocations: 348.9 kB / 0.5534 GB, free: 11.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.494e-05/0.5749, allocations: 43.92 kB / 0.5534 GB, free: 11.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.5751, allocations: 291.6 kB / 0.5537 GB, free: 11.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.053e-05/0.5752, allocations: 109.8 kB / 0.5538 GB, free: 11.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.5752, allocations: 13.44 kB / 0.5538 GB, free: 11.06 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.966e-05/0.5753, allocations: 351.9 kB / 0.5541 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.5756, allocations: 137 kB / 0.5543 GB, free: 10.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.576, allocations: 414.5 kB / 0.5547 GB, free: 10.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.5763, allocations: 183.2 kB / 0.5548 GB, free: 10.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.5763, allocations: 2.469 kB / 0.5548 GB, free: 10.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008562/0.5772, allocations: 0.5787 MB / 0.5554 GB, free: 10.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.5772, allocations: 8.188 kB / 0.5554 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.5772, allocations: 8.812 kB / 0.5554 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.024e-05/0.5773, allocations: 11.47 kB / 0.5554 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.5774, allocations: 54.62 kB / 0.5555 GB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.386e-05/0.5775, allocations: 15.05 kB / 0.5555 GB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.5778, allocations: 52.92 kB / 0.5555 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.427e-05/0.5778, allocations: 29.47 kB / 0.5556 GB, free: 10.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 91 ($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,$PRE.add1.y,add1.y,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,$whenCondition7,$whenCondition6,$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.enableFire,$PRE.T2.t_start,T2.t_start,T2.firePort,$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.enableFire,$PRE.T5.t_start,T5.t_start,T5.firePort,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.set1.y,set1.y,set1.firstActiveIndex,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 91 * 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.0003264/0.5782, allocations: 285.2 kB / 0.5558 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.749e-05/0.5782, allocations: 43.67 kB / 0.5559 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005753/0.5788, allocations: 353.3 kB / 0.5562 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.5788, allocations: 4.688 kB / 0.5562 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5789, allocations: 0.9062 kB / 0.5562 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.5789, allocations: 3.094 kB / 0.5562 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.5803, allocations: 1.026 MB / 0.5572 GB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5803, allocations: 1.312 kB / 0.5572 GB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.273e-05/0.5804, allocations: 14.41 kB / 0.5572 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.5804, allocations: 1.156 kB / 0.5572 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.5804, allocations: 14.03 kB / 0.5573 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.5804, allocations: 1.375 kB / 0.5573 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.5804, allocations: 0 / 0.5573 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004951/0.5809, allocations: 432.5 kB / 0.5577 GB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.5811, allocations: 135.8 kB / 0.5578 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.951e-05/0.5811, allocations: 13.95 kB / 0.5578 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.5813, allocations: 28.41 kB / 0.5578 GB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.5815, allocations: 49.31 kB / 0.5579 GB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.5815, allocations: 12.09 kB / 0.5579 GB, free: 9.379 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001889/0.5817, allocations: 213.7 kB / 0.5581 GB, free: 9.297 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.422e-06/0.5817, allocations: 4 kB / 0.5581 GB, free: 9.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005048/0.5822, allocations: 107.8 kB / 0.5582 GB, free: 9.289 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: 45 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.firePort,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.firePort,T5.enableFire,T3.enableFire,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_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.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,add1.y,set1.y,set1.firstActiveIndex) * Number of discrete states: 7 (step1.newActive,step4.newActive,step3.newActive,step2.newActive,initialStep.newActive,set1.y,add1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.0002751/0.5825, allocations: 136.1 kB / 0.5583 GB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006923/0.5832, allocations: 387.2 kB / 0.5587 GB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5832, allocations: 0 / 0.5587 GB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.5835, allocations: 143.7 kB / 0.5588 GB, free: 9.148 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.5837, allocations: 49.52 kB / 0.5589 GB, free: 9.145 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.5853, allocations: 0.9802 MB / 0.5599 GB, free: 8.594 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.5863, allocations: 0.9084 MB / 0.5607 GB, free: 23.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002512/0.5866, allocations: 84.48 kB / 0.5608 GB, free: 23.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.5867, allocations: 41.72 kB / 0.5609 GB, free: 23.87 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.5867, allocations: 0 / 0.5609 GB, free: 23.87 MB / 378.7 MB Notification: Performance of Templates: time 0.01122/0.5979, allocations: 4.014 MB / 0.5648 GB, free: 23.36 MB / 378.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.pipe 2>&1)