Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths.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.ExecutionPaths,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths") translateModel(Modelica.StateGraph.Examples.ExecutionPaths,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths") [: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.7531/0.7531, 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.001715/0.001715, allocations: 156 kB / 143.7 MB, free: 4.883 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.402e-06/6.432e-06, allocations: 0 / 173.4 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03688/0.0369, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1137/0.1506, allocations: 33.53 MB / 232.1 MB, free: 4.41 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001282/0.1508, allocations: 61.06 kB / 232.2 MB, free: 4.41 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.02391/0.1747, allocations: 10.68 MB / 242.9 MB, free: 2.375 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.395e-05/0.1748, allocations: 35.03 kB / 242.9 MB, free: 2.363 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.001553/0.1764, allocations: 0.8812 MB / 243.8 MB, free: 1.684 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1764, allocations: 11.44 kB / 243.8 MB, free: 1.684 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002373/0.1766, allocations: 89.03 kB / 243.9 MB, free: 1.641 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005897/0.1772, allocations: 426.3 kB / 244.3 MB, free: 1.34 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.937e-05/0.1773, allocations: 38.19 kB / 244.4 MB, free: 1.34 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.1774, allocations: 62.08 kB / 244.4 MB, free: 1.336 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001062/0.1785, allocations: 0.6667 MB / 245.1 MB, free: 1.266 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.1796, allocations: 0.7818 MB / 245.9 MB, free: 1.035 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.1797, allocations: 3.906 kB / 245.9 MB, free: 1.035 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.874e-05/0.1797, allocations: 3.938 kB / 245.9 MB, free: 1.031 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.1798, allocations: 23.38 kB / 245.9 MB, free: 1.031 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.1822, allocations: 2.152 MB / 248 MB, free: 15.78 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/0.1829, allocations: 0.5482 MB / 248.6 MB, free: 15.69 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/0.1833, allocations: 312.2 kB / 248.9 MB, free: 15.65 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.639e-05/0.1834, allocations: 19.12 kB / 248.9 MB, free: 15.65 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004971/0.1839, allocations: 385.5 kB / 249.3 MB, free: 15.5 MB / 186.7 MB Notification: Performance of pre-optimization done (n=99): time 2.825e-06/0.1839, allocations: 0 / 249.3 MB, free: 15.5 MB / 186.7 MB Notification: Performance of matching and sorting (n=99): time 0.0008458/0.1848, allocations: 0.4969 MB / 249.8 MB, free: 15.39 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.1848, allocations: 105.1 kB / 249.9 MB, free: 15.28 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.1851, allocations: 279.4 kB / 250.2 MB, free: 15.13 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.249e-05/0.1852, allocations: 43.94 kB / 250.2 MB, free: 15.09 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1854, allocations: 276.5 kB / 250.5 MB, free: 14.9 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.1856, allocations: 232.3 kB / 250.7 MB, free: 14.75 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.441e-05/0.1856, allocations: 1.312 kB / 250.7 MB, free: 14.75 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1858, allocations: 366.5 kB / 251.1 MB, free: 14.42 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003453/0.1861, allocations: 223.5 kB / 251.3 MB, free: 14.42 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.1866, allocations: 432 kB / 251.7 MB, free: 14.18 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004136/0.187, allocations: 256.9 kB / 252 MB, free: 14.12 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.187, allocations: 4 kB / 252 MB, free: 14.11 MB / 186.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001115/0.1881, allocations: 0.7346 MB / 252.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1881, allocations: 5.344 kB / 252.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1882, allocations: 9.25 kB / 252.7 MB, free: 13.93 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.1882, allocations: 12 kB / 252.7 MB, free: 13.93 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.1886, allocations: 113 kB / 252.8 MB, free: 13.9 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.1886, allocations: 19.8 kB / 252.8 MB, free: 13.89 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003428/0.189, allocations: 49.33 kB / 252.9 MB, free: 13.87 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-05/0.1891, allocations: 50.67 kB / 252.9 MB, free: 13.87 MB / 186.7 MB Warning: Assuming fixed start value for the following 8 variables: transition6a.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition4a.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition6.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition5.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition4.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition3.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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: 25 * Number of states: 0 () * Number of discrete variables: 124 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition3.enableFire,$PRE.transition4.enableFire,$PRE.transition5.enableFire,$PRE.transition6.enableFire,$PRE.transition7.enableFire,$PRE.transition4a.enableFire,$PRE.transition6a.enableFire,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,$PRE.step2.localActive,step2.localActive,step2.outPort[1].reset,$PRE.step2.newActive,step2.newActive,$PRE.step2.oldActive,step2.oldActive,step2.active,transition3.enableFire,transition3.fire,$PRE.transition3.t_start,transition3.t_start,transition4.enableFire,transition4.fire,$PRE.transition4.t_start,transition4.t_start,$PRE.step3.localActive,step3.localActive,$PRE.step3.newActive,step3.newActive,$PRE.step3.oldActive,step3.oldActive,step3.active,$PRE.step4.localActive,step4.localActive,$PRE.step4.newActive,step4.newActive,$PRE.step4.oldActive,step4.oldActive,step4.active,transition5.enableFire,transition5.fire,$PRE.transition5.t_start,transition5.t_start,transition6.enableFire,transition6.fire,$PRE.transition6.t_start,transition6.t_start,$PRE.step5.localActive,step5.localActive,step5.inPort[1].set,$PRE.step5.newActive,step5.newActive,$PRE.step5.oldActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.enableFire,transition4a.fire,$PRE.transition4a.t_start,transition4a.t_start,$PRE.step4a.localActive,step4a.localActive,$PRE.step4a.newActive,step4a.newActive,$PRE.step4a.oldActive,step4a.oldActive,step4a.active,transition6a.enableFire,transition6a.fire,$PRE.transition6a.t_start,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition6a.condition,transition4a.condition,transition6.condition,transition5.condition,transition4.condition,transition3.condition,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 154 * 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.0002552/0.1893, allocations: 205.3 kB / 253.1 MB, free: 13.7 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.016e-05/0.1894, allocations: 50.77 kB / 253.2 MB, free: 13.67 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.1906, allocations: 0.6315 MB / 253.8 MB, free: 13.51 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.1906, allocations: 10.78 kB / 253.8 MB, free: 13.51 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.1906, allocations: 5.5 kB / 253.8 MB, free: 13.5 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.1906, allocations: 3.984 kB / 253.8 MB, free: 13.5 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.1931, allocations: 1.436 MB / 255.3 MB, free: 12.9 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1931, allocations: 4 kB / 255.3 MB, free: 12.89 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.1933, allocations: 72.34 kB / 255.4 MB, free: 12.88 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-06/0.1934, allocations: 5.375 kB / 255.4 MB, free: 12.88 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.166e-05/0.1934, allocations: 7.547 kB / 255.4 MB, free: 12.87 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.1934, allocations: 3.531 kB / 255.4 MB, free: 12.87 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1934, allocations: 1.812 kB / 255.4 MB, free: 12.87 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009958/0.1944, allocations: 0.6908 MB / 256.1 MB, free: 12.6 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.844e-05/0.1945, allocations: 128.4 kB / 256.2 MB, free: 12.47 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.377e-05/0.1946, allocations: 10.17 kB / 256.2 MB, free: 12.47 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.1948, allocations: 31.41 kB / 256.2 MB, free: 12.46 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.195, allocations: 93.06 kB / 256.3 MB, free: 12.42 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-05/0.1951, allocations: 33.92 kB / 256.4 MB, free: 12.41 MB / 186.7 MB Notification: Performance of sort global known variables: time 9.635e-05/0.1952, allocations: 145.6 kB / 256.5 MB, free: 12.33 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005057/0.1957, allocations: 121.2 kB / 256.6 MB, free: 12.33 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 84 (transition4a.enableFire,transition4.enableFire,transition6a.enableFire,step4a.localActive,transition2.enableFire,step5.localActive,transition5.enableFire,transition6.enableFire,step4.localActive,step3.localActive,transition3.enableFire,transition1.enableFire,step2.localActive,step6.localActive,step1.localActive,step0.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,step2.outPort[1].reset,step2.newActive,step2.oldActive,step2.active,transition3.fire,transition3.t_start,transition4.fire,transition4.t_start,step3.newActive,step3.oldActive,step3.active,step4.newActive,step4.oldActive,step4.active,transition5.fire,transition5.t_start,transition6.fire,transition6.t_start,step5.inPort[1].set,step5.newActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.fire,transition4a.t_start,step4a.newActive,step4a.oldActive,step4a.active,transition6a.fire,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps) * Number of discrete states: 8 (step0.newActive,step1.newActive,step6.newActive,step2.newActive,step3.newActive,step4.newActive,step5.newActive,step4a.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.000216/0.1959, allocations: 153.3 kB / 256.8 MB, free: 12.21 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0009327/0.1969, allocations: 0.6728 MB / 257.4 MB, free: 12.15 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1969, allocations: 0 / 257.4 MB, free: 12.15 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.1973, allocations: 362.4 kB / 257.8 MB, free: 12.12 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.1977, allocations: 51.72 kB / 257.8 MB, free: 12.11 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.1994, allocations: 0.8737 MB / 258.7 MB, free: 11.77 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007562/0.2002, allocations: 1.029 MB / 259.7 MB, free: 10.94 MB / 186.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2002, allocations: 0 / 259.7 MB, free: 10.94 MB / 186.7 MB Notification: Performance of Templates: time 0.01443/0.2146, allocations: 7.672 MB / 267.4 MB, free: 4.5 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.ExecutionPaths.pipe 2>&1)