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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 106.2 kB / 16.45 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 216.2 kB / 19.43 MB, free: 3.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 252.8 MB, free: 8.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1103/0.1103, allocations: 24.13 MB / 333 MB, free: 12.61 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002893/0.002893, allocations: 65.94 kB / 467.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3609, allocations: 59.57 MB / 0.5151 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004288/0.3652, allocations: 3.198 MB / 0.5182 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.3668, allocations: 0.936 MB / 0.5191 GB, free: 6.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002695/0.3671, allocations: 17.47 kB / 0.5191 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.3673, allocations: 63.62 kB / 0.5192 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.3676, allocations: 105.2 kB / 0.5193 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004402/0.368, allocations: 194.6 kB / 0.5195 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000428/0.3685, allocations: 480.5 kB / 0.5199 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002807/0.3688, allocations: 158.8 kB / 0.5201 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.3689, allocations: 173.4 kB / 0.5202 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.3691, allocations: 178.8 kB / 0.5204 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.3692, allocations: 39 kB / 0.5204 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.983e-05/0.3692, allocations: 38.81 kB / 0.5205 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.612e-05/0.3693, allocations: 93.56 kB / 0.5206 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.3694, allocations: 202.2 kB / 0.5208 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004847/0.3699, allocations: 463.4 kB / 0.5212 GB, free: 5.648 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3699, allocations: 0 / 0.5212 GB, free: 5.648 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3699, allocations: 0 / 0.5212 GB, free: 5.648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3699, allocations: 0 / 0.5212 GB, free: 5.648 MB / 382.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.0009144/0.3708, allocations: 0.7105 MB / 0.5219 GB, free: 5.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3709, allocations: 10.8 kB / 0.5219 GB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.46e-05/0.371, allocations: 74.47 kB / 0.522 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.438e-05/0.371, allocations: 51.62 kB / 0.522 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.3714, allocations: 330.5 kB / 0.5223 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.3714, allocations: 23.41 kB / 0.5224 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.533e-05/0.3715, allocations: 36.08 kB / 0.5224 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005863/0.3721, allocations: 384.7 kB / 0.5228 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.3721, allocations: 0 / 0.5228 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.3721, allocations: 16.59 kB / 0.5228 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.3721, allocations: 7.562 kB / 0.5228 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.3726, allocations: 253.2 kB / 0.523 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.3743, allocations: 1.305 MB / 0.5243 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006427/0.3749, allocations: 281.9 kB / 0.5246 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/0.3751, allocations: 109 kB / 0.5247 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.3752, allocations: 3.797 kB / 0.5247 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.3752, allocations: 37.2 kB / 0.5247 GB, free: 3.277 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.502e-06/0.3752, allocations: 4 kB / 0.5247 GB, free: 3.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.000702/0.3759, allocations: 323.8 kB / 0.525 GB, free: 3.137 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3759, allocations: 114.1 kB / 0.5251 GB, free: 3.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.3762, allocations: 271.4 kB / 0.5254 GB, free: 2.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.3762, allocations: 26.83 kB / 0.5254 GB, free: 2.816 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.3763, allocations: 221.3 kB / 0.5256 GB, free: 2.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.774e-05/0.3764, allocations: 94.94 kB / 0.5257 GB, free: 2.559 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.686e-05/0.3765, allocations: 64.12 kB / 0.5258 GB, free: 2.516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.3766, allocations: 339.6 kB / 0.5261 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.3768, allocations: 94.94 kB / 0.5262 GB, free: 2.148 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.377, allocations: 154.4 kB / 0.5264 GB, free: 2.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004015/0.3774, allocations: 249 kB / 0.5266 GB, free: 1.887 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3774, allocations: 5.125 kB / 0.5266 GB, free: 1.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006132/0.378, allocations: 292.9 kB / 0.5269 GB, free: 1.754 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.378, allocations: 7.156 kB / 0.5269 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.378, allocations: 1.312 kB / 0.5269 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.378, allocations: 7.469 kB / 0.5269 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.3784, allocations: 71.62 kB / 0.527 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.3784, allocations: 2.156 kB / 0.527 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.3785, allocations: 29.45 kB / 0.527 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.3786, allocations: 12.31 kB / 0.527 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002159/0.3788, allocations: 186.2 kB / 0.5272 GB, free: 1.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001659/0.379, allocations: 140.8 kB / 0.5273 GB, free: 1.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002935/0.3792, allocations: 228.8 kB / 0.5275 GB, free: 1.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.853e-06/0.3792, allocations: 1.188 kB / 0.5275 GB, free: 1.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004114/0.3797, allocations: 281.2 kB / 0.5278 GB, free: 1.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.428e-06/0.3797, allocations: 7.234 kB / 0.5278 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-06/0.3797, allocations: 1.188 kB / 0.5278 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.489e-06/0.3797, allocations: 3.5 kB / 0.5278 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.3799, allocations: 67.02 kB / 0.5279 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.3799, allocations: 3.188 kB / 0.5279 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.3801, allocations: 33.69 kB / 0.5279 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.3801, allocations: 8.125 kB / 0.5279 GB, free: 1.168 MB / 382.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 9.909e-05/0.3802, allocations: 198.5 kB / 0.5281 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/0.3803, allocations: 30.81 kB / 0.5281 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005761/0.3809, allocations: 282.6 kB / 0.5284 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.3809, allocations: 7.625 kB / 0.5284 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3809, allocations: 0 / 0.5284 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.3809, allocations: 1.641 kB / 0.5284 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004381/0.3813, allocations: 402.3 kB / 0.5288 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3813, allocations: 1.062 kB / 0.5288 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.3816, allocations: 56.84 kB / 0.5289 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3816, allocations: 6.125 kB / 0.5289 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.3816, allocations: 6.016 kB / 0.5289 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3816, allocations: 1.094 kB / 0.5289 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3817, allocations: 1.094 kB / 0.5289 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006794/0.3823, allocations: 467.1 kB / 0.5293 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.283e-05/0.3824, allocations: 132.8 kB / 0.5294 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.888e-05/0.3825, allocations: 6.422 kB / 0.5294 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.3827, allocations: 13.72 kB / 0.5295 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.3827, allocations: 17.5 kB / 0.5295 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.3827, allocations: 9.844 kB / 0.5295 GB, free: 100 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.3829, allocations: 191.6 kB / 0.5297 GB, free: 15.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3829, allocations: 0 / 0.5297 GB, free: 15.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005719/0.3835, allocations: 144.1 kB / 0.5298 GB, free: 15.95 MB / 398.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.00133/0.3848, allocations: 1.014 MB / 0.5308 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008082/0.3856, allocations: 318.9 kB / 0.5311 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3856, allocations: 2.062 kB / 0.5311 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002376/0.3859, allocations: 115.8 kB / 0.5312 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.3864, allocations: 85.27 kB / 0.5313 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005216/0.3916, allocations: 3.031 MB / 0.5343 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005614/0.3922, allocations: 0.7936 MB / 0.535 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.3924, allocations: 35.97 kB / 0.5351 GB, free: 12.22 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.3927, allocations: 114.3 kB / 0.5352 GB, free: 12.14 MB / 398.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3927, allocations: 0 / 0.5352 GB, free: 12.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.427, allocations: 6.431 MB / 0.5414 GB, free: 10.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.603/9.03, allocations: 3.906 kB / 0.5415 GB, free: 10.49 MB / 398.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.874026824953035] Failed to read output from testmodel.py, exit status != 0: 9.104069968918338 9.118610136 8.745680944 Calling exit ...