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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 196.1 kB / 16.53 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 222.9 MB / 240.2 MB, free: 4.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.324/0.324, allocations: 13.53 MB / 303.9 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 63.89 kB / 367.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1577, allocations: 52.69 MB / 420.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.003469/0.1612, allocations: 1.815 MB / 422.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.1629, allocations: 0.8179 MB / 423.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.1631, allocations: 19.88 kB / 423.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.1643, allocations: 0.5984 MB / 423.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.491e-05/0.1644, allocations: 31.61 kB / 423.8 MB, free: 14.41 MB / 366.1 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 NFTyping.typeClassSections: time 0.0007035/0.1651, allocations: 235.6 kB / 424 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005099/0.1656, allocations: 439 kB / 424.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007113/0.1663, allocations: 0.497 MB / 425 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.1666, allocations: 167.4 kB / 425.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.1668, allocations: 147.2 kB / 425.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.1668, allocations: 36 kB / 425.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.167, allocations: 55.92 kB / 425.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.1671, allocations: 95.69 kB / 425.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.1673, allocations: 171.1 kB / 425.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004834/0.1678, allocations: 418.7 kB / 426 MB, free: 12.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.1678, allocations: 0 / 426 MB, free: 12.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1678, allocations: 0 / 426 MB, free: 12.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.1678, allocations: 0 / 426 MB, free: 12.18 MB / 366.1 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.0009583/0.1688, allocations: 0.6288 MB / 426.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1688, allocations: 11.89 kB / 426.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.286e-05/0.1689, allocations: 44.41 kB / 426.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.1694, allocations: 319.5 kB / 427 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.266e-05/0.1695, allocations: 33.38 kB / 427 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.1695, allocations: 40.38 kB / 427.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007242/0.1703, allocations: 459.7 kB / 427.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.1703, allocations: 3.984 kB / 427.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.36e-05/0.1704, allocations: 20 kB / 427.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.1704, allocations: 12 kB / 427.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004944/0.1709, allocations: 278.4 kB / 427.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.173, allocations: 1.891 MB / 429.7 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.1734, allocations: 382.3 kB / 430.1 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.674e-05/0.1735, allocations: 64.83 kB / 430.2 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-05/0.1736, allocations: 85.05 kB / 430.3 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.1739, allocations: 117.8 kB / 430.4 MB, free: 7.441 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.1739, allocations: 0 / 430.4 MB, free: 7.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004081/0.1743, allocations: 213.2 kB / 430.6 MB, free: 7.227 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.975e-05/0.1744, allocations: 106.8 kB / 430.7 MB, free: 7.098 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.1747, allocations: 250.8 kB / 430.9 MB, free: 6.844 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.1747, allocations: 37.69 kB / 431 MB, free: 6.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.1749, allocations: 196.4 kB / 431.2 MB, free: 6.605 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.937e-05/0.1749, allocations: 51.38 kB / 431.2 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.1751, allocations: 118 kB / 431.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.1753, allocations: 330.8 kB / 431.6 MB, free: 6.102 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.1754, allocations: 64.84 kB / 431.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.1756, allocations: 231 kB / 431.9 MB, free: 5.742 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.176, allocations: 276.9 kB / 432.2 MB, free: 5.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.176, allocations: 3.938 kB / 432.2 MB, free: 5.406 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004371/0.1764, allocations: 313.3 kB / 432.5 MB, free: 5.094 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1764, allocations: 8 kB / 432.5 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1765, allocations: 4 kB / 432.5 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.1765, allocations: 11.98 kB / 432.5 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.748e-05/0.1766, allocations: 19.94 kB / 432.6 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.567e-05/0.1766, allocations: 15.92 kB / 432.6 MB, free: 5.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.1768, allocations: 35.75 kB / 432.6 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.1768, allocations: 23.97 kB / 432.6 MB, free: 4.977 MB / 366.1 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,initialStep.oldActive,$PRE.initialStep.oldActive,step2.oldActive,$PRE.step2.oldActive,step3.oldActive,$PRE.step3.oldActive,T3.t_start,$PRE.T3.t_start,T3.enableFire,T3.fire,step3.outport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,T2.t_start,$PRE.T2.t_start,T2.enableFire,T2.fire,step2.outport_fire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,T1.enableFire,T1.condition,initialStep.outport_fire,initialStep.inport_fire,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition1,$whenCondition2,T3.condition,T2.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002172/0.1771, allocations: 199 kB / 432.8 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.417e-05/0.1771, allocations: 23.8 kB / 432.8 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003043/0.1774, allocations: 188.9 kB / 433 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1774, allocations: 4 kB / 433 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1774, allocations: 0 / 433 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1774, allocations: 0 / 433 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000761/0.1782, allocations: 0.63 MB / 433.7 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1782, allocations: 0 / 433.7 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.128e-05/0.1783, allocations: 11.92 kB / 433.7 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.1783, allocations: 3.938 kB / 433.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.1783, allocations: 0 / 433.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1783, allocations: 4 kB / 433.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1783, allocations: 0 / 433.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.1786, allocations: 271.1 kB / 434 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.944e-05/0.1787, allocations: 100.9 kB / 434 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.1787, allocations: 11.94 kB / 434.1 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.1788, allocations: 11.98 kB / 434.1 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.635e-05/0.1789, allocations: 27.83 kB / 434.1 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.1789, allocations: 4 kB / 434.1 MB, free: 3.395 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.1791, allocations: 147.2 kB / 434.2 MB, free: 3.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1791, allocations: 4 kB / 434.3 MB, free: 3.246 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003595/0.1794, allocations: 75.59 kB / 434.3 MB, free: 3.172 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001795/0.1796, allocations: 113.4 kB / 434.4 MB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003693/0.18, allocations: 212.7 kB / 434.6 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.18, allocations: 3.938 kB / 434.6 MB, free: 2.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.1801, allocations: 73.33 kB / 434.7 MB, free: 2.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.1804, allocations: 35.91 kB / 434.8 MB, free: 2.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007928/0.1812, allocations: 496.5 kB / 435.2 MB, free: 2.227 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.1817, allocations: 0.7916 MB / 436 MB, free: 1.406 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.1818, allocations: 42.89 kB / 436.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.448e-05/0.1819, allocations: 23.44 kB / 436.1 MB, free: 1.344 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1819, allocations: 0 / 436.1 MB, free: 1.344 MB / 366.1 MB Notification: Performance of Templates: time 0.2248/0.4067, allocations: 2.241 MB / 438.3 MB, free: 57.48 MB / 366.1 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)