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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.466/1.466, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2076/0.2076, allocations: 22.34 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 55.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2893, allocations: 54.95 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003931/0.2933, allocations: 3.164 MB / 439 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.2946, allocations: 0.8905 MB / 439.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.2948, allocations: 12.81 kB / 439.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002077/0.295, allocations: 66.69 kB / 440 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.2952, allocations: 100.4 kB / 440.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.2956, allocations: 203.4 kB / 440.3 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003575/0.296, allocations: 465.3 kB / 440.8 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/0.2963, allocations: 210.2 kB / 441 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.2964, allocations: 169.3 kB / 441.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.2966, allocations: 187.7 kB / 441.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.2967, allocations: 36.78 kB / 441.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.516e-05/0.2967, allocations: 40 kB / 441.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.148e-05/0.2968, allocations: 88.42 kB / 441.5 MB, free: 36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.2969, allocations: 201.3 kB / 441.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.2973, allocations: 451.4 kB / 442.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2973, allocations: 2.625 kB / 442.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2973, allocations: 0 / 442.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.2973, allocations: 0 / 442.1 MB, free: 35.67 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.0008582/0.2982, allocations: 0.6872 MB / 442.8 MB, free: 35.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2982, allocations: 9.344 kB / 442.8 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.909e-05/0.2983, allocations: 75.22 kB / 442.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.776e-05/0.2983, allocations: 46.12 kB / 442.9 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.2986, allocations: 331.9 kB / 443.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.2987, allocations: 26.81 kB / 443.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.84e-05/0.2987, allocations: 39.12 kB / 443.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004909/0.2992, allocations: 366 kB / 443.7 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.2993, allocations: 0 / 443.7 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.2993, allocations: 21.67 kB / 443.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.2993, allocations: 7.281 kB / 443.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004321/0.2997, allocations: 257.5 kB / 444 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.3013, allocations: 1.305 MB / 445.3 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005965/0.3019, allocations: 290.6 kB / 445.5 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.3021, allocations: 120.5 kB / 445.7 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.3021, allocations: 3.141 kB / 445.7 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.3021, allocations: 37.2 kB / 445.7 MB, free: 33.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.443e-06/0.3021, allocations: 0 / 445.7 MB, free: 33.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006193/0.3028, allocations: 329.8 kB / 446 MB, free: 33.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.3028, allocations: 82.77 kB / 446.1 MB, free: 33.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.303, allocations: 273.4 kB / 446.4 MB, free: 32.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.303, allocations: 29.7 kB / 446.4 MB, free: 32.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.426e-05/0.3031, allocations: 208.2 kB / 446.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.828e-05/0.3032, allocations: 93.33 kB / 446.7 MB, free: 32.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.345e-05/0.3033, allocations: 60.66 kB / 446.8 MB, free: 32.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.799e-05/0.3033, allocations: 343.5 kB / 447.1 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.3035, allocations: 95.77 kB / 447.2 MB, free: 32.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.3037, allocations: 142.3 kB / 447.3 MB, free: 32.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003412/0.304, allocations: 250.2 kB / 447.6 MB, free: 31.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3041, allocations: 6.688 kB / 447.6 MB, free: 31.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004395/0.3045, allocations: 293.6 kB / 447.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3045, allocations: 6.156 kB / 447.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3045, allocations: 5.891 kB / 447.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.3046, allocations: 3.781 kB / 447.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.3048, allocations: 75.27 kB / 447.9 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3049, allocations: 3.094 kB / 447.9 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.305, allocations: 36.86 kB / 448 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.305, allocations: 12.16 kB / 448 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000187/0.3052, allocations: 188.6 kB / 448.2 MB, free: 31.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001376/0.3054, allocations: 132.5 kB / 448.3 MB, free: 31.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002744/0.3057, allocations: 222.9 kB / 448.5 MB, free: 31.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.303e-06/0.3057, allocations: 0 / 448.5 MB, free: 31.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003469/0.306, allocations: 282.9 kB / 448.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.685e-06/0.306, allocations: 5.812 kB / 448.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-06/0.306, allocations: 2.906 kB / 448.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.747e-06/0.3061, allocations: 6.828 kB / 448.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/0.3063, allocations: 61.75 kB / 448.9 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.3063, allocations: 3.25 kB / 448.9 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.3064, allocations: 24.16 kB / 448.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.3065, allocations: 12.91 kB / 448.9 MB, free: 31.26 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 8.515e-05/0.3066, allocations: 210.2 kB / 449.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.92e-05/0.3066, allocations: 26.12 kB / 449.2 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004602/0.3071, allocations: 273.3 kB / 449.4 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3071, allocations: 3.906 kB / 449.4 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.3071, allocations: 3.188 kB / 449.4 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3071, allocations: 0 / 449.4 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003658/0.3075, allocations: 407.2 kB / 449.8 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3075, allocations: 4 kB / 449.8 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.3078, allocations: 58.09 kB / 449.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3078, allocations: 0 / 449.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.3078, allocations: 10.78 kB / 449.9 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3078, allocations: 0 / 449.9 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3078, allocations: 2.75 kB / 449.9 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006266/0.3084, allocations: 472.1 kB / 450.4 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.505e-05/0.3086, allocations: 126.1 kB / 450.5 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.83e-05/0.3086, allocations: 4 kB / 450.5 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.3088, allocations: 16.42 kB / 450.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.514e-05/0.3088, allocations: 12.17 kB / 450.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.3089, allocations: 13.86 kB / 450.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000144/0.309, allocations: 189 kB / 450.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.309, allocations: 7.875 kB / 450.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004568/0.3095, allocations: 152.8 kB / 450.9 MB, free: 30.03 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 0.0007862/0.3103, allocations: 1.008 MB / 451.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00064/0.3109, allocations: 358.5 kB / 452.2 MB, free: 29.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3109, allocations: 0 / 452.2 MB, free: 29.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.3111, allocations: 117.6 kB / 452.3 MB, free: 29.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005517/0.3117, allocations: 70.86 kB / 452.4 MB, free: 29.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/0.3148, allocations: 3.048 MB / 455.5 MB, free: 26.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.3152, allocations: 0.7946 MB / 456.3 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.3154, allocations: 35.42 kB / 456.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.3156, allocations: 119.4 kB / 456.4 MB, free: 26.17 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3156, allocations: 0 / 456.4 MB, free: 26.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02744/0.343, allocations: 6.271 MB / 462.7 MB, free: 25.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.61/7.953, allocations: 9.375 kB / 462.7 MB, free: 25.52 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.25 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)