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.001428/0.001429, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.531/1.531, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00173/0.00173, allocations: 119.4 kB / 248.1 MB, free: 6.34 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.684e-05, allocations: 4 kB / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1164, allocations: 44.49 MB / 342.6 MB, free: 11.66 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3505/0.467, allocations: 70.76 MB / 413.3 MB, free: 25.09 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.4673, allocations: 66.44 kB / 413.4 MB, free: 25.06 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.006601/0.4739, allocations: 2.898 MB / 416.3 MB, free: 22.61 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4739, allocations: 4 kB / 416.3 MB, free: 22.6 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.4739, allocations: 4 kB / 416.3 MB, free: 22.6 MB / 315.1 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.0004527/0.4744, allocations: 444.3 kB / 416.7 MB, free: 22.14 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.4744, allocations: 8.031 kB / 416.7 MB, free: 22.13 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.576e-05/0.4745, allocations: 21.53 kB / 416.7 MB, free: 22.11 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.4747, allocations: 223 kB / 417 MB, free: 21.87 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.239e-05/0.4748, allocations: 12.7 kB / 417 MB, free: 21.86 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.4748, allocations: 22.06 kB / 417 MB, free: 21.84 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000255/0.4751, allocations: 142 kB / 417.1 MB, free: 21.75 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.4754, allocations: 224.3 kB / 417.4 MB, free: 21.56 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.4754, allocations: 3.938 kB / 417.4 MB, free: 21.56 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.4754, allocations: 4 kB / 417.4 MB, free: 21.55 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.4754, allocations: 4 kB / 417.4 MB, free: 21.55 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008361/0.4763, allocations: 0.9012 MB / 418.3 MB, free: 20.71 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.4765, allocations: 137.5 kB / 418.4 MB, free: 20.61 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.129e-05/0.4766, allocations: 62.67 kB / 418.5 MB, free: 20.57 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.4766, allocations: 8.188 kB / 418.5 MB, free: 20.56 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001582/0.4768, allocations: 115.1 kB / 418.6 MB, free: 20.46 MB / 315.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.4768, allocations: 0 / 418.6 MB, free: 20.46 MB / 315.1 MB Notification: Performance of matching and sorting (n=23): time 0.0002613/0.4771, allocations: 142.3 kB / 418.7 MB, free: 20.34 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.4771, allocations: 59.39 kB / 418.8 MB, free: 20.27 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.401e-05/0.4772, allocations: 139.2 kB / 418.9 MB, free: 20.14 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.4772, allocations: 33.33 kB / 418.9 MB, free: 20.11 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.079e-05/0.4773, allocations: 138.7 kB / 419.1 MB, free: 19.98 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.977e-05/0.4774, allocations: 65.73 kB / 419.1 MB, free: 19.93 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-06/0.4774, allocations: 0.6562 kB / 419.2 MB, free: 19.93 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 6.489e-05/0.4775, allocations: 322.1 kB / 419.5 MB, free: 19.61 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.043e-05/0.4775, allocations: 50.47 kB / 419.5 MB, free: 19.57 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.4777, allocations: 134.2 kB / 419.6 MB, free: 19.44 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.663e-05/0.4778, allocations: 62.44 kB / 419.7 MB, free: 19.4 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.4778, allocations: 0 / 419.7 MB, free: 19.4 MB / 315.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002694/0.478, allocations: 217.4 kB / 419.9 MB, free: 19.21 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.4781, allocations: 12.89 kB / 419.9 MB, free: 19.2 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.4781, allocations: 0 / 419.9 MB, free: 19.2 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.4781, allocations: 4 kB / 419.9 MB, free: 19.2 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.4782, allocations: 39.78 kB / 420 MB, free: 19.16 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.4783, allocations: 4 kB / 420 MB, free: 19.16 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.124e-05/0.4784, allocations: 13.16 kB / 420 MB, free: 19.15 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.4784, allocations: 8 kB / 420 MB, free: 19.14 MB / 315.1 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 8.461e-05/0.4785, allocations: 132.2 kB / 420.1 MB, free: 19.01 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.03e-05/0.4785, allocations: 19.8 kB / 420.1 MB, free: 18.99 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003013/0.4788, allocations: 171.8 kB / 420.3 MB, free: 18.86 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.4788, allocations: 5.875 kB / 420.3 MB, free: 18.85 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4788, allocations: 0 / 420.3 MB, free: 18.85 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.4789, allocations: 7.938 kB / 420.3 MB, free: 18.84 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005139/0.4794, allocations: 0.5187 MB / 420.8 MB, free: 18.35 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4794, allocations: 3.953 kB / 420.9 MB, free: 18.34 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.701e-05/0.4795, allocations: 19.92 kB / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4795, allocations: 4 kB / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.4795, allocations: 3.562 kB / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4795, allocations: 0 / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4795, allocations: 4 kB / 420.9 MB, free: 18.32 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.4797, allocations: 252.5 kB / 421.1 MB, free: 18.08 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/0.4798, allocations: 92.88 kB / 421.2 MB, free: 17.97 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.639e-05/0.4798, allocations: 5 kB / 421.2 MB, free: 17.97 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.863e-05/0.4799, allocations: 7.984 kB / 421.2 MB, free: 17.96 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.733e-05/0.48, allocations: 23.59 kB / 421.3 MB, free: 17.94 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.48, allocations: 4 kB / 421.3 MB, free: 17.94 MB / 315.1 MB Notification: Performance of sorting global known variables: time 3.719e-05/0.48, allocations: 109.3 kB / 421.4 MB, free: 17.84 MB / 315.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.48, allocations: 0 / 421.4 MB, free: 17.84 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.4803, allocations: 32 kB / 421.4 MB, free: 17.81 MB / 315.1 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.0001412/0.4805, allocations: 106.9 kB / 421.5 MB, free: 17.7 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.4807, allocations: 156.7 kB / 421.7 MB, free: 17.58 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4807, allocations: 0 / 421.7 MB, free: 17.58 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 9.181e-05/0.4808, allocations: 74.73 kB / 421.7 MB, free: 17.53 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.481, allocations: 13.97 kB / 421.7 MB, free: 17.52 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003903/0.4814, allocations: 225 kB / 422 MB, free: 17.3 MB / 315.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.4816, allocations: 0.7419 MB / 422.7 MB, free: 16.54 MB / 315.1 MB Notification: Performance of simCode: alias equations: time 7.752e-05/0.4817, allocations: 31.44 kB / 422.7 MB, free: 16.51 MB / 315.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.692e-05/0.4817, allocations: 19.44 kB / 422.8 MB, free: 16.49 MB / 315.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4817, allocations: 0 / 422.8 MB, free: 16.49 MB / 315.1 MB Notification: Performance of Templates: time 0.004069/0.4858, allocations: 1.602 MB / 424.4 MB, free: 14.93 MB / 315.1 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)