Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002278/0.002278, allocations: 192 kB / 16.25 MB, free: 6.629 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.771/1.771, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.00147/0.00147, allocations: 43.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3496, allocations: 46.63 MB / 324.8 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004499/0.3541, allocations: 1.775 MB / 326.6 MB, free: 0.5391 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009862/0.3552, allocations: 275.6 kB / 326.9 MB, free: 328 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.3554, allocations: 7.844 kB / 326.9 MB, free: 324 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002042/0.3556, allocations: 19.98 kB / 326.9 MB, free: 308 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 7.631e-05/0.3557, allocations: 13.17 kB / 326.9 MB, free: 296 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.3562, allocations: 98.48 kB / 327 MB, free: 216 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004802/0.3567, allocations: 260.6 kB / 327.3 MB, free: 64 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005628/0.3573, allocations: 189.5 kB / 327.5 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.3575, allocations: 92.12 kB / 327.5 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.3577, allocations: 94.77 kB / 327.6 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.802e-05/0.3577, allocations: 22.62 kB / 327.7 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.3579, allocations: 38.77 kB / 327.7 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.932e-05/0.358, allocations: 57.8 kB / 327.8 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.3582, allocations: 98.16 kB / 327.8 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004442/0.3586, allocations: 231.1 kB / 328.1 MB, free: 15.51 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.3586, allocations: 0 / 328.1 MB, free: 15.51 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.3587, allocations: 3.938 kB / 328.1 MB, free: 15.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.3587, allocations: 1.188 kB / 328.1 MB, free: 15.5 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.001105/0.3598, allocations: 0.4947 MB / 328.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.62e-05/0.3599, allocations: 10.19 kB / 328.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.36, allocations: 20.25 kB / 328.6 MB, free: 15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003989/0.3604, allocations: 228 kB / 328.8 MB, free: 14.76 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.917e-05/0.3605, allocations: 24.38 kB / 328.9 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.293e-05/0.3606, allocations: 30.39 kB / 328.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007493/0.3613, allocations: 272.1 kB / 329.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.3614, allocations: 4.125 kB / 329.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.3614, allocations: 14.53 kB / 329.2 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.3614, allocations: 6.562 kB / 329.2 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003892/0.3618, allocations: 166.4 kB / 329.3 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.3634, allocations: 0.9638 MB / 330.3 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003289/0.3637, allocations: 160.6 kB / 330.5 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.3639, allocations: 78.08 kB / 330.5 MB, free: 13.42 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.3639, allocations: 6.438 kB / 330.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000413/0.3644, allocations: 113.4 kB / 330.6 MB, free: 13.32 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 2.194e-06/0.3644, allocations: 0 / 330.6 MB, free: 13.32 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006031/0.365, allocations: 212 kB / 330.9 MB, free: 13.21 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/0.3651, allocations: 58.86 kB / 330.9 MB, free: 13.15 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.3652, allocations: 152 kB / 331.1 MB, free: 13.01 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.3653, allocations: 34.61 kB / 331.1 MB, free: 12.98 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.3654, allocations: 142.6 kB / 331.2 MB, free: 12.84 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.242e-05/0.3655, allocations: 64.09 kB / 331.3 MB, free: 12.79 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.3656, allocations: 76.52 kB / 331.4 MB, free: 12.74 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3658, allocations: 330 kB / 331.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.3659, allocations: 67.34 kB / 331.8 MB, free: 12.38 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.3661, allocations: 137.8 kB / 331.9 MB, free: 12.26 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.3664, allocations: 189 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3664, allocations: 5.375 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004326/0.3669, allocations: 246.2 kB / 332.3 MB, free: 11.98 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.3669, allocations: 6.125 kB / 332.3 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3669, allocations: 2.188 kB / 332.3 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.3669, allocations: 3.625 kB / 332.3 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.3671, allocations: 38.75 kB / 332.4 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.3671, allocations: 3.719 kB / 332.4 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.3673, allocations: 32.38 kB / 332.4 MB, free: 11.94 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.3673, allocations: 17.88 kB / 332.4 MB, free: 11.93 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.condition,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.0001695/0.3675, allocations: 165.6 kB / 332.6 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/0.3675, allocations: 14.75 kB / 332.6 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003871/0.3679, allocations: 191.3 kB / 332.8 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.3679, allocations: 2.312 kB / 332.8 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3679, allocations: 0 / 332.8 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3679, allocations: 5.094 kB / 332.8 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008232/0.3688, allocations: 0.594 MB / 333.4 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3688, allocations: 0 / 333.4 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.001e-05/0.3689, allocations: 15.59 kB / 333.4 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.3689, allocations: 5.156 kB / 333.4 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.3689, allocations: 9.328 kB / 333.4 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3689, allocations: 1.188 kB / 333.4 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3689, allocations: 3.938 kB / 333.4 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002944/0.3692, allocations: 267.3 kB / 333.7 MB, free: 10.84 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.188e-05/0.3693, allocations: 100.8 kB / 333.8 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.3693, allocations: 8 kB / 333.8 MB, free: 10.72 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.3694, allocations: 4 kB / 333.8 MB, free: 10.71 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.951e-05/0.3695, allocations: 23.97 kB / 333.8 MB, free: 10.69 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.3695, allocations: 4 kB / 333.8 MB, free: 10.69 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.78e-05/0.3696, allocations: 99.77 kB / 333.9 MB, free: 10.59 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3696, allocations: 4 kB / 333.9 MB, free: 10.59 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000332/0.3699, allocations: 55.83 kB / 334 MB, free: 10.53 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,transition1.enableFire,step.localActive,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 (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.0001474/0.3701, allocations: 111.1 kB / 334.1 MB, free: 10.41 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003579/0.3705, allocations: 199.7 kB / 334.3 MB, free: 10.22 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3705, allocations: 0 / 334.3 MB, free: 10.22 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.3706, allocations: 76.48 kB / 334.4 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.000285/0.3709, allocations: 27.98 kB / 334.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006579/0.3716, allocations: 397.9 kB / 334.8 MB, free: 9.703 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.372, allocations: 0.7517 MB / 335.5 MB, free: 8.926 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.387e-05/0.3721, allocations: 25.92 kB / 335.5 MB, free: 8.902 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.961e-05/0.3721, allocations: 23.38 kB / 335.6 MB, free: 8.879 MB / 270.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3721, allocations: 0 / 335.6 MB, free: 8.879 MB / 270.1 MB Notification: Performance of Templates: time 0.005714/0.3778, allocations: 1.8 MB / 337.4 MB, free: 7.082 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)