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.001008/0.001008, allocations: 92.08 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.001245/0.001245, 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.766/1.766, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0005516/0.0005522, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3454, allocations: 47.58 MB / 326.5 MB, free: 1.375 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00144/0.3469, allocations: 1.195 MB / 327.6 MB, free: 432 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006009/0.3475, allocations: 253.8 kB / 327.9 MB, free: 228 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.3476, allocations: 11 kB / 327.9 MB, free: 220 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.3477, allocations: 16.2 kB / 327.9 MB, free: 208 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.309e-05/0.3478, allocations: 13.09 kB / 327.9 MB, free: 196 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.3481, allocations: 92.69 kB / 328 MB, free: 120 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.3485, allocations: 225 kB / 328.2 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.3488, allocations: 139.9 kB / 328.4 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.289e-05/0.3489, allocations: 68.8 kB / 328.4 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.349, allocations: 81.69 kB / 328.5 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.349, allocations: 10.59 kB / 328.5 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.941e-05/0.3491, allocations: 10.72 kB / 328.5 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.545e-05/0.3492, allocations: 38.94 kB / 328.6 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.579e-05/0.3492, allocations: 52.36 kB / 328.6 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.3494, allocations: 150.9 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.3495, allocations: 1.031 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3495, allocations: 0 / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.3495, allocations: 4 kB / 328.8 MB, free: 15.6 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.0007053/0.3502, allocations: 444.5 kB / 329.2 MB, free: 15.16 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3502, allocations: 9.469 kB / 329.2 MB, free: 15.16 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.688e-05/0.3503, allocations: 26.36 kB / 329.3 MB, free: 15.15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.3506, allocations: 222.3 kB / 329.5 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.3507, allocations: 18.91 kB / 329.5 MB, free: 14.9 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.309e-05/0.3507, allocations: 24.94 kB / 329.5 MB, free: 14.89 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004583/0.3512, allocations: 252 kB / 329.8 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3512, allocations: 1.188 kB / 329.8 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.3512, allocations: 9.594 kB / 329.8 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.3513, allocations: 5.844 kB / 329.8 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002959/0.3516, allocations: 153.9 kB / 329.9 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.3526, allocations: 0.7013 MB / 330.6 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.3529, allocations: 179.1 kB / 330.8 MB, free: 13.91 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.353, allocations: 75.77 kB / 330.9 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.3531, allocations: 6.516 kB / 330.9 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.3533, allocations: 114.7 kB / 331 MB, free: 13.78 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.3533, allocations: 0 / 331 MB, free: 13.78 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004595/0.3538, allocations: 214.7 kB / 331.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.3538, allocations: 58.78 kB / 331.3 MB, free: 13.6 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.354, allocations: 156.8 kB / 331.4 MB, free: 13.45 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.354, allocations: 39.11 kB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.469e-05/0.3541, allocations: 132.4 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.567e-05/0.3542, allocations: 60.11 kB / 331.6 MB, free: 13.24 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/0.3542, allocations: 10.03 kB / 331.7 MB, free: 13.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3543, allocations: 326.4 kB / 332 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.3545, allocations: 65.56 kB / 332 MB, free: 12.87 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.3546, allocations: 127.2 kB / 332.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.3548, allocations: 70.47 kB / 332.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3548, allocations: 0 / 332.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004101/0.3552, allocations: 245.3 kB / 332.5 MB, free: 12.6 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.3552, allocations: 5.344 kB / 332.5 MB, free: 12.6 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3552, allocations: 2.344 kB / 332.5 MB, free: 12.6 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.3552, allocations: 3.844 kB / 332.5 MB, free: 12.6 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.3554, allocations: 26.42 kB / 332.5 MB, free: 12.59 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.3554, allocations: 7.688 kB / 332.5 MB, free: 12.59 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.3555, allocations: 29.52 kB / 332.5 MB, free: 12.57 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.3555, allocations: 17.52 kB / 332.6 MB, free: 12.56 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,$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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.3557, allocations: 146.8 kB / 332.7 MB, free: 12.42 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.279e-05/0.3557, allocations: 18.28 kB / 332.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000357/0.3561, allocations: 200 kB / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3561, allocations: 3.656 kB / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3561, allocations: 4 kB / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3561, allocations: 0 / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008077/0.3569, allocations: 0.5802 MB / 333.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3569, allocations: 0 / 333.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.669e-05/0.357, allocations: 20.05 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.357, allocations: 1.156 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.3571, allocations: 6.281 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.3571, allocations: 5.078 kB / 333.5 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3571, allocations: 4 kB / 333.5 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003141/0.3574, allocations: 279.6 kB / 333.8 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.278e-05/0.3575, allocations: 85.48 kB / 333.9 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.3575, allocations: 5.984 kB / 333.9 MB, free: 11.47 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.7e-05/0.3576, allocations: 8.688 kB / 333.9 MB, free: 11.47 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.3577, allocations: 26.17 kB / 333.9 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.3577, allocations: 9.891 kB / 333.9 MB, free: 11.45 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.257e-05/0.3578, allocations: 101.2 kB / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3578, allocations: 0 / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000318/0.3581, allocations: 49.09 kB / 334.1 MB, free: 11.34 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 (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.0001633/0.3583, allocations: 109.5 kB / 334.2 MB, free: 11.24 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003459/0.3586, allocations: 173.5 kB / 334.4 MB, free: 11.18 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3586, allocations: 0.9688 kB / 334.4 MB, free: 11.18 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.3588, allocations: 92.34 kB / 334.5 MB, free: 11.11 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3591, allocations: 27.92 kB / 334.5 MB, free: 11.08 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006617/0.3598, allocations: 383.2 kB / 334.9 MB, free: 10.68 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.3601, allocations: 0.7328 MB / 335.6 MB, free: 9.922 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.682e-05/0.3602, allocations: 21.94 kB / 335.6 MB, free: 9.898 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.505e-05/0.3603, allocations: 19.44 kB / 335.6 MB, free: 9.883 MB / 270.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3603, allocations: 0 / 335.6 MB, free: 9.883 MB / 270.1 MB Notification: Performance of Templates: time 0.004785/0.3651, allocations: 1.668 MB / 337.3 MB, free: 8.219 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)