Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 107.6 kB / 16.92 MB, free: 5.781 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.001237/0.001237, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.68/1.68, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001654/0.001654, allocations: 51.92 kB / 280 MB, free: 3.199 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1547, allocations: 46.62 MB / 326.6 MB, free: 4.504 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004284/0.159, allocations: 1.683 MB / 328.3 MB, free: 2.797 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008053/0.1599, allocations: 267.1 kB / 328.5 MB, free: 2.535 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.16, allocations: 4 kB / 328.6 MB, free: 2.531 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.1602, allocations: 31.67 kB / 328.6 MB, free: 2.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.194e-05/0.1603, allocations: 15.75 kB / 328.6 MB, free: 2.484 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005671/0.1609, allocations: 123.8 kB / 328.7 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004847/0.1614, allocations: 259.6 kB / 329 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004979/0.1619, allocations: 185.5 kB / 329.2 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.1621, allocations: 83.72 kB / 329.2 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.1623, allocations: 95.59 kB / 329.3 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.972e-05/0.1624, allocations: 31.94 kB / 329.4 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.1625, allocations: 35.98 kB / 329.4 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.123e-05/0.1626, allocations: 47.91 kB / 329.4 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.1627, allocations: 99.45 kB / 329.5 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003773/0.1631, allocations: 243.5 kB / 329.8 MB, free: 1.305 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.1632, allocations: 3.938 kB / 329.8 MB, free: 1.301 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1632, allocations: 0 / 329.8 MB, free: 1.301 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1632, allocations: 0 / 329.8 MB, free: 1.301 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009653/0.1642, allocations: 490 kB / 330.3 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.1642, allocations: 12.03 kB / 330.3 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.832e-05/0.1643, allocations: 24.66 kB / 330.3 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004208/0.1648, allocations: 224.1 kB / 330.5 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.404e-05/0.1648, allocations: 24.94 kB / 330.5 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.483e-05/0.1649, allocations: 28.38 kB / 330.6 MB, free: 428 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000618/0.1655, allocations: 270.5 kB / 330.8 MB, free: 140 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.1655, allocations: 192 / 330.8 MB, free: 140 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.1656, allocations: 23.92 kB / 330.9 MB, free: 116 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.1656, allocations: 4 kB / 330.9 MB, free: 112 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003617/0.166, allocations: 157.6 kB / 331 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.1674, allocations: 0.9749 MB / 332 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.1678, allocations: 166.7 kB / 332.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.1679, allocations: 76.77 kB / 332.2 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.1679, allocations: 7.984 kB / 332.2 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003548/0.1683, allocations: 103.4 kB / 332.3 MB, free: 14.54 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.482e-06/0.1683, allocations: 0 / 332.3 MB, free: 14.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005749/0.1689, allocations: 221.2 kB / 332.5 MB, free: 14.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/0.169, allocations: 59.41 kB / 332.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.1692, allocations: 159.5 kB / 332.8 MB, free: 14.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.1693, allocations: 33.7 kB / 332.8 MB, free: 14.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.1695, allocations: 136.5 kB / 332.9 MB, free: 13.91 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.003e-05/0.1696, allocations: 59.19 kB / 333 MB, free: 13.85 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.1698, allocations: 82 kB / 333.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002611/0.17, allocations: 330.8 kB / 333.4 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.1702, allocations: 64.62 kB / 333.5 MB, free: 13.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002126/0.1704, allocations: 145.7 kB / 333.6 MB, free: 13.2 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003527/0.1708, allocations: 188.3 kB / 333.8 MB, free: 12.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.1708, allocations: 0 / 333.8 MB, free: 12.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005145/0.1713, allocations: 249.2 kB / 334 MB, free: 12.73 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.1714, allocations: 8 kB / 334 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-05/0.1714, allocations: 0 / 334 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.025e-05/0.1715, allocations: 4 kB / 334 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.1716, allocations: 35.92 kB / 334.1 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.1717, allocations: 7.938 kB / 334.1 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.1718, allocations: 35.95 kB / 334.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/0.1719, allocations: 20 kB / 334.1 MB, free: 12.62 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002606/0.1721, allocations: 156.3 kB / 334.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.1722, allocations: 19.8 kB / 334.3 MB, free: 12.44 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004584/0.1727, allocations: 182.4 kB / 334.5 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.1727, allocations: 0 / 334.5 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/0.1727, allocations: 7.938 kB / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.1727, allocations: 3.938 kB / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.1738, allocations: 0.591 MB / 335.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1738, allocations: 0 / 335.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.457e-05/0.1739, allocations: 15.98 kB / 335.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.1739, allocations: 3.938 kB / 335.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.174, allocations: 8 kB / 335.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.174, allocations: 0 / 335.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.174, allocations: 0 / 335.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004813/0.1745, allocations: 275.3 kB / 335.4 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.1746, allocations: 96.8 kB / 335.5 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.1747, allocations: 12 kB / 335.5 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.1748, allocations: 7.984 kB / 335.5 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.1749, allocations: 23.92 kB / 335.5 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.1749, allocations: 7.984 kB / 335.5 MB, free: 11.12 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.175, allocations: 101.5 kB / 335.6 MB, free: 11.02 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1751, allocations: 0 / 335.6 MB, free: 11.02 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004559/0.1755, allocations: 47.84 kB / 335.7 MB, free: 10.97 MB / 286.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 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * 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.00029/0.1758, allocations: 115.4 kB / 335.8 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004976/0.1763, allocations: 199.7 kB / 336 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1763, allocations: 0 / 336 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.1765, allocations: 83.84 kB / 336.1 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.1769, allocations: 20.55 kB / 336.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009293/0.1779, allocations: 340.7 kB / 336.4 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.1785, allocations: 0.74 MB / 337.2 MB, free: 9.43 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.1786, allocations: 25.94 kB / 337.2 MB, free: 9.406 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.931e-05/0.1787, allocations: 19.44 kB / 337.2 MB, free: 9.387 MB / 286.1 MB Notification: Performance of SimCode: time 1.392e-06/0.1787, allocations: 4 kB / 337.2 MB, free: 9.383 MB / 286.1 MB Notification: Performance of Templates: time 0.007519/0.1862, allocations: 1.85 MB / 339.1 MB, free: 7.535 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)