Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007113/0.007113, allocations: 165.4 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.141/1.141, allocations: 170.8 MB / 186.6 MB, free: 1.133 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001536/0.001536, allocations: 111.3 kB / 226.2 MB, free: 10.12 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003145, allocations: 8 kB / 274.1 MB, free: 10.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2324, allocations: 38.76 MB / 312.9 MB, free: 38.78 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08618/0.3186, allocations: 66.23 MB / 379.1 MB, free: 8.309 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.3189, allocations: 67.97 kB / 379.2 MB, free: 8.242 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007902/0.3268, allocations: 2.934 MB / 382.1 MB, free: 5.293 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3269, allocations: 0 / 382.1 MB, free: 5.293 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.3269, allocations: 4.875 kB / 382.1 MB, free: 5.289 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0005919/0.3275, allocations: 447.7 kB / 382.5 MB, free: 4.809 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.3276, allocations: 8.031 kB / 382.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.418e-05/0.3276, allocations: 23.72 kB / 382.6 MB, free: 4.777 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.3279, allocations: 222.8 kB / 382.8 MB, free: 4.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.328, allocations: 20.56 kB / 382.8 MB, free: 4.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.979e-05/0.328, allocations: 27.98 kB / 382.8 MB, free: 4.473 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.3285, allocations: 273.9 kB / 383.1 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.3285, allocations: 0 / 383.1 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.3285, allocations: 4 kB / 383.1 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.3285, allocations: 8 kB / 383.1 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/0.3288, allocations: 165.6 kB / 383.3 MB, free: 4.012 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.33, allocations: 0.9523 MB / 384.2 MB, free: 2.984 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.3303, allocations: 159.3 kB / 384.4 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.3303, allocations: 192 / 384.4 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001897/0.3305, allocations: 113.6 kB / 384.5 MB, free: 2.699 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.283e-06/0.3306, allocations: 0 / 384.5 MB, free: 2.699 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.000444/0.331, allocations: 222.9 kB / 384.7 MB, free: 2.477 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.3311, allocations: 59.36 kB / 384.8 MB, free: 2.406 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.3312, allocations: 139.9 kB / 384.9 MB, free: 2.266 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.3312, allocations: 37.7 kB / 384.9 MB, free: 2.223 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.651e-05/0.3313, allocations: 140.5 kB / 385.1 MB, free: 2.078 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.775e-05/0.3314, allocations: 59.25 kB / 385.1 MB, free: 2.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.119e-05/0.3314, allocations: 4 kB / 385.1 MB, free: 2.016 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.3315, allocations: 326.8 kB / 385.5 MB, free: 1.688 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.3317, allocations: 64.62 kB / 385.5 MB, free: 1.621 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.3318, allocations: 133.6 kB / 385.7 MB, free: 1.465 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.332, allocations: 75.92 kB / 385.7 MB, free: 1.391 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.332, allocations: 0 / 385.7 MB, free: 1.391 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003725/0.3324, allocations: 249.2 kB / 386 MB, free: 1.141 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3324, allocations: 8.281 kB / 386 MB, free: 1.133 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.3324, allocations: 4 kB / 386 MB, free: 1.129 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.3324, allocations: 4 kB / 386 MB, free: 1.125 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.3326, allocations: 35.92 kB / 386 MB, free: 1.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.3326, allocations: 7.938 kB / 386 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.3327, allocations: 23.88 kB / 386.1 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.3328, allocations: 12 kB / 386.1 MB, free: 1.047 MB / 282.7 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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,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.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,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.0001456/0.3329, allocations: 148.4 kB / 386.2 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.232e-05/0.3329, allocations: 15.81 kB / 386.2 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003567/0.3333, allocations: 195 kB / 386.4 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.3333, allocations: 4 kB / 386.4 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3333, allocations: 3.938 kB / 386.4 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3333, allocations: 7.922 kB / 386.4 MB, free: 0.668 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007127/0.3341, allocations: 0.577 MB / 387 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3341, allocations: 0 / 387 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.457e-05/0.3342, allocations: 23.98 kB / 387 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3342, allocations: 0 / 387 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.3342, allocations: 7.953 kB / 387 MB, free: 0 / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3342, allocations: 0 / 387 MB, free: 0 / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3342, allocations: 0 / 387 MB, free: 0 / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003228/0.3345, allocations: 279.2 kB / 387.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.3346, allocations: 88.92 kB / 387.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.3346, allocations: 4 kB / 387.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.813e-05/0.3347, allocations: 19.94 kB / 387.4 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.284e-05/0.3348, allocations: 19.97 kB / 387.4 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.3349, allocations: 4 kB / 387.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.897e-05/0.3349, allocations: 103.2 kB / 387.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3349, allocations: 0 / 387.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003082/0.3353, allocations: 43.98 kB / 387.6 MB, free: 15.42 MB / 298.7 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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,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.0002469/0.3355, allocations: 115 kB / 387.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003561/0.3359, allocations: 179.7 kB / 387.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3359, allocations: 4 kB / 387.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.336, allocations: 79.91 kB / 388 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.3363, allocations: 11.98 kB / 388 MB, free: 15.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007791/0.3371, allocations: 387.4 kB / 388.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000541/0.3376, allocations: 0.7406 MB / 389.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.3377, allocations: 25.94 kB / 389.1 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.075e-05/0.3378, allocations: 19.44 kB / 389.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of SimCode: time 2.484e-06/0.3378, allocations: 0 / 389.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of Templates: time 0.005219/0.343, allocations: 1.637 MB / 390.8 MB, free: 12.19 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)