Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 89.39 kB / 16.32 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002071/0.002071, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.719/1.719, allocations: 205.4 MB / 223.4 MB, free: 5.547 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.0005646/0.0005657, allocations: 12 kB / 280.1 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.268, allocations: 47.58 MB / 327.7 MB, free: 1.648 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001518/0.2695, allocations: 1.194 MB / 328.9 MB, free: 0.6953 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006432/0.2702, allocations: 266.5 kB / 329.2 MB, free: 496 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.2703, allocations: 3.875 kB / 329.2 MB, free: 496 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.2705, allocations: 14.53 kB / 329.2 MB, free: 484 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.075e-05/0.2705, allocations: 13.05 kB / 329.2 MB, free: 472 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003535/0.2709, allocations: 85.09 kB / 329.3 MB, free: 404 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.2712, allocations: 234.5 kB / 329.5 MB, free: 260 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002963/0.2715, allocations: 131.3 kB / 329.6 MB, free: 176 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.826e-05/0.2716, allocations: 62.88 kB / 329.7 MB, free: 140 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.2718, allocations: 81.44 kB / 329.8 MB, free: 76 kB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.2718, allocations: 9.188 kB / 329.8 MB, free: 76 kB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.6e-05/0.2719, allocations: 14 kB / 329.8 MB, free: 76 kB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 5.213e-05/0.2719, allocations: 41.27 kB / 329.8 MB, free: 44 kB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 8.533e-05/0.272, allocations: 58.02 kB / 329.9 MB, free: 15.99 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.2722, allocations: 146.6 kB / 330 MB, free: 15.88 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2723, allocations: 1.25 kB / 330 MB, free: 15.88 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2723, allocations: 0 / 330 MB, free: 15.88 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.2723, allocations: 7.828 kB / 330.1 MB, free: 15.88 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007065/0.273, allocations: 440.5 kB / 330.5 MB, free: 15.44 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.2731, allocations: 10 kB / 330.5 MB, free: 15.44 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.65e-05/0.2731, allocations: 21.75 kB / 330.5 MB, free: 15.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.2734, allocations: 226 kB / 330.7 MB, free: 15.19 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.96e-05/0.2735, allocations: 19.06 kB / 330.8 MB, free: 15.18 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.194e-05/0.2735, allocations: 25.94 kB / 330.8 MB, free: 15.17 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.274, allocations: 247.4 kB / 331 MB, free: 15 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.274, allocations: 0.8438 kB / 331 MB, free: 15 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.274, allocations: 6.156 kB / 331 MB, free: 15 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.2741, allocations: 9.578 kB / 331 MB, free: 15 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.2744, allocations: 161.2 kB / 331.2 MB, free: 14.92 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.2755, allocations: 0.7023 MB / 331.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.2758, allocations: 170.8 kB / 332.1 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.2759, allocations: 79.89 kB / 332.1 MB, free: 14.15 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.276, allocations: 2.469 kB / 332.1 MB, free: 14.15 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.2762, allocations: 115.2 kB / 332.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 4.148e-06/0.2763, allocations: 3.984 kB / 332.3 MB, free: 14.05 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005079/0.2768, allocations: 218 kB / 332.5 MB, free: 13.94 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/0.2769, allocations: 58.97 kB / 332.5 MB, free: 13.88 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.277, allocations: 157.4 kB / 332.7 MB, free: 13.73 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.2771, allocations: 41.09 kB / 332.7 MB, free: 13.68 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.243e-05/0.2772, allocations: 129.9 kB / 332.9 MB, free: 13.56 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.164e-05/0.2772, allocations: 64.53 kB / 332.9 MB, free: 13.51 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.2772, allocations: 5.281 kB / 332.9 MB, free: 13.5 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.2774, allocations: 322.5 kB / 333.2 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.2775, allocations: 65.5 kB / 333.3 MB, free: 13.15 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.2777, allocations: 130.3 kB / 333.4 MB, free: 13.04 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.2778, allocations: 74.75 kB / 333.5 MB, free: 13 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2779, allocations: 0.875 kB / 333.5 MB, free: 13 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004384/0.2783, allocations: 232.6 kB / 333.7 MB, free: 12.88 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.2783, allocations: 6.281 kB / 333.7 MB, free: 12.88 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.2784, allocations: 1.469 kB / 333.7 MB, free: 12.88 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.2784, allocations: 7.906 kB / 333.7 MB, free: 12.88 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.2785, allocations: 31.02 kB / 333.8 MB, free: 12.86 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.2786, allocations: 3.312 kB / 333.8 MB, free: 12.86 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.2787, allocations: 34.09 kB / 333.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.2787, allocations: 13.28 kB / 333.8 MB, free: 12.84 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001718/0.2789, allocations: 151.8 kB / 334 MB, free: 12.7 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.2789, allocations: 13.19 kB / 334 MB, free: 12.69 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004012/0.2794, allocations: 200.3 kB / 334.2 MB, free: 12.57 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.2794, allocations: 3.125 kB / 334.2 MB, free: 12.57 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.2794, allocations: 0 / 334.2 MB, free: 12.57 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.2794, allocations: 4.922 kB / 334.2 MB, free: 12.56 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008734/0.2803, allocations: 0.5801 MB / 334.8 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2803, allocations: 4 kB / 334.8 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.749e-05/0.2804, allocations: 11.91 kB / 334.8 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.2804, allocations: 5.406 kB / 334.8 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.2804, allocations: 9.453 kB / 334.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.2804, allocations: 5.422 kB / 334.8 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2804, allocations: 4 kB / 334.8 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/0.2809, allocations: 271.5 kB / 335.1 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.158e-05/0.281, allocations: 89.34 kB / 335.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.331e-05/0.281, allocations: 6.062 kB / 335.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-05/0.2811, allocations: 8.656 kB / 335.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.2812, allocations: 34.83 kB / 335.2 MB, free: 11.72 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.2812, allocations: 5.656 kB / 335.2 MB, free: 11.72 MB / 270.1 MB Notification: Performance of sorting global known variables: time 8.18e-05/0.2813, allocations: 96.42 kB / 335.3 MB, free: 11.64 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2813, allocations: 0 / 335.3 MB, free: 11.64 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.2817, allocations: 50.72 kB / 335.4 MB, free: 11.62 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0002406/0.282, allocations: 115.4 kB / 335.5 MB, free: 11.51 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003755/0.2823, allocations: 175.7 kB / 335.6 MB, free: 11.34 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2824, allocations: 4.375 kB / 335.6 MB, free: 11.34 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.2825, allocations: 88.34 kB / 335.7 MB, free: 11.25 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.2828, allocations: 20 kB / 335.7 MB, free: 11.23 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007949/0.2837, allocations: 375.3 kB / 336.1 MB, free: 10.84 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.2841, allocations: 0.7406 MB / 336.9 MB, free: 10.07 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.784e-05/0.2842, allocations: 17.95 kB / 336.9 MB, free: 10.05 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.85e-05/0.2843, allocations: 23.42 kB / 336.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2843, allocations: 0 / 336.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of Templates: time 0.00523/0.2895, allocations: 1.668 MB / 338.6 MB, free: 8.371 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)