Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00173/0.00173, allocations: 193.7 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1963/0.1963, allocations: 22.36 MB / 312.4 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 71.89 kB / 381 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2596, allocations: 54.94 MB / 435.9 MB, free: 39.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.002849/0.2625, allocations: 1.882 MB / 437.8 MB, free: 38.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008149/0.2633, allocations: 0.583 MB / 438.4 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.401e-05/0.2634, allocations: 6.469 kB / 438.4 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.2637, allocations: 18.77 kB / 438.4 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.2638, allocations: 34.33 kB / 438.5 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.264, allocations: 101.1 kB / 438.5 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.2642, allocations: 219.3 kB / 438.8 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.2644, allocations: 60.2 kB / 438.8 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.922e-05/0.2645, allocations: 82.98 kB / 438.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.2646, allocations: 99.42 kB / 439 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.2646, allocations: 17.53 kB / 439 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.348e-05/0.2647, allocations: 15.34 kB / 439 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.106e-05/0.2647, allocations: 56.39 kB / 439.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.799e-05/0.2648, allocations: 75.31 kB / 439.2 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.2649, allocations: 178.2 kB / 439.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.265, allocations: 7.281 kB / 439.3 MB, free: 37.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.265, allocations: 0 / 439.3 MB, free: 37.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.265, allocations: 0 / 439.3 MB, free: 37.81 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0008727/0.2659, allocations: 0.5175 MB / 439.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.2659, allocations: 11.03 kB / 439.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.4e-05/0.266, allocations: 23.69 kB / 439.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/0.2663, allocations: 270.1 kB / 440.2 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.2664, allocations: 10.14 kB / 440.2 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.059e-05/0.2664, allocations: 12.19 kB / 440.2 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/0.2667, allocations: 177.9 kB / 440.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2667, allocations: 0 / 440.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.2667, allocations: 11.33 kB / 440.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.2667, allocations: 0 / 440.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002677/0.267, allocations: 124 kB / 440.5 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000754/0.2677, allocations: 0.5355 MB / 441 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004796/0.2682, allocations: 183.6 kB / 441.2 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.2684, allocations: 69.48 kB / 441.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.2684, allocations: 3.062 kB / 441.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.2684, allocations: 34.56 kB / 441.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.2684, allocations: 4 kB / 441.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001397/0.2698, allocations: 0.5376 MB / 441.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/0.2699, allocations: 80.48 kB / 441.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.2702, allocations: 213.7 kB / 442.1 MB, free: 36.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.2702, allocations: 25.7 kB / 442.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.599e-05/0.2702, allocations: 129.5 kB / 442.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.2703, allocations: 48.27 kB / 442.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.2703, allocations: 37.89 kB / 442.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.541e-05/0.2704, allocations: 329.4 kB / 442.7 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.2705, allocations: 69.97 kB / 442.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.2706, allocations: 86.36 kB / 442.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.2709, allocations: 143 kB / 443 MB, free: 35.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2709, allocations: 0 / 443 MB, free: 35.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003005/0.2712, allocations: 195.5 kB / 443.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2712, allocations: 3.031 kB / 443.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2712, allocations: 2.781 kB / 443.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.2712, allocations: 0 / 443.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.2715, allocations: 41.89 kB / 443.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.2715, allocations: 10.91 kB / 443.2 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.2717, allocations: 25.5 kB / 443.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.2717, allocations: 10.72 kB / 443.3 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001157/0.2718, allocations: 152.2 kB / 443.4 MB, free: 35.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.202e-05/0.2719, allocations: 75.2 kB / 443.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001379/0.2721, allocations: 123.1 kB / 443.6 MB, free: 35.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.52e-07/0.2721, allocations: 4.031 kB / 443.6 MB, free: 35.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization_lambda0): time 0.0002031/0.2723, allocations: 169.2 kB / 443.8 MB, free: 34.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.543e-06/0.2723, allocations: 5.406 kB / 443.8 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-06/0.2723, allocations: 3.938 kB / 443.8 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-06/0.2723, allocations: 0 / 443.8 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.2725, allocations: 36.45 kB / 443.8 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.326e-06/0.2725, allocations: 6.969 kB / 443.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.2727, allocations: 18.8 kB / 443.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-06/0.2727, allocations: 6.344 kB / 443.9 MB, free: 34.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 6.058e-05/0.2728, allocations: 195.1 kB / 444 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.798e-05/0.2728, allocations: 13.59 kB / 444.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005924/0.2734, allocations: 279.6 kB / 444.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2734, allocations: 0 / 444.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2734, allocations: 0 / 444.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2734, allocations: 3.328 kB / 444.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.2737, allocations: 271.6 kB / 444.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2737, allocations: 6.656 kB / 444.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.561e-05/0.2738, allocations: 15.88 kB / 444.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003139/0.2741, allocations: 92.75 kB / 444.7 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.2741, allocations: 3.938 kB / 444.7 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.2758, allocations: 1.841 MB / 446.6 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2758, allocations: 0 / 446.6 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000669/0.2765, allocations: 435.8 kB / 447 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.373e-05/0.2765, allocations: 93.7 kB / 447.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.607e-05/0.2765, allocations: 6.75 kB / 447.1 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.2767, allocations: 17.77 kB / 447.1 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.2768, allocations: 16.61 kB / 447.1 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.2768, allocations: 2.906 kB / 447.1 MB, free: 32.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.2771, allocations: 172.2 kB / 447.3 MB, free: 32.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2771, allocations: 0 / 447.3 MB, free: 32.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003393/0.2774, allocations: 57.31 kB / 447.3 MB, free: 32.29 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 8.58e-05/0.2775, allocations: 101 kB / 447.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003842/0.2779, allocations: 226.5 kB / 447.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2779, allocations: 0 / 447.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003095/0.2782, allocations: 201.9 kB / 447.9 MB, free: 31.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.2786, allocations: 33.12 kB / 447.9 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006351/0.2792, allocations: 465.7 kB / 448.3 MB, free: 31.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.2793, allocations: 0.7394 MB / 449.1 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.2795, allocations: 37.59 kB / 449.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.34e-05/0.2795, allocations: 16.12 kB / 449.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2795, allocations: 0 / 449.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of Templates: time 0.00453/0.284, allocations: 2.402 MB / 451.5 MB, free: 30.78 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_below_limit -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)