Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009514/0.009514, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.883/1.883, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0006582/0.0006583, allocations: 12 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3426, allocations: 47.59 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002009/0.3447, allocations: 1.221 MB / 328.2 MB, free: 452 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008305/0.3455, allocations: 263.3 kB / 328.5 MB, free: 240 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.3457, allocations: 3.781 kB / 328.5 MB, free: 240 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.3459, allocations: 10.72 kB / 328.5 MB, free: 232 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 6.77e-05/0.346, allocations: 9.125 kB / 328.5 MB, free: 224 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004909/0.3465, allocations: 102.4 kB / 328.6 MB, free: 140 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003855/0.3469, allocations: 238.9 kB / 328.9 MB, free: 4 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003416/0.3472, allocations: 141.1 kB / 329 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.3473, allocations: 67 kB / 329.1 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.3475, allocations: 77.08 kB / 329.1 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.834e-05/0.3475, allocations: 10.19 kB / 329.1 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.116e-05/0.3476, allocations: 25.48 kB / 329.2 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.072e-05/0.3477, allocations: 37 kB / 329.2 MB, free: 15.78 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.3478, allocations: 111.6 kB / 329.3 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.3481, allocations: 196.5 kB / 329.5 MB, free: 15.53 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3481, allocations: 0 / 329.5 MB, free: 15.53 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3481, allocations: 3.938 kB / 329.5 MB, free: 15.53 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.3482, allocations: 1.094 kB / 329.5 MB, free: 15.53 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007719/0.3489, allocations: 440 kB / 329.9 MB, free: 15.09 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.349, allocations: 13.25 kB / 329.9 MB, free: 15.09 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.595e-05/0.3491, allocations: 24 kB / 330 MB, free: 15.07 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.3494, allocations: 221.9 kB / 330.2 MB, free: 14.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.3495, allocations: 21.31 kB / 330.2 MB, free: 14.83 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.3495, allocations: 24.62 kB / 330.2 MB, free: 14.82 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005317/0.35, allocations: 247 kB / 330.5 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.3501, allocations: 4.172 kB / 330.5 MB, free: 14.65 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/0.3501, allocations: 14.06 kB / 330.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.3501, allocations: 9.812 kB / 330.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003439/0.3505, allocations: 151.7 kB / 330.7 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.3517, allocations: 0.7164 MB / 331.4 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.3521, allocations: 172.1 kB / 331.5 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.3522, allocations: 76.73 kB / 331.6 MB, free: 13.79 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.3523, allocations: 5.922 kB / 331.6 MB, free: 13.79 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.3525, allocations: 123.3 kB / 331.7 MB, free: 13.69 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 2.023e-06/0.3525, allocations: 0 / 331.7 MB, free: 13.69 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.000525/0.3531, allocations: 216.5 kB / 331.9 MB, free: 13.58 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.3531, allocations: 58.98 kB / 332 MB, free: 13.51 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.3533, allocations: 146.6 kB / 332.1 MB, free: 13.38 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.3534, allocations: 36.77 kB / 332.2 MB, free: 13.34 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3535, allocations: 129.7 kB / 332.3 MB, free: 13.22 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/0.3536, allocations: 65.44 kB / 332.4 MB, free: 13.16 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.939e-05/0.3537, allocations: 53.66 kB / 332.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3538, allocations: 323.1 kB / 332.7 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.354, allocations: 66.56 kB / 332.8 MB, free: 12.77 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.3542, allocations: 128.1 kB / 332.9 MB, free: 12.66 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003073/0.3545, allocations: 177.6 kB / 333.1 MB, free: 12.53 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3545, allocations: 1.094 kB / 333.1 MB, free: 12.53 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004995/0.355, allocations: 242.8 kB / 333.3 MB, free: 12.4 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3551, allocations: 5.719 kB / 333.4 MB, free: 12.4 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.3551, allocations: 2.5 kB / 333.4 MB, free: 12.4 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.3551, allocations: 3.125 kB / 333.4 MB, free: 12.4 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.3553, allocations: 35.47 kB / 333.4 MB, free: 12.38 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.3553, allocations: 7.375 kB / 333.4 MB, free: 12.38 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.3554, allocations: 30.12 kB / 333.4 MB, free: 12.36 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.3555, allocations: 13.25 kB / 333.4 MB, free: 12.36 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001964/0.3557, allocations: 159.4 kB / 333.6 MB, free: 12.21 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.3557, allocations: 13.59 kB / 333.6 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004025/0.3561, allocations: 197.6 kB / 333.8 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3562, allocations: 3.281 kB / 333.8 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3562, allocations: 0 / 333.8 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3562, allocations: 0 / 333.8 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008935/0.3571, allocations: 0.5731 MB / 334.4 MB, free: 11.6 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.3571, allocations: 1.281 kB / 334.4 MB, free: 11.6 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.786e-05/0.3572, allocations: 20.02 kB / 334.4 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.3572, allocations: 5.031 kB / 334.4 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.3572, allocations: 5.156 kB / 334.4 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3572, allocations: 2.375 kB / 334.4 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.3572, allocations: 3.938 kB / 334.4 MB, free: 11.58 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000368/0.3576, allocations: 284.8 kB / 334.7 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.063e-05/0.3577, allocations: 89 kB / 334.8 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.3577, allocations: 12 kB / 334.8 MB, free: 11.2 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.091e-05/0.3578, allocations: 7.984 kB / 334.8 MB, free: 11.2 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.457e-05/0.3579, allocations: 27.91 kB / 334.8 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.358, allocations: 8 kB / 334.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.507e-05/0.358, allocations: 99.27 kB / 334.9 MB, free: 11.06 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.358, allocations: 0 / 334.9 MB, free: 11.06 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000358/0.3584, allocations: 47.84 kB / 335 MB, free: 11.02 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0002099/0.3586, allocations: 111.1 kB / 335.1 MB, free: 10.89 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003708/0.359, allocations: 183.7 kB / 335.3 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.359, allocations: 0 / 335.3 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.3592, allocations: 85 kB / 335.3 MB, free: 10.63 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.3595, allocations: 20 kB / 335.4 MB, free: 10.61 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007035/0.3602, allocations: 403.3 kB / 335.8 MB, free: 10.2 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.3605, allocations: 0.7326 MB / 336.5 MB, free: 9.438 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.059e-05/0.3606, allocations: 21.95 kB / 336.5 MB, free: 9.414 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.71e-05/0.3606, allocations: 23.42 kB / 336.5 MB, free: 9.395 MB / 270.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3607, allocations: 0 / 336.5 MB, free: 9.395 MB / 270.1 MB Notification: Performance of Templates: time 0.005562/0.3662, allocations: 1.723 MB / 338.3 MB, free: 7.676 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)