Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.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.001242/0.001242, allocations: 112.5 kB / 17.15 MB, free: 5.945 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.001377/0.001377, allocations: 204.4 kB / 20.11 MB, free: 2.992 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.47/1.47, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1049/0.1049, allocations: 24.02 MB / 333.6 MB, free: 1.566 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.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.ThermSys_component_models.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",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.002409/0.002409, allocations: 72.69 kB / 468.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1126, allocations: 59.55 MB / 0.5156 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005907/0.1185, allocations: 4.028 MB / 0.5195 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002783/0.1213, allocations: 1.317 MB / 0.5208 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004952/0.1218, allocations: 4 kB / 0.5208 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002959/0.1221, allocations: 79.14 kB / 0.5209 GB, free: 6.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007977/0.1229, allocations: 218 kB / 0.5211 GB, free: 6.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008282/0.1237, allocations: 295.5 kB / 0.5214 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001526/0.1253, allocations: 1.092 MB / 0.5224 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007163/0.126, allocations: 385 kB / 0.5228 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000626/0.1266, allocations: 406.9 kB / 0.5232 GB, free: 4.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006043/0.1272, allocations: 422.4 kB / 0.5236 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.1274, allocations: 96 kB / 0.5237 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.1275, allocations: 92 kB / 0.5238 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.1277, allocations: 195.5 kB / 0.524 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004678/0.1282, allocations: 426.3 kB / 0.5244 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001237/0.1294, allocations: 0.9691 MB / 0.5253 GB, free: 2.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.1294, allocations: 0 / 0.5253 GB, free: 2.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1294, allocations: 0 / 0.5253 GB, free: 2.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.067e-05/0.1295, allocations: 0 / 0.5253 GB, free: 2.27 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.002398/0.1319, allocations: 1.002 MB / 0.5263 GB, free: 1.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.1319, allocations: 11.97 kB / 0.5263 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001806/0.1321, allocations: 131.3 kB / 0.5264 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.1322, allocations: 80.47 kB / 0.5265 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.1325, allocations: 239.5 kB / 0.5267 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.51e-05/0.1326, allocations: 66.38 kB / 0.5268 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.1327, allocations: 88.11 kB / 0.5269 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.1341, allocations: 0.6945 MB / 0.5276 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.1341, allocations: 0 / 0.5276 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.671e-05/0.1342, allocations: 32 kB / 0.5276 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.1342, allocations: 20 kB / 0.5276 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.1355, allocations: 0.6949 MB / 0.5283 GB, free: 15.12 MB / 398.1 MB Warning: Alias set with conflicting start values * Candidate: V.T(start = V.Tstart = 291.15, confidence number = 2) * Candidate: V.air.T(start = 288.15, confidence number = 8) * Candidate: V.heatPort.T(start = 288.15, confidence number = 8) => Select value from V.T(start = V.Tstart = 291.15) for variable: V.T Warning: Alias set with conflicting start values * Candidate: AHU.T(start = AHU.Tstart = 293.15, confidence number = 2) * Candidate: AHU.air.T(start = 288.15, confidence number = 8) => Select value from AHU.T(start = AHU.Tstart = 293.15) for variable: AHU.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004043/0.1395, allocations: 2.302 MB / 0.5305 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.1407, allocations: 0.6211 MB / 0.5311 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000571/0.1413, allocations: 299.8 kB / 0.5314 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.842e-05/0.1413, allocations: 16.98 kB / 0.5315 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.1414, allocations: 43.56 kB / 0.5315 GB, free: 11.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 3.046e-06/0.1414, allocations: 0 / 0.5315 GB, free: 11.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=112): time 0.008366/0.1497, allocations: 3.108 MB / 0.5345 GB, free: 8.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.1498, allocations: 68.34 kB / 0.5346 GB, free: 8.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.1501, allocations: 211.7 kB / 0.5348 GB, free: 8.172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.543e-05/0.1502, allocations: 41.7 kB / 0.5348 GB, free: 8.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.1503, allocations: 233.5 kB / 0.5351 GB, free: 7.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003961/0.1507, allocations: 408.4 kB / 0.5354 GB, free: 7.488 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002807/0.151, allocations: 146.7 kB / 0.5356 GB, free: 7.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.1512, allocations: 354.8 kB / 0.5359 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006133/0.1518, allocations: 297.9 kB / 0.5362 GB, free: 6.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006792/0.1525, allocations: 391.1 kB / 0.5366 GB, free: 6.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01167/0.1642, allocations: 2.243 MB / 0.5388 GB, free: 4.039 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.1642, allocations: 4.547 kB / 0.5388 GB, free: 4.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002769/0.167, allocations: 1.043 MB / 0.5398 GB, free: 2.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.167, allocations: 7.938 kB / 0.5398 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.167, allocations: 4 kB / 0.5398 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.1681, allocations: 211.2 kB / 0.54 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005893/0.174, allocations: 0.7646 MB / 0.5408 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01508/0.189, allocations: 14.94 MB / 0.5553 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006613/0.1897, allocations: 27.98 kB / 0.5554 GB, free: 1.578 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.1898, allocations: 28.06 kB / 0.5554 GB, free: 1.551 MB / 414.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = 0.0 start = AHU.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"controlled T\" type: Real AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real V.p:VARIABLE(min = 0.0 start = V.pstart unit = \"Pa\" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = 0.0 start = V.Tstart unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (AHUon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,5,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005516/0.1904, allocations: 236.5 kB / 0.5556 GB, free: 1.312 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.1905, allocations: 51.7 kB / 0.5557 GB, free: 1.262 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003091/0.1936, allocations: 1.25 MB / 0.5569 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.1936, allocations: 12 kB / 0.5569 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1936, allocations: 0 / 0.5569 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.1936, allocations: 3.984 kB / 0.5569 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004675/0.1983, allocations: 2.385 MB / 0.5592 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/0.1983, allocations: 8 kB / 0.5592 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005146/0.2035, allocations: 0.6992 MB / 0.5599 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/0.2054, allocations: 358.9 kB / 0.5603 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001469/0.2056, allocations: 31.98 kB / 0.5603 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01544/0.221, allocations: 15.12 MB / 0.5751 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/0.221, allocations: 16 kB / 0.5751 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003819/0.2249, allocations: 1.819 MB / 0.5769 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/0.2251, allocations: 136.8 kB / 0.577 GB, free: 9.688 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.2252, allocations: 31.98 kB / 0.577 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006298/0.2259, allocations: 32 kB / 0.577 GB, free: 9.625 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002808/0.2262, allocations: 120.5 kB / 0.5772 GB, free: 9.508 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.559e-05/0.2262, allocations: 40 kB / 0.5772 GB, free: 9.469 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001698/0.2264, allocations: 150.8 kB / 0.5773 GB, free: 9.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2264, allocations: 0 / 0.5773 GB, free: 9.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001057/0.2275, allocations: 240 kB / 0.5776 GB, free: 9.086 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 5 (AHU.T,AHU.phi,V.Mv,V.p,V.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 (102): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003986/0.2314, allocations: 2.383 MB / 0.5799 GB, free: 6.574 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007235/0.2387, allocations: 1.854 MB / 0.5817 GB, free: 4.664 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/0.2387, allocations: 0 / 0.5817 GB, free: 4.664 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006171/0.2449, allocations: 1.494 MB / 0.5832 GB, free: 3.121 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.2463, allocations: 178.4 kB / 0.5833 GB, free: 2.949 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2443/0.4906, allocations: 6.037 MB / 0.5892 GB, free: 65.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006823/0.4913, allocations: 0.9085 MB / 0.5901 GB, free: 64.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005533/0.4919, allocations: 93 kB / 0.5902 GB, free: 64.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003847/0.4922, allocations: 218.2 kB / 0.5904 GB, free: 64.32 MB / 446.1 MB Notification: Performance of SimCode: time 2.204e-06/0.4922, allocations: 0.8125 kB / 0.5904 GB, free: 64.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08511/0.5773, allocations: 17.06 MB / 0.6071 GB, free: 59.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/13.94, allocations: 3.984 kB / 0.6071 GB, free: 59.44 MB / 446.1 MB " [Timeout remaining time 646] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001_res.csv --start-time 0 --stop-time 8000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.8 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.229903926840052] Failed to read output from testmodel.py, exit status != 0: 14.053384093102068 14.06212136 13.930224582 Calling exit ...