Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 108 kB / 15.61 MB, free: 128 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.001381/0.001381, allocations: 195.5 kB / 16.53 MB, free: 6.668 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.572/1.572, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001298/0.001298, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3569, allocations: 46.63 MB / 325.3 MB, free: 2.059 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00294/0.3599, allocations: 1.661 MB / 327 MB, free: 0.7383 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005968/0.3605, allocations: 266.7 kB / 327.2 MB, free: 0.5273 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.72e-05/0.3606, allocations: 7.219 kB / 327.2 MB, free: 0.5234 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.3608, allocations: 26.91 kB / 327.3 MB, free: 0.5 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.301e-05/0.3609, allocations: 18.11 kB / 327.3 MB, free: 496 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.3612, allocations: 114.1 kB / 327.4 MB, free: 400 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003081/0.3616, allocations: 264.8 kB / 327.6 MB, free: 244 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003244/0.3619, allocations: 192.6 kB / 327.8 MB, free: 116 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.099e-05/0.362, allocations: 80.56 kB / 327.9 MB, free: 68 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.3622, allocations: 110.7 kB / 328 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.59e-05/0.3622, allocations: 23.81 kB / 328 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.3623, allocations: 34.94 kB / 328.1 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.608e-05/0.3624, allocations: 57.83 kB / 328.1 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.3625, allocations: 105.8 kB / 328.2 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002954/0.3628, allocations: 231.4 kB / 328.5 MB, free: 15.67 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3628, allocations: 1.094 kB / 328.5 MB, free: 15.67 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3629, allocations: 0 / 328.5 MB, free: 15.67 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3629, allocations: 0 / 328.5 MB, free: 15.67 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.0007222/0.3636, allocations: 497.3 kB / 328.9 MB, free: 15.19 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3636, allocations: 9.344 kB / 329 MB, free: 15.19 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.092e-05/0.3637, allocations: 25.25 kB / 329 MB, free: 15.18 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.364, allocations: 231.8 kB / 329.2 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.364, allocations: 25.47 kB / 329.2 MB, free: 14.92 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.3641, allocations: 26.56 kB / 329.3 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/0.3645, allocations: 266.6 kB / 329.5 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.3645, allocations: 9.188 kB / 329.5 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.3646, allocations: 10 kB / 329.5 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3646, allocations: 6.938 kB / 329.5 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003136/0.3649, allocations: 169.6 kB / 329.7 MB, free: 14.63 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.3661, allocations: 0.9742 MB / 330.7 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/0.3664, allocations: 159.9 kB / 330.8 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.3665, allocations: 77.73 kB / 330.9 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.3665, allocations: 2.219 kB / 330.9 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.3668, allocations: 109.8 kB / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.3668, allocations: 0 / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004236/0.3672, allocations: 216.9 kB / 331.2 MB, free: 13.39 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.3673, allocations: 59.28 kB / 331.3 MB, free: 13.32 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.3674, allocations: 160.2 kB / 331.4 MB, free: 13.18 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.673e-05/0.3674, allocations: 34.23 kB / 331.5 MB, free: 13.14 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.839e-05/0.3675, allocations: 143.3 kB / 331.6 MB, free: 13.01 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/0.3676, allocations: 63.97 kB / 331.7 MB, free: 12.96 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.765e-05/0.3677, allocations: 76.42 kB / 331.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.3678, allocations: 330.5 kB / 332.1 MB, free: 12.58 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.368, allocations: 66.94 kB / 332.1 MB, free: 12.55 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.3681, allocations: 138.4 kB / 332.3 MB, free: 12.43 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.3684, allocations: 189.3 kB / 332.5 MB, free: 12.28 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3684, allocations: 0 / 332.5 MB, free: 12.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003807/0.3688, allocations: 255.5 kB / 332.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3688, allocations: 5.906 kB / 332.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3688, allocations: 6.109 kB / 332.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.3688, allocations: 8.812 kB / 332.7 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.369, allocations: 33.55 kB / 332.8 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.369, allocations: 4.5 kB / 332.8 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.408e-05/0.3691, allocations: 28.34 kB / 332.8 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.3691, allocations: 18.27 kB / 332.8 MB, free: 12.09 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.0001379/0.3693, allocations: 153.8 kB / 333 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.3693, allocations: 13.41 kB / 333 MB, free: 11.94 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003385/0.3697, allocations: 196.4 kB / 333.2 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.3697, allocations: 6.312 kB / 333.2 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3697, allocations: 1.344 kB / 333.2 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3697, allocations: 4 kB / 333.2 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006841/0.3704, allocations: 0.5899 MB / 333.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3704, allocations: 0 / 333.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.016e-05/0.3705, allocations: 19.92 kB / 333.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3705, allocations: 3.938 kB / 333.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.3705, allocations: 8 kB / 333.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3705, allocations: 0 / 333.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3705, allocations: 0 / 333.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.3708, allocations: 271.3 kB / 334.1 MB, free: 10.87 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.275e-05/0.3709, allocations: 96.8 kB / 334.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.3709, allocations: 8 kB / 334.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.503e-05/0.371, allocations: 7.984 kB / 334.2 MB, free: 10.74 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.168e-05/0.3711, allocations: 15.98 kB / 334.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.3711, allocations: 11.98 kB / 334.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.891e-05/0.3712, allocations: 95.27 kB / 334.3 MB, free: 10.62 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3712, allocations: 4 kB / 334.3 MB, free: 10.61 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.3715, allocations: 51.84 kB / 334.4 MB, free: 10.56 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,step.active,transition1.enableFire,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.0001701/0.3717, allocations: 123.3 kB / 334.5 MB, free: 10.43 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003876/0.3721, allocations: 199.6 kB / 334.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.3721, allocations: 0 / 334.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.3722, allocations: 79.91 kB / 334.8 MB, free: 10.16 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.3725, allocations: 24.56 kB / 334.8 MB, free: 10.14 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005923/0.3731, allocations: 345.8 kB / 335.1 MB, free: 9.77 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.3734, allocations: 0.7516 MB / 335.9 MB, free: 8.992 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.621e-05/0.3735, allocations: 17.95 kB / 335.9 MB, free: 8.973 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.784e-05/0.3735, allocations: 23.42 kB / 335.9 MB, free: 8.949 MB / 270.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3735, allocations: 0 / 335.9 MB, free: 8.949 MB / 270.1 MB Notification: Performance of Templates: time 0.004808/0.3783, allocations: 1.861 MB / 337.8 MB, free: 7.094 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)