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.001328/0.001328, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001685/0.001685, allocations: 219.5 kB / 22.26 MB, free: 5.125 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.471/1.471, allocations: 230.6 MB / 256 MB, free: 8.004 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.1062/0.1062, allocations: 24.13 MB / 336.6 MB, free: 11.43 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.002102/0.002102, allocations: 70.39 kB / 473.3 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3703, allocations: 59.6 MB / 0.5204 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004504/0.3748, allocations: 4.061 MB / 0.5244 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.377, allocations: 1.314 MB / 0.5257 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.3773, allocations: 7.625 kB / 0.5257 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.3774, allocations: 82.56 kB / 0.5258 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003804/0.3778, allocations: 221.2 kB / 0.526 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005955/0.3784, allocations: 287.3 kB / 0.5262 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009851/0.3794, allocations: 1.091 MB / 0.5273 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005305/0.3799, allocations: 384.4 kB / 0.5277 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004126/0.3803, allocations: 415.1 kB / 0.5281 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005203/0.3808, allocations: 418.9 kB / 0.5285 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.381, allocations: 97.72 kB / 0.5286 GB, free: 4.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.3811, allocations: 93.34 kB / 0.5287 GB, free: 4.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.3813, allocations: 197.7 kB / 0.5288 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.3816, allocations: 424.5 kB / 0.5292 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009059/0.3825, allocations: 0.9609 MB / 0.5302 GB, free: 4.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3825, allocations: 4.609 kB / 0.5302 GB, free: 4.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3825, allocations: 1.094 kB / 0.5302 GB, free: 4.012 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3825, allocations: 0 / 0.5302 GB, free: 4.012 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.002001/0.3845, allocations: 0.9213 MB / 0.5311 GB, free: 3.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.3845, allocations: 8.344 kB / 0.5311 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001413/0.3847, allocations: 137.5 kB / 0.5312 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.3848, allocations: 78.41 kB / 0.5313 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.385, allocations: 191.6 kB / 0.5315 GB, free: 3.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.866e-05/0.385, allocations: 58.81 kB / 0.5315 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.3851, allocations: 89.8 kB / 0.5316 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.3862, allocations: 0.6901 MB / 0.5323 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.3863, allocations: 0 / 0.5323 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-05/0.3863, allocations: 30.84 kB / 0.5323 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.3863, allocations: 19.88 kB / 0.5323 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.3876, allocations: 0.7018 MB / 0.533 GB, free: 2.5 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.003263/0.3908, allocations: 2.257 MB / 0.5352 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.3918, allocations: 0.6281 MB / 0.5359 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004552/0.3923, allocations: 305.5 kB / 0.5361 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.778e-05/0.3924, allocations: 11.75 kB / 0.5362 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.3924, allocations: 47.8 kB / 0.5362 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.695e-06/0.3924, allocations: 5.25 kB / 0.5362 GB, free: 0.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007769/0.4002, allocations: 2.802 MB / 0.5389 GB, free: 15.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.4002, allocations: 63.44 kB / 0.539 GB, free: 15.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003155/0.4005, allocations: 207.7 kB / 0.5392 GB, free: 15.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.332e-05/0.4006, allocations: 45.42 kB / 0.5392 GB, free: 15.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.4008, allocations: 232.8 kB / 0.5395 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003854/0.4012, allocations: 409.5 kB / 0.5399 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002496/0.4014, allocations: 146.7 kB / 0.54 GB, free: 14.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.4016, allocations: 363.9 kB / 0.5403 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005505/0.4022, allocations: 296.2 kB / 0.5406 GB, free: 14.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006234/0.4028, allocations: 383.7 kB / 0.541 GB, free: 13.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/0.4137, allocations: 2.253 MB / 0.5432 GB, free: 13.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.4137, allocations: 2.016 kB / 0.5432 GB, free: 13.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002288/0.416, allocations: 1.044 MB / 0.5442 GB, free: 12.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.416, allocations: 6.031 kB / 0.5442 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.4161, allocations: 1.406 kB / 0.5442 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.4171, allocations: 209 kB / 0.5444 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005884/0.4229, allocations: 0.7565 MB / 0.5452 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01274/0.4357, allocations: 13.92 MB / 0.5588 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008154/0.4365, allocations: 29.23 kB / 0.5588 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-05/0.4366, allocations: 30 kB / 0.5588 GB, free: 14.11 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.0005302/0.4371, allocations: 231.5 kB / 0.559 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.4372, allocations: 51.83 kB / 0.5591 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00291/0.4401, allocations: 1.245 MB / 0.5603 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.4401, allocations: 10.78 kB / 0.5603 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4402, allocations: 2.812 kB / 0.5603 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.4402, allocations: 3.984 kB / 0.5603 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00457/0.4447, allocations: 2.349 MB / 0.5626 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.4448, allocations: 6.875 kB / 0.5626 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005103/0.4499, allocations: 0.6999 MB / 0.5633 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002019/0.4519, allocations: 368.8 kB / 0.5636 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001948/0.4521, allocations: 32.58 kB / 0.5637 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0133/0.4654, allocations: 14.08 MB / 0.5774 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/0.4654, allocations: 12.19 kB / 0.5774 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003786/0.4692, allocations: 1.824 MB / 0.5792 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.4694, allocations: 54.14 kB / 0.5793 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.4695, allocations: 28.83 kB / 0.5793 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006262/0.4701, allocations: 29.75 kB / 0.5793 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002981/0.4704, allocations: 126.1 kB / 0.5795 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-05/0.4705, allocations: 40.7 kB / 0.5795 GB, free: 11.45 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001759/0.4707, allocations: 158.5 kB / 0.5796 GB, free: 11.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4707, allocations: 4 kB / 0.5796 GB, free: 11.33 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001068/0.4718, allocations: 231.4 kB / 0.5799 GB, free: 11.3 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.003967/0.4757, allocations: 2.391 MB / 0.5822 GB, free: 9.023 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007656/0.4834, allocations: 1.854 MB / 0.584 GB, free: 7.113 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.4834, allocations: 0 / 0.584 GB, free: 7.113 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006369/0.4898, allocations: 1.49 MB / 0.5855 GB, free: 5.578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.4911, allocations: 177 kB / 0.5856 GB, free: 5.402 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.5026, allocations: 6.035 MB / 0.5915 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006026/0.5032, allocations: 0.9091 MB / 0.5924 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005201/0.5037, allocations: 92.95 kB / 0.5925 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003782/0.5041, allocations: 223.4 kB / 0.5927 GB, free: 13.81 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5041, allocations: 0 / 0.5927 GB, free: 13.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0714/0.5755, allocations: 17.85 MB / 0.6102 GB, free: 12.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.3/14.87, allocations: 18.61 kB / 0.6102 GB, free: 12.14 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: 18.01098151000042] Failed to read output from testmodel.py, exit status != 0: 15.021571140998276 15.046581719 14.659337162 Calling exit ...