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.001604/0.001604, allocations: 109.4 kB / 15.69 MB, free: 128 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.002801/0.002801, allocations: 187.9 kB / 16.62 MB, free: 6.613 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.518/1.518, allocations: 222.9 MB / 240.3 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2944/0.2944, allocations: 13.53 MB / 304 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.91 kB / 368.6 MB, free: 5.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1573, allocations: 52.7 MB / 421.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.003595/0.161, allocations: 1.811 MB / 423.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1626, allocations: 0.8257 MB / 423.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1627, allocations: 11.94 kB / 423.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.1639, allocations: 0.5983 MB / 424.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.56e-05/0.164, allocations: 35.66 kB / 424.5 MB, free: 13.7 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.0006798/0.1647, allocations: 232.5 kB / 424.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000476/0.1652, allocations: 435.1 kB / 425.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007114/0.1659, allocations: 0.5123 MB / 425.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.1661, allocations: 167.3 kB / 425.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.1662, allocations: 147.2 kB / 426 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.798e-05/0.1663, allocations: 36 kB / 426.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.1664, allocations: 51.98 kB / 426.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.1665, allocations: 95.69 kB / 426.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.1667, allocations: 167.1 kB / 426.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004434/0.1671, allocations: 426.5 kB / 426.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1671, allocations: 0 / 426.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1671, allocations: 11.92 kB / 426.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.1672, allocations: 0 / 426.8 MB, free: 11.45 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.0008119/0.168, allocations: 0.6288 MB / 427.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.168, allocations: 15.89 kB / 427.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.488e-05/0.1681, allocations: 44.47 kB / 427.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.1686, allocations: 331.5 kB / 427.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/0.1686, allocations: 33.38 kB / 427.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/0.1687, allocations: 44.36 kB / 427.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006864/0.1694, allocations: 455.7 kB / 428.3 MB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.1694, allocations: 3.938 kB / 428.3 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.1695, allocations: 12 kB / 428.3 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.1695, allocations: 11.98 kB / 428.3 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004691/0.17, allocations: 286.4 kB / 428.6 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.172, allocations: 1.883 MB / 430.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.1723, allocations: 390.2 kB / 430.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.47e-05/0.1724, allocations: 66.52 kB / 431 MB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.887e-05/0.1725, allocations: 89.03 kB / 431 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001678/0.1727, allocations: 106 kB / 431.1 MB, free: 6.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.1727, allocations: 0 / 431.1 MB, free: 6.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003929/0.1731, allocations: 215.4 kB / 431.4 MB, free: 6.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.1732, allocations: 118.8 kB / 431.5 MB, free: 6.344 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.1734, allocations: 246.8 kB / 431.7 MB, free: 6.094 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.1734, allocations: 37.7 kB / 431.8 MB, free: 6.051 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1736, allocations: 196.3 kB / 431.9 MB, free: 5.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.328e-05/0.1736, allocations: 55.38 kB / 432 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.1738, allocations: 110 kB / 432.1 MB, free: 5.688 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1739, allocations: 330.8 kB / 432.4 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.174, allocations: 72.83 kB / 432.5 MB, free: 5.281 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.1743, allocations: 223.2 kB / 432.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.1746, allocations: 276.8 kB / 433 MB, free: 4.664 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1746, allocations: 4 kB / 433 MB, free: 4.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004512/0.1751, allocations: 312.8 kB / 433.3 MB, free: 4.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.1751, allocations: 8 kB / 433.3 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.1751, allocations: 4 kB / 433.3 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.1751, allocations: 4 kB / 433.3 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.15e-05/0.1752, allocations: 28.52 kB / 433.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.1752, allocations: 15.94 kB / 433.4 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.1754, allocations: 31.73 kB / 433.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.1755, allocations: 16 kB / 433.4 MB, free: 4.242 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.0002049/0.1757, allocations: 206.9 kB / 433.6 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.178e-05/0.1757, allocations: 19.75 kB / 433.6 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003032/0.176, allocations: 187.3 kB / 433.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1761, allocations: 0 / 433.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.1761, allocations: 4 kB / 433.8 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1761, allocations: 3.984 kB / 433.8 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007626/0.1768, allocations: 0.6221 MB / 434.4 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1769, allocations: 0 / 434.4 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.431e-05/0.1769, allocations: 11.94 kB / 434.4 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1769, allocations: 3.938 kB / 434.5 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1769, allocations: 7.938 kB / 434.5 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1769, allocations: 4 kB / 434.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1769, allocations: 3.984 kB / 434.5 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.1772, allocations: 267 kB / 434.7 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.451e-05/0.1773, allocations: 108.9 kB / 434.8 MB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.1773, allocations: 7.938 kB / 434.8 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.1774, allocations: 7.984 kB / 434.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.975e-05/0.1775, allocations: 23.97 kB / 434.9 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.1776, allocations: 12 kB / 434.9 MB, free: 2.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001162/0.1777, allocations: 139.2 kB / 435 MB, free: 2.512 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1777, allocations: 0 / 435 MB, free: 2.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003654/0.1781, allocations: 79.59 kB / 435.1 MB, free: 2.434 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.0001716/0.1782, allocations: 129.4 kB / 435.2 MB, free: 2.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003041/0.1786, allocations: 199.7 kB / 435.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1786, allocations: 0 / 435.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.1787, allocations: 71.91 kB / 435.5 MB, free: 2.035 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.179, allocations: 31.91 kB / 435.5 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007546/0.1797, allocations: 482.6 kB / 436 MB, free: 1.508 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.1801, allocations: 0.7877 MB / 436.8 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.1802, allocations: 38.95 kB / 436.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.336e-05/0.1803, allocations: 27.42 kB / 436.8 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1803, allocations: 0 / 436.8 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of Templates: time 0.2022/0.3825, allocations: 2.243 MB / 439.1 MB, free: 57.17 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)