Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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) Running command: translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000967/0.0009672, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.001022/0.001022, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2608/0.2608, allocations: 22.34 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003435/0.0003437, allocations: 12 kB / 382.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3297, allocations: 55.97 MB / 438.5 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.001838/0.3316, allocations: 1.702 MB / 440.2 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009235/0.3325, allocations: 0.6322 MB / 440.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.3327, allocations: 3 kB / 440.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003196/0.333, allocations: 32.77 kB / 440.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.3332, allocations: 49.48 kB / 440.9 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.3335, allocations: 125.3 kB / 441 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002254/0.3337, allocations: 181.3 kB / 441.2 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.3339, allocations: 80.67 kB / 441.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.3341, allocations: 97.14 kB / 441.4 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.3342, allocations: 106.6 kB / 441.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.484e-05/0.3343, allocations: 8.656 kB / 441.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.527e-05/0.3343, allocations: 8.812 kB / 441.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.792e-05/0.3344, allocations: 52.27 kB / 441.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.3344, allocations: 61.8 kB / 441.6 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.3346, allocations: 204 kB / 441.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.3346, allocations: 4 kB / 441.8 MB, free: 37.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3346, allocations: 3.938 kB / 441.8 MB, free: 37.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.3346, allocations: 0 / 441.8 MB, free: 37.35 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001069/0.3357, allocations: 0.5793 MB / 442.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.3358, allocations: 7.781 kB / 442.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.047e-05/0.3358, allocations: 30.97 kB / 442.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004987/0.3363, allocations: 310.3 kB / 442.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.3364, allocations: 10.19 kB / 442.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.533e-05/0.3364, allocations: 22.66 kB / 442.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.3369, allocations: 257.2 kB / 443 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.3369, allocations: 4 kB / 443 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.897e-05/0.3369, allocations: 10.8 kB / 443 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.3369, allocations: 5.969 kB / 443 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003781/0.3373, allocations: 208.4 kB / 443.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.3384, allocations: 0.719 MB / 444 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007466/0.3392, allocations: 277.8 kB / 444.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.3392, allocations: 3.938 kB / 444.2 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.3393, allocations: 38.03 kB / 444.3 MB, free: 35.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.493e-06/0.3393, allocations: 7.938 kB / 444.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.002394/0.3417, allocations: 0.9325 MB / 445.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.3417, allocations: 108.7 kB / 445.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.3421, allocations: 260.8 kB / 445.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.3421, allocations: 36.8 kB / 445.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.507e-05/0.3422, allocations: 161.9 kB / 445.8 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/0.3423, allocations: 60.16 kB / 445.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.192e-05/0.3423, allocations: 4 kB / 445.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.412e-05/0.3424, allocations: 338.5 kB / 446.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.3425, allocations: 92.78 kB / 446.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.3428, allocations: 141 kB / 446.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.343, allocations: 108.1 kB / 446.5 MB, free: 34.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.343, allocations: 0 / 446.5 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004655/0.3435, allocations: 291.2 kB / 446.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.3436, allocations: 271.7 kB / 447 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.3436, allocations: 0 / 447 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.867e-05/0.3436, allocations: 2.656 kB / 447 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.3439, allocations: 66.52 kB / 447.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.3439, allocations: 0 / 447.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/0.3442, allocations: 53.17 kB / 447.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.3442, allocations: 5.812 kB / 447.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.263e-06/0.3442, allocations: 2.906 kB / 447.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002276/0.3444, allocations: 175 kB / 447.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-06/0.3444, allocations: 0 / 447.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.005e-06/0.3444, allocations: 3.344 kB / 447.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.3447, allocations: 51.3 kB / 447.4 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.296e-06/0.3447, allocations: 2.875 kB / 447.4 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.3449, allocations: 32.45 kB / 447.4 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.3449, allocations: 6.844 kB / 447.4 MB, free: 34.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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.000119/0.345, allocations: 220.5 kB / 447.7 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.16e-05/0.345, allocations: 24.55 kB / 447.7 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009283/0.346, allocations: 457.4 kB / 448.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.346, allocations: 2.875 kB / 448.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.346, allocations: 0 / 448.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.346, allocations: 0 / 448.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002852/0.3463, allocations: 323.9 kB / 448.4 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3463, allocations: 3.938 kB / 448.4 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.3464, allocations: 21.22 kB / 448.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004899/0.3469, allocations: 159.7 kB / 448.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.3469, allocations: 10.05 kB / 448.6 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002701/0.3497, allocations: 2.369 MB / 451 MB, free: 31.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3497, allocations: 0 / 451 MB, free: 31.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.3508, allocations: 0.645 MB / 451.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-05/0.3508, allocations: 94.98 kB / 451.7 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.3509, allocations: 14.12 kB / 451.8 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.3511, allocations: 34.14 kB / 451.8 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.3512, allocations: 18.88 kB / 451.8 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.3512, allocations: 2.375 kB / 451.8 MB, free: 31.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000264/0.3515, allocations: 198.3 kB / 452 MB, free: 31.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3515, allocations: 0 / 452 MB, free: 31.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004317/0.3519, allocations: 91.03 kB / 452.1 MB, free: 31.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.y) * 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 (9): * Single equations (assignments): 8 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001144/0.352, allocations: 101.5 kB / 452.2 MB, free: 31.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005401/0.3526, allocations: 311.9 kB / 452.5 MB, free: 30.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3526, allocations: 0 / 452.5 MB, free: 30.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004985/0.3531, allocations: 283.9 kB / 452.8 MB, free: 30.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.3534, allocations: 38.97 kB / 452.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009438/0.3544, allocations: 0.6346 MB / 453.4 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001906/0.3546, allocations: 0.7648 MB / 454.2 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001374/0.3547, allocations: 43.84 kB / 454.2 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.352e-05/0.3548, allocations: 16.69 kB / 454.3 MB, free: 29.67 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3548, allocations: 0 / 454.3 MB, free: 29.67 MB / 350.1 MB Notification: Performance of Templates: time 0.006622/0.3614, allocations: 3.18 MB / 457.4 MB, free: 29.45 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits -lv=LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1) Environment - environmentSimulation: