Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008336/0.008337, allocations: 174.5 kB / 15.12 MB, free: 5.973 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.624/1.624, allocations: 223.2 MB / 239 MB, free: 1.805 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.001097/0.001097, allocations: 85.33 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.108/0.108, allocations: 13.6 MB / 354.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003533, allocations: 17.47 kB / 419.1 MB, free: 87.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1341, allocations: 53.72 MB / 472.8 MB, free: 34.55 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4192/0.5534, allocations: 76.99 MB / 0.5369 GB, free: 16.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001519/0.5536, allocations: 52.17 kB / 0.537 GB, free: 16.55 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.01142/0.565, allocations: 5.078 MB / 0.5419 GB, free: 15.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.565, allocations: 0 / 0.5419 GB, free: 15.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.5651, allocations: 12.97 kB / 0.5419 GB, free: 15.88 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0006819/0.5658, allocations: 0.5501 MB / 0.5425 GB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.5658, allocations: 13.19 kB / 0.5425 GB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.301e-05/0.5659, allocations: 43.03 kB / 0.5425 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004508/0.5664, allocations: 315.1 kB / 0.5428 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.5664, allocations: 32.41 kB / 0.5429 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.5665, allocations: 37.69 kB / 0.5429 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007645/0.5673, allocations: 465.7 kB / 0.5433 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.5673, allocations: 8.953 kB / 0.5434 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.5673, allocations: 15.89 kB / 0.5434 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.5674, allocations: 10.5 kB / 0.5434 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005969/0.568, allocations: 279.2 kB / 0.5436 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.5703, allocations: 1.887 MB / 0.5455 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004226/0.5708, allocations: 385.7 kB / 0.5459 GB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.609e-05/0.5709, allocations: 86.03 kB / 0.5459 GB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.5711, allocations: 108.8 kB / 0.546 GB, free: 13.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.765e-06/0.5711, allocations: 0 / 0.546 GB, free: 13.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005413/0.5717, allocations: 221.4 kB / 0.5463 GB, free: 13.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.718e-05/0.5718, allocations: 107.5 kB / 0.5464 GB, free: 13.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000277/0.572, allocations: 228.5 kB / 0.5466 GB, free: 12.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.5721, allocations: 37.09 kB / 0.5466 GB, free: 12.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.5723, allocations: 199.9 kB / 0.5468 GB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.3e-05/0.5723, allocations: 47.62 kB / 0.5468 GB, free: 12.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.5723, allocations: 4.5 kB / 0.5468 GB, free: 12.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.5724, allocations: 334.7 kB / 0.5472 GB, free: 12.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.5726, allocations: 65.56 kB / 0.5472 GB, free: 12.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002568/0.5728, allocations: 219.6 kB / 0.5474 GB, free: 12.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.573, allocations: 99.66 kB / 0.5475 GB, free: 12.26 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.5731, allocations: 2.062 kB / 0.5475 GB, free: 12.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005045/0.5736, allocations: 312.2 kB / 0.5478 GB, free: 12.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.5736, allocations: 8.219 kB / 0.5478 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.5736, allocations: 3.984 kB / 0.5478 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.5736, allocations: 7.938 kB / 0.5479 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.5738, allocations: 29.09 kB / 0.5479 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.5738, allocations: 12.25 kB / 0.5479 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.574, allocations: 21.22 kB / 0.5479 GB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.574, allocations: 19.28 kB / 0.5479 GB, free: 12.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.condition,T1.enableFire,$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,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,T2.condition,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0002382/0.5743, allocations: 202 kB / 0.5481 GB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.245e-05/0.5743, allocations: 23.75 kB / 0.5481 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003452/0.5747, allocations: 180.3 kB / 0.5483 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.5747, allocations: 2.625 kB / 0.5483 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.5747, allocations: 1.656 kB / 0.5483 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/0.5747, allocations: 5.125 kB / 0.5483 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009231/0.5756, allocations: 0.6265 MB / 0.5489 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.5757, allocations: 4.656 kB / 0.5489 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.027e-05/0.5757, allocations: 12.12 kB / 0.549 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.5757, allocations: 4 kB / 0.549 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.5757, allocations: 2.781 kB / 0.549 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.5757, allocations: 5.719 kB / 0.549 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5757, allocations: 0 / 0.549 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.576, allocations: 268.8 kB / 0.5492 GB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.06e-05/0.5761, allocations: 110.5 kB / 0.5493 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.363e-05/0.5761, allocations: 7.625 kB / 0.5493 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.5763, allocations: 8.797 kB / 0.5493 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.184e-05/0.5763, allocations: 23.53 kB / 0.5494 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.5764, allocations: 20.36 kB / 0.5494 GB, free: 11.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001108/0.5765, allocations: 138 kB / 0.5495 GB, free: 11.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5765, allocations: 0 / 0.5495 GB, free: 11.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003747/0.5769, allocations: 53.11 kB / 0.5496 GB, free: 11.3 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: 23 (initialStep.inport_fire,initialStep.outport_fire,step2.outport_fire,T2.enableFire,T3.enableFire,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start) * Number of discrete states: 3 (step3.newActive,step2.newActive,initialStep.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001643/0.577, allocations: 107.5 kB / 0.5497 GB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.5774, allocations: 199.8 kB / 0.5499 GB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5774, allocations: 0 / 0.5499 GB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.5775, allocations: 71.45 kB / 0.5499 GB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.5777, allocations: 23.12 kB / 0.55 GB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008201/0.5786, allocations: 0.5542 MB / 0.5505 GB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.5789, allocations: 0.7953 MB / 0.5513 GB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.579, allocations: 45.64 kB / 0.5513 GB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.23e-05/0.5791, allocations: 24.42 kB / 0.5513 GB, free: 10.12 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5791, allocations: 3.938 kB / 0.5513 GB, free: 10.11 MB / 362.7 MB Notification: Performance of Templates: time 0.006047/0.5851, allocations: 1.996 MB / 0.5533 GB, free: 9.945 MB / 362.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe 2>&1)