Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001368/0.001368, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 197 kB / 16.53 MB, free: 6.664 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.528/1.528, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001443/0.001444, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3525, allocations: 46.63 MB / 325.3 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003255/0.3558, allocations: 1.477 MB / 326.8 MB, free: 0.6523 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007439/0.3566, allocations: 248.1 kB / 327 MB, free: 468 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.3568, allocations: 4.375 kB / 327 MB, free: 468 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001486/0.3569, allocations: 22.44 kB / 327 MB, free: 448 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.412e-05/0.357, allocations: 16.92 kB / 327.1 MB, free: 432 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005295/0.3575, allocations: 110.2 kB / 327.2 MB, free: 340 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003703/0.3579, allocations: 257.1 kB / 327.4 MB, free: 188 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003644/0.3583, allocations: 155.2 kB / 327.6 MB, free: 84 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.3584, allocations: 89.5 kB / 327.7 MB, free: 24 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.3586, allocations: 98.25 kB / 327.8 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.529e-05/0.3587, allocations: 23.22 kB / 327.8 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.3588, allocations: 38.36 kB / 327.8 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.363e-05/0.3589, allocations: 48.34 kB / 327.9 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3591, allocations: 96.52 kB / 328 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003524/0.3594, allocations: 223.8 kB / 328.2 MB, free: 15.65 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.3594, allocations: 0 / 328.2 MB, free: 15.65 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3594, allocations: 0 / 328.2 MB, free: 15.65 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.3595, allocations: 1.094 kB / 328.2 MB, free: 15.65 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.0009522/0.3604, allocations: 491.7 kB / 328.7 MB, free: 15.18 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.3605, allocations: 9.969 kB / 328.7 MB, free: 15.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.3606, allocations: 23.69 kB / 328.7 MB, free: 15.17 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.361, allocations: 231.4 kB / 328.9 MB, free: 14.92 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.735e-05/0.361, allocations: 20.06 kB / 328.9 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.493e-05/0.3611, allocations: 25.66 kB / 329 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005278/0.3616, allocations: 242 kB / 329.2 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.3616, allocations: 192 / 329.2 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.3617, allocations: 11.06 kB / 329.2 MB, free: 14.74 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.3617, allocations: 9.438 kB / 329.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.3621, allocations: 163 kB / 329.4 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.3633, allocations: 0.7071 MB / 330.1 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.3636, allocations: 168.9 kB / 330.2 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.3638, allocations: 80.58 kB / 330.3 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.3639, allocations: 1.875 kB / 330.3 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003174/0.3642, allocations: 122.9 kB / 330.4 MB, free: 13.79 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 2.064e-06/0.3642, allocations: 0.8438 kB / 330.4 MB, free: 13.79 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005035/0.3647, allocations: 219.5 kB / 330.7 MB, free: 13.67 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.3648, allocations: 59.84 kB / 330.7 MB, free: 13.61 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.3649, allocations: 141.3 kB / 330.9 MB, free: 13.48 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.365, allocations: 42 kB / 330.9 MB, free: 13.43 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3651, allocations: 134.3 kB / 331 MB, free: 13.31 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.487e-05/0.3652, allocations: 58.36 kB / 331.1 MB, free: 13.26 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.3653, allocations: 84.53 kB / 331.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3655, allocations: 325.8 kB / 331.5 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.3656, allocations: 62.09 kB / 331.5 MB, free: 12.85 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.3658, allocations: 124.5 kB / 331.7 MB, free: 12.75 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.3661, allocations: 182.8 kB / 331.8 MB, free: 12.61 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3661, allocations: 0 / 331.8 MB, free: 12.61 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004554/0.3666, allocations: 248.2 kB / 332.1 MB, free: 12.48 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.3666, allocations: 5.719 kB / 332.1 MB, free: 12.48 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.3666, allocations: 5.062 kB / 332.1 MB, free: 12.47 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.3667, allocations: 3.406 kB / 332.1 MB, free: 12.47 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.3668, allocations: 35.91 kB / 332.1 MB, free: 12.46 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.3668, allocations: 3.5 kB / 332.1 MB, free: 12.46 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.367, allocations: 20.38 kB / 332.2 MB, free: 12.45 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.367, allocations: 13.19 kB / 332.2 MB, free: 12.44 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.0002065/0.3672, allocations: 163.2 kB / 332.3 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.192e-05/0.3672, allocations: 21.31 kB / 332.4 MB, free: 12.27 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004449/0.3677, allocations: 193.3 kB / 332.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.3677, allocations: 3.094 kB / 332.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.3677, allocations: 1.094 kB / 332.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.3678, allocations: 3.938 kB / 332.6 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009678/0.3687, allocations: 0.5686 MB / 333.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3688, allocations: 0 / 333.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.3689, allocations: 24.86 kB / 333.1 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.3689, allocations: 1.219 kB / 333.1 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.3689, allocations: 1.094 kB / 333.1 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.3689, allocations: 1.094 kB / 333.1 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.3689, allocations: 5.031 kB / 333.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003954/0.3693, allocations: 283.1 kB / 333.4 MB, free: 11.42 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.962e-05/0.3694, allocations: 92.86 kB / 333.5 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.3694, allocations: 4 kB / 333.5 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-05/0.3695, allocations: 11.98 kB / 333.5 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.218e-05/0.3696, allocations: 27.91 kB / 333.6 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.3697, allocations: 4 kB / 333.6 MB, free: 11.26 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.78e-05/0.3698, allocations: 99.2 kB / 333.7 MB, free: 11.16 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3698, allocations: 0 / 333.7 MB, free: 11.16 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000317/0.3701, allocations: 47.91 kB / 333.7 MB, free: 11.12 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.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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.0001919/0.3703, allocations: 119.3 kB / 333.8 MB, free: 10.99 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.3707, allocations: 199.7 kB / 334 MB, free: 10.79 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3707, allocations: 0 / 334 MB, free: 10.79 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.3709, allocations: 84.34 kB / 334.1 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3712, allocations: 20.42 kB / 334.1 MB, free: 10.69 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006741/0.3719, allocations: 337.5 kB / 334.5 MB, free: 10.34 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.3722, allocations: 0.7324 MB / 335.2 MB, free: 9.582 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.422e-05/0.3723, allocations: 25.94 kB / 335.2 MB, free: 9.559 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.485e-05/0.3724, allocations: 19.44 kB / 335.2 MB, free: 9.539 MB / 270.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3724, allocations: 0 / 335.2 MB, free: 9.539 MB / 270.1 MB Notification: Performance of Templates: time 0.006656/0.3791, allocations: 1.881 MB / 337.1 MB, free: 7.664 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)