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.9462/0.9462, allocations: 110.8 MB / 123.3 MB, free: 10.78 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00192/0.001919, allocations: 155.5 kB / 149.1 MB, free: 0.9844 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.303e-05/2.304e-05, allocations: 0 / 180.2 MB, free: 17.58 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04331/0.04336, allocations: 25.19 MB / 205.4 MB, free: 8.441 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04516/0.08857, allocations: 33.76 MB / 239.1 MB, free: 6.625 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001818/0.08879, allocations: 59.97 kB / 239.2 MB, free: 6.566 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00737/0.09617, allocations: 2.93 MB / 242.1 MB, free: 3.613 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.0962, allocations: 0 / 242.1 MB, free: 3.613 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.09623, allocations: 4 kB / 242.1 MB, free: 3.609 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.0005044/0.09674, allocations: 439.8 kB / 242.6 MB, free: 3.141 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.09678, allocations: 12.03 kB / 242.6 MB, free: 3.129 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.778e-05/0.09685, allocations: 19.77 kB / 242.6 MB, free: 3.109 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.0971, allocations: 230.7 kB / 242.8 MB, free: 2.844 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.09714, allocations: 24.56 kB / 242.9 MB, free: 2.82 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.09719, allocations: 28 kB / 242.9 MB, free: 2.793 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.0976, allocations: 254 kB / 243.1 MB, free: 2.52 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.09762, allocations: 0 / 243.1 MB, free: 2.52 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.09765, allocations: 12 kB / 243.1 MB, free: 2.508 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.09766, allocations: 7.953 kB / 243.1 MB, free: 2.5 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002853/0.09796, allocations: 169.6 kB / 243.3 MB, free: 2.336 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.0991, allocations: 0.9445 MB / 244.3 MB, free: 1.316 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.09939, allocations: 147.3 kB / 244.4 MB, free: 1.164 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.09951, allocations: 77.31 kB / 244.5 MB, free: 1.086 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.09953, allocations: 192 / 244.5 MB, free: 1.086 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.09973, allocations: 113.8 kB / 244.6 MB, free: 0.9648 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.09974, allocations: 0 / 244.6 MB, free: 0.9648 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003065/0.1001, allocations: 165.1 kB / 244.7 MB, free: 0.7969 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.1001, allocations: 59.41 kB / 244.8 MB, free: 0.7266 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.1002, allocations: 149 kB / 245 MB, free: 0.5742 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.1003, allocations: 41.69 kB / 245 MB, free: 0.5273 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.409e-05/0.1003, allocations: 136.3 kB / 245.1 MB, free: 400 kB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.759e-05/0.1004, allocations: 63.28 kB / 245.2 MB, free: 336 kB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.568e-05/0.1004, allocations: 4 kB / 245.2 MB, free: 332 kB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.1075/0.2079, allocations: 334.6 kB / 245.5 MB, free: 41.72 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000225/0.2082, allocations: 54 kB / 245.6 MB, free: 41.71 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.2084, allocations: 131.7 kB / 245.7 MB, free: 41.64 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.2086, allocations: 71.97 kB / 245.8 MB, free: 41.63 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2086, allocations: 0 / 245.8 MB, free: 41.63 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004343/0.209, allocations: 243.7 kB / 246 MB, free: 41.6 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.209, allocations: 5.062 kB / 246 MB, free: 41.6 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2091, allocations: 4.156 kB / 246 MB, free: 41.6 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.2091, allocations: 9.297 kB / 246 MB, free: 41.6 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.2093, allocations: 31.67 kB / 246.1 MB, free: 41.6 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.2093, allocations: 8.797 kB / 246.1 MB, free: 41.59 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.2094, allocations: 18.67 kB / 246.1 MB, free: 41.59 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.2095, allocations: 13.78 kB / 246.1 MB, free: 41.59 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: 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: 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 () * 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.0001352/0.2096, allocations: 134.7 kB / 246.2 MB, free: 41.48 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/0.2096, allocations: 18.31 kB / 246.2 MB, free: 41.48 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003298/0.21, allocations: 183.1 kB / 246.4 MB, free: 41.44 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.21, allocations: 2.469 kB / 246.4 MB, free: 41.44 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.21, allocations: 2 kB / 246.4 MB, free: 41.44 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.21, allocations: 1.078 kB / 246.4 MB, free: 41.44 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006728/0.2107, allocations: 0.5827 MB / 247 MB, free: 41.09 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.2107, allocations: 1.562 kB / 247 MB, free: 41.09 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.517e-05/0.2108, allocations: 20.83 kB / 247 MB, free: 41.09 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.2108, allocations: 0.5156 kB / 247 MB, free: 41.09 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.2108, allocations: 14.27 kB / 247.1 MB, free: 41.09 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2108, allocations: 0.5625 kB / 247.1 MB, free: 41.09 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2108, allocations: 0.9688 kB / 247.1 MB, free: 41.09 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.2111, allocations: 267.4 kB / 247.3 MB, free: 40.95 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.921e-05/0.2111, allocations: 92.47 kB / 247.4 MB, free: 40.85 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.2112, allocations: 7.453 kB / 247.4 MB, free: 40.85 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.649e-05/0.2113, allocations: 16.97 kB / 247.4 MB, free: 40.85 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-05/0.2113, allocations: 22.92 kB / 247.4 MB, free: 40.85 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.2114, allocations: 8.031 kB / 247.5 MB, free: 40.85 MB / 186.7 MB Notification: Performance of sorting global known variables: time 4.946e-05/0.2114, allocations: 97.73 kB / 247.6 MB, free: 40.77 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2114, allocations: 1.094 kB / 247.6 MB, free: 40.77 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0002999/0.2117, allocations: 38.84 kB / 247.6 MB, free: 40.77 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) * 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.0001372/0.2119, allocations: 120.4 kB / 247.7 MB, free: 40.68 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003139/0.2122, allocations: 172.9 kB / 247.9 MB, free: 40.66 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2122, allocations: 2.625 kB / 247.9 MB, free: 40.66 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.2123, allocations: 83.36 kB / 248 MB, free: 40.66 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.2125, allocations: 17.53 kB / 248 MB, free: 40.66 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000438/0.213, allocations: 235.3 kB / 248.2 MB, free: 40.55 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.2132, allocations: 0.7411 MB / 249 MB, free: 39.85 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 8.541e-05/0.2133, allocations: 26.8 kB / 249 MB, free: 39.84 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.315e-05/0.2133, allocations: 24.61 kB / 249 MB, free: 39.83 MB / 186.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2133, allocations: 0 / 249 MB, free: 39.83 MB / 186.7 MB Notification: Performance of Templates: time 0.005098/0.2184, allocations: 1.66 MB / 250.7 MB, free: 39.72 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)