Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001446/0.001446, 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.001311/0.001311, allocations: 195.4 kB / 16.53 MB, free: 6.699 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.626/1.626, allocations: 205.1 MB / 222.4 MB, free: 4.629 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.001514/0.001514, allocations: 52.39 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2643, allocations: 46.63 MB / 325.3 MB, free: 1.988 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002764/0.2672, allocations: 1.665 MB / 327 MB, free: 0.6641 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006109/0.2678, allocations: 255.9 kB / 327.2 MB, free: 476 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.644e-05/0.2679, allocations: 8.25 kB / 327.2 MB, free: 472 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.268, allocations: 30.2 kB / 327.2 MB, free: 444 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.487e-05/0.2681, allocations: 15.8 kB / 327.3 MB, free: 428 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003606/0.2684, allocations: 116.8 kB / 327.4 MB, free: 332 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.2687, allocations: 262.8 kB / 327.6 MB, free: 176 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003036/0.269, allocations: 192.3 kB / 327.8 MB, free: 48 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.2692, allocations: 92.72 kB / 327.9 MB, free: 15.99 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.2693, allocations: 96.17 kB / 328 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.547e-05/0.2694, allocations: 22.44 kB / 328 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.2695, allocations: 34.73 kB / 328.1 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.708e-05/0.2696, allocations: 62.52 kB / 328.1 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.2697, allocations: 101.3 kB / 328.2 MB, free: 15.78 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.27, allocations: 235.7 kB / 328.4 MB, free: 15.6 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.27, allocations: 1.062 kB / 328.5 MB, free: 15.6 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.27, allocations: 0 / 328.5 MB, free: 15.6 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.27, allocations: 4 kB / 328.5 MB, free: 15.6 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.0006742/0.2707, allocations: 498.1 kB / 328.9 MB, free: 15.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2707, allocations: 8.406 kB / 328.9 MB, free: 15.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.07e-05/0.2708, allocations: 28.95 kB / 329 MB, free: 15.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.2711, allocations: 228.2 kB / 329.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/0.2711, allocations: 25.41 kB / 329.2 MB, free: 14.85 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.194e-05/0.2712, allocations: 34.42 kB / 329.3 MB, free: 14.84 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004521/0.2716, allocations: 271.1 kB / 329.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.2716, allocations: 192 / 329.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.2717, allocations: 19.12 kB / 329.5 MB, free: 14.63 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.2717, allocations: 10.42 kB / 329.6 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.272, allocations: 170.2 kB / 329.7 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.2732, allocations: 0.9617 MB / 330.7 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.2735, allocations: 155.4 kB / 330.8 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.2736, allocations: 74.48 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.2736, allocations: 2 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.2739, allocations: 122 kB / 331 MB, free: 13.43 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 3.356e-06/0.2739, allocations: 3.984 kB / 331 MB, free: 13.42 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004199/0.2743, allocations: 208.2 kB / 331.2 MB, free: 13.32 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.2744, allocations: 59.92 kB / 331.3 MB, free: 13.25 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.2745, allocations: 156.6 kB / 331.4 MB, free: 13.11 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.2745, allocations: 38.48 kB / 331.5 MB, free: 13.07 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.041e-05/0.2746, allocations: 142.5 kB / 331.6 MB, free: 12.94 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.747e-05/0.2747, allocations: 60.38 kB / 331.7 MB, free: 12.89 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.738e-05/0.2748, allocations: 80.08 kB / 331.8 MB, free: 12.83 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.2749, allocations: 330.8 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.275, allocations: 66.31 kB / 332.1 MB, free: 12.47 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.2752, allocations: 138.9 kB / 332.3 MB, free: 12.35 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.2755, allocations: 193 kB / 332.5 MB, free: 12.2 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2755, allocations: 1.094 kB / 332.5 MB, free: 12.2 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004016/0.2759, allocations: 242.3 kB / 332.7 MB, free: 12.07 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.2759, allocations: 9.938 kB / 332.7 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.276, allocations: 2.469 kB / 332.7 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.276, allocations: 8.328 kB / 332.7 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.2761, allocations: 38.61 kB / 332.8 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.2762, allocations: 3.344 kB / 332.8 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.2763, allocations: 28.5 kB / 332.8 MB, free: 12.03 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.2763, allocations: 13.78 kB / 332.8 MB, free: 12.03 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.0001581/0.2765, allocations: 157.7 kB / 333 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/0.2765, allocations: 14.16 kB / 333 MB, free: 11.87 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003502/0.2769, allocations: 195.9 kB / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2769, allocations: 7.531 kB / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2769, allocations: 0 / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2769, allocations: 3.938 kB / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007038/0.2776, allocations: 0.5977 MB / 333.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2776, allocations: 4 kB / 333.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.752e-05/0.2777, allocations: 8 kB / 333.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.2777, allocations: 11.92 kB / 333.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.2777, allocations: 4 kB / 333.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2777, allocations: 7.938 kB / 333.8 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2777, allocations: 0 / 333.8 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.278, allocations: 267.3 kB / 334.1 MB, free: 10.85 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.9e-05/0.2781, allocations: 96.8 kB / 334.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.066e-05/0.2781, allocations: 8 kB / 334.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.202e-05/0.2782, allocations: 8 kB / 334.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.93e-05/0.2783, allocations: 19.97 kB / 334.2 MB, free: 10.7 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.2783, allocations: 8 kB / 334.2 MB, free: 10.69 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.546e-05/0.2784, allocations: 103.2 kB / 334.3 MB, free: 10.59 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2784, allocations: 0 / 334.3 MB, free: 10.59 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003035/0.2787, allocations: 51.84 kB / 334.4 MB, free: 10.54 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.0001746/0.2789, allocations: 115.4 kB / 334.5 MB, free: 10.42 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003464/0.2792, allocations: 196.1 kB / 334.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2792, allocations: 64 / 334.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.2794, allocations: 87.91 kB / 334.8 MB, free: 10.14 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.2796, allocations: 16 kB / 334.8 MB, free: 10.12 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005447/0.2802, allocations: 341.8 kB / 335.1 MB, free: 9.762 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.2805, allocations: 0.7439 MB / 335.8 MB, free: 8.992 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.747e-05/0.2805, allocations: 21.94 kB / 335.9 MB, free: 8.969 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.083e-05/0.2806, allocations: 19.44 kB / 335.9 MB, free: 8.949 MB / 270.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2806, allocations: 4 kB / 335.9 MB, free: 8.945 MB / 270.1 MB Notification: Performance of Templates: time 0.004971/0.2856, allocations: 1.869 MB / 337.8 MB, free: 7.082 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)