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.001302/0.001302, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001499/0.001499, allocations: 218.4 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.476/1.476, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.1064/0.1064, allocations: 22.94 MB / 336.2 MB, free: 12.6 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.00221/0.00221, allocations: 59.91 kB / 472.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3397, allocations: 59.29 MB / 0.5191 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004564/0.3442, allocations: 3.219 MB / 0.5222 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.3463, allocations: 0.94 MB / 0.5232 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007152/0.347, allocations: 13 kB / 0.5232 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003645/0.3474, allocations: 64.12 kB / 0.5232 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006144/0.348, allocations: 109.2 kB / 0.5233 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008548/0.3488, allocations: 205.6 kB / 0.5235 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008517/0.3497, allocations: 482.7 kB / 0.524 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004183/0.3501, allocations: 155.5 kB / 0.5241 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003647/0.3505, allocations: 166.8 kB / 0.5243 GB, free: 7.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003101/0.3508, allocations: 183.4 kB / 0.5245 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-05/0.3509, allocations: 42.56 kB / 0.5245 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.353e-05/0.3509, allocations: 43.12 kB / 0.5246 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.045e-05/0.351, allocations: 89.77 kB / 0.5246 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.3512, allocations: 202.3 kB / 0.5248 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000609/0.3518, allocations: 469.3 kB / 0.5253 GB, free: 6.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3518, allocations: 0 / 0.5253 GB, free: 6.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3518, allocations: 1.062 kB / 0.5253 GB, free: 6.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.3518, allocations: 0 / 0.5253 GB, free: 6.629 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.00101/0.3528, allocations: 0.6323 MB / 0.5259 GB, free: 6.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.3529, allocations: 10.89 kB / 0.5259 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.1e-05/0.3529, allocations: 9.125 kB / 0.5259 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.849e-05/0.353, allocations: 74.41 kB / 0.526 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.3531, allocations: 48.94 kB / 0.526 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005167/0.3536, allocations: 272.6 kB / 0.5263 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.332e-05/0.3536, allocations: 26.69 kB / 0.5263 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/0.3537, allocations: 31.06 kB / 0.5264 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007142/0.3544, allocations: 385.8 kB / 0.5267 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.3544, allocations: 0 / 0.5267 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.3545, allocations: 16.31 kB / 0.5267 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.3545, allocations: 8.094 kB / 0.5267 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005807/0.3551, allocations: 254.5 kB / 0.527 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.3569, allocations: 1.259 MB / 0.5282 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006717/0.3576, allocations: 280.3 kB / 0.5285 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.3578, allocations: 111.9 kB / 0.5286 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.3578, allocations: 4.234 kB / 0.5286 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.3579, allocations: 32.8 kB / 0.5286 GB, free: 4.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.074e-06/0.3579, allocations: 0 / 0.5286 GB, free: 4.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007791/0.3586, allocations: 331.3 kB / 0.5289 GB, free: 4.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.3587, allocations: 107 kB / 0.529 GB, free: 4.176 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.359, allocations: 274.9 kB / 0.5293 GB, free: 4.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.359, allocations: 31.08 kB / 0.5293 GB, free: 3.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.3591, allocations: 213.8 kB / 0.5295 GB, free: 3.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.988e-05/0.3592, allocations: 95.56 kB / 0.5296 GB, free: 3.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.967e-05/0.3593, allocations: 60.08 kB / 0.5297 GB, free: 3.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.3594, allocations: 346.9 kB / 0.53 GB, free: 3.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.3596, allocations: 92.09 kB / 0.5301 GB, free: 3.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.3598, allocations: 155.3 kB / 0.5303 GB, free: 3.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.3602, allocations: 252 kB / 0.5305 GB, free: 3.055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3602, allocations: 1.375 kB / 0.5305 GB, free: 3.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005684/0.3608, allocations: 301.4 kB / 0.5308 GB, free: 2.918 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3608, allocations: 6.375 kB / 0.5308 GB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.3608, allocations: 1.281 kB / 0.5308 GB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.3608, allocations: 4.453 kB / 0.5308 GB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.3611, allocations: 71.33 kB / 0.5309 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.3611, allocations: 6.25 kB / 0.5309 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/0.3613, allocations: 37.45 kB / 0.5309 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.3613, allocations: 12.73 kB / 0.5309 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002287/0.3616, allocations: 180.6 kB / 0.5311 GB, free: 2.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000195/0.3618, allocations: 149.4 kB / 0.5312 GB, free: 2.641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002962/0.3621, allocations: 217 kB / 0.5314 GB, free: 2.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.374e-06/0.3621, allocations: 5.156 kB / 0.5314 GB, free: 2.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004389/0.3625, allocations: 278.2 kB / 0.5317 GB, free: 2.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.3625, allocations: 5.25 kB / 0.5317 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.3625, allocations: 2.25 kB / 0.5317 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.662e-06/0.3625, allocations: 3.906 kB / 0.5317 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.3628, allocations: 65.56 kB / 0.5318 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.3628, allocations: 3.984 kB / 0.5318 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.363, allocations: 29.2 kB / 0.5318 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.363, allocations: 9.078 kB / 0.5318 GB, free: 2.336 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 0.0001209/0.3631, allocations: 201.6 kB / 0.532 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.3632, allocations: 31.3 kB / 0.5321 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005604/0.3638, allocations: 274 kB / 0.5323 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3638, allocations: 5.156 kB / 0.5323 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3638, allocations: 0.9688 kB / 0.5323 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3638, allocations: 5.266 kB / 0.5323 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004339/0.3642, allocations: 373.3 kB / 0.5327 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3642, allocations: 1.172 kB / 0.5327 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002913/0.3645, allocations: 57.44 kB / 0.5327 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.3645, allocations: 1.938 kB / 0.5327 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.3645, allocations: 5.594 kB / 0.5327 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.3645, allocations: 1.062 kB / 0.5327 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3645, allocations: 2.156 kB / 0.5327 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000716/0.3652, allocations: 470.5 kB / 0.5332 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.3654, allocations: 50.16 kB / 0.5332 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/0.3654, allocations: 5.781 kB / 0.5332 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.3656, allocations: 16.06 kB / 0.5333 GB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.73e-05/0.3657, allocations: 21.38 kB / 0.5333 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.3657, allocations: 4.719 kB / 0.5333 GB, free: 1.406 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.3659, allocations: 200.4 kB / 0.5335 GB, free: 1.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3659, allocations: 0.5312 kB / 0.5335 GB, free: 1.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005541/0.3664, allocations: 152.3 kB / 0.5336 GB, free: 1.242 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.0008311/0.3673, allocations: 1.006 MB / 0.5346 GB, free: 448 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006473/0.3679, allocations: 322.6 kB / 0.5349 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3679, allocations: 0 / 0.5349 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001958/0.3681, allocations: 118.2 kB / 0.535 GB, free: 300 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004904/0.3686, allocations: 72.17 kB / 0.5351 GB, free: 272 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.373, allocations: 3.032 MB / 0.5381 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.3735, allocations: 0.7899 MB / 0.5388 GB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002077/0.3737, allocations: 38.95 kB / 0.5389 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.3739, allocations: 117.4 kB / 0.539 GB, free: 13.45 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3739, allocations: 0 / 0.539 GB, free: 13.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03608/0.41, allocations: 6.729 MB / 0.5455 GB, free: 11.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.13, allocations: 7.234 kB / 0.5456 GB, free: 11.54 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: 15.108467878017109] Failed to read output from testmodel.py, exit status != 0: 12.29159332002746 12.306420737 11.951311224 Calling exit ...