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.001743/0.001743, allocations: 104.1 kB / 16.45 MB, free: 6.449 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.002109/0.002109, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.547/1.547, allocations: 230.6 MB / 252.8 MB, free: 9.105 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.11/0.11, allocations: 24.11 MB / 333 MB, free: 12.62 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.003161/0.003161, allocations: 63.91 kB / 467.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3566, allocations: 59.57 MB / 0.5151 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.004171/0.3608, allocations: 2.306 MB / 0.5173 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.3618, allocations: 0.566 MB / 0.5179 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.3619, allocations: 2.906 kB / 0.5179 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.3621, allocations: 29.06 kB / 0.5179 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.3622, allocations: 58.42 kB / 0.518 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001675/0.3624, allocations: 51.12 kB / 0.518 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.3627, allocations: 214.7 kB / 0.5182 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.3629, allocations: 73.78 kB / 0.5183 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.363, allocations: 83.73 kB / 0.5184 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.3631, allocations: 88.38 kB / 0.5184 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.724e-05/0.3632, allocations: 17.25 kB / 0.5185 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.743e-05/0.3632, allocations: 21.75 kB / 0.5185 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.404e-05/0.3633, allocations: 36.78 kB / 0.5185 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.3634, allocations: 101.9 kB / 0.5186 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003649/0.3637, allocations: 215.9 kB / 0.5188 GB, free: 7.227 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3637, allocations: 0 / 0.5188 GB, free: 7.227 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3637, allocations: 0 / 0.5188 GB, free: 7.227 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.3638, allocations: 0 / 0.5188 GB, free: 7.227 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.000673/0.3644, allocations: 488.4 kB / 0.5193 GB, free: 6.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.754e-05/0.3645, allocations: 10.19 kB / 0.5193 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.634e-05/0.3646, allocations: 53.2 kB / 0.5193 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.14e-05/0.3646, allocations: 23.08 kB / 0.5194 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.365, allocations: 209.5 kB / 0.5196 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.365, allocations: 17.25 kB / 0.5196 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.65e-05/0.365, allocations: 21.55 kB / 0.5196 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004045/0.3654, allocations: 174.1 kB / 0.5198 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.3655, allocations: 4.703 kB / 0.5198 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.3655, allocations: 10.44 kB / 0.5198 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3655, allocations: 4.656 kB / 0.5198 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003057/0.3658, allocations: 124.8 kB / 0.5199 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.3669, allocations: 0.6727 MB / 0.5206 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.3672, allocations: 120.3 kB / 0.5207 GB, free: 5.793 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.3673, allocations: 61.62 kB / 0.5207 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.3674, allocations: 1.375 kB / 0.5207 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.3674, allocations: 36.64 kB / 0.5208 GB, free: 5.723 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.3674, allocations: 5.375 kB / 0.5208 GB, free: 5.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004068/0.3678, allocations: 180.2 kB / 0.5209 GB, free: 5.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.412e-05/0.3678, allocations: 53.41 kB / 0.521 GB, free: 5.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.191e-05/0.3679, allocations: 126.5 kB / 0.5211 GB, free: 5.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.3679, allocations: 30.7 kB / 0.5211 GB, free: 5.422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.595e-05/0.368, allocations: 136.4 kB / 0.5213 GB, free: 5.301 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.368, allocations: 58.83 kB / 0.5213 GB, free: 5.254 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.368, allocations: 36.27 kB / 0.5214 GB, free: 5.227 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.021e-05/0.3681, allocations: 325.1 kB / 0.5217 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.903e-05/0.3682, allocations: 37.3 kB / 0.5217 GB, free: 4.895 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.3683, allocations: 71.66 kB / 0.5218 GB, free: 4.848 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001944/0.3685, allocations: 124.9 kB / 0.5219 GB, free: 4.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3685, allocations: 0.8438 kB / 0.5219 GB, free: 4.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002691/0.3688, allocations: 169.1 kB / 0.5221 GB, free: 4.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.3688, allocations: 6.531 kB / 0.5221 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3688, allocations: 0 / 0.5221 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3688, allocations: 2.625 kB / 0.5221 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.369, allocations: 38.98 kB / 0.5221 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.369, allocations: 6.359 kB / 0.5221 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.284e-05/0.3691, allocations: 20.28 kB / 0.5221 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.3691, allocations: 8.875 kB / 0.5221 GB, free: 4.656 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 8.065e-05/0.3692, allocations: 130.8 kB / 0.5223 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/0.3692, allocations: 13.83 kB / 0.5223 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.3693, allocations: 15.3 kB / 0.5223 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3693, allocations: 1.906 kB / 0.5223 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3693, allocations: 1.531 kB / 0.5223 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3693, allocations: 0.6562 kB / 0.5223 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.3695, allocations: 262.5 kB / 0.5225 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3695, allocations: 0 / 0.5225 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.3697, allocations: 38.78 kB / 0.5226 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3697, allocations: 5.281 kB / 0.5226 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.3698, allocations: 5.344 kB / 0.5226 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3698, allocations: 0.75 kB / 0.5226 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3698, allocations: 1.375 kB / 0.5226 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004524/0.3702, allocations: 287.4 kB / 0.5229 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.3703, allocations: 89.19 kB / 0.523 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.748e-05/0.3703, allocations: 5.906 kB / 0.523 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.3704, allocations: 6.094 kB / 0.523 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.3705, allocations: 16.66 kB / 0.523 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.3705, allocations: 7.344 kB / 0.523 GB, free: 3.949 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.279e-05/0.3705, allocations: 97.97 kB / 0.5231 GB, free: 3.871 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3705, allocations: 0 / 0.5231 GB, free: 3.871 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003083/0.3709, allocations: 58.47 kB / 0.5231 GB, free: 3.848 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.0006977/0.3716, allocations: 0.8155 MB / 0.5239 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003223/0.3719, allocations: 105.4 kB / 0.524 GB, free: 3.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3719, allocations: 4.25 kB / 0.524 GB, free: 3.086 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.372, allocations: 52.8 kB / 0.5241 GB, free: 3.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.3723, allocations: 12 kB / 0.5241 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.3745, allocations: 1.923 MB / 0.526 GB, free: 1.504 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000157/0.3747, allocations: 0.725 MB / 0.5267 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.954e-05/0.3748, allocations: 14.17 kB / 0.5267 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.195e-05/0.3748, allocations: 43.25 kB / 0.5267 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3748, allocations: 0 / 0.5267 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.4041, allocations: 2.844 MB / 0.5295 GB, free: 280 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.094/8.498, allocations: 6.344 kB / 0.5295 GB, free: 276 kB / 382.1 MB " [Timeout remaining time 651] (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: 11.434313990874216] Failed to read output from testmodel.py, exit status != 0: 8.56992616201751 8.590609786 8.223432062 Calling exit ...