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.001375/0.001375, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001632/0.001632, allocations: 217.3 kB / 22.25 MB, free: 5.125 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.497/1.497, allocations: 230.6 MB / 256 MB, free: 7.969 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.1075/0.1075, allocations: 24.12 MB / 336.6 MB, free: 11.42 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.002131/0.002131, allocations: 67.91 kB / 473.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3108, allocations: 59.6 MB / 0.5204 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003736/0.3145, allocations: 3.223 MB / 0.5236 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.316, allocations: 0.9345 MB / 0.5245 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002345/0.3162, allocations: 16.81 kB / 0.5245 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.3165, allocations: 68.91 kB / 0.5246 GB, free: 7.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.3167, allocations: 104.7 kB / 0.5247 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004621/0.3172, allocations: 201.1 kB / 0.5249 GB, free: 6.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000438/0.3176, allocations: 477.6 kB / 0.5253 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.3179, allocations: 163.5 kB / 0.5255 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.318, allocations: 169.9 kB / 0.5256 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.3182, allocations: 174.4 kB / 0.5258 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.692e-05/0.3183, allocations: 39.16 kB / 0.5258 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.237e-05/0.3184, allocations: 43.19 kB / 0.5259 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.586e-05/0.3184, allocations: 97.66 kB / 0.526 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.3185, allocations: 205.8 kB / 0.5262 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005366/0.3191, allocations: 457.6 kB / 0.5266 GB, free: 5.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3191, allocations: 1.094 kB / 0.5266 GB, free: 5.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3191, allocations: 0 / 0.5266 GB, free: 5.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.3191, allocations: 0 / 0.5266 GB, free: 5.984 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.0009507/0.3201, allocations: 0.6358 MB / 0.5272 GB, free: 5.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3201, allocations: 9.297 kB / 0.5272 GB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.647e-05/0.3202, allocations: 75.2 kB / 0.5273 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.343e-05/0.3202, allocations: 48.19 kB / 0.5273 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.3207, allocations: 274.9 kB / 0.5276 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.3207, allocations: 27.12 kB / 0.5276 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.712e-05/0.3208, allocations: 36.09 kB / 0.5277 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005995/0.3214, allocations: 377.5 kB / 0.528 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.3214, allocations: 8 kB / 0.528 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.3214, allocations: 12.5 kB / 0.528 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3214, allocations: 8.031 kB / 0.5281 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000468/0.3219, allocations: 256 kB / 0.5283 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.3235, allocations: 1.251 MB / 0.5295 GB, free: 4.004 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006198/0.3241, allocations: 280.1 kB / 0.5298 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.3243, allocations: 115.8 kB / 0.5299 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.3244, allocations: 4.234 kB / 0.5299 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.3244, allocations: 37.11 kB / 0.5299 GB, free: 3.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.403e-06/0.3244, allocations: 0 / 0.5299 GB, free: 3.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006891/0.3251, allocations: 319 kB / 0.5302 GB, free: 3.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.3251, allocations: 110.8 kB / 0.5303 GB, free: 3.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.3253, allocations: 275 kB / 0.5306 GB, free: 3.371 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.3253, allocations: 35.02 kB / 0.5306 GB, free: 3.332 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.905e-05/0.3254, allocations: 223.1 kB / 0.5309 GB, free: 3.148 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.316e-05/0.3255, allocations: 94.36 kB / 0.5309 GB, free: 3.074 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.229e-05/0.3256, allocations: 60.11 kB / 0.531 GB, free: 3.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.917e-05/0.3256, allocations: 339.3 kB / 0.5313 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.3258, allocations: 95.55 kB / 0.5314 GB, free: 2.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.326, allocations: 155.4 kB / 0.5316 GB, free: 2.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.3264, allocations: 244.6 kB / 0.5318 GB, free: 2.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3264, allocations: 3.938 kB / 0.5318 GB, free: 2.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005149/0.3269, allocations: 301.7 kB / 0.5321 GB, free: 2.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3269, allocations: 7.281 kB / 0.5321 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.3269, allocations: 1.25 kB / 0.5321 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.327, allocations: 7.594 kB / 0.5321 GB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003007/0.3273, allocations: 71.91 kB / 0.5322 GB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3273, allocations: 2.375 kB / 0.5322 GB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.3275, allocations: 37.61 kB / 0.5322 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.3275, allocations: 7.719 kB / 0.5322 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002401/0.3277, allocations: 185.6 kB / 0.5324 GB, free: 2.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001914/0.3279, allocations: 149.1 kB / 0.5325 GB, free: 1.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003138/0.3282, allocations: 216.5 kB / 0.5327 GB, free: 1.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.954e-06/0.3282, allocations: 0.7188 kB / 0.5327 GB, free: 1.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0005073/0.3287, allocations: 286.1 kB / 0.533 GB, free: 1.711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.3288, allocations: 6.469 kB / 0.533 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3288, allocations: 1.312 kB / 0.533 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.991e-06/0.3288, allocations: 3.531 kB / 0.533 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.3291, allocations: 66.23 kB / 0.5331 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.3291, allocations: 7.594 kB / 0.5331 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.3292, allocations: 25.41 kB / 0.5331 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.3293, allocations: 12.19 kB / 0.5331 GB, free: 1.68 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.782e-05/0.3294, allocations: 202.6 kB / 0.5333 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.3294, allocations: 31.55 kB / 0.5334 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005124/0.3299, allocations: 278.9 kB / 0.5336 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.3299, allocations: 5.688 kB / 0.5336 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3299, allocations: 0 / 0.5336 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3299, allocations: 1.547 kB / 0.5336 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004215/0.3304, allocations: 366.7 kB / 0.534 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3304, allocations: 5.188 kB / 0.534 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002903/0.3307, allocations: 58.36 kB / 0.534 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3307, allocations: 1.344 kB / 0.534 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.3307, allocations: 5.625 kB / 0.5341 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.3307, allocations: 5.656 kB / 0.5341 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3307, allocations: 1.188 kB / 0.5341 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006543/0.3313, allocations: 466.6 kB / 0.5345 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3314, allocations: 53.98 kB / 0.5346 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.163e-05/0.3315, allocations: 7.156 kB / 0.5346 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.3317, allocations: 14.95 kB / 0.5346 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.102e-05/0.3317, allocations: 13.88 kB / 0.5346 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.3318, allocations: 10.95 kB / 0.5346 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.3319, allocations: 186.8 kB / 0.5348 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3319, allocations: 4 kB / 0.5348 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005218/0.3324, allocations: 152.7 kB / 0.5349 GB, free: 0.5898 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.001018/0.3335, allocations: 1.003 MB / 0.5359 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008727/0.3343, allocations: 329.9 kB / 0.5362 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3343, allocations: 1.094 kB / 0.5362 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.3346, allocations: 117 kB / 0.5363 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000608/0.3352, allocations: 75.19 kB / 0.5364 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004692/0.3399, allocations: 3.03 MB / 0.5394 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.3404, allocations: 0.79 MB / 0.5401 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002672/0.3406, allocations: 42.19 kB / 0.5402 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.3408, allocations: 114.7 kB / 0.5403 GB, free: 12.78 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3408, allocations: 0 / 0.5403 GB, free: 12.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03735/0.3782, allocations: 6.687 MB / 0.5468 GB, free: 10.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.78, allocations: 10.48 kB / 0.5468 GB, free: 10.72 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.722942139000224] Failed to read output from testmodel.py, exit status != 0: 11.895736500999192 11.924379773 11.599616084 Calling exit ...