Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6762/0.6762, allocations: 110.9 MB / 125.9 MB, free: 6.094 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001636/0.001636, allocations: 146.2 kB / 151.9 MB, free: 4.953 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002453/0.0002454, allocations: 4 kB / 184.9 MB, free: 3.895 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.144, allocations: 25.15 MB / 210 MB, free: 29.8 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.03836/0.1824, allocations: 33.86 MB / 243.9 MB, free: 15.95 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.1826, allocations: 59.97 kB / 244 MB, free: 15.89 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007087/0.1897, allocations: 2.912 MB / 246.9 MB, free: 13 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1897, allocations: 3.938 kB / 246.9 MB, free: 12.99 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.1897, 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.0004808/0.1902, allocations: 443.7 kB / 247.3 MB, free: 12.51 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.1903, allocations: 8.031 kB / 247.3 MB, free: 12.5 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.544e-05/0.1903, allocations: 27.5 kB / 247.3 MB, free: 12.48 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.1906, allocations: 222.9 kB / 247.6 MB, free: 12.22 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.1906, allocations: 20.56 kB / 247.6 MB, free: 12.2 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.1906, allocations: 24 kB / 247.6 MB, free: 12.18 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.191, allocations: 266.5 kB / 247.9 MB, free: 11.89 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1911, allocations: 0 / 247.9 MB, free: 11.89 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.1911, allocations: 8 kB / 247.9 MB, free: 11.88 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.1911, allocations: 15.95 kB / 247.9 MB, free: 11.87 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.1914, allocations: 165.6 kB / 248 MB, free: 11.71 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000957/0.1924, allocations: 0.9457 MB / 249 MB, free: 10.69 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002436/0.1926, allocations: 152.3 kB / 249.1 MB, free: 10.53 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.1926, allocations: 4.188 kB / 249.1 MB, free: 10.53 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.1928, allocations: 115.5 kB / 249.3 MB, free: 10.4 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 1.452e-06/0.1928, allocations: 0 / 249.3 MB, free: 10.4 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003917/0.1932, allocations: 213.2 kB / 249.5 MB, free: 10.19 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.1933, allocations: 55.41 kB / 249.5 MB, free: 10.12 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.1934, allocations: 143.9 kB / 249.7 MB, free: 9.977 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.1934, allocations: 41.69 kB / 249.7 MB, free: 9.93 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.1935, allocations: 136.5 kB / 249.8 MB, free: 9.793 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/0.1936, allocations: 55.25 kB / 249.9 MB, free: 9.738 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.151e-05/0.1936, allocations: 8 kB / 249.9 MB, free: 9.73 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1937, allocations: 330.8 kB / 250.2 MB, free: 9.398 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.1938, allocations: 64.61 kB / 250.3 MB, free: 9.332 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.194, allocations: 133.9 kB / 250.4 MB, free: 9.172 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.1941, allocations: 70.36 kB / 250.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1941, allocations: 4 kB / 250.5 MB, free: 9.102 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003366/0.1944, allocations: 241.2 kB / 250.7 MB, free: 8.859 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1945, allocations: 4 kB / 250.7 MB, free: 8.855 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1945, allocations: 4 kB / 250.7 MB, free: 8.852 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1945, allocations: 4 kB / 250.7 MB, free: 8.848 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.1946, allocations: 45.62 kB / 250.8 MB, free: 8.805 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1947, allocations: 4.281 kB / 250.8 MB, free: 8.801 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.901e-05/0.1948, allocations: 21.41 kB / 250.8 MB, free: 8.781 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.1948, allocations: 16 kB / 250.8 MB, free: 8.766 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,SetBoolean1.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.0001727/0.195, allocations: 159.3 kB / 251 MB, free: 8.602 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.195, allocations: 7.906 kB / 251 MB, free: 8.594 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003079/0.1953, allocations: 193.7 kB / 251.2 MB, free: 8.406 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1953, allocations: 11.94 kB / 251.2 MB, free: 8.395 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1953, allocations: 2.5 kB / 251.2 MB, free: 8.395 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1953, allocations: 0 / 251.2 MB, free: 8.395 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006492/0.196, allocations: 0.5913 MB / 251.8 MB, free: 7.742 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.196, allocations: 0 / 251.8 MB, free: 7.742 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.876e-05/0.1961, allocations: 12 kB / 251.8 MB, free: 7.73 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1961, allocations: 0 / 251.8 MB, free: 7.73 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.1961, allocations: 15.98 kB / 251.8 MB, free: 7.715 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1961, allocations: 1.969 kB / 251.8 MB, free: 7.715 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1961, allocations: 0 / 251.8 MB, free: 7.715 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000267/0.1964, allocations: 275.6 kB / 252.1 MB, free: 7.43 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.1965, allocations: 88.92 kB / 252.2 MB, free: 7.324 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.171e-05/0.1965, allocations: 8 kB / 252.2 MB, free: 7.316 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.848e-05/0.1966, allocations: 4 kB / 252.2 MB, free: 7.312 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.008e-05/0.1967, allocations: 23.95 kB / 252.2 MB, free: 7.289 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.1967, allocations: 12 kB / 252.2 MB, free: 7.277 MB / 186.7 MB Notification: Performance of sorting global known variables: time 4.946e-05/0.1967, allocations: 95.27 kB / 252.3 MB, free: 7.184 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1967, allocations: 0 / 252.3 MB, free: 7.184 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0002731/0.197, allocations: 51.94 kB / 252.4 MB, free: 7.133 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,SetBoolean1.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.0001362/0.1972, allocations: 107 kB / 252.5 MB, free: 7.016 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003119/0.1975, allocations: 180.4 kB / 252.6 MB, free: 6.84 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1975, allocations: 4.188 kB / 252.6 MB, free: 6.836 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.1976, allocations: 83.84 kB / 252.7 MB, free: 6.754 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/0.1978, allocations: 12 kB / 252.7 MB, free: 6.742 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005233/0.1983, allocations: 391.2 kB / 253.1 MB, free: 6.332 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.1986, allocations: 0.7445 MB / 253.9 MB, free: 5.559 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 8.108e-05/0.1987, allocations: 24.62 kB / 253.9 MB, free: 5.535 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.35e-05/0.1988, allocations: 19.44 kB / 253.9 MB, free: 5.516 MB / 186.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1988, allocations: 4 kB / 253.9 MB, free: 5.512 MB / 186.7 MB Notification: Performance of Templates: time 0.003872/0.2026, allocations: 1.637 MB / 255.5 MB, free: 3.895 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)