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.0009651/0.0009647, allocations: 91.61 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.001103/0.001103, 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.741/1.741, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004849/0.0004851, allocations: 18.8 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3417, allocations: 47.58 MB / 326.5 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002191/0.3439, allocations: 1.402 MB / 327.9 MB, free: 272 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007881/0.3448, allocations: 269.8 kB / 328.1 MB, free: 52 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.3449, allocations: 7.719 kB / 328.1 MB, free: 48 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.3451, allocations: 22.98 kB / 328.2 MB, free: 28 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 8.839e-05/0.3452, allocations: 14.23 kB / 328.2 MB, free: 16 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005867/0.3458, allocations: 89.55 kB / 328.3 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005181/0.3463, allocations: 239 kB / 328.5 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004801/0.3468, allocations: 140.2 kB / 328.6 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.347, allocations: 68.2 kB / 328.7 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.3472, allocations: 76.8 kB / 328.8 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.038e-05/0.3472, allocations: 14.12 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.3473, allocations: 21.14 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.639e-05/0.3474, allocations: 38.56 kB / 328.8 MB, free: 15.58 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.3475, allocations: 53.33 kB / 328.9 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003114/0.3479, allocations: 157.4 kB / 329 MB, free: 15.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.3479, allocations: 1.656 kB / 329 MB, free: 15.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.3479, allocations: 0 / 329 MB, free: 15.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.3479, allocations: 0 / 329 MB, free: 15.41 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.001013/0.3489, allocations: 453 kB / 329.5 MB, free: 14.96 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.349, allocations: 13.12 kB / 329.5 MB, free: 14.96 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.896e-05/0.3491, allocations: 23.28 kB / 329.5 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004248/0.3496, allocations: 230.6 kB / 329.8 MB, free: 14.7 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.485e-05/0.3496, allocations: 19.91 kB / 329.8 MB, free: 14.69 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/0.3497, allocations: 30.81 kB / 329.8 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006593/0.3504, allocations: 272.1 kB / 330.1 MB, free: 14.48 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.3504, allocations: 5.312 kB / 330.1 MB, free: 14.48 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.3504, allocations: 9.969 kB / 330.1 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.3505, allocations: 6.469 kB / 330.1 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003522/0.3508, allocations: 164.9 kB / 330.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.3523, allocations: 0.9645 MB / 331.2 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.3526, allocations: 151.4 kB / 331.4 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.3528, allocations: 77.56 kB / 331.4 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/0.3528, allocations: 6.156 kB / 331.4 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002996/0.3531, allocations: 113.5 kB / 331.6 MB, free: 13.28 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.3531, allocations: 0 / 331.6 MB, free: 13.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005046/0.3536, allocations: 214.1 kB / 331.8 MB, free: 13.16 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.3537, allocations: 55.75 kB / 331.8 MB, free: 13.1 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.3539, allocations: 151.2 kB / 332 MB, free: 12.96 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.3539, allocations: 42.31 kB / 332 MB, free: 12.92 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.354, allocations: 142.8 kB / 332.1 MB, free: 12.79 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.256e-05/0.3541, allocations: 60.03 kB / 332.2 MB, free: 12.74 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.3541, allocations: 5.031 kB / 332.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3543, allocations: 330.1 kB / 332.5 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.3544, allocations: 61.44 kB / 332.6 MB, free: 12.38 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.3546, allocations: 141.9 kB / 332.7 MB, free: 12.25 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.3548, allocations: 75.34 kB / 332.8 MB, free: 12.21 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3548, allocations: 1.219 kB / 332.8 MB, free: 12.21 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004279/0.3552, allocations: 239.9 kB / 333 MB, free: 12.09 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.3552, allocations: 10.11 kB / 333 MB, free: 12.09 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.3553, allocations: 6.875 kB / 333.1 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.84e-05/0.3553, allocations: 8.297 kB / 333.1 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.3555, allocations: 38.27 kB / 333.1 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.3555, allocations: 3.469 kB / 333.1 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.3556, allocations: 28.28 kB / 333.1 MB, free: 12.04 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.643e-05/0.3557, allocations: 18.42 kB / 333.2 MB, free: 12.04 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.0002244/0.3559, allocations: 150.7 kB / 333.3 MB, free: 11.9 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.3559, allocations: 13.03 kB / 333.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004742/0.3564, allocations: 202.2 kB / 333.5 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.3565, allocations: 5.953 kB / 333.5 MB, free: 11.76 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.3565, allocations: 1.156 kB / 333.5 MB, free: 11.76 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3565, allocations: 0 / 333.5 MB, free: 11.76 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009318/0.3574, allocations: 0.587 MB / 334.1 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3574, allocations: 3.953 kB / 334.1 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.976e-05/0.3575, allocations: 19.45 kB / 334.1 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3575, allocations: 0.9688 kB / 334.1 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.3576, allocations: 6.531 kB / 334.1 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.3576, allocations: 0 / 334.1 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3576, allocations: 0.9688 kB / 334.1 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004066/0.358, allocations: 269 kB / 334.4 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.634e-05/0.3581, allocations: 96.62 kB / 334.5 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.3581, allocations: 6.406 kB / 334.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.91e-05/0.3582, allocations: 7.719 kB / 334.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.3584, allocations: 29.02 kB / 334.5 MB, free: 10.91 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.3584, allocations: 9.5 kB / 334.5 MB, free: 10.91 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001416/0.3585, allocations: 94.8 kB / 334.6 MB, free: 10.82 MB / 270.1 MB Notification: Performance of sort global known variables: time 6.332e-06/0.3585, allocations: 0 / 334.6 MB, free: 10.82 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004025/0.3589, allocations: 54.94 kB / 334.7 MB, free: 10.8 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.0002345/0.3592, allocations: 113.4 kB / 334.8 MB, free: 10.7 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.3596, allocations: 177.1 kB / 335 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3596, allocations: 0 / 335 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.3597, allocations: 83.91 kB / 335.1 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.36, allocations: 16.42 kB / 335.1 MB, free: 10.46 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007973/0.3608, allocations: 396.2 kB / 335.5 MB, free: 10.05 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.3613, allocations: 0.7367 MB / 336.2 MB, free: 9.289 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.072e-05/0.3614, allocations: 29.94 kB / 336.2 MB, free: 9.262 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.439e-05/0.3615, allocations: 19.44 kB / 336.2 MB, free: 9.242 MB / 270.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3615, allocations: 0 / 336.2 MB, free: 9.242 MB / 270.1 MB Notification: Performance of Templates: time 0.005609/0.3671, allocations: 1.641 MB / 337.9 MB, free: 7.602 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (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)