Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001184/0.001184, allocations: 91.59 kB / 16.3 MB, free: 5.992 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.00141/0.00141, allocations: 181.3 kB / 17.2 MB, free: 5.906 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.59/1.59, allocations: 205.4 MB / 223.4 MB, free: 5.539 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.0004495/0.0004496, allocations: 12 kB / 280.1 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.289, allocations: 47.59 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001743/0.2908, allocations: 1.397 MB / 329.1 MB, free: 324 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005453/0.2913, allocations: 268.9 kB / 329.4 MB, free: 108 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.672e-05/0.2914, allocations: 3.75 kB / 329.4 MB, free: 108 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.2916, allocations: 23.61 kB / 329.4 MB, free: 88 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.052e-05/0.2916, allocations: 17.92 kB / 329.4 MB, free: 72 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.2919, allocations: 88.09 kB / 329.5 MB, free: 0 / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003068/0.2923, allocations: 157.7 kB / 329.6 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002583/0.2925, allocations: 141.9 kB / 329.8 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.929e-05/0.2926, allocations: 66.81 kB / 329.8 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.2928, allocations: 68.86 kB / 329.9 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.2928, allocations: 15.09 kB / 329.9 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.796e-05/0.2929, allocations: 24.67 kB / 329.9 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.658e-05/0.2929, allocations: 37.33 kB / 330 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.106e-05/0.293, allocations: 58.23 kB / 330 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001998/0.2932, allocations: 161.3 kB / 330.2 MB, free: 15.5 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2932, allocations: 0 / 330.2 MB, free: 15.5 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2932, allocations: 0 / 330.2 MB, free: 15.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2932, allocations: 0 / 330.2 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006526/0.2939, allocations: 449.6 kB / 330.6 MB, free: 15.06 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2939, allocations: 9.5 kB / 330.6 MB, free: 15.06 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.328e-05/0.294, allocations: 22.84 kB / 330.7 MB, free: 15.05 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.2943, allocations: 230.4 kB / 330.9 MB, free: 14.8 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/0.2943, allocations: 24.16 kB / 330.9 MB, free: 14.79 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.2944, allocations: 26.78 kB / 330.9 MB, free: 14.78 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004495/0.2948, allocations: 266.8 kB / 331.2 MB, free: 14.59 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.2949, allocations: 5.406 kB / 331.2 MB, free: 14.58 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.2949, allocations: 14.72 kB / 331.2 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.2949, allocations: 5.656 kB / 331.2 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003114/0.2952, allocations: 167.7 kB / 331.4 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.2965, allocations: 0.962 MB / 332.4 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.2968, allocations: 155 kB / 332.5 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.2969, allocations: 2.719 kB / 332.5 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.2971, allocations: 124.7 kB / 332.6 MB, free: 13.41 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.774e-06/0.2972, allocations: 0 / 332.6 MB, free: 13.41 MB / 270.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005135/0.2977, allocations: 206.2 kB / 332.8 MB, free: 13.3 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.2977, allocations: 68.09 kB / 332.9 MB, free: 13.23 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.2979, allocations: 146.5 kB / 333 MB, free: 13.09 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.373e-05/0.2979, allocations: 42.69 kB / 333.1 MB, free: 13.05 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.298, allocations: 142.1 kB / 333.2 MB, free: 12.92 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.047e-05/0.2981, allocations: 52.77 kB / 333.3 MB, free: 12.88 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.196e-05/0.2981, allocations: 5.438 kB / 333.3 MB, free: 12.87 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.2983, allocations: 330.2 kB / 333.6 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.2984, allocations: 60.84 kB / 333.7 MB, free: 12.52 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2986, allocations: 144.1 kB / 333.8 MB, free: 12.39 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.2987, allocations: 71.28 kB / 333.9 MB, free: 12.35 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2987, allocations: 1.438 kB / 333.9 MB, free: 12.35 MB / 270.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003932/0.2991, allocations: 247.7 kB / 334.1 MB, free: 12.22 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.2991, allocations: 6.625 kB / 334.1 MB, free: 12.22 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2992, allocations: 2.188 kB / 334.1 MB, free: 12.22 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.2992, allocations: 12.61 kB / 334.1 MB, free: 12.21 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.2993, allocations: 33.52 kB / 334.2 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.2994, allocations: 5.125 kB / 334.2 MB, free: 12.2 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.2995, allocations: 27.77 kB / 334.2 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.2995, allocations: 14.41 kB / 334.2 MB, free: 12.18 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.0001632/0.2997, allocations: 158.8 kB / 334.4 MB, free: 12.03 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.2997, allocations: 12.91 kB / 334.4 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004111/0.3001, allocations: 194.1 kB / 334.6 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.95e-05/0.3002, allocations: 2.406 kB / 334.6 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.3002, allocations: 5.141 kB / 334.6 MB, free: 11.9 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3002, allocations: 0 / 334.6 MB, free: 11.9 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007736/0.301, allocations: 0.5909 MB / 335.2 MB, free: 11.39 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.301, allocations: 0 / 335.2 MB, free: 11.39 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.647e-05/0.3011, allocations: 26.56 kB / 335.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3011, allocations: 6.188 kB / 335.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.3011, allocations: 5.188 kB / 335.2 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.3011, allocations: 1 kB / 335.2 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3011, allocations: 0 / 335.2 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.3015, allocations: 269.7 kB / 335.5 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.361e-05/0.3015, allocations: 93.3 kB / 335.6 MB, free: 11.07 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.3016, allocations: 9.422 kB / 335.6 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.3017, allocations: 12.23 kB / 335.6 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.016e-05/0.3018, allocations: 21.34 kB / 335.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.3018, allocations: 9.219 kB / 335.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of sorting global known variables: time 7.305e-05/0.3019, allocations: 98.98 kB / 335.7 MB, free: 10.95 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.3019, allocations: 0 / 335.7 MB, free: 10.95 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003147/0.3022, allocations: 54.84 kB / 335.8 MB, free: 10.93 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.0001865/0.3024, allocations: 109.3 kB / 335.9 MB, free: 10.84 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004056/0.3028, allocations: 177.8 kB / 336 MB, free: 10.76 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3028, allocations: 0 / 336 MB, free: 10.76 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.3029, allocations: 83.84 kB / 336.1 MB, free: 10.68 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.3032, allocations: 16 kB / 336.1 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006844/0.3039, allocations: 384.3 kB / 336.5 MB, free: 10.26 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.3042, allocations: 0.7406 MB / 337.3 MB, free: 9.492 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.037e-05/0.3043, allocations: 25.94 kB / 337.3 MB, free: 9.469 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.3044, allocations: 27.44 kB / 337.3 MB, free: 9.441 MB / 270.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3044, allocations: 0 / 337.3 MB, free: 9.441 MB / 270.1 MB Notification: Performance of Templates: time 0.004878/0.3093, allocations: 1.634 MB / 338.9 MB, free: 7.809 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) Environment - environmentSimulation: