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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7801/0.7801, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002347/0.002347, allocations: 156 kB / 143.7 MB, free: 4.875 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.261e-06/6.281e-06, allocations: 0 / 173.4 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0493/0.04932, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1233/0.1727, allocations: 32.47 MB / 231.1 MB, free: 4.445 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001651/0.1729, allocations: 56.98 kB / 231.1 MB, free: 4.445 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.00605/0.1789, allocations: 2.399 MB / 233.5 MB, free: 4.285 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.179, allocations: 7.484 kB / 233.5 MB, free: 4.285 MB / 170.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.0004884/0.1795, allocations: 434.6 kB / 234 MB, free: 3.902 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.1795, allocations: 11.5 kB / 234 MB, free: 3.902 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.111e-05/0.1796, allocations: 23.22 kB / 234 MB, free: 3.891 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.1798, allocations: 220.4 kB / 234.2 MB, free: 3.676 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.1798, allocations: 7.75 kB / 234.2 MB, free: 3.676 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.1799, allocations: 22.56 kB / 234.3 MB, free: 3.672 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002801/0.1802, allocations: 143.8 kB / 234.4 MB, free: 3.672 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.1805, allocations: 198.7 kB / 234.6 MB, free: 3.621 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.1805, allocations: 0 / 234.6 MB, free: 3.621 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.1805, allocations: 2.391 kB / 234.6 MB, free: 3.621 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1805, allocations: 7.75 kB / 234.6 MB, free: 3.621 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008413/0.1814, allocations: 0.6266 MB / 235.2 MB, free: 3.262 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.1817, allocations: 143.8 kB / 235.4 MB, free: 3.234 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.1818, allocations: 73.11 kB / 235.4 MB, free: 3.223 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.1818, allocations: 8 kB / 235.4 MB, free: 3.219 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001484/0.182, allocations: 107.3 kB / 235.5 MB, free: 3.164 MB / 170.7 MB Notification: Performance of pre-optimization done (n=24): time 1.953e-06/0.182, allocations: 0 / 235.5 MB, free: 3.164 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002898/0.1823, allocations: 133.3 kB / 235.7 MB, free: 3.129 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.421e-05/0.1823, allocations: 59.05 kB / 235.7 MB, free: 3.062 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.645e-05/0.1824, allocations: 142.5 kB / 235.9 MB, free: 2.953 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.1824, allocations: 32.06 kB / 235.9 MB, free: 2.922 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.223e-05/0.1825, allocations: 124.9 kB / 236 MB, free: 2.816 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.1826, allocations: 58 kB / 236.1 MB, free: 2.785 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.165e-05/0.1826, allocations: 0 / 236.1 MB, free: 2.785 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.334e-05/0.1827, allocations: 327.5 kB / 236.4 MB, free: 2.473 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.1828, allocations: 54.73 kB / 236.5 MB, free: 2.465 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.1829, allocations: 117.8 kB / 236.6 MB, free: 2.391 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.183, allocations: 56.56 kB / 236.6 MB, free: 2.391 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1831, allocations: 0 / 236.6 MB, free: 2.391 MB / 170.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003629/0.1834, allocations: 206.4 kB / 236.8 MB, free: 2.332 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1835, allocations: 8.781 kB / 236.8 MB, free: 2.332 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1835, allocations: 3.906 kB / 236.8 MB, free: 2.328 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.1835, allocations: 3.75 kB / 236.8 MB, free: 2.328 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.1837, allocations: 31.5 kB / 236.9 MB, free: 2.324 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.1837, allocations: 9.156 kB / 236.9 MB, free: 2.32 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.1838, allocations: 17.27 kB / 236.9 MB, free: 2.312 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.1839, allocations: 15.38 kB / 236.9 MB, free: 2.312 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition1.t_start:DISCRETE(unit = "s" fixed = false 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 () * 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.0002081/0.1841, allocations: 122.7 kB / 237 MB, free: 2.195 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.1841, allocations: 13.28 kB / 237.1 MB, free: 2.191 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.1845, allocations: 165.4 kB / 237.2 MB, free: 2.148 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.1845, allocations: 3.719 kB / 237.2 MB, free: 2.148 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1845, allocations: 4 kB / 237.2 MB, free: 2.145 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1846, allocations: 1.5 kB / 237.2 MB, free: 2.145 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006617/0.1852, allocations: 0.4897 MB / 237.7 MB, free: 1.863 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1852, allocations: 0 / 237.7 MB, free: 1.863 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.558e-05/0.1853, allocations: 26.12 kB / 237.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.1854, allocations: 3.875 kB / 237.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.1854, allocations: 0 / 237.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1854, allocations: 1.125 kB / 237.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1854, allocations: 0 / 237.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002783/0.1857, allocations: 252.8 kB / 238 MB, free: 1.707 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.1857, allocations: 100.9 kB / 238.1 MB, free: 1.598 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.838e-05/0.1858, allocations: 0 / 238.1 MB, free: 1.598 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.489e-05/0.1859, allocations: 13.41 kB / 238.1 MB, free: 1.59 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.379e-05/0.186, allocations: 24.72 kB / 238.1 MB, free: 1.59 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.186, allocations: 8.938 kB / 238.1 MB, free: 1.586 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.578e-05/0.186, allocations: 91.2 kB / 238.2 MB, free: 1.512 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0002959/0.1863, allocations: 35.97 kB / 238.3 MB, free: 1.508 MB / 170.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) * 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.0001464/0.1865, allocations: 102.9 kB / 238.4 MB, free: 1.422 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.000244/0.1867, allocations: 165.5 kB / 238.5 MB, free: 1.406 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1867, allocations: 0 / 238.5 MB, free: 1.406 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.1868, allocations: 75.31 kB / 238.6 MB, free: 1.402 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.187, allocations: 17.36 kB / 238.6 MB, free: 1.398 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004723/0.1875, allocations: 214.5 kB / 238.8 MB, free: 1.293 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000262/0.1878, allocations: 0.7668 MB / 239.6 MB, free: 0.582 MB / 170.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1878, allocations: 0 / 239.6 MB, free: 0.582 MB / 170.7 MB Notification: Performance of Templates: time 0.004654/0.1925, allocations: 1.876 MB / 241.5 MB, free: 436 kB / 170.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)