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.001516/0.001516, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001685/0.001685, allocations: 206 kB / 23.01 MB, free: 4.625 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.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.1081/0.1081, allocations: 24.04 MB / 337.2 MB, free: 11.33 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.00232/0.00232, allocations: 63.91 kB / 473.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3392, allocations: 59.58 MB / 0.5209 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004416/0.3437, allocations: 2.966 MB / 0.5238 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.3454, allocations: 0.8884 MB / 0.5247 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002934/0.3457, allocations: 16.22 kB / 0.5247 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002577/0.346, allocations: 69.81 kB / 0.5248 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003392/0.3463, allocations: 103.8 kB / 0.5249 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005769/0.3469, allocations: 196 kB / 0.525 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005436/0.3474, allocations: 478.6 kB / 0.5255 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003066/0.3477, allocations: 148.4 kB / 0.5256 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.3479, allocations: 171 kB / 0.5258 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.3481, allocations: 162.7 kB / 0.526 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.027e-05/0.3482, allocations: 39.53 kB / 0.526 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-05/0.3482, allocations: 38.47 kB / 0.526 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.364e-05/0.3483, allocations: 89.59 kB / 0.5261 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.3484, allocations: 163.6 kB / 0.5263 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005149/0.3489, allocations: 469.8 kB / 0.5267 GB, free: 6.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3489, allocations: 0 / 0.5267 GB, free: 6.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3489, allocations: 0 / 0.5267 GB, free: 6.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.349, allocations: 1.281 kB / 0.5267 GB, free: 6.387 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.0009366/0.3499, allocations: 0.6395 MB / 0.5274 GB, free: 5.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.3499, allocations: 10.33 kB / 0.5274 GB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.27e-05/0.35, allocations: 77.5 kB / 0.5274 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.892e-05/0.3501, allocations: 49.02 kB / 0.5275 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.3506, allocations: 270.1 kB / 0.5277 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.3506, allocations: 27.94 kB / 0.5278 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-05/0.3507, allocations: 34.95 kB / 0.5278 GB, free: 5.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006797/0.3513, allocations: 456.8 kB / 0.5282 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3514, allocations: 0.9062 kB / 0.5282 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.3514, allocations: 15.5 kB / 0.5283 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.3514, allocations: 8.406 kB / 0.5283 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004676/0.3519, allocations: 255.5 kB / 0.5285 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.3536, allocations: 1.127 MB / 0.5296 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006893/0.3542, allocations: 273.2 kB / 0.5299 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.3545, allocations: 120.7 kB / 0.53 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.3545, allocations: 7.844 kB / 0.53 GB, free: 4.223 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.3545, allocations: 33.81 kB / 0.53 GB, free: 4.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.3545, allocations: 0 / 0.53 GB, free: 4.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007253/0.3553, allocations: 324.9 kB / 0.5303 GB, free: 4.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.3553, allocations: 105.4 kB / 0.5304 GB, free: 3.922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003041/0.3556, allocations: 280 kB / 0.5307 GB, free: 3.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.3556, allocations: 32.52 kB / 0.5307 GB, free: 3.723 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.3557, allocations: 221 kB / 0.5309 GB, free: 3.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.78e-05/0.3558, allocations: 99.97 kB / 0.531 GB, free: 3.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.286e-05/0.3559, allocations: 55.88 kB / 0.5311 GB, free: 3.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.091e-05/0.356, allocations: 343.4 kB / 0.5314 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.3562, allocations: 91.81 kB / 0.5315 GB, free: 3.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.3564, allocations: 208.5 kB / 0.5317 GB, free: 2.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004261/0.3568, allocations: 246.4 kB / 0.5319 GB, free: 2.738 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.3568, allocations: 4.5 kB / 0.5319 GB, free: 2.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005382/0.3574, allocations: 298.8 kB / 0.5322 GB, free: 2.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.3574, allocations: 9.875 kB / 0.5322 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3574, allocations: 1.031 kB / 0.5322 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.3574, allocations: 2.906 kB / 0.5322 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.3577, allocations: 67.64 kB / 0.5323 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.3577, allocations: 3.125 kB / 0.5323 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.3579, allocations: 32.72 kB / 0.5323 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.3579, allocations: 12.41 kB / 0.5324 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002256/0.3582, allocations: 182.6 kB / 0.5325 GB, free: 2.445 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001875/0.3584, allocations: 197.3 kB / 0.5327 GB, free: 2.273 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003248/0.3587, allocations: 222.7 kB / 0.5329 GB, free: 2.129 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.367e-06/0.3587, allocations: 0.5625 kB / 0.5329 GB, free: 2.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004578/0.3591, allocations: 287.4 kB / 0.5332 GB, free: 1.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.978e-06/0.3592, allocations: 5.094 kB / 0.5332 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3592, allocations: 2.906 kB / 0.5332 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.119e-06/0.3592, allocations: 2.531 kB / 0.5332 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.3594, allocations: 67 kB / 0.5333 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.199e-06/0.3594, allocations: 8.141 kB / 0.5333 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.3596, allocations: 24.38 kB / 0.5333 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.3596, allocations: 8.312 kB / 0.5333 GB, free: 1.961 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.794e-05/0.3597, allocations: 202.3 kB / 0.5335 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.551e-05/0.3597, allocations: 30.86 kB / 0.5335 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005279/0.3603, allocations: 279.2 kB / 0.5338 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.3603, allocations: 2.094 kB / 0.5338 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3603, allocations: 2.109 kB / 0.5338 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3603, allocations: 1.781 kB / 0.5338 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004716/0.3608, allocations: 337.4 kB / 0.5341 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3608, allocations: 0 / 0.5341 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.3611, allocations: 61.62 kB / 0.5342 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3611, allocations: 0 / 0.5342 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.3611, allocations: 15.06 kB / 0.5342 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3611, allocations: 5.062 kB / 0.5342 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3611, allocations: 0 / 0.5342 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007612/0.3619, allocations: 469.1 kB / 0.5347 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.362, allocations: 50.38 kB / 0.5347 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.364e-05/0.362, allocations: 7.109 kB / 0.5347 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.3622, allocations: 14.11 kB / 0.5347 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.817e-05/0.3623, allocations: 19.2 kB / 0.5347 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.3623, allocations: 8.969 kB / 0.5347 GB, free: 1.027 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002176/0.3625, allocations: 188.5 kB / 0.5349 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3625, allocations: 0 / 0.5349 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005467/0.3631, allocations: 152 kB / 0.5351 GB, free: 0.875 MB / 382.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.0008765/0.364, allocations: 1.007 MB / 0.5361 GB, free: 72 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007736/0.3647, allocations: 327.1 kB / 0.5364 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3647, allocations: 1 kB / 0.5364 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.365, allocations: 111.8 kB / 0.5365 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005577/0.3655, allocations: 75.42 kB / 0.5365 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004952/0.3705, allocations: 3.028 MB / 0.5395 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.3707, allocations: 186.5 kB / 0.5397 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002481/0.371, allocations: 37.84 kB / 0.5397 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.3712, allocations: 118.1 kB / 0.5398 GB, free: 13.69 MB / 398.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3712, allocations: 1.062 kB / 0.5398 GB, free: 13.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03966/0.4108, allocations: 7.163 MB / 0.5468 GB, free: 11.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.86, allocations: 8.219 kB / 0.5468 GB, free: 11.24 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.833507433068007] Failed to read output from testmodel.py, exit status != 0: 11.976201420649886 12.002467647 11.648431905 Calling exit ...