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.0008612/0.0008611, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.005967/0.005967, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.398/1.398, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2025/0.2025, allocations: 22.35 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003275/0.0003275, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3517, allocations: 55.98 MB / 438.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003154/0.3549, allocations: 2.811 MB / 441.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.3565, allocations: 0.8659 MB / 442.2 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004022/0.357, allocations: 12.22 kB / 442.3 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002373/0.3572, allocations: 54.52 kB / 442.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003343/0.3576, allocations: 80.98 kB / 442.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003928/0.358, allocations: 173.8 kB / 442.6 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004497/0.3584, allocations: 449.2 kB / 443 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003654/0.3588, allocations: 190.2 kB / 443.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001864/0.359, allocations: 130.9 kB / 443.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.3592, allocations: 144.8 kB / 443.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/0.3593, allocations: 14.75 kB / 443.5 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.816e-05/0.3593, allocations: 15.59 kB / 443.5 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.803e-05/0.3594, allocations: 56.73 kB / 443.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.3595, allocations: 196.3 kB / 443.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.3598, allocations: 417.4 kB / 444.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3599, allocations: 3.188 kB / 444.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3599, allocations: 0 / 444.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.3599, allocations: 0 / 444.1 MB, free: 35.76 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.0009222/0.3608, allocations: 0.6271 MB / 444.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.3609, allocations: 13 kB / 444.8 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.361, allocations: 45.03 kB / 444.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003745/0.3613, allocations: 320.5 kB / 445.1 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.3614, allocations: 27.91 kB / 445.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.492e-05/0.3615, allocations: 35.97 kB / 445.2 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006207/0.3621, allocations: 382.6 kB / 445.6 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.3621, allocations: 0 / 445.6 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.618e-05/0.3622, allocations: 15.16 kB / 445.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.3622, allocations: 13.69 kB / 445.6 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005095/0.3627, allocations: 261.1 kB / 445.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.3644, allocations: 1.315 MB / 447.2 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006177/0.3651, allocations: 308.7 kB / 447.5 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.3653, allocations: 129.9 kB / 447.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.3653, allocations: 3.484 kB / 447.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.3653, allocations: 37.17 kB / 447.6 MB, free: 33.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.3653, allocations: 0 / 447.6 MB, free: 33.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006483/0.366, allocations: 339.1 kB / 448 MB, free: 33.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.366, allocations: 84.05 kB / 448 MB, free: 33.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.3663, allocations: 269.9 kB / 448.3 MB, free: 33.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.3663, allocations: 29.7 kB / 448.3 MB, free: 33.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3664, allocations: 218.2 kB / 448.6 MB, free: 32.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.326e-05/0.3665, allocations: 96.09 kB / 448.6 MB, free: 32.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.3665, allocations: 33.83 kB / 448.7 MB, free: 32.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.92e-05/0.3666, allocations: 342.9 kB / 449 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.3668, allocations: 91.7 kB / 449.1 MB, free: 32.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.367, allocations: 156.7 kB / 449.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.3674, allocations: 243.8 kB / 449.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.3674, allocations: 0 / 449.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004724/0.3679, allocations: 317.1 kB / 449.8 MB, free: 32.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.774e-05/0.3679, allocations: 140.4 kB / 449.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3679, allocations: 2.438 kB / 449.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.368, allocations: 2.5 kB / 449.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.3682, allocations: 70.5 kB / 450 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.3683, allocations: 5.625 kB / 450 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.3685, allocations: 42.27 kB / 450.1 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.3685, allocations: 9.125 kB / 450.1 MB, free: 31.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.765e-06/0.3685, allocations: 7.406 kB / 450.1 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003244/0.3688, allocations: 223.9 kB / 450.3 MB, free: 31.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3688, allocations: 0 / 450.3 MB, free: 31.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.037e-06/0.3688, allocations: 6.906 kB / 450.3 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.3691, allocations: 65.7 kB / 450.4 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.3691, allocations: 7.828 kB / 450.4 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.3693, allocations: 27.44 kB / 450.4 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.3693, allocations: 9.469 kB / 450.4 MB, free: 31.73 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.3694, allocations: 232.6 kB / 450.6 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.037e-05/0.3695, allocations: 36.41 kB / 450.7 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005027/0.37, allocations: 280 kB / 450.9 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.37, allocations: 2.625 kB / 451 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.37, allocations: 0 / 451 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.37, allocations: 3.375 kB / 451 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003493/0.3704, allocations: 399.5 kB / 451.3 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3704, allocations: 0 / 451.3 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.3707, allocations: 62.31 kB / 451.4 MB, free: 31.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3707, allocations: 3.719 kB / 451.4 MB, free: 31.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.3707, allocations: 8 kB / 451.4 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.3707, allocations: 0 / 451.4 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3707, allocations: 6.625 kB / 451.4 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006118/0.3713, allocations: 480.7 kB / 451.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.253e-05/0.3714, allocations: 130.2 kB / 452 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.578e-05/0.3715, allocations: 4 kB / 452 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.3717, allocations: 18.83 kB / 452 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.3717, allocations: 21 kB / 452.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.3717, allocations: 6.688 kB / 452.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001293/0.3719, allocations: 196.2 kB / 452.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3719, allocations: 0 / 452.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004345/0.3723, allocations: 147.2 kB / 452.4 MB, free: 30.48 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 (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.169e-05/0.3724, allocations: 104.7 kB / 452.5 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006019/0.373, allocations: 356.5 kB / 452.9 MB, free: 30.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.373, allocations: 0 / 452.9 MB, free: 30.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.3732, allocations: 112.2 kB / 453 MB, free: 30.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/0.3737, allocations: 80.14 kB / 453 MB, free: 30.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.375, allocations: 0.9748 MB / 454 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.3752, allocations: 0.7892 MB / 454.8 MB, free: 28.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.3754, allocations: 39.67 kB / 454.8 MB, free: 28.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.847e-05/0.3755, allocations: 23.31 kB / 454.9 MB, free: 28.85 MB / 350.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3755, allocations: 0 / 454.9 MB, free: 28.85 MB / 350.1 MB Notification: Performance of Templates: time 0.007385/0.3829, allocations: 2.939 MB / 457.8 MB, free: 28.64 MB / 350.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)