Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009913/0.0009916, allocations: 184.3 kB / 13.65 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.338/1.338, allocations: 194.3 MB / 208.4 MB, free: 6.711 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001667/0.001667, allocations: 114.3 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.082e-05/3.094e-05, allocations: 7.984 kB / 304.9 MB, free: 29.79 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08805/0.08809, allocations: 44.51 MB / 349.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.34/0.4281, allocations: 71.42 MB / 420.9 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4284, allocations: 66.56 kB / 420.9 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006793/0.4352, allocations: 2.944 MB / 423.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4353, allocations: 0 / 423.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.4353, allocations: 10.89 kB / 423.9 MB, free: 10.47 MB / 298.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.0004396/0.4357, allocations: 444 kB / 424.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.4358, allocations: 7.719 kB / 424.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.583e-05/0.4358, allocations: 19.34 kB / 424.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.4361, allocations: 227.9 kB / 424.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.4361, allocations: 25.5 kB / 424.6 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.51e-05/0.4361, allocations: 26.09 kB / 424.6 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003619/0.4365, allocations: 263 kB / 424.9 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.4365, allocations: 3.938 kB / 424.9 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.4366, allocations: 7 kB / 424.9 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.4366, allocations: 7.781 kB / 424.9 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.4368, allocations: 165.4 kB / 425 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009018/0.4377, allocations: 0.9521 MB / 426 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.438, allocations: 148.8 kB / 426.1 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.4381, allocations: 76.83 kB / 426.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.4381, allocations: 4.062 kB / 426.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/0.4383, allocations: 108.8 kB / 426.3 MB, free: 8.953 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.554e-06/0.4383, allocations: 0 / 426.3 MB, free: 8.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002845/0.4386, allocations: 164.2 kB / 426.5 MB, free: 8.895 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.4386, allocations: 55.31 kB / 426.5 MB, free: 8.832 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.34e-05/0.4387, allocations: 152.5 kB / 426.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.4388, allocations: 39.5 kB / 426.7 MB, free: 8.684 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.624e-05/0.4388, allocations: 142.1 kB / 426.9 MB, free: 8.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.458e-05/0.4389, allocations: 57.02 kB / 426.9 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.4389, allocations: 6.5 kB / 426.9 MB, free: 8.535 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.829e-05/0.439, allocations: 329.2 kB / 427.2 MB, free: 8.215 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.604e-05/0.4391, allocations: 64.09 kB / 427.3 MB, free: 8.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.4392, allocations: 132.3 kB / 427.4 MB, free: 8.117 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.4393, allocations: 67.16 kB / 427.5 MB, free: 8.105 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4394, allocations: 0 / 427.5 MB, free: 8.105 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003143/0.4397, allocations: 252.1 kB / 427.8 MB, free: 8.023 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.4397, allocations: 3.844 kB / 427.8 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.4397, allocations: 8.062 kB / 427.8 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.4397, allocations: 7.844 kB / 427.8 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.4399, allocations: 38.91 kB / 427.8 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.4399, allocations: 3.844 kB / 427.8 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.478e-05/0.44, allocations: 11.41 kB / 427.8 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/0.44, allocations: 11.5 kB / 427.8 MB, free: 8.004 MB / 298.7 MB 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 7.408e-05/0.4401, allocations: 138.5 kB / 428 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.4401, allocations: 19.58 kB / 428 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002876/0.4404, allocations: 192.8 kB / 428.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.4404, allocations: 3.906 kB / 428.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.4404, allocations: 4 kB / 428.2 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4404, allocations: 0 / 428.2 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005385/0.441, allocations: 0.5778 MB / 428.8 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.441, allocations: 3.938 kB / 428.8 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.544e-05/0.4411, allocations: 15.56 kB / 428.8 MB, free: 7.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.4411, allocations: 3.984 kB / 428.8 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.4411, allocations: 7.219 kB / 428.8 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4411, allocations: 3.938 kB / 428.8 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4411, allocations: 0 / 428.8 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002117/0.4413, allocations: 271 kB / 429.1 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.474e-05/0.4414, allocations: 92.75 kB / 429.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.4414, allocations: 3.875 kB / 429.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.4415, allocations: 11.78 kB / 429.2 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.4415, allocations: 18.81 kB / 429.2 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.4416, allocations: 11.83 kB / 429.2 MB, free: 7.094 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.726e-05/0.4416, allocations: 98.56 kB / 429.3 MB, free: 7.016 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.4416, allocations: 0 / 429.3 MB, free: 7.016 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002554/0.4419, allocations: 45.97 kB / 429.3 MB, free: 7.012 MB / 298.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.000127/0.442, allocations: 119.5 kB / 429.5 MB, free: 6.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002346/0.4423, allocations: 174 kB / 429.6 MB, free: 6.895 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.4423, allocations: 0 / 429.6 MB, free: 6.895 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.631e-05/0.4424, allocations: 83.22 kB / 429.7 MB, free: 6.883 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.4426, allocations: 19.44 kB / 429.7 MB, free: 6.875 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003777/0.4429, allocations: 236.6 kB / 430 MB, free: 6.754 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.4431, allocations: 0.7432 MB / 430.7 MB, free: 6.023 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.616e-05/0.4432, allocations: 17.36 kB / 430.7 MB, free: 6.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.31e-05/0.4433, allocations: 30.39 kB / 430.7 MB, free: 6.004 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4433, allocations: 0 / 430.7 MB, free: 6.004 MB / 298.7 MB Notification: Performance of Templates: time 0.003995/0.4473, allocations: 1.655 MB / 432.4 MB, free: 5.199 MB / 298.7 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)