Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7531/0.7531, allocations: 110.9 MB / 125.9 MB, free: 6.215 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001659/0.001659, allocations: 146.6 kB / 151.9 MB, free: 4.992 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.0002477, allocations: 7.984 kB / 184.9 MB, free: 3.941 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1242, allocations: 25.16 MB / 210 MB, free: 29.76 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04024/0.1645, allocations: 33.87 MB / 243.9 MB, free: 15.98 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001667/0.1647, allocations: 57.48 kB / 244 MB, free: 15.92 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007139/0.1719, allocations: 2.945 MB / 246.9 MB, free: 12.99 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1719, allocations: 0 / 246.9 MB, free: 12.99 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.1719, allocations: 4.875 kB / 246.9 MB, free: 12.99 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0005469/0.1725, allocations: 439.7 kB / 247.3 MB, free: 12.51 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.1725, allocations: 12.03 kB / 247.4 MB, free: 12.5 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.414e-05/0.1726, allocations: 27.5 kB / 247.4 MB, free: 12.48 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.1729, allocations: 224.5 kB / 247.6 MB, free: 12.22 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.1729, allocations: 20.56 kB / 247.6 MB, free: 12.2 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.1729, allocations: 24 kB / 247.6 MB, free: 12.18 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.1734, allocations: 262 kB / 247.9 MB, free: 11.89 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.1734, allocations: 4 kB / 247.9 MB, free: 11.89 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.1734, allocations: 15.98 kB / 247.9 MB, free: 11.88 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1735, allocations: 7.953 kB / 247.9 MB, free: 11.87 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003037/0.1738, allocations: 169.6 kB / 248.1 MB, free: 11.7 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.1748, allocations: 0.9444 MB / 249 MB, free: 10.68 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.1751, allocations: 155.3 kB / 249.2 MB, free: 10.52 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.1752, allocations: 192 / 249.2 MB, free: 10.52 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.1754, allocations: 119.4 kB / 249.3 MB, free: 10.39 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.1754, allocations: 0 / 249.3 MB, free: 10.39 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.000403/0.1758, allocations: 209.3 kB / 249.5 MB, free: 10.18 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.1759, allocations: 65.64 kB / 249.6 MB, free: 10.11 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.176, allocations: 139.9 kB / 249.7 MB, free: 9.969 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.176, allocations: 41.69 kB / 249.8 MB, free: 9.922 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.982e-05/0.1761, allocations: 140.5 kB / 249.9 MB, free: 9.781 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.1761, allocations: 55.25 kB / 249.9 MB, free: 9.727 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.058e-05/0.1762, allocations: 4 kB / 249.9 MB, free: 9.723 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1763, allocations: 334.8 kB / 250.3 MB, free: 9.387 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.1764, allocations: 60.62 kB / 250.3 MB, free: 9.324 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.1766, allocations: 141.8 kB / 250.5 MB, free: 9.156 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.1767, allocations: 66.42 kB / 250.5 MB, free: 9.094 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.1767, allocations: 4 kB / 250.5 MB, free: 9.09 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003637/0.1771, allocations: 241.2 kB / 250.8 MB, free: 8.848 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.1771, allocations: 8 kB / 250.8 MB, free: 8.84 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1771, allocations: 4 kB / 250.8 MB, free: 8.836 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.1771, allocations: 12.27 kB / 250.8 MB, free: 8.824 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.1773, allocations: 31.92 kB / 250.8 MB, free: 8.793 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.1773, allocations: 4 kB / 250.8 MB, free: 8.789 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.1774, allocations: 15.91 kB / 250.9 MB, free: 8.773 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.1775, allocations: 16 kB / 250.9 MB, free: 8.758 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002124/0.1777, allocations: 169.4 kB / 251 MB, free: 8.586 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.289e-05/0.1777, allocations: 11.91 kB / 251 MB, free: 8.574 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.1781, allocations: 203.5 kB / 251.2 MB, free: 8.371 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1781, allocations: 4 kB / 251.2 MB, free: 8.367 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1781, allocations: 0 / 251.2 MB, free: 8.367 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1781, allocations: 0 / 251.2 MB, free: 8.367 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007122/0.1788, allocations: 0.5836 MB / 251.8 MB, free: 7.723 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1789, allocations: 0 / 251.8 MB, free: 7.723 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.464e-05/0.1789, allocations: 19.98 kB / 251.9 MB, free: 7.703 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1789, allocations: 3.938 kB / 251.9 MB, free: 7.699 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.179, allocations: 8 kB / 251.9 MB, free: 7.691 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.179, allocations: 0.6875 kB / 251.9 MB, free: 7.691 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.179, allocations: 0 / 251.9 MB, free: 7.691 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.1793, allocations: 275.6 kB / 252.1 MB, free: 7.406 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/0.1794, allocations: 88.95 kB / 252.2 MB, free: 7.301 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.1794, allocations: 8 kB / 252.2 MB, free: 7.293 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.527e-05/0.1795, allocations: 12 kB / 252.2 MB, free: 7.281 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/0.1796, allocations: 25.77 kB / 252.3 MB, free: 7.258 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1796, allocations: 8 kB / 252.3 MB, free: 7.25 MB / 186.7 MB Notification: Performance of sorting global known variables: time 6.465e-05/0.1796, allocations: 103.2 kB / 252.4 MB, free: 7.148 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1797, allocations: 0 / 252.4 MB, free: 7.148 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000277/0.1799, allocations: 40 kB / 252.4 MB, free: 7.109 MB / 186.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: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,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 (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.0001567/0.1801, allocations: 122.9 kB / 252.5 MB, free: 6.98 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0002998/0.1804, allocations: 176.1 kB / 252.7 MB, free: 6.809 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1804, allocations: 3.938 kB / 252.7 MB, free: 6.805 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.1805, allocations: 87.78 kB / 252.8 MB, free: 6.719 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.1807, allocations: 21.78 kB / 252.8 MB, free: 6.699 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005704/0.1813, allocations: 384.2 kB / 253.2 MB, free: 6.301 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.1816, allocations: 0.7406 MB / 253.9 MB, free: 5.531 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 9.237e-05/0.1817, allocations: 25.94 kB / 254 MB, free: 5.504 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.417e-05/0.1818, allocations: 23.44 kB / 254 MB, free: 5.48 MB / 186.7 MB Notification: Performance of SimCode: time 2.7e-07/0.1818, allocations: 0 / 254 MB, free: 5.48 MB / 186.7 MB Notification: Performance of Templates: time 0.004216/0.186, allocations: 1.646 MB / 255.6 MB, free: 3.852 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)