Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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.001413/0.001413, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001723/0.001723, allocations: 215.6 kB / 22.25 MB, free: 5.082 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.48/1.48, allocations: 230.6 MB / 256 MB, free: 8.035 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.1076/0.1076, allocations: 24.12 MB / 336.6 MB, free: 11.46 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_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",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.002209/0.002209, allocations: 63.91 kB / 473.3 MB, free: 6.418 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3675, allocations: 59.6 MB / 0.5204 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003595/0.3711, allocations: 2.32 MB / 0.5227 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.3722, allocations: 0.5597 MB / 0.5232 GB, free: 8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.3723, allocations: 8.219 kB / 0.5232 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.3725, allocations: 35.5 kB / 0.5233 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.3726, allocations: 54.84 kB / 0.5233 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.3728, allocations: 43.52 kB / 0.5234 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002886/0.3731, allocations: 221.7 kB / 0.5236 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.3733, allocations: 68.02 kB / 0.5236 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3734, allocations: 87.39 kB / 0.5237 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.3736, allocations: 99.73 kB / 0.5238 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/0.3736, allocations: 18.5 kB / 0.5238 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.044e-05/0.3737, allocations: 17.94 kB / 0.5238 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.74e-05/0.3737, allocations: 36.36 kB / 0.5239 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.3738, allocations: 100.2 kB / 0.524 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002769/0.3741, allocations: 216.2 kB / 0.5242 GB, free: 7.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3741, allocations: 0 / 0.5242 GB, free: 7.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3741, allocations: 1.125 kB / 0.5242 GB, free: 7.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.3741, allocations: 0 / 0.5242 GB, free: 7.508 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0005593/0.3747, allocations: 406.3 kB / 0.5246 GB, free: 7.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.3747, allocations: 9.609 kB / 0.5246 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.918e-05/0.3748, allocations: 54.12 kB / 0.5246 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.3748, allocations: 23.73 kB / 0.5247 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.375, allocations: 159.8 kB / 0.5248 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.375, allocations: 17.19 kB / 0.5248 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.3751, allocations: 16.19 kB / 0.5248 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003131/0.3754, allocations: 179.2 kB / 0.525 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.3754, allocations: 1.031 kB / 0.525 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.3754, allocations: 9.031 kB / 0.525 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.3754, allocations: 5.156 kB / 0.525 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/0.3757, allocations: 122.3 kB / 0.5251 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009844/0.3767, allocations: 0.6325 MB / 0.5258 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.377, allocations: 128.2 kB / 0.5259 GB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.3771, allocations: 60.95 kB / 0.5259 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.3772, allocations: 1.438 kB / 0.5259 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.3772, allocations: 38.45 kB / 0.526 GB, free: 6.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/0.3772, allocations: 0 / 0.526 GB, free: 6.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004192/0.3776, allocations: 179.5 kB / 0.5261 GB, free: 6.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.3776, allocations: 53.06 kB / 0.5262 GB, free: 6.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.224e-05/0.3777, allocations: 129.7 kB / 0.5263 GB, free: 5.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.3777, allocations: 27.72 kB / 0.5263 GB, free: 5.902 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.582e-05/0.3778, allocations: 135.6 kB / 0.5265 GB, free: 5.781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.3778, allocations: 62.84 kB / 0.5265 GB, free: 5.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.3779, allocations: 39.2 kB / 0.5266 GB, free: 5.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/0.3779, allocations: 321.8 kB / 0.5269 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.673e-05/0.378, allocations: 37.7 kB / 0.5269 GB, free: 5.371 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.3781, allocations: 70.2 kB / 0.527 GB, free: 5.324 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.3783, allocations: 124.3 kB / 0.5271 GB, free: 5.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3783, allocations: 4.906 kB / 0.5271 GB, free: 5.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002642/0.3786, allocations: 161.1 kB / 0.5273 GB, free: 5.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3786, allocations: 6.25 kB / 0.5273 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3786, allocations: 5.094 kB / 0.5273 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3786, allocations: 1.188 kB / 0.5273 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.3788, allocations: 47.39 kB / 0.5273 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3788, allocations: 1.688 kB / 0.5273 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.514e-05/0.3789, allocations: 20.88 kB / 0.5273 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.3789, allocations: 5.094 kB / 0.5273 GB, free: 5.133 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.491e-05/0.379, allocations: 130.1 kB / 0.5275 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.6e-05/0.379, allocations: 13.88 kB / 0.5275 GB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.559e-05/0.3791, allocations: 20.16 kB / 0.5275 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3791, allocations: 1.156 kB / 0.5275 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3791, allocations: 5.125 kB / 0.5275 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3791, allocations: 1.406 kB / 0.5275 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.3793, allocations: 225.6 kB / 0.5277 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3793, allocations: 3.984 kB / 0.5277 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.3795, allocations: 38.12 kB / 0.5278 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3795, allocations: 5.094 kB / 0.5278 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.3795, allocations: 1.781 kB / 0.5278 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3795, allocations: 5.281 kB / 0.5278 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3795, allocations: 4.594 kB / 0.5278 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000362/0.3799, allocations: 290.7 kB / 0.5281 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.776e-05/0.3799, allocations: 12.08 kB / 0.5281 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.3799, allocations: 2.797 kB / 0.5281 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.38, allocations: 9.047 kB / 0.5281 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.851e-05/0.3801, allocations: 7.5 kB / 0.5281 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.3801, allocations: 5.172 kB / 0.5281 GB, free: 4.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.015e-05/0.3801, allocations: 101.2 kB / 0.5282 GB, free: 4.465 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3801, allocations: 0 / 0.5282 GB, free: 4.465 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002776/0.3804, allocations: 51.06 kB / 0.5282 GB, free: 4.449 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,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 (16): * Single equations (assignments): 16 * 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.0004894/0.3809, allocations: 0.8211 MB / 0.529 GB, free: 3.719 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000247/0.3811, allocations: 109 kB / 0.5291 GB, free: 3.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3811, allocations: 0 / 0.5291 GB, free: 3.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.483e-05/0.3812, allocations: 51.67 kB / 0.5292 GB, free: 3.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.3815, allocations: 16.3 kB / 0.5292 GB, free: 3.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.3834, allocations: 1.927 MB / 0.5311 GB, free: 2.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.3835, allocations: 0.7231 MB / 0.5318 GB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.415e-05/0.3836, allocations: 20.86 kB / 0.5318 GB, free: 1.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.103e-05/0.3837, allocations: 48.3 kB / 0.5319 GB, free: 1.344 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3837, allocations: 0 / 0.5319 GB, free: 1.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.4147, allocations: 3.024 MB / 0.5348 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.44, allocations: 12.97 kB / 0.5348 GB, free: 0.8164 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop_res.csv --start-time 0 --stop-time 15000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.875 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.37359113200364] Failed to read output from testmodel.py, exit status != 0: 11.541551203998097 11.569048974 11.189441759 Calling exit ...