Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01271/0.01271, allocations: 99.83 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001991/0.001991, allocations: 189.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.675/1.675, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001292, allocations: 46.31 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1533, allocations: 46.63 MB / 373.1 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003661/0.1571, allocations: 1.459 MB / 374.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008237/0.1579, allocations: 251.2 kB / 374.8 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.1581, allocations: 4 kB / 374.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.1583, allocations: 31.67 kB / 374.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.604e-05/0.1583, allocations: 11.81 kB / 374.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005243/0.1589, allocations: 107.9 kB / 375 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003777/0.1593, allocations: 267.4 kB / 375.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003921/0.1597, allocations: 166.4 kB / 375.4 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.1598, allocations: 83.77 kB / 375.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.16, allocations: 99.52 kB / 375.6 MB, free: 14.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.904e-05/0.16, allocations: 24 kB / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.1602, allocations: 32 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.924e-05/0.1602, allocations: 51.84 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.1604, allocations: 111.4 kB / 375.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004176/0.1608, allocations: 239 kB / 376.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.1608, allocations: 0 / 376.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.177e-06/0.1609, allocations: 0 / 376.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.1609, allocations: 0 / 376.1 MB, free: 14.4 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001033/0.1619, allocations: 486.3 kB / 376.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.581e-05/0.162, allocations: 12.03 kB / 376.5 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.285e-05/0.1621, allocations: 24.8 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000466/0.1626, allocations: 228.1 kB / 376.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.163e-05/0.1626, allocations: 24.94 kB / 376.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.832e-05/0.1627, allocations: 28.38 kB / 376.8 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00053/0.1632, allocations: 240 kB / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.1632, allocations: 192 / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/0.1633, allocations: 15.94 kB / 377.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.1633, allocations: 4 kB / 377.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003584/0.1637, allocations: 161.7 kB / 377.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.1651, allocations: 0.7013 MB / 377.9 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004262/0.1655, allocations: 166.9 kB / 378.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.1657, allocations: 80.83 kB / 378.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.1657, allocations: 8 kB / 378.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.166, allocations: 122.9 kB / 378.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.894e-06/0.166, allocations: 4 kB / 378.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005548/0.1666, allocations: 213.4 kB / 378.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.1666, allocations: 59.39 kB / 378.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.1668, allocations: 146 kB / 378.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.837e-05/0.1669, allocations: 37.7 kB / 378.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.1671, allocations: 144.8 kB / 378.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.766e-05/0.1672, allocations: 63.48 kB / 379 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.1673, allocations: 74.02 kB / 379 MB, free: 11.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.1675, allocations: 326.8 kB / 379.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1676, allocations: 64.56 kB / 379.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.1678, allocations: 132.1 kB / 379.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.1681, allocations: 174.7 kB / 379.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1681, allocations: 0 / 379.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00041/0.1685, allocations: 241.3 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1686, allocations: 11.88 kB / 380 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.1686, allocations: 4 kB / 380 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.1686, allocations: 4 kB / 380 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.1688, allocations: 28.14 kB / 380 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.1688, allocations: 11.92 kB / 380 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.718e-05/0.1689, allocations: 23.84 kB / 380 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.17e-05/0.1689, allocations: 16 kB / 380.1 MB, free: 10.1 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001534/0.1691, allocations: 161.7 kB / 380.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.1691, allocations: 19.84 kB / 380.2 MB, free: 9.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003866/0.1695, allocations: 198.3 kB / 380.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1695, allocations: 0 / 380.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.1695, allocations: 7.984 kB / 380.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1696, allocations: 0 / 380.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007216/0.1703, allocations: 0.5606 MB / 381 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1703, allocations: 0 / 381 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.779e-05/0.1704, allocations: 19.94 kB / 381 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1704, allocations: 0 / 381 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.1704, allocations: 7.984 kB / 381 MB, free: 9.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1704, allocations: 4 kB / 381 MB, free: 9.055 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1704, allocations: 3.938 kB / 381 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/0.1708, allocations: 287.7 kB / 381.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.103e-05/0.1709, allocations: 89.02 kB / 381.4 MB, free: 8.648 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.882e-05/0.1709, allocations: 8 kB / 381.4 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.239e-05/0.171, allocations: 0 / 381.4 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.458e-05/0.1711, allocations: 27.91 kB / 381.4 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.1711, allocations: 11.98 kB / 381.4 MB, free: 8.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.793e-05/0.1712, allocations: 95.27 kB / 381.5 MB, free: 8.508 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1712, allocations: 4 kB / 381.5 MB, free: 8.504 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003034/0.1715, allocations: 47.89 kB / 381.6 MB, free: 8.457 MB / 318.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002175/0.1717, allocations: 115.3 kB / 381.7 MB, free: 8.336 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000398/0.1721, allocations: 187.7 kB / 381.9 MB, free: 8.152 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1722, allocations: 0 / 381.9 MB, free: 8.152 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.1723, allocations: 83.91 kB / 382 MB, free: 8.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.1727, allocations: 20.42 kB / 382 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006869/0.1734, allocations: 323.4 kB / 382.3 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.1737, allocations: 0.7399 MB / 383 MB, free: 6.941 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.519e-05/0.1738, allocations: 33.89 kB / 383.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.696e-05/0.1739, allocations: 27.42 kB / 383.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1739, allocations: 0 / 383.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of Templates: time 0.005675/0.1796, allocations: 1.901 MB / 385 MB, free: 4.98 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)