Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001071/0.001071, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.0008003/0.0008004, allocations: 172.7 kB / 15.95 MB, free: 208 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.516/1.516, allocations: 205.4 MB / 222.1 MB, free: 5.895 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.00076/0.0007601, allocations: 16 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3203, allocations: 47.58 MB / 326.5 MB, free: 1.617 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001661/0.322, allocations: 1.365 MB / 327.8 MB, free: 0.5312 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006415/0.3227, allocations: 279.9 kB / 328.1 MB, free: 316 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.3228, allocations: 8.812 kB / 328.1 MB, free: 312 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.3229, allocations: 18.39 kB / 328.1 MB, free: 296 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.96e-05/0.323, allocations: 10.5 kB / 328.1 MB, free: 288 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003558/0.3234, allocations: 96.94 kB / 328.2 MB, free: 208 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.3237, allocations: 237.4 kB / 328.5 MB, free: 64 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003645/0.3241, allocations: 156.4 kB / 328.6 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.3242, allocations: 60.81 kB / 328.7 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.3243, allocations: 81.23 kB / 328.8 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.396e-05/0.3244, allocations: 10.38 kB / 328.8 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.53e-05/0.3244, allocations: 21.11 kB / 328.8 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.138e-05/0.3245, allocations: 36.97 kB / 328.8 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.715e-05/0.3246, allocations: 59.14 kB / 328.9 MB, free: 15.78 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.3248, allocations: 159 kB / 329 MB, free: 15.66 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.3248, allocations: 0 / 329 MB, free: 15.66 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3248, allocations: 1.438 kB / 329 MB, free: 15.66 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3248, allocations: 0 / 329 MB, free: 15.66 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.0006633/0.3255, allocations: 453.9 kB / 329.5 MB, free: 15.22 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3256, allocations: 8.812 kB / 329.5 MB, free: 15.22 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.481e-05/0.3257, allocations: 24.03 kB / 329.5 MB, free: 15.21 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.3259, allocations: 234.4 kB / 329.7 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.326, allocations: 24.23 kB / 329.8 MB, free: 14.94 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.326, allocations: 34.3 kB / 329.8 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004804/0.3265, allocations: 270.2 kB / 330.1 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3265, allocations: 0 / 330.1 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.3266, allocations: 14.7 kB / 330.1 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.3266, allocations: 5.594 kB / 330.1 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003195/0.3269, allocations: 160.6 kB / 330.2 MB, free: 14.65 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.3281, allocations: 0.9753 MB / 331.2 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.3284, allocations: 147.9 kB / 331.4 MB, free: 13.66 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.3285, allocations: 85.08 kB / 331.4 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.3286, allocations: 2.281 kB / 331.4 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.3288, allocations: 113.3 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.703e-06/0.3288, allocations: 0 / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004369/0.3293, allocations: 206.5 kB / 331.8 MB, free: 13.42 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.3293, allocations: 63.16 kB / 331.8 MB, free: 13.35 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.3295, allocations: 152.9 kB / 332 MB, free: 13.21 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.3295, allocations: 34.33 kB / 332 MB, free: 13.17 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.938e-05/0.3296, allocations: 150.8 kB / 332.1 MB, free: 13.03 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.591e-05/0.3297, allocations: 60.56 kB / 332.2 MB, free: 12.98 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.3297, allocations: 5.062 kB / 332.2 MB, free: 12.98 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.3298, allocations: 330 kB / 332.5 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.33, allocations: 65.55 kB / 332.6 MB, free: 12.61 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.3302, allocations: 133.7 kB / 332.7 MB, free: 12.5 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001356/0.3303, allocations: 80.03 kB / 332.8 MB, free: 12.45 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3303, allocations: 0 / 332.8 MB, free: 12.45 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003963/0.3307, allocations: 245.7 kB / 333 MB, free: 12.32 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.3307, allocations: 9.391 kB / 333.1 MB, free: 12.32 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.3307, allocations: 2.25 kB / 333.1 MB, free: 12.32 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.3308, allocations: 4.188 kB / 333.1 MB, free: 12.32 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.3309, allocations: 34.53 kB / 333.1 MB, free: 12.31 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.3309, allocations: 7.375 kB / 333.1 MB, free: 12.3 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.3311, allocations: 29.34 kB / 333.1 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.224e-05/0.3311, allocations: 11.06 kB / 333.1 MB, free: 12.29 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.000202/0.3313, allocations: 161.4 kB / 333.3 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.087e-05/0.3314, allocations: 14.69 kB / 333.3 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003516/0.3317, allocations: 193.9 kB / 333.5 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3318, allocations: 2.875 kB / 333.5 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3318, allocations: 0 / 333.5 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3318, allocations: 5.031 kB / 333.5 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007477/0.3325, allocations: 0.5953 MB / 334.1 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.3326, allocations: 0 / 334.1 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.513e-05/0.3326, allocations: 18.98 kB / 334.1 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.3326, allocations: 1.062 kB / 334.1 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.3327, allocations: 6.062 kB / 334.1 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.3327, allocations: 0.8438 kB / 334.1 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3327, allocations: 5.234 kB / 334.1 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.333, allocations: 277 kB / 334.4 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.446e-05/0.333, allocations: 93.16 kB / 334.5 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.3331, allocations: 9.406 kB / 334.5 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.144e-05/0.3331, allocations: 4.438 kB / 334.5 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.3332, allocations: 26.2 kB / 334.5 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3332, allocations: 4.156 kB / 334.5 MB, free: 11.15 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.282e-05/0.3333, allocations: 99.92 kB / 334.6 MB, free: 11.06 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3333, allocations: 3.938 kB / 334.6 MB, free: 11.06 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.3336, allocations: 50.91 kB / 334.7 MB, free: 11.04 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,step.localActive,transition1.enableFire,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.0001659/0.3338, allocations: 114.7 kB / 334.8 MB, free: 10.93 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003163/0.3341, allocations: 183.7 kB / 335 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3341, allocations: 0 / 335 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.3343, allocations: 79.89 kB / 335.1 MB, free: 10.68 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.3346, allocations: 23.91 kB / 335.1 MB, free: 10.65 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006383/0.3352, allocations: 396.4 kB / 335.5 MB, free: 10.24 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.3355, allocations: 0.7289 MB / 336.2 MB, free: 9.484 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.464e-05/0.3356, allocations: 25.94 kB / 336.2 MB, free: 9.461 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.892e-05/0.3357, allocations: 27.44 kB / 336.3 MB, free: 9.434 MB / 270.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3357, allocations: 0 / 336.3 MB, free: 9.434 MB / 270.1 MB Notification: Performance of Templates: time 0.004907/0.3406, allocations: 1.653 MB / 337.9 MB, free: 7.781 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)