Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.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.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001212, allocations: 107.8 kB / 15.99 MB, free: 6.355 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.001275/0.001275, allocations: 199 kB / 16.91 MB, free: 6.188 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.213/1.213, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08371/0.08371, allocations: 22.32 MB / 313.1 MB, free: 8.93 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 68.98 kB / 380.9 MB, free: 40.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07356/0.07486, allocations: 54.96 MB / 435.9 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004656/0.07954, allocations: 3.185 MB / 439.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.08129, allocations: 0.8687 MB / 439.9 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003248/0.08164, allocations: 15.94 kB / 439.9 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002325/0.08188, allocations: 47.56 kB / 440 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000289/0.0822, allocations: 87.33 kB / 440.1 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/0.08259, allocations: 186.8 kB / 440.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.08299, allocations: 462.9 kB / 440.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002913/0.08329, allocations: 214.4 kB / 440.9 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.08344, allocations: 167.3 kB / 441.1 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.08362, allocations: 175.1 kB / 441.3 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.041e-05/0.08367, allocations: 44 kB / 441.3 MB, free: 7.922 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.891e-05/0.08373, allocations: 40 kB / 441.3 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.867e-05/0.08379, allocations: 87.62 kB / 441.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.08394, allocations: 210.9 kB / 441.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003016/0.08424, allocations: 339.2 kB / 442 MB, free: 7.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.08425, allocations: 0 / 442 MB, free: 7.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.08426, allocations: 4 kB / 442 MB, free: 7.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.08427, allocations: 0 / 442 MB, free: 7.254 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008566/0.08513, allocations: 0.6939 MB / 442.7 MB, free: 6.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.695e-05/0.08517, allocations: 11.97 kB / 442.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.171e-05/0.08524, allocations: 48.38 kB / 442.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.08557, allocations: 323.3 kB / 443 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.0856, allocations: 25.38 kB / 443.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.143e-05/0.08566, allocations: 40.38 kB / 443.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005645/0.08623, allocations: 372.2 kB / 443.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.08625, allocations: 0 / 443.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.08629, allocations: 16 kB / 443.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.08631, allocations: 8 kB / 443.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004544/0.08677, allocations: 259.8 kB / 443.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.08837, allocations: 1.315 MB / 445.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005653/0.08895, allocations: 286.8 kB / 445.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.08916, allocations: 129.3 kB / 445.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.0892, allocations: 240 / 445.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.08922, allocations: 38.8 kB / 445.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.072e-06/0.08923, allocations: 0 / 445.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006057/0.08984, allocations: 317.8 kB / 445.8 MB, free: 3.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.08989, allocations: 81.11 kB / 445.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.09011, allocations: 278.9 kB / 446.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.09014, allocations: 29.7 kB / 446.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.09026, allocations: 216.1 kB / 446.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.765e-05/0.09032, allocations: 90.64 kB / 446.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.09041, allocations: 61.61 kB / 446.5 MB, free: 2.414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.827e-05/0.09051, allocations: 338.8 kB / 446.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.0907, allocations: 88.83 kB / 447 MB, free: 1.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.0909, allocations: 146.8 kB / 447.1 MB, free: 1.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.09128, allocations: 245.9 kB / 447.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.09129, allocations: 0 / 447.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004662/0.09176, allocations: 306 kB / 447.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.09178, allocations: 8 kB / 447.7 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.09179, allocations: 0 / 447.7 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.09181, allocations: 4 kB / 447.7 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.09208, allocations: 67.89 kB / 447.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.0921, allocations: 4 kB / 447.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.09227, allocations: 39.89 kB / 447.8 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.0923, allocations: 12 kB / 447.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000203/0.09251, allocations: 188 kB / 448 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001618/0.09268, allocations: 147.8 kB / 448.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002755/0.09296, allocations: 214.2 kB / 448.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.335e-06/0.09297, allocations: 4 kB / 448.3 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003765/0.09335, allocations: 285 kB / 448.6 MB, free: 248 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.294e-06/0.09337, allocations: 6.188 kB / 448.6 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.09338, allocations: 4 kB / 448.6 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.566e-06/0.09339, allocations: 4 kB / 448.6 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.09363, allocations: 63.91 kB / 448.7 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.09364, allocations: 4 kB / 448.7 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.0938, allocations: 31.73 kB / 448.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.09382, allocations: 8.156 kB / 448.7 MB, free: 128 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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 0.0001152/0.09394, allocations: 208.1 kB / 448.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.094, allocations: 27.62 kB / 448.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004736/0.09448, allocations: 269.5 kB / 449.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.09449, allocations: 4 kB / 449.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.0945, allocations: 0 / 449.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.09451, allocations: 7.922 kB / 449.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003828/0.0949, allocations: 405.2 kB / 449.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.09491, allocations: 0 / 449.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.09523, allocations: 51.97 kB / 449.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.09525, allocations: 8 kB / 449.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.09527, allocations: 4 kB / 449.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.09528, allocations: 0 / 449.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.09528, allocations: 0 / 449.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006537/0.09594, allocations: 483.1 kB / 450.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.09606, allocations: 124.7 kB / 450.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.09611, allocations: 8 kB / 450.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.0963, allocations: 19.92 kB / 450.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.09635, allocations: 15.98 kB / 450.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.09637, allocations: 4 kB / 450.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001476/0.09652, allocations: 194 kB / 450.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09653, allocations: 4 kB / 450.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004209/0.09696, allocations: 147.4 kB / 450.7 MB, free: 14.08 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,Ccont.T) * 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 (28): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 9.589e-05/0.09706, allocations: 107.2 kB / 450.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006298/0.09769, allocations: 360.6 kB / 451.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.09771, allocations: 8 kB / 451.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001832/0.0979, allocations: 111.8 kB / 451.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.0984, allocations: 71.41 kB / 451.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.09961, allocations: 0.932 MB / 452.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.0999, allocations: 0.7953 MB / 453 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.372e-05/0.09999, allocations: 27.42 kB / 453.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1, allocations: 0 / 453.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of Templates: time 0.005051/0.1051, allocations: 3.892 MB / 456.9 MB, free: 7.73 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)