Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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.001246/0.001246, allocations: 108.2 kB / 16.46 MB, free: 6.035 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.001295/0.001295, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.366/1.366, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.09735/0.09735, allocations: 22.69 MB / 325.4 MB, free: 3.559 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_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 67.89 kB / 457.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1304, allocations: 58.02 MB / 0.5031 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.00403/0.1344, allocations: 2.298 MB / 0.5053 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009551/0.1354, allocations: 0.522 MB / 0.5059 GB, free: 4.828 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.1355, allocations: 7.938 kB / 0.5059 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.1356, allocations: 23.72 kB / 0.5059 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.1358, allocations: 55.48 kB / 0.5059 GB, free: 4.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.1359, allocations: 55.92 kB / 0.506 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002675/0.1362, allocations: 211 kB / 0.5062 GB, free: 4.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.1364, allocations: 72.05 kB / 0.5063 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.965e-05/0.1365, allocations: 79.72 kB / 0.5063 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.1367, allocations: 91.56 kB / 0.5064 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.1367, allocations: 16 kB / 0.5064 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.496e-05/0.1367, allocations: 20 kB / 0.5065 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.408e-05/0.1368, allocations: 43.84 kB / 0.5065 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.1369, allocations: 95.59 kB / 0.5066 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.1372, allocations: 219.1 kB / 0.5068 GB, free: 3.852 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1372, allocations: 0 / 0.5068 GB, free: 3.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1372, allocations: 4 kB / 0.5068 GB, free: 3.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1372, allocations: 0 / 0.5068 GB, free: 3.848 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0008352/0.138, allocations: 475.1 kB / 0.5073 GB, free: 3.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1381, allocations: 8.031 kB / 0.5073 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.758e-05/0.1381, allocations: 54.73 kB / 0.5073 GB, free: 3.266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.68e-05/0.1382, allocations: 20.83 kB / 0.5073 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.1385, allocations: 220 kB / 0.5076 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.1385, allocations: 16.81 kB / 0.5076 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.1386, allocations: 28.3 kB / 0.5076 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.1389, allocations: 171.4 kB / 0.5078 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.1389, allocations: 0 / 0.5078 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.139, allocations: 12 kB / 0.5078 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.139, allocations: 4 kB / 0.5078 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.1392, allocations: 121.7 kB / 0.5079 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.1403, allocations: 0.672 MB / 0.5085 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.1407, allocations: 126.5 kB / 0.5087 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.1408, allocations: 56.84 kB / 0.5087 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.1408, allocations: 4.281 kB / 0.5087 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.1408, allocations: 38.55 kB / 0.5088 GB, free: 1.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.142e-06/0.1408, allocations: 0 / 0.5088 GB, free: 1.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004562/0.1413, allocations: 173.4 kB / 0.5089 GB, free: 1.484 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.1413, allocations: 51.41 kB / 0.509 GB, free: 1.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.1415, allocations: 133.8 kB / 0.5091 GB, free: 1.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.1415, allocations: 25.7 kB / 0.5091 GB, free: 1.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1416, allocations: 136.2 kB / 0.5093 GB, free: 1.113 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.394e-05/0.1417, allocations: 67.45 kB / 0.5093 GB, free: 1.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.753e-05/0.1417, allocations: 33.72 kB / 0.5094 GB, free: 1.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1419, allocations: 318.8 kB / 0.5097 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.882e-05/0.142, allocations: 39.98 kB / 0.5097 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.1421, allocations: 71.41 kB / 0.5098 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.1423, allocations: 122 kB / 0.5099 GB, free: 448 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1423, allocations: 3.984 kB / 0.5099 GB, free: 444 kB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000281/0.1426, allocations: 161.4 kB / 0.51 GB, free: 276 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1426, allocations: 8 kB / 0.51 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1426, allocations: 4 kB / 0.51 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.1427, allocations: 4 kB / 0.5101 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.1428, allocations: 43.91 kB / 0.5101 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/0.1428, allocations: 0 / 0.5101 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.238e-05/0.1429, allocations: 19.83 kB / 0.5101 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.1429, allocations: 8 kB / 0.5101 GB, free: 188 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001157/0.143, allocations: 134.6 kB / 0.5102 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.721e-05/0.1431, allocations: 19.84 kB / 0.5103 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.253e-05/0.1431, allocations: 12.84 kB / 0.5103 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.1431, allocations: 4 kB / 0.5103 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.1431, allocations: 3.984 kB / 0.5103 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1431, allocations: 0 / 0.5103 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.264/0.4071, allocations: 254 kB / 0.5105 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.4072, allocations: 1.031 kB / 0.5105 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.4074, allocations: 33.11 kB / 0.5106 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.4074, allocations: 2.344 kB / 0.5106 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.4074, allocations: 4.031 kB / 0.5106 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.4074, allocations: 0.7188 kB / 0.5106 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4074, allocations: 0 / 0.5106 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004085/0.4078, allocations: 293.3 kB / 0.5108 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.024e-05/0.4078, allocations: 88.83 kB / 0.5109 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.4079, allocations: 2.219 kB / 0.5109 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.408, allocations: 9.656 kB / 0.5109 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.225e-05/0.408, allocations: 10.14 kB / 0.511 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.408, allocations: 6.188 kB / 0.511 GB, free: 15.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.68e-05/0.4081, allocations: 97.61 kB / 0.5111 GB, free: 15.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4081, allocations: 0 / 0.5111 GB, free: 15.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003157/0.4084, allocations: 50.45 kB / 0.5111 GB, free: 15.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,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 (16): * Single equations (assignments): 16 * 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.0005568/0.409, allocations: 0.8163 MB / 0.5119 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002648/0.4092, allocations: 106.8 kB / 0.512 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4092, allocations: 2.438 kB / 0.512 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.855e-05/0.4093, allocations: 52.12 kB / 0.5121 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.4096, allocations: 20.47 kB / 0.5121 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.4115, allocations: 1.922 MB / 0.5139 GB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001515/0.4116, allocations: 0.7218 MB / 0.5147 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.174e-05/0.4117, allocations: 12.64 kB / 0.5147 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.711e-05/0.4118, allocations: 46.12 kB / 0.5147 GB, free: 12.69 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4118, allocations: 0 / 0.5147 GB, free: 12.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02583/0.4376, allocations: 2.856 MB / 0.5175 GB, free: 12.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.659/8.096, allocations: 10.09 kB / 0.5175 GB, free: 12.25 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop_fmu --startTime=0 --stopTime=15000 --stepSize=1.875 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.631338788196445] Failed to read output from testmodel.py, exit status != 0: 8.16175757162273 8.173782827 8.034138909 Calling exit ...