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.001366/0.001366, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001555/0.001555, allocations: 214.1 kB / 23.04 MB, free: 5.074 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.511/1.511, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.1248/0.1248, allocations: 22.94 MB / 336.2 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="cs",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="cs",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.002796/0.002796, allocations: 63.91 kB / 472.3 MB, free: 8.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3892, allocations: 59.28 MB / 0.5191 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003528/0.3928, allocations: 2.32 MB / 0.5214 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.3938, allocations: 0.5676 MB / 0.5219 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.3939, allocations: 3.156 kB / 0.5219 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.3941, allocations: 27.94 kB / 0.5219 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.3942, allocations: 63.39 kB / 0.522 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001648/0.3944, allocations: 43.92 kB / 0.522 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.3946, allocations: 224.9 kB / 0.5223 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.3948, allocations: 71.02 kB / 0.5223 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.3949, allocations: 84 kB / 0.5224 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001494/0.3951, allocations: 88.86 kB / 0.5225 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.3951, allocations: 17.78 kB / 0.5225 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.645e-05/0.3952, allocations: 17.84 kB / 0.5225 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.458e-05/0.3952, allocations: 38.78 kB / 0.5226 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.3953, allocations: 102.1 kB / 0.5227 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.3957, allocations: 216.8 kB / 0.5229 GB, free: 8.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3957, allocations: 0 / 0.5229 GB, free: 8.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3957, allocations: 4 kB / 0.5229 GB, free: 8.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.3957, allocations: 0 / 0.5229 GB, free: 8.242 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.0007327/0.3964, allocations: 402 kB / 0.5233 GB, free: 7.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.3965, allocations: 10.33 kB / 0.5233 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.679e-05/0.3965, allocations: 5.594 kB / 0.5233 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.679e-05/0.3966, allocations: 53.75 kB / 0.5233 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.079e-05/0.3966, allocations: 28.84 kB / 0.5234 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/0.397, allocations: 151 kB / 0.5235 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.397, allocations: 16.25 kB / 0.5235 GB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.3971, allocations: 22.06 kB / 0.5235 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/0.3976, allocations: 173.4 kB / 0.5237 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.3976, allocations: 1.953 kB / 0.5237 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.3976, allocations: 9.344 kB / 0.5237 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.3976, allocations: 9 kB / 0.5237 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004196/0.398, allocations: 121 kB / 0.5238 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.3995, allocations: 0.6338 MB / 0.5245 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004268/0.3999, allocations: 132 kB / 0.5246 GB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001979/0.4001, allocations: 64.42 kB / 0.5246 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.4002, allocations: 3.078 kB / 0.5246 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.4002, allocations: 32.09 kB / 0.5247 GB, free: 6.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 3.236e-06/0.4002, allocations: 0 / 0.5247 GB, free: 6.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.000633/0.4008, allocations: 175.5 kB / 0.5248 GB, free: 6.848 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.4009, allocations: 57.98 kB / 0.5249 GB, free: 6.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.401, allocations: 133.1 kB / 0.525 GB, free: 6.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.401, allocations: 26.83 kB / 0.525 GB, free: 6.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.407e-05/0.4011, allocations: 136.2 kB / 0.5252 GB, free: 6.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.629e-05/0.4011, allocations: 63.61 kB / 0.5252 GB, free: 6.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.5e-05/0.4012, allocations: 34.55 kB / 0.5253 GB, free: 6.438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.979e-05/0.4013, allocations: 322.3 kB / 0.5256 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.4014, allocations: 37.47 kB / 0.5256 GB, free: 6.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.4016, allocations: 74.64 kB / 0.5257 GB, free: 6.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.4019, allocations: 126.3 kB / 0.5258 GB, free: 5.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.4019, allocations: 1.031 kB / 0.5258 GB, free: 5.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004517/0.4024, allocations: 165 kB / 0.526 GB, free: 5.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.4024, allocations: 4.719 kB / 0.526 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.4024, allocations: 1.25 kB / 0.526 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.4024, allocations: 3.469 kB / 0.526 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00028/0.4027, allocations: 42.34 kB / 0.526 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.4027, allocations: 2.125 kB / 0.526 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.4028, allocations: 20.22 kB / 0.526 GB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.4029, allocations: 5.219 kB / 0.526 GB, free: 5.875 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 0.0001244/0.403, allocations: 139.9 kB / 0.5262 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.244e-05/0.4031, allocations: 9.297 kB / 0.5262 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.806e-05/0.4031, allocations: 14.06 kB / 0.5262 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.4031, allocations: 2.562 kB / 0.5262 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.4031, allocations: 0 / 0.5262 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4031, allocations: 2.859 kB / 0.5262 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003763/0.4035, allocations: 232.4 kB / 0.5264 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.4035, allocations: 1.156 kB / 0.5264 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003035/0.4038, allocations: 37.88 kB / 0.5265 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.4038, allocations: 5.031 kB / 0.5265 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.4038, allocations: 1.438 kB / 0.5265 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.4038, allocations: 1.219 kB / 0.5265 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4038, allocations: 0 / 0.5265 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006005/0.4044, allocations: 286.1 kB / 0.5267 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.546e-05/0.4045, allocations: 18.12 kB / 0.5268 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.4045, allocations: 4.969 kB / 0.5268 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001827/0.4047, allocations: 13.98 kB / 0.5268 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.433e-05/0.4047, allocations: 9.703 kB / 0.5268 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.4048, allocations: 3.719 kB / 0.5268 GB, free: 5.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.567e-05/0.4048, allocations: 96.88 kB / 0.5269 GB, free: 5.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4048, allocations: 0 / 0.5269 GB, free: 5.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005128/0.4053, allocations: 51.38 kB / 0.5269 GB, free: 5.195 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.0008038/0.4061, allocations: 0.8222 MB / 0.5277 GB, free: 4.465 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004023/0.4065, allocations: 103.3 kB / 0.5278 GB, free: 4.438 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.4065, allocations: 0 / 0.5278 GB, free: 4.438 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.4067, allocations: 50.72 kB / 0.5279 GB, free: 4.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004882/0.4072, allocations: 28.16 kB / 0.5279 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.4101, allocations: 1.915 MB / 0.5298 GB, free: 2.848 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001787/0.4103, allocations: 0.7241 MB / 0.5305 GB, free: 2.145 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.4104, allocations: 16.53 kB / 0.5305 GB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.913e-05/0.4105, allocations: 47.19 kB / 0.5305 GB, free: 2.105 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4105, allocations: 5.188 kB / 0.5306 GB, free: 2.102 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.4357, allocations: 3.071 MB / 0.5335 GB, free: 1.559 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.77, allocations: 10.89 kB / 0.5336 GB, free: 1.551 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop_fmu --startTime=0 --stopTime=15000 --stepSize=1.875 --timeout=50 --tolerance=1e-06 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.66604293702403] Failed to read output from testmodel.py, exit status != 0: 11.938443957013078 11.962085535 11.562026931 Calling exit ...