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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 194.3 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2643, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003443/0.2678, allocations: 1.68 MB / 327 MB, free: 0.5117 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007619/0.2686, allocations: 267.5 kB / 327.2 MB, free: 308 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.2687, allocations: 3.938 kB / 327.2 MB, free: 308 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.2689, allocations: 30.08 kB / 327.3 MB, free: 280 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 6.479e-05/0.269, allocations: 17.11 kB / 327.3 MB, free: 264 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.2694, allocations: 114.6 kB / 327.4 MB, free: 168 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002988/0.2697, allocations: 264.3 kB / 327.7 MB, free: 12 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003466/0.2701, allocations: 193 kB / 327.8 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.85e-05/0.2702, allocations: 84.12 kB / 327.9 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001375/0.2703, allocations: 99.67 kB / 328 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.298e-05/0.2704, allocations: 26.69 kB / 328.1 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.902e-05/0.2705, allocations: 30.44 kB / 328.1 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.305e-05/0.2705, allocations: 61.97 kB / 328.1 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.2707, allocations: 101.6 kB / 328.2 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.2709, allocations: 226.9 kB / 328.5 MB, free: 15.46 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.271, allocations: 0 / 328.5 MB, free: 15.46 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.271, allocations: 0 / 328.5 MB, free: 15.46 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.271, allocations: 1.094 kB / 328.5 MB, free: 15.46 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006679/0.2717, allocations: 499.6 kB / 329 MB, free: 14.97 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2717, allocations: 13.38 kB / 329 MB, free: 14.97 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.994e-05/0.2718, allocations: 20.25 kB / 329 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.272, allocations: 227.7 kB / 329.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.2721, allocations: 24.34 kB / 329.2 MB, free: 14.7 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-05/0.2721, allocations: 31.28 kB / 329.3 MB, free: 14.69 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004565/0.2726, allocations: 270.7 kB / 329.5 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.2726, allocations: 1.438 kB / 329.5 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.2727, allocations: 14.53 kB / 329.5 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.2727, allocations: 5.562 kB / 329.5 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002938/0.273, allocations: 162.9 kB / 329.7 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.2741, allocations: 0.9759 MB / 330.7 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.2744, allocations: 160.2 kB / 330.8 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.2745, allocations: 73.64 kB / 330.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.2745, allocations: 6.094 kB / 330.9 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.2748, allocations: 113.6 kB / 331 MB, free: 13.28 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.2748, allocations: 0 / 331 MB, free: 13.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.000429/0.2752, allocations: 217.2 kB / 331.2 MB, free: 13.17 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.2752, allocations: 58.28 kB / 331.3 MB, free: 13.1 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.2754, allocations: 155.5 kB / 331.5 MB, free: 12.96 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.2754, allocations: 34.02 kB / 331.5 MB, free: 12.93 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.205e-05/0.2755, allocations: 143.3 kB / 331.6 MB, free: 12.79 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.2755, allocations: 60.22 kB / 331.7 MB, free: 12.74 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-05/0.2756, allocations: 79.88 kB / 331.8 MB, free: 12.69 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.2757, allocations: 331.8 kB / 332.1 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.2759, allocations: 62.16 kB / 332.1 MB, free: 12.33 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.276, allocations: 141.4 kB / 332.3 MB, free: 12.21 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.2763, allocations: 189 kB / 332.5 MB, free: 12.06 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2763, allocations: 0.9688 kB / 332.5 MB, free: 12.06 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003705/0.2767, allocations: 251.5 kB / 332.7 MB, free: 11.93 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2767, allocations: 5.875 kB / 332.7 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2767, allocations: 2.156 kB / 332.7 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2767, allocations: 4.656 kB / 332.7 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.2769, allocations: 37.83 kB / 332.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.2769, allocations: 3.656 kB / 332.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.277, allocations: 28.11 kB / 332.8 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.277, allocations: 17.62 kB / 332.8 MB, free: 11.88 MB / 270.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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001385/0.2772, allocations: 162.6 kB / 333 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.2772, allocations: 9.656 kB / 333 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003294/0.2775, allocations: 191 kB / 333.2 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.2775, allocations: 3.344 kB / 333.2 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2776, allocations: 0 / 333.2 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.2776, allocations: 5.047 kB / 333.2 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006844/0.2783, allocations: 0.5924 MB / 333.8 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2783, allocations: 4 kB / 333.8 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.899e-05/0.2783, allocations: 11.98 kB / 333.8 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.2784, allocations: 7.938 kB / 333.8 MB, free: 11.03 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.2784, allocations: 8 kB / 333.8 MB, free: 11.02 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2784, allocations: 0 / 333.8 MB, free: 11.02 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2784, allocations: 0 / 333.8 MB, free: 11.02 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/0.2787, allocations: 279.2 kB / 334.1 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.2788, allocations: 96.8 kB / 334.2 MB, free: 10.62 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.2788, allocations: 8 kB / 334.2 MB, free: 10.61 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.703e-05/0.2789, allocations: 7.984 kB / 334.2 MB, free: 10.6 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.916e-05/0.279, allocations: 23.97 kB / 334.2 MB, free: 10.58 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.279, allocations: 7.938 kB / 334.2 MB, free: 10.57 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.131e-05/0.2791, allocations: 99.2 kB / 334.3 MB, free: 10.47 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2791, allocations: 0 / 334.3 MB, free: 10.47 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000307/0.2794, allocations: 59.84 kB / 334.4 MB, free: 10.41 MB / 270.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.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001749/0.2796, allocations: 111.4 kB / 334.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000378/0.28, allocations: 199.6 kB / 334.7 MB, free: 10.1 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.28, allocations: 0 / 334.7 MB, free: 10.1 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.2801, allocations: 79.91 kB / 334.7 MB, free: 10.02 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.2804, allocations: 20.55 kB / 334.8 MB, free: 10 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006035/0.281, allocations: 339.3 kB / 335.1 MB, free: 9.648 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.2813, allocations: 0.7439 MB / 335.8 MB, free: 8.879 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.834e-05/0.2814, allocations: 21.95 kB / 335.9 MB, free: 8.859 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.237e-05/0.2815, allocations: 27.42 kB / 335.9 MB, free: 8.832 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2815, allocations: 0 / 335.9 MB, free: 8.832 MB / 270.1 MB Notification: Performance of Templates: time 0.004796/0.2863, allocations: 1.84 MB / 337.7 MB, free: 6.996 MB / 270.1 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)