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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008948/0.008948, allocations: 170.6 kB / 15.11 MB, free: 5.992 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.448/1.448, allocations: 223.2 MB / 239 MB, free: 1.77 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.0009002/0.0009002, allocations: 88.86 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.1059/0.1059, allocations: 13.58 MB / 354.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.0003648, allocations: 8.562 kB / 419.1 MB, free: 87.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1191, allocations: 53.72 MB / 472.8 MB, free: 34.53 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4535/0.5727, allocations: 77.24 MB / 0.5372 GB, free: 16.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001537/0.5729, allocations: 46.5 kB / 0.5372 GB, free: 16.42 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.02551/0.5984, allocations: 8.376 MB / 0.5454 GB, free: 15.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5985, allocations: 0 / 0.5454 GB, free: 15.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.031e-05/0.5986, allocations: 18.69 kB / 0.5454 GB, free: 15.56 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.001903/0.6005, allocations: 0.7751 MB / 0.5462 GB, free: 15.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.6005, allocations: 10.72 kB / 0.5462 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003546/0.6009, allocations: 73.88 kB / 0.5462 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.6019, allocations: 432 kB / 0.5466 GB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.382e-05/0.602, allocations: 55.78 kB / 0.5467 GB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/0.6022, allocations: 80.67 kB / 0.5468 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.6039, allocations: 0.8003 MB / 0.5476 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.565e-05/0.604, allocations: 0 / 0.5476 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.875e-05/0.6041, allocations: 31.45 kB / 0.5476 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.632e-05/0.6041, allocations: 25.53 kB / 0.5476 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.6053, allocations: 0.5126 MB / 0.5481 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003554/0.6089, allocations: 3.147 MB / 0.5512 GB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000636/0.6095, allocations: 0.6801 MB / 0.5519 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.347e-05/0.6096, allocations: 86.23 kB / 0.5519 GB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003294/0.61, allocations: 185.4 kB / 0.5521 GB, free: 11.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.175e-06/0.61, allocations: 1 kB / 0.5521 GB, free: 11.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007854/0.6108, allocations: 419.8 kB / 0.5525 GB, free: 11.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.578e-05/0.6109, allocations: 197.5 kB / 0.5527 GB, free: 11.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004301/0.6113, allocations: 348.9 kB / 0.553 GB, free: 11.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.675e-05/0.6114, allocations: 45.14 kB / 0.5531 GB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002344/0.6116, allocations: 281.7 kB / 0.5533 GB, free: 11.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.6117, allocations: 104 kB / 0.5534 GB, free: 11.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.467e-05/0.6118, allocations: 13.81 kB / 0.5535 GB, free: 11.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.6119, allocations: 354.9 kB / 0.5538 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.6121, allocations: 148.9 kB / 0.5539 GB, free: 10.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/0.6125, allocations: 411.3 kB / 0.5543 GB, free: 10.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.6129, allocations: 198.6 kB / 0.5545 GB, free: 10.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.6129, allocations: 1.375 kB / 0.5545 GB, free: 10.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0009844/0.6139, allocations: 0.5765 MB / 0.5551 GB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.6139, allocations: 10.19 kB / 0.5551 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.614, allocations: 6.688 kB / 0.5551 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.18e-05/0.614, allocations: 12.94 kB / 0.5551 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.6142, allocations: 55.56 kB / 0.5552 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-05/0.6142, allocations: 22.81 kB / 0.5552 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/0.6146, allocations: 39.14 kB / 0.5552 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.171e-05/0.6147, allocations: 33.19 kB / 0.5553 GB, free: 10.3 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 () * Number of clocked 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.0003884/0.6151, allocations: 279.7 kB / 0.5555 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.126e-05/0.6152, allocations: 41.81 kB / 0.5556 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006115/0.6158, allocations: 347.6 kB / 0.5559 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.6158, allocations: 8.469 kB / 0.5559 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.6158, allocations: 4.891 kB / 0.5559 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.6158, allocations: 6.812 kB / 0.5559 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.6174, allocations: 1.009 MB / 0.5569 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.6175, allocations: 1.188 kB / 0.5569 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.146e-05/0.6175, allocations: 13.22 kB / 0.5569 GB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.6175, allocations: 2.094 kB / 0.5569 GB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.6176, allocations: 12.05 kB / 0.5569 GB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.6176, allocations: 6 kB / 0.5569 GB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6176, allocations: 0 / 0.5569 GB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005571/0.6182, allocations: 439.5 kB / 0.5574 GB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.6183, allocations: 134.1 kB / 0.5575 GB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.6184, allocations: 12.06 kB / 0.5575 GB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.6186, allocations: 31.14 kB / 0.5575 GB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.6187, allocations: 41.59 kB / 0.5576 GB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.471e-05/0.6188, allocations: 16.33 kB / 0.5576 GB, free: 9.438 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002079/0.619, allocations: 207.6 kB / 0.5578 GB, free: 9.355 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.619, allocations: 1.281 kB / 0.5578 GB, free: 9.355 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000605/0.6196, allocations: 103.7 kB / 0.5579 GB, free: 9.355 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) * Number of clocked states: 0 () * 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.0002093/0.6198, allocations: 137.1 kB / 0.558 GB, free: 9.258 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006565/0.6205, allocations: 401.6 kB / 0.5584 GB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.6205, allocations: 0 / 0.5584 GB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.6207, allocations: 151 kB / 0.5585 GB, free: 9.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.621, allocations: 51.94 kB / 0.5586 GB, free: 9.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.6224, allocations: 0.9786 MB / 0.5595 GB, free: 8.652 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000737/0.6232, allocations: 0.9028 MB / 0.5604 GB, free: 23.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002329/0.6234, allocations: 77.91 kB / 0.5605 GB, free: 23.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.862e-05/0.6235, allocations: 41.7 kB / 0.5605 GB, free: 23.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.6235, allocations: 0 / 0.5605 GB, free: 23.93 MB / 378.7 MB Notification: Performance of Templates: time 0.01088/0.6344, allocations: 4.01 MB / 0.5644 GB, free: 23.48 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)