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.001201/0.001202, allocations: 98.03 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.011/0.011, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.955/1.955, 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.0005096/0.0005096, allocations: 8 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3472, allocations: 47.59 MB / 327 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001314/0.3486, allocations: 1.21 MB / 328.2 MB, free: 432 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005598/0.3492, allocations: 259.3 kB / 328.5 MB, free: 224 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.823e-05/0.3493, allocations: 7.5 kB / 328.5 MB, free: 220 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 9.823e-05/0.3494, allocations: 18.48 kB / 328.5 MB, free: 204 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.398e-05/0.3494, allocations: 8.984 kB / 328.5 MB, free: 196 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.3498, allocations: 99.23 kB / 328.6 MB, free: 116 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002734/0.35, allocations: 236.7 kB / 328.9 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002644/0.3503, allocations: 138.7 kB / 329 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.71e-05/0.3504, allocations: 67.97 kB / 329.1 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.3505, allocations: 80.75 kB / 329.1 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.369e-05/0.3506, allocations: 13.34 kB / 329.1 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.014e-05/0.3507, allocations: 12.91 kB / 329.2 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.84e-05/0.3507, allocations: 45.11 kB / 329.2 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.3509, allocations: 108.1 kB / 329.3 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.3511, allocations: 200.7 kB / 329.5 MB, free: 15.51 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.3512, allocations: 0 / 329.5 MB, free: 15.51 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3512, allocations: 3.938 kB / 329.5 MB, free: 15.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.3512, allocations: 0 / 329.5 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006593/0.3518, allocations: 440.1 kB / 329.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3519, allocations: 9.688 kB / 329.9 MB, free: 15.07 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.632e-05/0.3519, allocations: 24 kB / 330 MB, free: 15.05 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.3522, allocations: 230.3 kB / 330.2 MB, free: 14.81 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.124e-05/0.3522, allocations: 20.25 kB / 330.2 MB, free: 14.8 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.3523, allocations: 25.5 kB / 330.2 MB, free: 14.79 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/0.3527, allocations: 238.2 kB / 330.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3528, allocations: 5.594 kB / 330.5 MB, free: 14.63 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.3528, allocations: 13.28 kB / 330.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.3528, allocations: 6.062 kB / 330.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002945/0.3531, allocations: 163 kB / 330.7 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.3542, allocations: 0.7133 MB / 331.4 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.3547, allocations: 171.4 kB / 331.5 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.3548, allocations: 80.86 kB / 331.6 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.3548, allocations: 6.25 kB / 331.6 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002481/0.3551, allocations: 119.9 kB / 331.7 MB, free: 13.66 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.522e-06/0.3551, allocations: 0 / 331.7 MB, free: 13.66 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004878/0.3556, allocations: 216.1 kB / 332 MB, free: 13.55 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.3557, allocations: 55.53 kB / 332 MB, free: 13.49 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.3558, allocations: 144.9 kB / 332.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.3558, allocations: 38 kB / 332.2 MB, free: 13.32 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.679e-05/0.3559, allocations: 133.4 kB / 332.3 MB, free: 13.2 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.382e-05/0.356, allocations: 64.34 kB / 332.4 MB, free: 13.14 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3562, allocations: 51.75 kB / 332.4 MB, free: 13.1 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3563, allocations: 326.1 kB / 332.7 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.3564, allocations: 63.59 kB / 332.8 MB, free: 12.75 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.3566, allocations: 127 kB / 332.9 MB, free: 12.64 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/0.3568, allocations: 178.2 kB / 333.1 MB, free: 12.51 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3568, allocations: 5.469 kB / 333.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003799/0.3572, allocations: 242.5 kB / 333.3 MB, free: 12.38 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3573, allocations: 5.875 kB / 333.4 MB, free: 12.38 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3573, allocations: 1.625 kB / 333.4 MB, free: 12.38 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3573, allocations: 3.875 kB / 333.4 MB, free: 12.38 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.3574, allocations: 31.05 kB / 333.4 MB, free: 12.36 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3575, allocations: 3.406 kB / 333.4 MB, free: 12.36 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.3576, allocations: 38.62 kB / 333.4 MB, free: 12.34 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/0.3576, allocations: 13.53 kB / 333.4 MB, free: 12.33 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.0001637/0.3578, allocations: 161.6 kB / 333.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.3578, allocations: 14.31 kB / 333.6 MB, free: 12.17 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003638/0.3582, allocations: 190.7 kB / 333.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3582, allocations: 2.188 kB / 333.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3582, allocations: 0 / 333.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.3582, allocations: 8.984 kB / 333.8 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007909/0.359, allocations: 0.5698 MB / 334.4 MB, free: 11.58 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.359, allocations: 3.984 kB / 334.4 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.668e-05/0.3591, allocations: 15.62 kB / 334.4 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3591, allocations: 6 kB / 334.4 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.3592, allocations: 5.031 kB / 334.4 MB, free: 11.56 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.3592, allocations: 9.047 kB / 334.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3592, allocations: 5 kB / 334.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.3595, allocations: 269.8 kB / 334.7 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.75e-05/0.3596, allocations: 89 kB / 334.8 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.3596, allocations: 12 kB / 334.8 MB, free: 11.2 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.664e-05/0.3597, allocations: 8 kB / 334.8 MB, free: 11.2 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-05/0.3598, allocations: 27.91 kB / 334.8 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.3598, allocations: 11.98 kB / 334.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.559e-05/0.3599, allocations: 95.2 kB / 334.9 MB, free: 11.06 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3599, allocations: 4 kB / 334.9 MB, free: 11.06 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000301/0.3602, allocations: 47.84 kB / 335 MB, free: 11.01 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.0001545/0.3603, allocations: 107.2 kB / 335.1 MB, free: 10.89 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003008/0.3606, allocations: 183.8 kB / 335.3 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3606, allocations: 448 / 335.3 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.3608, allocations: 88.28 kB / 335.4 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.0002821/0.3611, allocations: 23.98 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.000593/0.3617, allocations: 399.3 kB / 335.8 MB, free: 10.19 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.362, allocations: 0.7365 MB / 336.5 MB, free: 9.43 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.195e-05/0.362, allocations: 21.94 kB / 336.5 MB, free: 9.406 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.579e-05/0.3621, allocations: 19.44 kB / 336.5 MB, free: 9.391 MB / 270.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3621, allocations: 0 / 336.5 MB, free: 9.391 MB / 270.1 MB Notification: Performance of Templates: time 0.004832/0.3669, allocations: 1.723 MB / 338.3 MB, free: 7.672 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)