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.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.001283/0.001283, allocations: 108.6 kB / 16.41 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.001314/0.001314, allocations: 191.7 kB / 19.35 MB, free: 3.734 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.458/1.458, allocations: 222.9 MB / 245.1 MB, free: 15.02 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.1012/0.1012, allocations: 22.34 MB / 319.6 MB, free: 6.781 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.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: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 67.89 kB / 445.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1206, allocations: 54.95 MB / 0.4885 GB, free: 1.637 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005762/0.1265, allocations: 4.028 MB / 0.4924 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.129, allocations: 1.278 MB / 0.4937 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002959/0.1293, allocations: 4 kB / 0.4937 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.1296, allocations: 79.14 kB / 0.4938 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004839/0.1301, allocations: 218 kB / 0.494 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006541/0.1307, allocations: 295.5 kB / 0.4942 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.1319, allocations: 1.095 MB / 0.4953 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006511/0.1326, allocations: 440.3 kB / 0.4957 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005465/0.1331, allocations: 402.9 kB / 0.4961 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005742/0.1337, allocations: 426.4 kB / 0.4965 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.1339, allocations: 92 kB / 0.4966 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001608/0.134, allocations: 96 kB / 0.4967 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.1342, allocations: 191.5 kB / 0.4969 GB, free: 9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004517/0.1347, allocations: 422.3 kB / 0.4973 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.1357, allocations: 0.9691 MB / 0.4982 GB, free: 7.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1357, allocations: 0 / 0.4982 GB, free: 7.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1358, allocations: 0 / 0.4982 GB, free: 7.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.1358, allocations: 0 / 0.4982 GB, free: 7.613 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.002244/0.138, allocations: 1.002 MB / 0.4992 GB, free: 6.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1381, allocations: 12.03 kB / 0.4992 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001663/0.1383, allocations: 127.3 kB / 0.4993 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.1384, allocations: 76.47 kB / 0.4994 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/0.1387, allocations: 243.5 kB / 0.4997 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.635e-05/0.1387, allocations: 62.38 kB / 0.4997 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.1389, allocations: 84.12 kB / 0.4998 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.1402, allocations: 0.6868 MB / 0.5005 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.1402, allocations: 4 kB / 0.5005 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.601e-05/0.1403, allocations: 36 kB / 0.5005 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.303e-05/0.1403, allocations: 20 kB / 0.5005 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.1416, allocations: 0.691 MB / 0.5012 GB, free: 4.48 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.004054/0.1457, allocations: 2.316 MB / 0.5035 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.147, allocations: 0.672 MB / 0.5041 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005787/0.1475, allocations: 331.8 kB / 0.5044 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.159e-05/0.1476, allocations: 13 kB / 0.5044 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.036e-05/0.1477, allocations: 47.5 kB / 0.5045 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.526e-06/0.1477, allocations: 0 / 0.5045 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.245/0.3927, allocations: 3.118 MB / 0.5075 GB, free: 20.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.3927, allocations: 62.06 kB / 0.5076 GB, free: 20.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.393, allocations: 200.9 kB / 0.5078 GB, free: 20.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.427e-05/0.393, allocations: 41.8 kB / 0.5078 GB, free: 20.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.3932, allocations: 241.7 kB / 0.5081 GB, free: 20.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000224/0.3934, allocations: 399.8 kB / 0.5084 GB, free: 19.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.3936, allocations: 156.4 kB / 0.5086 GB, free: 19.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.613e-05/0.3937, allocations: 358.5 kB / 0.5089 GB, free: 19.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005032/0.3942, allocations: 299.5 kB / 0.5092 GB, free: 19.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005355/0.3948, allocations: 385.4 kB / 0.5096 GB, free: 19.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/0.4052, allocations: 2.251 MB / 0.5118 GB, free: 19.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.4052, allocations: 3.875 kB / 0.5118 GB, free: 19.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00228/0.4075, allocations: 1.034 MB / 0.5128 GB, free: 19.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.4076, allocations: 5.781 kB / 0.5128 GB, free: 19.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4076, allocations: 2.531 kB / 0.5128 GB, free: 19.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.4086, allocations: 220.2 kB / 0.513 GB, free: 19.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005571/0.4142, allocations: 0.752 MB / 0.5137 GB, free: 19.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009139/0.4234, allocations: 14.93 MB / 0.5283 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006377/0.4241, allocations: 28 kB / 0.5284 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-05/0.4241, allocations: 29.83 kB / 0.5284 GB, free: 4.887 MB / 382.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.0004027/0.4245, allocations: 233.9 kB / 0.5286 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.518e-05/0.4246, allocations: 52.12 kB / 0.5287 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002622/0.4273, allocations: 1.248 MB / 0.5299 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.4273, allocations: 15.02 kB / 0.5299 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4273, allocations: 2.75 kB / 0.5299 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.4273, allocations: 6.562 kB / 0.5299 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004126/0.4315, allocations: 2.382 MB / 0.5322 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.4315, allocations: 6.938 kB / 0.5322 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004866/0.4364, allocations: 0.7012 MB / 0.5329 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/0.4383, allocations: 364.3 kB / 0.5333 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.4384, allocations: 31.61 kB / 0.5333 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01265/0.4511, allocations: 15.11 MB / 0.548 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/0.4512, allocations: 15.69 kB / 0.5481 GB, free: 5.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003521/0.4547, allocations: 1.819 MB / 0.5498 GB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.4549, allocations: 135 kB / 0.55 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.88e-05/0.455, allocations: 35.81 kB / 0.55 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005536/0.4556, allocations: 32.5 kB / 0.55 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/0.4559, allocations: 112.8 kB / 0.5501 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-05/0.456, allocations: 38.59 kB / 0.5502 GB, free: 4.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.4562, allocations: 155.8 kB / 0.5503 GB, free: 4.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4562, allocations: 3.281 kB / 0.5503 GB, free: 4.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009632/0.4571, allocations: 232.1 kB / 0.5506 GB, free: 4.223 MB / 398.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.003819/0.461, allocations: 2.409 MB / 0.5529 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00703/0.468, allocations: 1.893 MB / 0.5548 GB, free: 1.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/0.468, allocations: 1.062 kB / 0.5548 GB, free: 1.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006177/0.4742, allocations: 1.53 MB / 0.5562 GB, free: 1.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.4756, allocations: 176.9 kB / 0.5564 GB, free: 1.027 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.4862, allocations: 6.054 MB / 0.5623 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007678/0.487, allocations: 0.9158 MB / 0.5632 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006222/0.4877, allocations: 95.14 kB / 0.5633 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004039/0.4881, allocations: 213.8 kB / 0.5635 GB, free: 11.8 MB / 414.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4881, allocations: 3.594 kB / 0.5635 GB, free: 11.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07153/0.5596, allocations: 16.91 MB / 0.58 GB, free: 12.22 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.41, allocations: 6.375 kB / 0.58 GB, free: 12.22 MB / 430.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: 16.41524245205801] Failed to read output from testmodel.py, exit status != 0: 13.52133566502016 13.543613048 13.403760219 Calling exit ...