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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 105.8 kB / 16.45 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 196.6 kB / 19.41 MB, free: 3.676 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 247.8 MB, free: 13.97 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.09759/0.09759, allocations: 22.69 MB / 325.4 MB, free: 3.574 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002433/0.002433, allocations: 63.89 kB / 457.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1523, allocations: 58.01 MB / 0.5031 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.005701/0.158, allocations: 3.18 MB / 0.5062 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.1602, allocations: 0.9037 MB / 0.5071 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003984/0.1606, allocations: 8 kB / 0.5071 GB, free: 3.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003252/0.1609, allocations: 67.25 kB / 0.5072 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004124/0.1613, allocations: 115 kB / 0.5073 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000507/0.1618, allocations: 187.1 kB / 0.5075 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005535/0.1623, allocations: 474.9 kB / 0.5079 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003127/0.1627, allocations: 158.1 kB / 0.5081 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002103/0.1629, allocations: 163.3 kB / 0.5082 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.1631, allocations: 191 kB / 0.5084 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.732e-05/0.1632, allocations: 40 kB / 0.5084 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.116e-05/0.1633, allocations: 40 kB / 0.5085 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.775e-05/0.1633, allocations: 87.64 kB / 0.5086 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1635, allocations: 202.9 kB / 0.5087 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006035/0.1641, allocations: 466 kB / 0.5092 GB, free: 1.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1641, allocations: 0 / 0.5092 GB, free: 1.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1641, allocations: 4 kB / 0.5092 GB, free: 1.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.1641, allocations: 0 / 0.5092 GB, free: 1.418 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.001113/0.1653, allocations: 0.7052 MB / 0.5099 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1653, allocations: 12.03 kB / 0.5099 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.732e-05/0.1654, allocations: 70.72 kB / 0.51 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.796e-05/0.1655, allocations: 48.66 kB / 0.51 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000509/0.166, allocations: 339.4 kB / 0.5103 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.166, allocations: 25.38 kB / 0.5104 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.449e-05/0.1661, allocations: 36.33 kB / 0.5104 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2495/0.4156, allocations: 366.9 kB / 0.5107 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.4156, allocations: 2.5 kB / 0.5107 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.695e-05/0.4157, allocations: 15.72 kB / 0.5108 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.4157, allocations: 9.625 kB / 0.5108 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005307/0.4162, allocations: 248.4 kB / 0.511 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.4179, allocations: 1.3 MB / 0.5123 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006394/0.4186, allocations: 284.2 kB / 0.5125 GB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.4188, allocations: 107.8 kB / 0.5126 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.4188, allocations: 2.953 kB / 0.5127 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.4188, allocations: 42.83 kB / 0.5127 GB, free: 15.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.094e-06/0.4189, allocations: 0 / 0.5127 GB, free: 15.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006283/0.4195, allocations: 331.7 kB / 0.513 GB, free: 15.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.4195, allocations: 80.64 kB / 0.5131 GB, free: 15.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.4197, allocations: 263.6 kB / 0.5133 GB, free: 15.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.4197, allocations: 38.89 kB / 0.5134 GB, free: 15.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.203e-05/0.4198, allocations: 218.4 kB / 0.5136 GB, free: 14.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.4199, allocations: 102.3 kB / 0.5137 GB, free: 14.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.979e-05/0.4199, allocations: 55.25 kB / 0.5137 GB, free: 14.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.669e-05/0.42, allocations: 340.8 kB / 0.5141 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.4202, allocations: 93.67 kB / 0.5141 GB, free: 14.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.4204, allocations: 153.4 kB / 0.5143 GB, free: 14.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003394/0.4207, allocations: 241.1 kB / 0.5145 GB, free: 14.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4207, allocations: 2.656 kB / 0.5145 GB, free: 14.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000426/0.4211, allocations: 301.7 kB / 0.5148 GB, free: 14.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.4211, allocations: 6 kB / 0.5148 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4211, allocations: 7.438 kB / 0.5148 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.4212, allocations: 3.812 kB / 0.5148 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/0.4214, allocations: 69.38 kB / 0.5149 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.4214, allocations: 2.969 kB / 0.5149 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.4216, allocations: 29.56 kB / 0.5149 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.4216, allocations: 11.8 kB / 0.5149 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001901/0.4218, allocations: 184.9 kB / 0.5151 GB, free: 14.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001379/0.4219, allocations: 145 kB / 0.5153 GB, free: 14.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002474/0.4222, allocations: 226.3 kB / 0.5155 GB, free: 14.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.583e-06/0.4222, allocations: 2.094 kB / 0.5155 GB, free: 14.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003608/0.4225, allocations: 275.4 kB / 0.5157 GB, free: 13.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/0.4226, allocations: 5.875 kB / 0.5157 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/0.4226, allocations: 1.219 kB / 0.5157 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.229e-06/0.4226, allocations: 4.375 kB / 0.5157 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.4228, allocations: 65.05 kB / 0.5158 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.4228, allocations: 5.312 kB / 0.5158 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.423, allocations: 30.48 kB / 0.5158 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.423, allocations: 15.77 kB / 0.5159 GB, free: 13.95 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.967e-05/0.4231, allocations: 201.4 kB / 0.516 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.4231, allocations: 30.97 kB / 0.5161 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004689/0.4236, allocations: 274.2 kB / 0.5163 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4236, allocations: 4.5 kB / 0.5163 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4236, allocations: 0 / 0.5163 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.4236, allocations: 7.188 kB / 0.5164 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003566/0.424, allocations: 394.4 kB / 0.5167 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.424, allocations: 1.312 kB / 0.5167 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.4242, allocations: 61.55 kB / 0.5168 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/0.4242, allocations: 2.094 kB / 0.5168 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.4242, allocations: 6.391 kB / 0.5168 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4242, allocations: 1.312 kB / 0.5168 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4242, allocations: 4.344 kB / 0.5168 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006071/0.4249, allocations: 482.4 kB / 0.5173 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.278e-05/0.4249, allocations: 125 kB / 0.5174 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.425, allocations: 9.141 kB / 0.5174 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.4252, allocations: 16.39 kB / 0.5174 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.4252, allocations: 13.45 kB / 0.5174 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.4252, allocations: 9.438 kB / 0.5174 GB, free: 12.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001391/0.4254, allocations: 190.5 kB / 0.5176 GB, free: 12.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4254, allocations: 1.594 kB / 0.5176 GB, free: 12.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004448/0.4258, allocations: 154.2 kB / 0.5178 GB, free: 12.75 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.0007883/0.4266, allocations: 1.01 MB / 0.5187 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006516/0.4272, allocations: 316 kB / 0.519 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4272, allocations: 0 / 0.519 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002032/0.4274, allocations: 117.9 kB / 0.5192 GB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/0.4279, allocations: 70.69 kB / 0.5192 GB, free: 11.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003765/0.4317, allocations: 3.041 MB / 0.5222 GB, free: 9.801 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.432, allocations: 0.7944 MB / 0.523 GB, free: 9.094 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.4322, allocations: 33.7 kB / 0.523 GB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.4323, allocations: 118.1 kB / 0.5231 GB, free: 9 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4323, allocations: 0 / 0.5231 GB, free: 9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.4661, allocations: 6.431 MB / 0.5294 GB, free: 8.289 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/8.526, allocations: 5.312 kB / 0.5294 GB, free: 8.285 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.225376741960645] Failed to read output from testmodel.py, exit status != 0: 8.59851915994659 8.61578127 8.448201302 Calling exit ...