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.00137/0.00137, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001597/0.001597, allocations: 211 kB / 23.03 MB, free: 4.926 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.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1021/0.1021, allocations: 22.94 MB / 336.1 MB, free: 12.44 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="cs",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="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.002017/0.002017, allocations: 67.91 kB / 472.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3834, allocations: 59.3 MB / 0.519 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004259/0.3877, allocations: 2.965 MB / 0.5219 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.3894, allocations: 0.8953 MB / 0.5228 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004134/0.3899, allocations: 18.03 kB / 0.5228 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003087/0.3902, allocations: 63.89 kB / 0.5229 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003811/0.3905, allocations: 109 kB / 0.523 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000591/0.3911, allocations: 198.2 kB / 0.5232 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005709/0.3917, allocations: 471.8 kB / 0.5236 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002931/0.392, allocations: 163.2 kB / 0.5238 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.3922, allocations: 176.3 kB / 0.5239 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002446/0.3924, allocations: 182.2 kB / 0.5241 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.947e-05/0.3925, allocations: 38.88 kB / 0.5241 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.866e-05/0.3926, allocations: 38.88 kB / 0.5242 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.35e-05/0.3926, allocations: 89.14 kB / 0.5243 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.3928, allocations: 167.9 kB / 0.5244 GB, free: 7.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005173/0.3933, allocations: 467 kB / 0.5249 GB, free: 6.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3933, allocations: 1.094 kB / 0.5249 GB, free: 6.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3933, allocations: 0 / 0.5249 GB, free: 6.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.3933, allocations: 0 / 0.5249 GB, free: 6.965 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.0009663/0.3943, allocations: 0.6341 MB / 0.5255 GB, free: 6.488 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3943, allocations: 19.36 kB / 0.5255 GB, free: 6.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.05e-05/0.3944, allocations: 9.375 kB / 0.5255 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.86e-05/0.3944, allocations: 75.28 kB / 0.5256 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.338e-05/0.3945, allocations: 47.56 kB / 0.5256 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.3949, allocations: 272.9 kB / 0.5259 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.3949, allocations: 27.34 kB / 0.5259 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.395, allocations: 35.62 kB / 0.526 GB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006309/0.3956, allocations: 452.8 kB / 0.5264 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.3956, allocations: 2.219 kB / 0.5264 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.684e-05/0.3957, allocations: 15.22 kB / 0.5264 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.3957, allocations: 13.16 kB / 0.5264 GB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005111/0.3962, allocations: 247.9 kB / 0.5267 GB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.398, allocations: 1.123 MB / 0.5277 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007024/0.3987, allocations: 278.1 kB / 0.528 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.3989, allocations: 120 kB / 0.5281 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.3989, allocations: 3.766 kB / 0.5281 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.399, allocations: 34.53 kB / 0.5282 GB, free: 4.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.613e-06/0.399, allocations: 0 / 0.5282 GB, free: 4.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.000699/0.3997, allocations: 323.8 kB / 0.5285 GB, free: 4.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.3997, allocations: 106.6 kB / 0.5286 GB, free: 4.512 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.4, allocations: 275.3 kB / 0.5288 GB, free: 4.352 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.4, allocations: 34.86 kB / 0.5289 GB, free: 4.312 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.4001, allocations: 218.8 kB / 0.5291 GB, free: 4.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.203e-05/0.4002, allocations: 95.19 kB / 0.5292 GB, free: 4.059 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.134e-05/0.4003, allocations: 62.92 kB / 0.5292 GB, free: 4.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.4004, allocations: 343.6 kB / 0.5296 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.4005, allocations: 92.38 kB / 0.5296 GB, free: 3.648 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.4008, allocations: 208.6 kB / 0.5298 GB, free: 3.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003921/0.4012, allocations: 255 kB / 0.5301 GB, free: 3.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4012, allocations: 0 / 0.5301 GB, free: 3.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005509/0.4017, allocations: 301.4 kB / 0.5304 GB, free: 3.184 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.4018, allocations: 6.844 kB / 0.5304 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.4018, allocations: 1.062 kB / 0.5304 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.4018, allocations: 3.969 kB / 0.5304 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.4021, allocations: 67.06 kB / 0.5305 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.4021, allocations: 3.078 kB / 0.5305 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.4023, allocations: 32.69 kB / 0.5305 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.4023, allocations: 12.44 kB / 0.5305 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002132/0.4025, allocations: 182.5 kB / 0.5307 GB, free: 3.031 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001708/0.4027, allocations: 205 kB / 0.5309 GB, free: 2.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000293/0.403, allocations: 215.1 kB / 0.5311 GB, free: 2.715 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.745e-06/0.403, allocations: 1.062 kB / 0.5311 GB, free: 2.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004483/0.4034, allocations: 285.9 kB / 0.5313 GB, free: 2.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/0.4034, allocations: 6.766 kB / 0.5314 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.696e-06/0.4034, allocations: 1.312 kB / 0.5314 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.298e-06/0.4034, allocations: 6.406 kB / 0.5314 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.4037, allocations: 66.95 kB / 0.5314 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4037, allocations: 3.406 kB / 0.5314 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.4039, allocations: 25.06 kB / 0.5314 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.4039, allocations: 9.609 kB / 0.5315 GB, free: 2.547 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 8.523e-05/0.404, allocations: 205.5 kB / 0.5317 GB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.404, allocations: 30.69 kB / 0.5317 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005334/0.4046, allocations: 280.1 kB / 0.532 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.321e-06/0.4046, allocations: 3.25 kB / 0.532 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4046, allocations: 5 kB / 0.532 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.4046, allocations: 2.625 kB / 0.532 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004701/0.4051, allocations: 330.6 kB / 0.5323 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4051, allocations: 0 / 0.5323 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003242/0.4054, allocations: 59.3 kB / 0.5323 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.4054, allocations: 7.469 kB / 0.5323 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.085e-05/0.4054, allocations: 7.125 kB / 0.5323 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.4054, allocations: 1.156 kB / 0.5323 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.4054, allocations: 0 / 0.5323 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009069/0.4063, allocations: 468 kB / 0.5328 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.4065, allocations: 58.44 kB / 0.5329 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.4065, allocations: 6.734 kB / 0.5329 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.4067, allocations: 18.7 kB / 0.5329 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.531e-05/0.4068, allocations: 14.7 kB / 0.5329 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.4068, allocations: 9.859 kB / 0.5329 GB, free: 1.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002302/0.407, allocations: 187.7 kB / 0.5331 GB, free: 1.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.407, allocations: 0 / 0.5331 GB, free: 1.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005455/0.4076, allocations: 153.5 kB / 0.5332 GB, free: 1.461 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.0009516/0.4085, allocations: 1.003 MB / 0.5342 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008924/0.4094, allocations: 323.6 kB / 0.5345 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4094, allocations: 0 / 0.5345 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.4096, allocations: 109.4 kB / 0.5346 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005815/0.4102, allocations: 69.17 kB / 0.5347 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004874/0.4151, allocations: 3.03 MB / 0.5376 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.4154, allocations: 194 kB / 0.5378 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002466/0.4157, allocations: 39.09 kB / 0.5379 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.4159, allocations: 117.3 kB / 0.538 GB, free: 14.29 MB / 398.1 MB Notification: Performance of SimCode: time 2.304e-06/0.4159, allocations: 1.281 kB / 0.538 GB, free: 14.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.4472, allocations: 6.904 MB / 0.5447 GB, free: 12.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.41, allocations: 4.25 kB / 0.5447 GB, free: 12.35 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control_fmu --startTime=0 --stopTime=2000 --stepSize=0.25 --timeout=50 --tolerance=1e-06 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: 15.386512499069795] Failed to read output from testmodel.py, exit status != 0: 12.57333566294983 12.59580845 12.198112445 Calling exit ...