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.0009289/0.0009292, 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.001136/0.001136, 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 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 223.3 MB / 240 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2816/0.2816, allocations: 22.34 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003244, allocations: 8 kB / 382.6 MB, free: 9.879 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4015, allocations: 55.97 MB / 438.6 MB, free: 39.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.002829/0.4044, allocations: 1.703 MB / 440.3 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.406, allocations: 0.6392 MB / 440.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.4062, allocations: 6.75 kB / 440.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003409/0.4065, allocations: 38.25 kB / 441 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.4067, allocations: 34.48 kB / 441 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.4072, allocations: 130.1 kB / 441.1 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004262/0.4077, allocations: 281.2 kB / 441.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.4079, allocations: 80 kB / 441.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.4081, allocations: 105.1 kB / 441.6 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.4083, allocations: 100.7 kB / 441.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.098e-05/0.4084, allocations: 8.344 kB / 441.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.353e-05/0.4084, allocations: 8.719 kB / 441.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.4085, allocations: 61.33 kB / 441.8 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.209e-05/0.4086, allocations: 58.39 kB / 441.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.4089, allocations: 205.3 kB / 442 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4089, allocations: 0 / 442 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4089, allocations: 0 / 442 MB, free: 37.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.4089, allocations: 0 / 442 MB, free: 37.38 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.0014/0.4103, allocations: 0.5819 MB / 442.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.4104, allocations: 8.688 kB / 442.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.636e-05/0.4105, allocations: 34.89 kB / 442.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006772/0.4112, allocations: 300 kB / 442.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.4112, allocations: 17.94 kB / 442.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.4113, allocations: 20.16 kB / 443 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006213/0.4119, allocations: 261.1 kB / 443.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.4119, allocations: 0 / 443.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.302e-05/0.412, allocations: 7.953 kB / 443.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.412, allocations: 5.406 kB / 443.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006327/0.4126, allocations: 207.9 kB / 443.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.4142, allocations: 0.72 MB / 444.2 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.4154, allocations: 279.2 kB / 444.4 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003306/0.4157, allocations: 108.9 kB / 444.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.4158, allocations: 0 / 444.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.4158, allocations: 44.8 kB / 444.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.824e-06/0.4158, allocations: 0 / 444.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.004108/0.42, allocations: 0.9374 MB / 445.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.42, allocations: 113.7 kB / 445.6 MB, free: 35.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005479/0.4206, allocations: 265.5 kB / 445.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.4206, allocations: 28.45 kB / 445.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.4207, allocations: 161.6 kB / 446.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.523e-05/0.4208, allocations: 63.16 kB / 446.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.975e-05/0.4209, allocations: 4 kB / 446.1 MB, free: 35.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.844e-05/0.4209, allocations: 331.5 kB / 446.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.4213, allocations: 95.36 kB / 446.6 MB, free: 34.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.4217, allocations: 139.4 kB / 446.7 MB, free: 34.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/0.4221, allocations: 106.6 kB / 446.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.4221, allocations: 0 / 446.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007945/0.4229, allocations: 292.2 kB / 447.1 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/0.4229, allocations: 108.9 kB / 447.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.423, allocations: 0 / 447.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.423, allocations: 2.875 kB / 447.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/0.4235, allocations: 60.53 kB / 447.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.4235, allocations: 2.75 kB / 447.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000376/0.4239, allocations: 46.5 kB / 447.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.424, allocations: 9.5 kB / 447.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/0.424, allocations: 3.156 kB / 447.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003988/0.4244, allocations: 169.4 kB / 447.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.4244, allocations: 2.656 kB / 447.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.759e-06/0.4244, allocations: 0 / 447.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004018/0.4248, allocations: 57.69 kB / 447.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.4249, allocations: 2.812 kB / 447.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.4252, allocations: 37.75 kB / 447.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.4252, allocations: 5.844 kB / 447.6 MB, free: 34.23 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.0001808/0.4254, allocations: 217.6 kB / 447.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.392e-05/0.4255, allocations: 23.53 kB / 447.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001665/0.4272, allocations: 457.4 kB / 448.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.4272, allocations: 0 / 448.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.4272, allocations: 10.89 kB / 448.3 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4273, allocations: 0 / 448.3 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000484/0.4277, allocations: 320.1 kB / 448.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.4278, allocations: 3.984 kB / 448.6 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.428, allocations: 18.7 kB / 448.6 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008036/0.4288, allocations: 161.7 kB / 448.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.063e-05/0.4289, allocations: 6.938 kB / 448.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004363/0.4332, allocations: 2.328 MB / 451.1 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4333, allocations: 0 / 451.1 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.435, allocations: 0.6341 MB / 451.7 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.646e-05/0.4351, allocations: 100.7 kB / 451.8 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.135e-05/0.4352, allocations: 2.625 kB / 451.8 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004405/0.4356, allocations: 43.36 kB / 451.9 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.4357, allocations: 16.12 kB / 451.9 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.4357, allocations: 9.25 kB / 451.9 MB, free: 31.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004643/0.4362, allocations: 198.8 kB / 452.1 MB, free: 31.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4362, allocations: 0 / 452.1 MB, free: 31.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008066/0.4371, allocations: 88.09 kB / 452.2 MB, free: 31.3 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.0001385/0.4372, allocations: 104.7 kB / 452.3 MB, free: 31.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009736/0.4382, allocations: 310.9 kB / 452.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4382, allocations: 0 / 452.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008237/0.4391, allocations: 285.9 kB / 452.9 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006375/0.4397, allocations: 52.22 kB / 452.9 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.4412, allocations: 0.6132 MB / 453.5 MB, free: 30.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.4414, allocations: 0.7648 MB / 454.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002413/0.4417, allocations: 46.17 kB / 454.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.952e-05/0.4418, allocations: 15.97 kB / 454.4 MB, free: 29.85 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4418, allocations: 0 / 454.4 MB, free: 29.85 MB / 350.1 MB Notification: Performance of Templates: time 0.01013/0.452, allocations: 3.186 MB / 457.5 MB, free: 29.61 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile (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)