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.001248/0.001248, allocations: 99.86 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.00124/0.001241, 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.42/1.42, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2562/0.2562, allocations: 22.33 MB / 313.3 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002994, allocations: 8 kB / 381.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3496, allocations: 55.98 MB / 437.8 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002655/0.3523, allocations: 2.609 MB / 440.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.3536, allocations: 0.8474 MB / 441.3 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.3538, allocations: 9.094 kB / 441.3 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.131e-05/0.3539, allocations: 41.75 kB / 441.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000434/0.3543, allocations: 128 kB / 441.4 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.3547, allocations: 150.2 kB / 441.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000405/0.3551, allocations: 316.1 kB / 441.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002734/0.3554, allocations: 155.3 kB / 442 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.3555, allocations: 122.3 kB / 442.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.3557, allocations: 143.7 kB / 442.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.568e-05/0.3557, allocations: 13.88 kB / 442.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.342e-05/0.3558, allocations: 16.44 kB / 442.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.47e-05/0.3558, allocations: 49.7 kB / 442.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.397e-05/0.3559, allocations: 94.39 kB / 442.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.3562, allocations: 324.2 kB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.3562, allocations: 0 / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3562, allocations: 0 / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3562, allocations: 4 kB / 442.8 MB, free: 36.13 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008262/0.357, allocations: 0.6291 MB / 443.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3571, allocations: 10.38 kB / 443.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.546e-05/0.3572, allocations: 45.69 kB / 443.5 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.3575, allocations: 319 kB / 443.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.3575, allocations: 23.03 kB / 443.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.3576, allocations: 34.03 kB / 443.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005525/0.3582, allocations: 367.9 kB / 444.2 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.3582, allocations: 3.953 kB / 444.2 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.245e-05/0.3582, allocations: 15.31 kB / 444.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.3582, allocations: 6.969 kB / 444.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000433/0.3587, allocations: 255.4 kB / 444.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.3602, allocations: 1.337 MB / 445.8 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.3608, allocations: 297.7 kB / 446.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.3609, allocations: 10.55 kB / 446.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.3609, allocations: 38.52 kB / 446.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.643e-06/0.3609, allocations: 0 / 446.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006069/0.3615, allocations: 340.4 kB / 446.5 MB, free: 33.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.3615, allocations: 79.95 kB / 446.6 MB, free: 33.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.3617, allocations: 269.2 kB / 446.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.3618, allocations: 29.7 kB / 446.9 MB, free: 33.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.49e-05/0.3619, allocations: 217.5 kB / 447.1 MB, free: 33.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.3619, allocations: 100.4 kB / 447.2 MB, free: 33.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.222e-05/0.362, allocations: 6.906 kB / 447.2 MB, free: 33.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.94e-05/0.362, allocations: 337.9 kB / 447.5 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.3622, allocations: 85.27 kB / 447.6 MB, free: 32.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.3624, allocations: 146.5 kB / 447.7 MB, free: 32.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.3626, allocations: 106.8 kB / 447.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3626, allocations: 2.625 kB / 447.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004324/0.363, allocations: 305.8 kB / 448.1 MB, free: 32.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.3632, allocations: 0.6175 MB / 448.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3632, allocations: 0 / 448.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3632, allocations: 7.016 kB / 448.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.3635, allocations: 70.7 kB / 448.8 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.3635, allocations: 10.88 kB / 448.8 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.3637, allocations: 29.73 kB / 448.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.3637, allocations: 13 kB / 448.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.713e-06/0.3637, allocations: 3.125 kB / 448.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003208/0.364, allocations: 223.9 kB / 449.1 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/0.364, allocations: 7 kB / 449.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.218e-06/0.3641, allocations: 2.75 kB / 449.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002277/0.3643, allocations: 61.73 kB / 449.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3643, allocations: 6.938 kB / 449.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.3644, allocations: 38.41 kB / 449.2 MB, free: 31.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.3645, allocations: 5.594 kB / 449.2 MB, free: 31.79 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001383/0.3646, allocations: 230.6 kB / 449.5 MB, free: 31.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.867e-05/0.3647, allocations: 34.75 kB / 449.5 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004738/0.3651, allocations: 278.9 kB / 449.8 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3652, allocations: 3.188 kB / 449.8 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3652, allocations: 0 / 449.8 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3652, allocations: 3.938 kB / 449.8 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003651/0.3656, allocations: 408.7 kB / 450.2 MB, free: 31.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3656, allocations: 0 / 450.2 MB, free: 31.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.3658, allocations: 57.41 kB / 450.2 MB, free: 31.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.3658, allocations: 2.531 kB / 450.2 MB, free: 31.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.3659, allocations: 4 kB / 450.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.3659, allocations: 9.984 kB / 450.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3659, allocations: 0 / 450.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006324/0.3665, allocations: 488.7 kB / 450.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.616e-05/0.3666, allocations: 127.8 kB / 450.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/0.3667, allocations: 6.062 kB / 450.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.3669, allocations: 26.97 kB / 450.9 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.416e-05/0.3669, allocations: 14.02 kB / 450.9 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.3669, allocations: 8.844 kB / 450.9 MB, free: 30.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.3671, allocations: 188.4 kB / 451.1 MB, free: 30.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3671, allocations: 2.812 kB / 451.1 MB, free: 30.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004456/0.3675, allocations: 146.2 kB / 451.2 MB, free: 30.54 MB / 350.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 (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.000128/0.3677, allocations: 114.3 kB / 451.3 MB, free: 30.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005743/0.3683, allocations: 334.9 kB / 451.7 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3683, allocations: 0.75 kB / 451.7 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001906/0.3685, allocations: 131.1 kB / 451.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004762/0.3689, allocations: 58.02 kB / 451.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.3703, allocations: 0.9313 MB / 452.8 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.3705, allocations: 0.8028 MB / 453.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001719/0.3707, allocations: 35.5 kB / 453.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.82e-05/0.3708, allocations: 27.88 kB / 453.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3708, allocations: 0 / 453.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of Templates: time 0.006009/0.3768, allocations: 2.835 MB / 456.5 MB, free: 28.74 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: