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.001351/0.001351, allocations: 108 kB / 16.45 MB, free: 6.453 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.001429/0.001429, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.56/1.56, allocations: 230.6 MB / 252.8 MB, free: 8.941 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.108/0.108, allocations: 24.11 MB / 333 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.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.002228/0.002228, allocations: 63.91 kB / 467.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3338, allocations: 59.56 MB / 0.5151 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.00418/0.3379, allocations: 4.039 MB / 0.519 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.3399, allocations: 1.327 MB / 0.5203 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002107/0.3402, allocations: 4.188 kB / 0.5203 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.3403, allocations: 79.86 kB / 0.5204 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003921/0.3407, allocations: 219.8 kB / 0.5206 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005507/0.3412, allocations: 291 kB / 0.5209 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008707/0.3421, allocations: 1.099 MB / 0.5219 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005034/0.3426, allocations: 378.6 kB / 0.5223 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004115/0.343, allocations: 415.3 kB / 0.5227 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004133/0.3434, allocations: 416.6 kB / 0.5231 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.3436, allocations: 96.88 kB / 0.5232 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.3437, allocations: 98.78 kB / 0.5233 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.3438, allocations: 203 kB / 0.5235 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003187/0.3442, allocations: 417.1 kB / 0.5239 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009354/0.3451, allocations: 0.9668 MB / 0.5248 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3451, allocations: 0 / 0.5248 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3451, allocations: 1.375 kB / 0.5248 GB, free: 3.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.3451, allocations: 0 / 0.5248 GB, free: 3.586 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.002126/0.3472, allocations: 1.003 MB / 0.5258 GB, free: 2.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3473, allocations: 9.281 kB / 0.5258 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/0.3474, allocations: 129.9 kB / 0.5259 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.3476, allocations: 76.88 kB / 0.526 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.3478, allocations: 246.1 kB / 0.5262 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.358e-05/0.3478, allocations: 62.97 kB / 0.5263 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.348, allocations: 82.7 kB / 0.5264 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.3492, allocations: 0.6887 MB / 0.5271 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3492, allocations: 1.344 kB / 0.5271 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-05/0.3493, allocations: 34.06 kB / 0.5271 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.3493, allocations: 20 kB / 0.5271 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.3506, allocations: 0.6936 MB / 0.5278 GB, free: 1.922 MB / 382.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.003421/0.354, allocations: 2.3 MB / 0.53 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.3552, allocations: 0.6301 MB / 0.5306 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/0.3557, allocations: 305.5 kB / 0.5309 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.666e-05/0.3558, allocations: 20.16 kB / 0.531 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.3558, allocations: 45.14 kB / 0.531 GB, free: 15.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 2.565e-06/0.3558, allocations: 0 / 0.531 GB, free: 15.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=112): time 0.008742/0.3646, allocations: 3.105 MB / 0.534 GB, free: 14.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.194e-05/0.3647, allocations: 67.19 kB / 0.5341 GB, free: 14.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.365, allocations: 211.6 kB / 0.5343 GB, free: 14.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.144e-05/0.3651, allocations: 45.67 kB / 0.5343 GB, free: 14.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.3653, allocations: 232.8 kB / 0.5346 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000458/0.3657, allocations: 406.2 kB / 0.535 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003372/0.3661, allocations: 145.5 kB / 0.5351 GB, free: 13.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002418/0.3663, allocations: 356.8 kB / 0.5354 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00063/0.3669, allocations: 299.3 kB / 0.5357 GB, free: 13.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006732/0.3676, allocations: 388.2 kB / 0.5361 GB, free: 12.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01162/0.3792, allocations: 2.256 MB / 0.5383 GB, free: 12.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.3792, allocations: 0 / 0.5383 GB, free: 12.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002489/0.3817, allocations: 1.039 MB / 0.5393 GB, free: 11.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3817, allocations: 6.656 kB / 0.5393 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3817, allocations: 5.375 kB / 0.5393 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.3828, allocations: 209.1 kB / 0.5395 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005643/0.3884, allocations: 0.7552 MB / 0.5403 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/0.4019, allocations: 14.93 MB / 0.5548 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007278/0.4027, allocations: 38.17 kB / 0.5549 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/0.4027, allocations: 29.72 kB / 0.5549 GB, free: 12.15 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.0004597/0.4032, allocations: 225.5 kB / 0.5551 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.4033, allocations: 48.72 kB / 0.5552 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002872/0.4062, allocations: 1.252 MB / 0.5564 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.4062, allocations: 10.5 kB / 0.5564 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4062, allocations: 2.562 kB / 0.5564 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.4062, allocations: 3.984 kB / 0.5564 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004331/0.4105, allocations: 2.381 MB / 0.5587 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.4105, allocations: 7.094 kB / 0.5587 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005057/0.4156, allocations: 0.7038 MB / 0.5594 GB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/0.4176, allocations: 364 kB / 0.5598 GB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.4177, allocations: 34.02 kB / 0.5598 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/0.4318, allocations: 15.12 MB / 0.5746 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/0.4318, allocations: 11.97 kB / 0.5746 GB, free: 9.547 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004072/0.4358, allocations: 1.82 MB / 0.5763 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/0.4361, allocations: 137.8 kB / 0.5765 GB, free: 8.195 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4362, allocations: 33.27 kB / 0.5765 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005896/0.4368, allocations: 27.34 kB / 0.5765 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003472/0.4371, allocations: 122.8 kB / 0.5767 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.958e-05/0.4372, allocations: 32.16 kB / 0.5767 GB, free: 8.086 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.4374, allocations: 161.8 kB / 0.5768 GB, free: 7.965 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4374, allocations: 1.375 kB / 0.5768 GB, free: 7.965 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00116/0.4386, allocations: 231.2 kB / 0.5771 GB, free: 7.93 MB / 430.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.004085/0.4427, allocations: 2.391 MB / 0.5794 GB, free: 6.156 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00748/0.4501, allocations: 1.847 MB / 0.5812 GB, free: 4.922 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-05/0.4501, allocations: 4 kB / 0.5812 GB, free: 4.918 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006142/0.4563, allocations: 1.497 MB / 0.5827 GB, free: 3.371 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.4575, allocations: 173.3 kB / 0.5828 GB, free: 3.203 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.4681, allocations: 6.045 MB / 0.5887 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006109/0.4687, allocations: 0.9129 MB / 0.5896 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004881/0.4692, allocations: 93.02 kB / 0.5897 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003982/0.4696, allocations: 219.4 kB / 0.5899 GB, free: 11.6 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4696, allocations: 0 / 0.5899 GB, free: 11.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05656/0.5262, allocations: 17.06 MB / 0.6066 GB, free: 10.76 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.87/14.4, allocations: 7.156 kB / 0.6066 GB, free: 10.76 MB / 462.1 MB " [Timeout remaining time 645] (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.624828781932592] Failed to read output from testmodel.py, exit status != 0: 14.508920626016334 14.540057686 14.188608062 Calling exit ...