Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001511/0.001511, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.474/1.474, allocations: 194.3 MB / 208.4 MB, free: 6.699 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001576/0.001576, allocations: 118.2 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.825e-05, allocations: 0 / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07796/0.07801, allocations: 44.5 MB / 349.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3263/0.4044, allocations: 71.44 MB / 420.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.4047, allocations: 67.7 kB / 420.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00681/0.4115, allocations: 2.934 MB / 423.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4115, allocations: 0 / 423.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.4115, allocations: 5.094 kB / 423.9 MB, free: 10.37 MB / 298.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.0004019/0.4119, allocations: 436 kB / 424.3 MB, free: 9.996 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.412, allocations: 7.906 kB / 424.3 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.285e-05/0.412, allocations: 24.06 kB / 424.3 MB, free: 9.988 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.4123, allocations: 232.9 kB / 424.6 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.4123, allocations: 23.59 kB / 424.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.4123, allocations: 22.75 kB / 424.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.4127, allocations: 260.7 kB / 424.8 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.4127, allocations: 3.094 kB / 424.9 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.4127, allocations: 7.312 kB / 424.9 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.4127, allocations: 7.625 kB / 424.9 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.413, allocations: 163.1 kB / 425 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008232/0.4138, allocations: 0.945 MB / 426 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.4141, allocations: 153.5 kB / 426.1 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.4142, allocations: 80.7 kB / 426.2 MB, free: 8.926 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.4142, allocations: 2.719 kB / 426.2 MB, free: 8.926 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.4144, allocations: 109.5 kB / 426.3 MB, free: 8.863 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.4144, allocations: 0 / 426.3 MB, free: 8.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002618/0.4146, allocations: 159.4 kB / 426.5 MB, free: 8.809 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.4147, allocations: 55.25 kB / 426.5 MB, free: 8.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.298e-05/0.4148, allocations: 147 kB / 426.7 MB, free: 8.633 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.4148, allocations: 40.73 kB / 426.7 MB, free: 8.602 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.226e-05/0.4148, allocations: 137.5 kB / 426.8 MB, free: 8.488 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.149e-05/0.4149, allocations: 52.89 kB / 426.9 MB, free: 8.457 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.001e-05/0.4149, allocations: 7.219 kB / 426.9 MB, free: 8.457 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.186e-05/0.415, allocations: 325.6 kB / 427.2 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.638e-05/0.4151, allocations: 59.31 kB / 427.3 MB, free: 8.137 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.4152, allocations: 134.9 kB / 427.4 MB, free: 8.047 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.901e-05/0.4153, allocations: 70.88 kB / 427.5 MB, free: 8.027 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4153, allocations: 0 / 427.5 MB, free: 8.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002802/0.4156, allocations: 252.6 kB / 427.7 MB, free: 7.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.4156, allocations: 3.5 kB / 427.7 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.4156, allocations: 7.844 kB / 427.7 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.4156, allocations: 8.062 kB / 427.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.4158, allocations: 41.98 kB / 427.8 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.4158, allocations: 3.875 kB / 427.8 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.954e-05/0.4159, allocations: 22.36 kB / 427.8 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.4159, allocations: 10.25 kB / 427.8 MB, free: 7.91 MB / 298.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 () * 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 7.014e-05/0.416, allocations: 132 kB / 427.9 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.416, allocations: 15.61 kB / 428 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002658/0.4163, allocations: 195.2 kB / 428.1 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.4163, allocations: 3.844 kB / 428.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4163, allocations: 3.984 kB / 428.2 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.4163, allocations: 0 / 428.2 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005022/0.4168, allocations: 0.578 MB / 428.7 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.4168, allocations: 0 / 428.7 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.033e-05/0.4169, allocations: 15.67 kB / 428.8 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.4169, allocations: 7.844 kB / 428.8 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.417, allocations: 3.562 kB / 428.8 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.417, allocations: 0 / 428.8 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.417, allocations: 0 / 428.8 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/0.4172, allocations: 278.2 kB / 429 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.805e-05/0.4172, allocations: 84.86 kB / 429.1 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.4173, allocations: 7.344 kB / 429.1 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.422e-05/0.4173, allocations: 11.33 kB / 429.1 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.058e-05/0.4174, allocations: 23.09 kB / 429.2 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.4174, allocations: 7.688 kB / 429.2 MB, free: 7.012 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.336e-05/0.4175, allocations: 102.1 kB / 429.3 MB, free: 6.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4175, allocations: 0 / 429.3 MB, free: 6.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002615/0.4178, allocations: 41.81 kB / 429.3 MB, free: 6.926 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) * 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.0001333/0.4179, allocations: 114 kB / 429.4 MB, free: 6.828 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002432/0.4182, allocations: 173.7 kB / 429.6 MB, free: 6.812 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4182, allocations: 0 / 429.6 MB, free: 6.812 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.682e-05/0.4183, allocations: 83.08 kB / 429.7 MB, free: 6.801 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.4185, allocations: 18.14 kB / 429.7 MB, free: 6.797 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003881/0.4188, allocations: 233.8 kB / 429.9 MB, free: 6.672 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001627/0.419, allocations: 0.7462 MB / 430.7 MB, free: 5.938 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.31e-05/0.4191, allocations: 25.59 kB / 430.7 MB, free: 5.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.057e-05/0.4192, allocations: 18.97 kB / 430.7 MB, free: 5.922 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4192, allocations: 7.938 kB / 430.7 MB, free: 5.914 MB / 298.7 MB Notification: Performance of Templates: time 0.00389/0.4231, allocations: 1.631 MB / 432.3 MB, free: 5.129 MB / 298.7 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)