Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001051/0.001051, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001037/0.001037, allocations: 168.7 kB / 15.95 MB, free: 204 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.541/1.541, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0005016/0.0005016, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2763, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001533/0.2779, allocations: 1.393 MB / 327.9 MB, free: 300 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004907/0.2784, allocations: 279.8 kB / 328.1 MB, free: 72 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.288e-05/0.2785, allocations: 3.625 kB / 328.1 MB, free: 72 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 9.184e-05/0.2786, allocations: 15.59 kB / 328.2 MB, free: 60 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.206e-05/0.2786, allocations: 13.67 kB / 328.2 MB, free: 48 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000319/0.279, allocations: 90.47 kB / 328.3 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002796/0.2792, allocations: 235.1 kB / 328.5 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.2795, allocations: 147.7 kB / 328.6 MB, free: 15.74 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.847e-05/0.2796, allocations: 68.02 kB / 328.7 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.2797, allocations: 77.28 kB / 328.8 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.2798, allocations: 10.44 kB / 328.8 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.206e-05/0.2798, allocations: 20.67 kB / 328.8 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.391e-05/0.2799, allocations: 39.3 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.28, allocations: 56.48 kB / 328.9 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.2801, allocations: 162.1 kB / 329.1 MB, free: 15.44 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2801, allocations: 0 / 329.1 MB, free: 15.44 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2801, allocations: 0 / 329.1 MB, free: 15.44 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.2802, allocations: 3.938 kB / 329.1 MB, free: 15.43 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.0005484/0.2807, allocations: 448.9 kB / 329.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.2808, allocations: 9.688 kB / 329.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.2808, allocations: 27.3 kB / 329.5 MB, free: 14.97 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.281, allocations: 226.6 kB / 329.7 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/0.2811, allocations: 24.38 kB / 329.8 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.968e-05/0.2811, allocations: 26.06 kB / 329.8 MB, free: 14.71 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004479/0.2816, allocations: 280.8 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2816, allocations: 1.5 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.2816, allocations: 10.56 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.2817, allocations: 5.562 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.2819, allocations: 164.2 kB / 330.3 MB, free: 14.42 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.283, allocations: 0.9619 MB / 331.2 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.2832, allocations: 154.8 kB / 331.4 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.2834, allocations: 77.73 kB / 331.4 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.2834, allocations: 2.531 kB / 331.4 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.2836, allocations: 121.3 kB / 331.6 MB, free: 13.3 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.2836, allocations: 4 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004103/0.2841, allocations: 206.3 kB / 331.8 MB, free: 13.19 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.2841, allocations: 58.62 kB / 331.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.2842, allocations: 151.7 kB / 332 MB, free: 12.98 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.2843, allocations: 37.97 kB / 332 MB, free: 12.95 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.843e-05/0.2843, allocations: 143.4 kB / 332.1 MB, free: 12.81 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.2844, allocations: 52.08 kB / 332.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/0.2844, allocations: 9.031 kB / 332.2 MB, free: 12.76 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 9.444e-05/0.2845, allocations: 327 kB / 332.5 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.2846, allocations: 64.47 kB / 332.6 MB, free: 12.41 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.2848, allocations: 138.1 kB / 332.7 MB, free: 12.29 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.2849, allocations: 75.5 kB / 332.8 MB, free: 12.25 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2849, allocations: 0 / 332.8 MB, free: 12.25 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003422/0.2853, allocations: 245.3 kB / 333 MB, free: 12.12 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.2853, allocations: 10.09 kB / 333 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.2853, allocations: 1.594 kB / 333 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2853, allocations: 9.109 kB / 333.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.2855, allocations: 34.23 kB / 333.1 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.2855, allocations: 8.25 kB / 333.1 MB, free: 12.09 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.985e-05/0.2856, allocations: 23.66 kB / 333.1 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.2856, allocations: 22.45 kB / 333.1 MB, free: 12.07 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.0001292/0.2858, allocations: 162.2 kB / 333.3 MB, free: 11.92 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.128e-05/0.2858, allocations: 13.44 kB / 333.3 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003125/0.2861, allocations: 190.3 kB / 333.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.2861, allocations: 6.422 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2861, allocations: 0 / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2861, allocations: 1 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006486/0.2868, allocations: 0.5909 MB / 334.1 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.2868, allocations: 7.953 kB / 334.1 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.182e-05/0.2869, allocations: 22.8 kB / 334.1 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.2869, allocations: 1.188 kB / 334.1 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.2869, allocations: 6.5 kB / 334.1 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.2869, allocations: 1 kB / 334.1 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2869, allocations: 0 / 334.1 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.2872, allocations: 269 kB / 334.4 MB, free: 11.07 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-05/0.2873, allocations: 97.06 kB / 334.5 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.2873, allocations: 10.12 kB / 334.5 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.2874, allocations: 11.08 kB / 334.5 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.2875, allocations: 22.25 kB / 334.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.2875, allocations: 4.281 kB / 334.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.16e-05/0.2876, allocations: 95.3 kB / 334.6 MB, free: 10.85 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2876, allocations: 0 / 334.6 MB, free: 10.85 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003101/0.2879, allocations: 50.72 kB / 334.7 MB, free: 10.83 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.0001409/0.288, allocations: 113.4 kB / 334.8 MB, free: 10.73 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003031/0.2883, allocations: 184.3 kB / 335 MB, free: 10.58 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2884, allocations: 0 / 335 MB, free: 10.58 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.2885, allocations: 79.91 kB / 335.1 MB, free: 10.5 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.2888, allocations: 16.42 kB / 335.1 MB, free: 10.49 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006036/0.2894, allocations: 396.3 kB / 335.5 MB, free: 10.07 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.2897, allocations: 0.7328 MB / 336.2 MB, free: 9.316 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.463e-05/0.2898, allocations: 29.94 kB / 336.2 MB, free: 9.289 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.2898, allocations: 19.44 kB / 336.2 MB, free: 9.27 MB / 270.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2898, allocations: 4 kB / 336.2 MB, free: 9.266 MB / 270.1 MB Notification: Performance of Templates: time 0.004749/0.2946, allocations: 1.645 MB / 337.9 MB, free: 7.621 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)