Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7407/0.7407, allocations: 110.9 MB / 125.9 MB, free: 6.211 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001685/0.001685, allocations: 143.2 kB / 151.9 MB, free: 5 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002873, allocations: 4 kB / 184.9 MB, free: 3.941 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1259, allocations: 25.15 MB / 210 MB, free: 29.71 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0393/0.1652, allocations: 33.31 MB / 243.4 MB, free: 0.5391 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001698/0.1654, allocations: 61.48 kB / 243.4 MB, free: 492 kB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006863/0.1723, allocations: 2.775 MB / 246.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1724, allocations: 0 / 246.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.1724, allocations: 4.875 kB / 246.2 MB, free: 13.71 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0005724/0.173, allocations: 451.5 kB / 246.6 MB, free: 13.22 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.173, allocations: 8.031 kB / 246.6 MB, free: 13.21 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.24e-05/0.1731, allocations: 23.59 kB / 246.7 MB, free: 13.2 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.1733, allocations: 222.8 kB / 246.9 MB, free: 12.94 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.1734, allocations: 16.44 kB / 246.9 MB, free: 12.92 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.1734, allocations: 20 kB / 246.9 MB, free: 12.9 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.1738, allocations: 233.8 kB / 247.1 MB, free: 12.66 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.1738, allocations: 0 / 247.1 MB, free: 12.66 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.1739, allocations: 15.98 kB / 247.2 MB, free: 12.65 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1739, allocations: 7.953 kB / 247.2 MB, free: 12.64 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.1742, allocations: 161.7 kB / 247.3 MB, free: 12.48 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000866/0.1751, allocations: 0.6782 MB / 248 MB, free: 11.75 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.1754, allocations: 168.5 kB / 248.2 MB, free: 11.57 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.1754, allocations: 4.188 kB / 248.2 MB, free: 11.57 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/0.1756, allocations: 115.4 kB / 248.3 MB, free: 11.45 MB / 186.7 MB Notification: Performance of pre-optimization done (n=24): time 2.074e-06/0.1756, allocations: 0 / 248.3 MB, free: 11.45 MB / 186.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004034/0.176, allocations: 217.3 kB / 248.5 MB, free: 11.23 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.1761, allocations: 55.41 kB / 248.6 MB, free: 11.16 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.1762, allocations: 141.8 kB / 248.7 MB, free: 11.01 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.1762, allocations: 33.7 kB / 248.7 MB, free: 10.97 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.611e-05/0.1763, allocations: 132.7 kB / 248.9 MB, free: 10.84 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.044e-05/0.1764, allocations: 55.25 kB / 248.9 MB, free: 10.79 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.1764, allocations: 8 kB / 248.9 MB, free: 10.78 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1765, allocations: 326.8 kB / 249.2 MB, free: 10.45 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1766, allocations: 60.3 kB / 249.3 MB, free: 10.39 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.1768, allocations: 123.7 kB / 249.4 MB, free: 10.25 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.1769, allocations: 76.38 kB / 249.5 MB, free: 10.17 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1769, allocations: 0 / 249.5 MB, free: 10.17 MB / 186.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003502/0.1773, allocations: 237.3 kB / 249.7 MB, free: 9.934 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1773, allocations: 4 kB / 249.7 MB, free: 9.93 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1773, allocations: 8.219 kB / 249.7 MB, free: 9.922 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.1774, allocations: 4 kB / 249.7 MB, free: 9.918 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.1775, allocations: 30.23 kB / 249.8 MB, free: 9.891 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.1775, allocations: 7.938 kB / 249.8 MB, free: 9.883 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.722e-05/0.1776, allocations: 25.61 kB / 249.8 MB, free: 9.859 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.1777, allocations: 12 kB / 249.8 MB, free: 9.848 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002213/0.1779, allocations: 164.8 kB / 250 MB, free: 9.676 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.636e-05/0.1779, allocations: 19.77 kB / 250 MB, free: 9.656 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003605/0.1783, allocations: 185.8 kB / 250.2 MB, free: 9.473 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1783, allocations: 7.984 kB / 250.2 MB, free: 9.465 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1783, allocations: 0 / 250.2 MB, free: 9.465 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1783, allocations: 3.938 kB / 250.2 MB, free: 9.461 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007107/0.179, allocations: 0.5689 MB / 250.8 MB, free: 8.836 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.179, allocations: 1.75 kB / 250.8 MB, free: 8.836 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.567e-05/0.1791, allocations: 19.94 kB / 250.8 MB, free: 8.816 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1791, allocations: 2.344 kB / 250.8 MB, free: 8.816 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.1792, allocations: 7.984 kB / 250.8 MB, free: 8.809 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1792, allocations: 4 kB / 250.8 MB, free: 8.805 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1792, allocations: 0 / 250.8 MB, free: 8.805 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.1795, allocations: 279.2 kB / 251.1 MB, free: 8.516 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.902e-05/0.1796, allocations: 92.95 kB / 251.1 MB, free: 8.406 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.1796, allocations: 4 kB / 251.2 MB, free: 8.402 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.974e-05/0.1797, allocations: 4 kB / 251.2 MB, free: 8.398 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.715e-05/0.1798, allocations: 27.95 kB / 251.2 MB, free: 8.371 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.1798, allocations: 4 kB / 251.2 MB, free: 8.367 MB / 186.7 MB Notification: Performance of sorting global known variables: time 5.196e-05/0.1798, allocations: 101.1 kB / 251.3 MB, free: 8.27 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1799, allocations: 0 / 251.3 MB, free: 8.27 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0002776/0.1801, allocations: 40 kB / 251.3 MB, free: 8.23 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 (transition2.enableFire,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,step.active,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 (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.0001882/0.1803, allocations: 118 kB / 251.4 MB, free: 8.109 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.1807, allocations: 176 kB / 251.6 MB, free: 7.938 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1807, allocations: 0 / 251.6 MB, free: 7.938 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.1808, allocations: 91.83 kB / 251.7 MB, free: 7.848 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.181, allocations: 20.7 kB / 251.7 MB, free: 7.828 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005965/0.1816, allocations: 373 kB / 252.1 MB, free: 7.43 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.1819, allocations: 0.7405 MB / 252.8 MB, free: 6.66 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 7.514e-05/0.182, allocations: 21.95 kB / 252.8 MB, free: 6.641 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.665e-05/0.1821, allocations: 23.42 kB / 252.9 MB, free: 6.621 MB / 186.7 MB Notification: Performance of SimCode: time 3.3e-07/0.1821, allocations: 0 / 252.9 MB, free: 6.621 MB / 186.7 MB Notification: Performance of Templates: time 0.004435/0.1865, allocations: 1.658 MB / 254.5 MB, free: 4.984 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)