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.001372/0.001372, 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.001922/0.001922, allocations: 216.4 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.463/1.463, allocations: 230.6 MB / 256 MB, free: 8.016 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.1224/0.1224, allocations: 24.13 MB / 336.6 MB, free: 11.45 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.002715/0.002715, allocations: 67.89 kB / 473.3 MB, free: 6.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3294, allocations: 59.6 MB / 0.5204 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004182/0.3336, allocations: 3.219 MB / 0.5236 GB, free: 7.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3352, allocations: 0.937 MB / 0.5245 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/0.3354, allocations: 16.72 kB / 0.5245 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.3356, allocations: 69.3 kB / 0.5246 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002694/0.3359, allocations: 103.5 kB / 0.5247 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.3363, allocations: 210 kB / 0.5249 GB, free: 7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000426/0.3368, allocations: 474.6 kB / 0.5253 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.337, allocations: 165.1 kB / 0.5255 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.3372, allocations: 170.6 kB / 0.5256 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.3374, allocations: 178.6 kB / 0.5258 GB, free: 6.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.673e-05/0.3375, allocations: 39.34 kB / 0.5258 GB, free: 6.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.199e-05/0.3375, allocations: 38.97 kB / 0.5259 GB, free: 6.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.326e-05/0.3376, allocations: 88.69 kB / 0.526 GB, free: 6.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.3377, allocations: 207.7 kB / 0.5262 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004654/0.3382, allocations: 465.7 kB / 0.5266 GB, free: 6.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3382, allocations: 0 / 0.5266 GB, free: 6.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3382, allocations: 0 / 0.5266 GB, free: 6.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.3382, allocations: 4 kB / 0.5266 GB, free: 6.074 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.0009309/0.3391, allocations: 0.6315 MB / 0.5272 GB, free: 5.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3392, allocations: 14.95 kB / 0.5272 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.189e-05/0.3392, allocations: 74.5 kB / 0.5273 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.694e-05/0.3393, allocations: 47.72 kB / 0.5273 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004398/0.3398, allocations: 267.3 kB / 0.5276 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.3398, allocations: 28.17 kB / 0.5276 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.3398, allocations: 30.59 kB / 0.5277 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005839/0.3404, allocations: 384.6 kB / 0.528 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.3404, allocations: 1 kB / 0.528 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.3405, allocations: 15.69 kB / 0.528 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3405, allocations: 8.25 kB / 0.5281 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004763/0.341, allocations: 250 kB / 0.5283 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.3426, allocations: 1.257 MB / 0.5295 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006299/0.3432, allocations: 280.1 kB / 0.5298 GB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.3434, allocations: 111.8 kB / 0.5299 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.3434, allocations: 12.47 kB / 0.5299 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.543e-05/0.3435, allocations: 35.89 kB / 0.5299 GB, free: 3.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.663e-06/0.3435, allocations: 1.312 kB / 0.5299 GB, free: 3.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006616/0.3441, allocations: 322.6 kB / 0.5302 GB, free: 3.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.3442, allocations: 106.7 kB / 0.5303 GB, free: 3.625 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002292/0.3444, allocations: 275 kB / 0.5306 GB, free: 3.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.3444, allocations: 30.86 kB / 0.5306 GB, free: 3.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.934e-05/0.3445, allocations: 218.5 kB / 0.5308 GB, free: 3.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.338e-05/0.3446, allocations: 95.38 kB / 0.5309 GB, free: 3.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.245e-05/0.3446, allocations: 64.61 kB / 0.531 GB, free: 3.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.735e-05/0.3447, allocations: 342.2 kB / 0.5313 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.3449, allocations: 91.69 kB / 0.5314 GB, free: 2.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.3451, allocations: 159.6 kB / 0.5316 GB, free: 2.652 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003667/0.3454, allocations: 244.8 kB / 0.5318 GB, free: 2.504 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3455, allocations: 3.938 kB / 0.5318 GB, free: 2.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004779/0.3459, allocations: 298.1 kB / 0.5321 GB, free: 2.367 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3459, allocations: 11.22 kB / 0.5321 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.346, allocations: 5.125 kB / 0.5321 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.346, allocations: 7.422 kB / 0.5321 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.3463, allocations: 66.47 kB / 0.5322 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/0.3463, allocations: 4.281 kB / 0.5322 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.3465, allocations: 31.91 kB / 0.5322 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.3465, allocations: 12.44 kB / 0.5322 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002141/0.3467, allocations: 183.1 kB / 0.5324 GB, free: 2.203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001653/0.3469, allocations: 148.2 kB / 0.5325 GB, free: 2.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003197/0.3472, allocations: 216.4 kB / 0.5327 GB, free: 1.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.844e-06/0.3472, allocations: 4.438 kB / 0.5327 GB, free: 1.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004556/0.3476, allocations: 282.8 kB / 0.533 GB, free: 1.809 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.3476, allocations: 5.812 kB / 0.533 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.3477, allocations: 1.75 kB / 0.533 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.693e-06/0.3477, allocations: 8.016 kB / 0.533 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.3479, allocations: 66.03 kB / 0.5331 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.3479, allocations: 3.625 kB / 0.5331 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.3481, allocations: 25.45 kB / 0.5331 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.3481, allocations: 8.812 kB / 0.5331 GB, free: 1.781 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 7.808e-05/0.3482, allocations: 201.2 kB / 0.5333 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.226e-05/0.3482, allocations: 31.39 kB / 0.5334 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005054/0.3488, allocations: 279.5 kB / 0.5336 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.3488, allocations: 3.375 kB / 0.5336 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3488, allocations: 0 / 0.5336 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3488, allocations: 6.469 kB / 0.5336 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.3492, allocations: 372 kB / 0.534 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3492, allocations: 1.125 kB / 0.534 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.3495, allocations: 54.62 kB / 0.534 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.3495, allocations: 1.062 kB / 0.534 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.3495, allocations: 5.828 kB / 0.534 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3495, allocations: 5.188 kB / 0.534 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3495, allocations: 1.25 kB / 0.534 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006628/0.3501, allocations: 471.8 kB / 0.5345 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.879e-05/0.3502, allocations: 50.53 kB / 0.5345 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.3503, allocations: 5.094 kB / 0.5346 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.3505, allocations: 19.62 kB / 0.5346 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.3505, allocations: 19.33 kB / 0.5346 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.3506, allocations: 4.688 kB / 0.5346 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001593/0.3507, allocations: 190.8 kB / 0.5348 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3507, allocations: 1.25 kB / 0.5348 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005008/0.3512, allocations: 148.5 kB / 0.5349 GB, free: 0.6914 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.0008453/0.3521, allocations: 1.011 MB / 0.5359 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006796/0.3527, allocations: 325.8 kB / 0.5362 GB, free: 15.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3527, allocations: 5.312 kB / 0.5362 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.353, allocations: 108.6 kB / 0.5363 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.3535, allocations: 72.47 kB / 0.5364 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004191/0.3576, allocations: 3.039 MB / 0.5394 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/0.3581, allocations: 0.7942 MB / 0.5401 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002017/0.3583, allocations: 41.64 kB / 0.5402 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.3585, allocations: 113.6 kB / 0.5403 GB, free: 12.87 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3585, allocations: 1.344 kB / 0.5403 GB, free: 12.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0355/0.394, allocations: 6.676 MB / 0.5468 GB, free: 10.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.91, allocations: 12.03 kB / 0.5468 GB, free: 10.8 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 & /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: 14.691579004982486] Failed to read output from testmodel.py, exit status != 0: 12.02477486198768 12.048498741 11.706863195 Calling exit ...