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.0009532/0.0009534, allocations: 100 kB / 15.05 MB, free: 1.105 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.001082/0.001083, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0007262/0.0007265, allocations: 16 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3702, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001937/0.3722, allocations: 1.397 MB / 327.8 MB, free: 320 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006666/0.3729, allocations: 277.7 kB / 328.1 MB, free: 96 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.373, allocations: 2.781 kB / 328.1 MB, free: 96 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.3731, allocations: 23.45 kB / 328.1 MB, free: 76 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.299e-05/0.3732, allocations: 22 kB / 328.1 MB, free: 56 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003793/0.3736, allocations: 84.91 kB / 328.2 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002809/0.3739, allocations: 153.6 kB / 328.4 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003499/0.3742, allocations: 151.4 kB / 328.5 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.3743, allocations: 68.17 kB / 328.6 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.3745, allocations: 70.28 kB / 328.7 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.897e-05/0.3745, allocations: 9.469 kB / 328.7 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.549e-05/0.3746, allocations: 18.03 kB / 328.7 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.008e-05/0.3747, allocations: 48.59 kB / 328.7 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.9e-05/0.3747, allocations: 58.39 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002293/0.375, allocations: 157.1 kB / 329 MB, free: 15.49 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.375, allocations: 0 / 329 MB, free: 15.49 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.375, allocations: 0 / 329 MB, free: 15.49 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.375, allocations: 0 / 329 MB, free: 15.49 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.0008477/0.3759, allocations: 449.7 kB / 329.4 MB, free: 15.04 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.381e-05/0.376, allocations: 8.719 kB / 329.4 MB, free: 15.04 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.376, allocations: 28.28 kB / 329.4 MB, free: 15.03 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.3764, allocations: 230.3 kB / 329.7 MB, free: 14.78 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.531e-05/0.3765, allocations: 20.03 kB / 329.7 MB, free: 14.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.162e-05/0.3765, allocations: 26.72 kB / 329.7 MB, free: 14.76 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005814/0.3771, allocations: 266.4 kB / 330 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.3772, allocations: 1.281 kB / 330 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.618e-05/0.3772, allocations: 14.36 kB / 330 MB, free: 14.56 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.3772, allocations: 10.09 kB / 330 MB, free: 14.55 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.3776, allocations: 168.1 kB / 330.1 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.3792, allocations: 0.9612 MB / 331.1 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003666/0.3796, allocations: 160 kB / 331.3 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.3796, allocations: 6.859 kB / 331.3 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00029/0.3799, allocations: 116.2 kB / 331.4 MB, free: 13.39 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 3.026e-06/0.38, allocations: 0 / 331.4 MB, free: 13.39 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.00051/0.3805, allocations: 210.5 kB / 331.6 MB, free: 13.28 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.44e-05/0.3806, allocations: 54.78 kB / 331.6 MB, free: 13.22 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.3807, allocations: 151.1 kB / 331.8 MB, free: 13.08 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.3808, allocations: 42.33 kB / 331.8 MB, free: 13.04 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.3809, allocations: 142.8 kB / 332 MB, free: 12.91 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.381, allocations: 60.53 kB / 332 MB, free: 12.86 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.381, allocations: 5.406 kB / 332 MB, free: 12.85 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000218/0.3812, allocations: 326.1 kB / 332.4 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.3813, allocations: 61.44 kB / 332.4 MB, free: 12.5 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.3815, allocations: 143.8 kB / 332.6 MB, free: 12.37 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.3817, allocations: 75.44 kB / 332.6 MB, free: 12.33 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3817, allocations: 1.156 kB / 332.6 MB, free: 12.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004305/0.3821, allocations: 244.1 kB / 332.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.3822, allocations: 5.438 kB / 332.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.3822, allocations: 3.375 kB / 332.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.163e-05/0.3822, allocations: 7.828 kB / 332.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.3824, allocations: 35.12 kB / 332.9 MB, free: 12.19 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.3824, allocations: 6.75 kB / 332.9 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.3826, allocations: 29.12 kB / 333 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.701e-05/0.3826, allocations: 9.969 kB / 333 MB, free: 12.16 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.0001673/0.3828, allocations: 162.5 kB / 333.1 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.542e-05/0.3828, allocations: 13.66 kB / 333.1 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003758/0.3832, allocations: 194.1 kB / 333.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.3832, allocations: 2.406 kB / 333.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.3832, allocations: 9.266 kB / 333.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.3832, allocations: 0 / 333.3 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008566/0.3841, allocations: 0.5822 MB / 333.9 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3841, allocations: 1.094 kB / 333.9 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.926e-05/0.3842, allocations: 30.84 kB / 333.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.3842, allocations: 1.094 kB / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.3843, allocations: 5.203 kB / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.3843, allocations: 5.125 kB / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3843, allocations: 1.062 kB / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000348/0.3846, allocations: 268.2 kB / 334.2 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.68e-05/0.3847, allocations: 93.05 kB / 334.3 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.3847, allocations: 9.984 kB / 334.3 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.778e-05/0.3848, allocations: 7.469 kB / 334.3 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.499e-05/0.3849, allocations: 26.11 kB / 334.4 MB, free: 11.03 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.3849, allocations: 9.406 kB / 334.4 MB, free: 11.02 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.173e-05/0.385, allocations: 97.58 kB / 334.5 MB, free: 10.94 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.324e-06/0.385, allocations: 1.125 kB / 334.5 MB, free: 10.94 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003436/0.3854, allocations: 54.66 kB / 334.5 MB, free: 10.92 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 (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.0001871/0.3856, allocations: 104.6 kB / 334.6 MB, free: 10.82 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003647/0.3859, allocations: 180.5 kB / 334.8 MB, free: 10.74 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3859, allocations: 4.188 kB / 334.8 MB, free: 10.74 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.3861, allocations: 79.86 kB / 334.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.3863, allocations: 16.97 kB / 334.9 MB, free: 10.64 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000686/0.387, allocations: 383.8 kB / 335.3 MB, free: 10.24 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.3874, allocations: 0.7445 MB / 336 MB, free: 9.473 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.402e-05/0.3874, allocations: 21.94 kB / 336 MB, free: 9.453 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.575e-05/0.3875, allocations: 23.44 kB / 336.1 MB, free: 9.43 MB / 270.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3875, allocations: 0 / 336.1 MB, free: 9.43 MB / 270.1 MB Notification: Performance of Templates: time 0.004641/0.3922, allocations: 1.637 MB / 337.7 MB, free: 7.793 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: