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.0017/0.0017, allocations: 100.3 kB / 20.46 MB, free: 1.367 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 / 23.76 MB, free: 4.527 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.1116/0.1116, allocations: 24.03 MB / 338 MB, free: 11.36 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: translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") [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.00217/0.00217, allocations: 71.83 kB / 475.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3459, allocations: 59.57 MB / 0.5221 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.00388/0.3497, allocations: 2.973 MB / 0.525 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.3514, allocations: 0.8879 MB / 0.5259 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/0.3516, allocations: 13.59 kB / 0.5259 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.3518, allocations: 71.86 kB / 0.526 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.3521, allocations: 105.4 kB / 0.5261 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.3525, allocations: 196.3 kB / 0.5263 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.3529, allocations: 468.2 kB / 0.5267 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.3532, allocations: 153.4 kB / 0.5269 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.3534, allocations: 175.5 kB / 0.527 GB, free: 7.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002036/0.3536, allocations: 158 kB / 0.5272 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.614e-05/0.3536, allocations: 39.5 kB / 0.5272 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.847e-05/0.3537, allocations: 39.47 kB / 0.5273 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.533e-05/0.3538, allocations: 88.33 kB / 0.5273 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.3539, allocations: 163.1 kB / 0.5275 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005014/0.3544, allocations: 475.2 kB / 0.528 GB, free: 6.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.3544, allocations: 0 / 0.528 GB, free: 6.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3544, allocations: 1.25 kB / 0.528 GB, free: 6.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.3544, allocations: 0 / 0.528 GB, free: 6.75 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.000926/0.3553, allocations: 0.6317 MB / 0.5286 GB, free: 6.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3554, allocations: 10.08 kB / 0.5286 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.624e-05/0.3555, allocations: 52.44 kB / 0.5286 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.3559, allocations: 270.9 kB / 0.5289 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.3559, allocations: 27.19 kB / 0.5289 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.456e-05/0.356, allocations: 35.88 kB / 0.5289 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006166/0.3566, allocations: 458.5 kB / 0.5294 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.3566, allocations: 1.188 kB / 0.5294 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.3566, allocations: 12.28 kB / 0.5294 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3567, allocations: 7.938 kB / 0.5294 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005004/0.3572, allocations: 252.4 kB / 0.5296 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.3588, allocations: 1.071 MB / 0.5307 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006421/0.3594, allocations: 273.1 kB / 0.531 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.3596, allocations: 119.7 kB / 0.5311 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.208e-05/0.3597, allocations: 8.203 kB / 0.5311 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.3597, allocations: 45.38 kB / 0.5311 GB, free: 4.652 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.3597, allocations: 1.156 kB / 0.5311 GB, free: 4.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007062/0.3604, allocations: 319.8 kB / 0.5314 GB, free: 4.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.3604, allocations: 105.8 kB / 0.5315 GB, free: 4.395 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.3607, allocations: 258.3 kB / 0.5318 GB, free: 4.242 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.3607, allocations: 32.17 kB / 0.5318 GB, free: 4.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.3608, allocations: 219.1 kB / 0.532 GB, free: 4.027 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.351e-05/0.3609, allocations: 102.7 kB / 0.5321 GB, free: 3.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.939e-05/0.361, allocations: 55.36 kB / 0.5322 GB, free: 3.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.947e-05/0.361, allocations: 338.8 kB / 0.5325 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.3612, allocations: 96.16 kB / 0.5326 GB, free: 3.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002227/0.3614, allocations: 213.6 kB / 0.5328 GB, free: 3.367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003842/0.3618, allocations: 241.2 kB / 0.533 GB, free: 3.223 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3618, allocations: 1.062 kB / 0.533 GB, free: 3.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005261/0.3624, allocations: 305.4 kB / 0.5333 GB, free: 3.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.3624, allocations: 6.031 kB / 0.5333 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3624, allocations: 1.656 kB / 0.5333 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3624, allocations: 2.75 kB / 0.5333 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003088/0.3627, allocations: 71.28 kB / 0.5334 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3627, allocations: 4.125 kB / 0.5334 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.3629, allocations: 31.7 kB / 0.5334 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.3629, allocations: 12.22 kB / 0.5334 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002464/0.3632, allocations: 182.7 kB / 0.5336 GB, free: 2.926 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001981/0.3634, allocations: 198.5 kB / 0.5338 GB, free: 2.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003192/0.3637, allocations: 217.9 kB / 0.534 GB, free: 2.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.764e-06/0.3637, allocations: 0 / 0.534 GB, free: 2.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004417/0.3641, allocations: 285.2 kB / 0.5343 GB, free: 2.477 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/0.3641, allocations: 8.906 kB / 0.5343 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-06/0.3641, allocations: 0.5156 kB / 0.5343 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-06/0.3641, allocations: 7.875 kB / 0.5343 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.3644, allocations: 61.11 kB / 0.5343 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.3644, allocations: 4.016 kB / 0.5343 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.3646, allocations: 25.17 kB / 0.5344 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3646, allocations: 8.422 kB / 0.5344 GB, free: 2.449 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.042e-05/0.3647, allocations: 198.3 kB / 0.5346 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.594e-05/0.3647, allocations: 39.16 kB / 0.5346 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005219/0.3652, allocations: 273.3 kB / 0.5349 GB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3653, allocations: 3.438 kB / 0.5349 GB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3653, allocations: 5.125 kB / 0.5349 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.3653, allocations: 1.5 kB / 0.5349 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.3656, allocations: 281.4 kB / 0.5351 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3656, allocations: 0 / 0.5351 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002938/0.3659, allocations: 62.62 kB / 0.5352 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.3659, allocations: 5.188 kB / 0.5352 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.3659, allocations: 13.88 kB / 0.5352 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.3659, allocations: 1.25 kB / 0.5352 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3659, allocations: 1.062 kB / 0.5352 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006834/0.3666, allocations: 463.4 kB / 0.5357 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.3667, allocations: 59 kB / 0.5357 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.188e-05/0.3668, allocations: 6.641 kB / 0.5357 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.367, allocations: 13.8 kB / 0.5357 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.367, allocations: 19.25 kB / 0.5358 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.367, allocations: 8.625 kB / 0.5358 GB, free: 1.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001467/0.3672, allocations: 182.4 kB / 0.5359 GB, free: 1.445 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3672, allocations: 0 / 0.5359 GB, free: 1.445 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005211/0.3677, allocations: 149.6 kB / 0.5361 GB, free: 1.402 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 9.018e-05/0.3678, allocations: 107.8 kB / 0.5362 GB, free: 1.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006513/0.3684, allocations: 322.1 kB / 0.5365 GB, free: 1.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3684, allocations: 1.25 kB / 0.5365 GB, free: 1.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002031/0.3686, allocations: 108 kB / 0.5366 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004952/0.3691, allocations: 65.08 kB / 0.5367 GB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.3704, allocations: 0.7901 MB / 0.5374 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001557/0.3705, allocations: 189.4 kB / 0.5376 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.866e-05/0.3706, allocations: 25.53 kB / 0.5376 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3706, allocations: 0 / 0.5376 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of Templates: time 0.007351/0.378, allocations: 4.025 MB / 0.5416 GB, free: 15.85 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.makefile [Timeout 660] (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 & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.586178360041231] Failed to read output from testmodel.py, exit status != 0: 0.38769979774951935 0.416673012 0.056877739000000004 Calling exit ...