Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001207/0.001208, allocations: 190.3 kB / 16.14 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.777/1.777, allocations: 205.1 MB / 222 MB, free: 4.754 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.001347/0.001347, allocations: 48.2 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3229, allocations: 46.62 MB / 324.7 MB, free: 2.062 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002997/0.3259, allocations: 1.755 MB / 326.4 MB, free: 0.6758 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006538/0.3266, allocations: 284.6 kB / 326.7 MB, free: 460 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.536e-05/0.3267, allocations: 4.219 kB / 326.7 MB, free: 460 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.3268, allocations: 22.77 kB / 326.7 MB, free: 440 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.351e-05/0.3269, allocations: 5.188 kB / 326.7 MB, free: 436 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.3273, allocations: 98.83 kB / 326.8 MB, free: 356 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003078/0.3276, allocations: 255 kB / 327.1 MB, free: 208 kB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.3278, allocations: 171.9 kB / 327.2 MB, free: 92 kB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.266e-05/0.3279, allocations: 88.91 kB / 327.3 MB, free: 36 kB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.3281, allocations: 91.5 kB / 327.4 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/0.3281, allocations: 15.12 kB / 327.4 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.618e-05/0.3282, allocations: 23.17 kB / 327.4 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.297e-05/0.3283, allocations: 53.94 kB / 327.5 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.3284, allocations: 94.25 kB / 327.6 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.3287, allocations: 223.4 kB / 327.8 MB, free: 15.68 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3287, allocations: 0 / 327.8 MB, free: 15.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3287, allocations: 0 / 327.8 MB, free: 15.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.3287, allocations: 1.438 kB / 327.8 MB, free: 15.68 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.0007531/0.3295, allocations: 493 kB / 328.3 MB, free: 15.2 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.3296, allocations: 9.125 kB / 328.3 MB, free: 15.2 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.711e-05/0.3296, allocations: 25.69 kB / 328.3 MB, free: 15.19 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.3299, allocations: 231.2 kB / 328.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.33, allocations: 24.09 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.33, allocations: 27.53 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.3305, allocations: 279.5 kB / 328.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3305, allocations: 192 / 328.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.3306, allocations: 14.16 kB / 328.9 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.3306, allocations: 7.156 kB / 328.9 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.3309, allocations: 165.3 kB / 329.1 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.3322, allocations: 0.9701 MB / 330 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.3325, allocations: 156.5 kB / 330.2 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.3326, allocations: 78.17 kB / 330.3 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.3326, allocations: 2.312 kB / 330.3 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002071/0.3328, allocations: 110.6 kB / 330.4 MB, free: 13.52 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.734e-06/0.3329, allocations: 0 / 330.4 MB, free: 13.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004609/0.3333, allocations: 219.7 kB / 330.6 MB, free: 13.4 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.3334, allocations: 54.75 kB / 330.6 MB, free: 13.34 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.3335, allocations: 153.5 kB / 330.8 MB, free: 13.2 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.3336, allocations: 37.81 kB / 330.8 MB, free: 13.16 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.3337, allocations: 143.5 kB / 331 MB, free: 13.03 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.191e-05/0.3337, allocations: 59.2 kB / 331 MB, free: 12.98 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.3339, allocations: 76.84 kB / 331.1 MB, free: 12.93 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.334, allocations: 334.3 kB / 331.4 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.3341, allocations: 63.25 kB / 331.5 MB, free: 12.57 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.3343, allocations: 137.8 kB / 331.6 MB, free: 12.45 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002771/0.3346, allocations: 197 kB / 331.8 MB, free: 12.29 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3346, allocations: 8.906 kB / 331.8 MB, free: 12.29 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004045/0.335, allocations: 242.8 kB / 332.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.3351, allocations: 6.094 kB / 332.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3351, allocations: 2.25 kB / 332.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.3351, allocations: 4.5 kB / 332.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.3353, allocations: 29.98 kB / 332.1 MB, free: 12.15 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.3353, allocations: 12.61 kB / 332.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.3354, allocations: 35.41 kB / 332.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.3355, allocations: 10.72 kB / 332.2 MB, free: 12.12 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000163/0.3356, allocations: 162.4 kB / 332.3 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.3357, allocations: 12.91 kB / 332.3 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004061/0.3361, allocations: 192.8 kB / 332.5 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3361, allocations: 2.438 kB / 332.5 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3361, allocations: 1.188 kB / 332.5 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.3361, allocations: 7.984 kB / 332.5 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007806/0.3369, allocations: 0.5951 MB / 333.1 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3369, allocations: 0 / 333.1 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.3e-05/0.337, allocations: 18.62 kB / 333.1 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.337, allocations: 5.031 kB / 333.1 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.337, allocations: 9.141 kB / 333.2 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.337, allocations: 1.125 kB / 333.2 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.337, allocations: 5.25 kB / 333.2 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003345/0.3374, allocations: 269.6 kB / 333.4 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.184e-05/0.3374, allocations: 100.9 kB / 333.5 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.3375, allocations: 4 kB / 333.5 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.155e-05/0.3376, allocations: 4 kB / 333.5 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.792e-05/0.3377, allocations: 19.97 kB / 333.6 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.3377, allocations: 8 kB / 333.6 MB, free: 10.93 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.165e-05/0.3377, allocations: 107.8 kB / 333.7 MB, free: 10.82 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3378, allocations: 0 / 333.7 MB, free: 10.82 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.3381, allocations: 55.83 kB / 333.7 MB, free: 10.77 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,step.localActive,transition1.enableFire,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 (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.0001659/0.3382, allocations: 107.2 kB / 333.8 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003218/0.3386, allocations: 187.7 kB / 334 MB, free: 10.47 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3386, allocations: 0 / 334 MB, free: 10.47 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.3387, allocations: 80.47 kB / 334.1 MB, free: 10.39 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.339, allocations: 31.92 kB / 334.1 MB, free: 10.36 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006292/0.3396, allocations: 406.3 kB / 334.5 MB, free: 9.938 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.3399, allocations: 0.7404 MB / 335.3 MB, free: 9.172 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.19e-05/0.34, allocations: 29.94 kB / 335.3 MB, free: 9.145 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.776e-05/0.3401, allocations: 23.42 kB / 335.3 MB, free: 9.121 MB / 270.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3401, allocations: 0 / 335.3 MB, free: 9.121 MB / 270.1 MB Notification: Performance of Templates: time 0.004783/0.3449, allocations: 1.72 MB / 337 MB, free: 7.402 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)