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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008381/0.0008378, allocations: 86.16 kB / 16.31 MB, free: 6.453 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.001602/0.001602, allocations: 179.5 kB / 17.21 MB, free: 6.328 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.738/1.738, allocations: 205.4 MB / 223.4 MB, free: 5.559 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.0004895/0.0004895, allocations: 10.66 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2872, allocations: 47.59 MB / 327.7 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001539/0.2888, allocations: 1.369 MB / 329.1 MB, free: 320 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004672/0.2893, allocations: 278 kB / 329.4 MB, free: 96 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.297e-05/0.2894, allocations: 3.5 kB / 329.4 MB, free: 96 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 6.106e-05/0.2895, allocations: 19.39 kB / 329.4 MB, free: 80 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 3.742e-05/0.2895, allocations: 11.81 kB / 329.4 MB, free: 68 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.2898, allocations: 93.64 kB / 329.5 MB, free: 15.99 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.29, allocations: 236.9 kB / 329.7 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.2903, allocations: 153.2 kB / 329.9 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.432e-05/0.2904, allocations: 63.72 kB / 329.9 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.842e-05/0.2905, allocations: 81.33 kB / 330 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.2905, allocations: 10.25 kB / 330 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.374e-05/0.2906, allocations: 17.45 kB / 330 MB, free: 15.65 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.462e-05/0.2906, allocations: 38.22 kB / 330.1 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.526e-05/0.2907, allocations: 57.95 kB / 330.1 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.2909, allocations: 167 kB / 330.3 MB, free: 15.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2909, allocations: 0 / 330.3 MB, free: 15.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2909, allocations: 1.344 kB / 330.3 MB, free: 15.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.2909, allocations: 0 / 330.3 MB, free: 15.45 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.0005518/0.2915, allocations: 450.2 kB / 330.7 MB, free: 15.01 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2915, allocations: 8.781 kB / 330.7 MB, free: 15.01 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.2916, allocations: 24.16 kB / 330.8 MB, free: 15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.2918, allocations: 234.8 kB / 331 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/0.2919, allocations: 20.47 kB / 331 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.2919, allocations: 30.05 kB / 331 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004481/0.2924, allocations: 268.8 kB / 331.3 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.2924, allocations: 5.531 kB / 331.3 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.2924, allocations: 10.66 kB / 331.3 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2924, allocations: 9.109 kB / 331.3 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.2927, allocations: 160.7 kB / 331.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.2938, allocations: 0.9794 MB / 332.5 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.294, allocations: 146.2 kB / 332.6 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.2942, allocations: 73.8 kB / 332.7 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.2942, allocations: 6.062 kB / 332.7 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.2945, allocations: 118.3 kB / 332.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.2945, allocations: 0 / 332.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004515/0.2949, allocations: 206.9 kB / 333 MB, free: 13.21 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.295, allocations: 54.75 kB / 333.1 MB, free: 13.15 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.2951, allocations: 153.4 kB / 333.2 MB, free: 13.01 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.2952, allocations: 41.05 kB / 333.3 MB, free: 12.96 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.2953, allocations: 147.3 kB / 333.4 MB, free: 12.83 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/0.2954, allocations: 59.97 kB / 333.5 MB, free: 12.78 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.153e-05/0.2954, allocations: 5.281 kB / 333.5 MB, free: 12.77 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.2956, allocations: 331.4 kB / 333.8 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.2957, allocations: 60.38 kB / 333.8 MB, free: 12.41 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.2959, allocations: 142.4 kB / 334 MB, free: 12.29 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001363/0.296, allocations: 75.16 kB / 334.1 MB, free: 12.25 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.296, allocations: 1.125 kB / 334.1 MB, free: 12.25 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000413/0.2964, allocations: 244.7 kB / 334.3 MB, free: 12.12 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2965, allocations: 9.922 kB / 334.3 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.2965, allocations: 5.984 kB / 334.3 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.2965, allocations: 4.469 kB / 334.3 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.2966, allocations: 37.75 kB / 334.4 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2967, allocations: 4.156 kB / 334.4 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.2968, allocations: 29.41 kB / 334.4 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.2968, allocations: 17.97 kB / 334.4 MB, free: 12.07 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,$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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.297, allocations: 154.3 kB / 334.6 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.484e-05/0.297, allocations: 17.59 kB / 334.6 MB, free: 11.92 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003431/0.2974, allocations: 190.7 kB / 334.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.2974, allocations: 6.922 kB / 334.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2974, allocations: 5.406 kB / 334.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2974, allocations: 0 / 334.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007522/0.2982, allocations: 0.5944 MB / 335.4 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2982, allocations: 1.031 kB / 335.4 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.138e-05/0.2983, allocations: 14.31 kB / 335.4 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2983, allocations: 2.094 kB / 335.4 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.2983, allocations: 9.109 kB / 335.4 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.2983, allocations: 1.094 kB / 335.4 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2983, allocations: 0 / 335.4 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003171/0.2986, allocations: 269.7 kB / 335.7 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.834e-05/0.2987, allocations: 97.44 kB / 335.7 MB, free: 10.97 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.2987, allocations: 6.281 kB / 335.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.227e-05/0.2988, allocations: 11.5 kB / 335.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.717e-05/0.2989, allocations: 26.11 kB / 335.8 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.2989, allocations: 4.531 kB / 335.8 MB, free: 10.94 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.837e-05/0.299, allocations: 100 kB / 335.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.299, allocations: 0 / 335.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.2993, allocations: 50.75 kB / 335.9 MB, free: 10.84 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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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 (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.0001595/0.2995, allocations: 113.3 kB / 336.1 MB, free: 10.74 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003233/0.2998, allocations: 184.4 kB / 336.2 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.2999, allocations: 3.938 kB / 336.2 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.3, allocations: 83.89 kB / 336.3 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.3003, allocations: 19.91 kB / 336.3 MB, free: 10.46 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005814/0.3009, allocations: 400.4 kB / 336.7 MB, free: 10.04 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.3012, allocations: 0.7289 MB / 337.5 MB, free: 9.285 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.423e-05/0.3013, allocations: 33.88 kB / 337.5 MB, free: 9.254 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.655e-05/0.3014, allocations: 19.44 kB / 337.5 MB, free: 9.234 MB / 270.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3014, allocations: 0 / 337.5 MB, free: 9.234 MB / 270.1 MB Notification: Performance of Templates: time 0.004523/0.3059, allocations: 1.657 MB / 339.2 MB, free: 7.578 MB / 270.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)