Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.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.001351/0.001351, allocations: 109.9 kB / 16.41 MB, free: 6.496 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.001949/0.001949, 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.444/1.444, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.1009/0.1009, allocations: 22.34 MB / 319.6 MB, free: 6.758 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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002537/0.002537, allocations: 71.89 kB / 445.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1299, allocations: 54.95 MB / 0.4885 GB, free: 1.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.005516/0.1355, allocations: 4.246 MB / 0.4926 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.1379, allocations: 1.325 MB / 0.4939 GB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.138, allocations: 4 kB / 0.4939 GB, free: 12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.1383, allocations: 87.06 kB / 0.494 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004515/0.1387, allocations: 237.9 kB / 0.4942 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000616/0.1393, allocations: 307.5 kB / 0.4945 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.1405, allocations: 1.165 MB / 0.4957 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007169/0.1412, allocations: 0.5554 MB / 0.4962 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005825/0.1418, allocations: 470.7 kB / 0.4967 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007772/0.1426, allocations: 0.5099 MB / 0.4972 GB, free: 8.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.1428, allocations: 112 kB / 0.4973 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.143, allocations: 108 kB / 0.4974 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002597/0.1433, allocations: 227.4 kB / 0.4976 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005717/0.1438, allocations: 482 kB / 0.4981 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.1452, allocations: 1.113 MB / 0.4991 GB, free: 6.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1452, allocations: 0 / 0.4991 GB, free: 6.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1452, allocations: 0 / 0.4991 GB, free: 6.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1452, allocations: 0 / 0.4991 GB, free: 6.645 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002441/0.1477, allocations: 1.094 MB / 0.5002 GB, free: 5.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.1477, allocations: 8.031 kB / 0.5002 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001817/0.1479, allocations: 139.7 kB / 0.5004 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000161/0.1481, allocations: 88.42 kB / 0.5004 GB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.1484, allocations: 244 kB / 0.5007 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.017e-05/0.1485, allocations: 69.94 kB / 0.5007 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.1486, allocations: 87.98 kB / 0.5008 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.1501, allocations: 0.8155 MB / 0.5016 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.1501, allocations: 0 / 0.5016 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.094e-05/0.1502, allocations: 36 kB / 0.5017 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.1502, allocations: 20 kB / 0.5017 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.1517, allocations: 0.8237 MB / 0.5025 GB, free: 3.133 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: U1.T(start = U1.Tstart = 293.15, confidence number = 2) * Candidate: U1.air.T(start = 288.15, confidence number = 8) => Select value from U1.T(start = U1.Tstart = 293.15) for variable: U1.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004424/0.1561, allocations: 2.614 MB / 0.505 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2416/0.3977, allocations: 0.9896 MB / 0.506 GB, free: 20.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006881/0.3985, allocations: 418.2 kB / 0.5064 GB, free: 20.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.595e-05/0.3986, allocations: 19.09 kB / 0.5064 GB, free: 20.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.3986, allocations: 43.88 kB / 0.5065 GB, free: 20.32 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004896/0.3991, allocations: 126.6 kB / 0.5066 GB, free: 20.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.236e-06/0.3991, allocations: 0 / 0.5066 GB, free: 20.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.007605/0.4067, allocations: 3.547 MB / 0.51 GB, free: 19.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.4068, allocations: 65.31 kB / 0.5101 GB, free: 19.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.407, allocations: 220.7 kB / 0.5103 GB, free: 19.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/0.407, allocations: 46.73 kB / 0.5104 GB, free: 19.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.4072, allocations: 247.1 kB / 0.5106 GB, free: 19.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.4074, allocations: 445.2 kB / 0.511 GB, free: 19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002485/0.4076, allocations: 178.1 kB / 0.5112 GB, free: 18.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.578e-05/0.4077, allocations: 361.1 kB / 0.5115 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006658/0.4084, allocations: 354.9 kB / 0.5119 GB, free: 18.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000623/0.409, allocations: 461.6 kB / 0.5123 GB, free: 18.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01811/0.4271, allocations: 3.474 MB / 0.5157 GB, free: 18.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4272, allocations: 0 / 0.5157 GB, free: 18.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002529/0.4297, allocations: 1.215 MB / 0.5169 GB, free: 18.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.4298, allocations: 6.438 kB / 0.5169 GB, free: 18.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.4298, allocations: 1.406 kB / 0.5169 GB, free: 18.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.4308, allocations: 216.6 kB / 0.5171 GB, free: 18.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005904/0.4367, allocations: 0.8093 MB / 0.5179 GB, free: 18.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008561/0.4453, allocations: 14.95 MB / 0.5325 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008605/0.4462, allocations: 27.53 kB / 0.5325 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-05/0.4463, allocations: 43.67 kB / 0.5326 GB, free: 3.996 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = 0.0 start = U1.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"controlled T\" type: Real U1.phi:VARIABLE(start = U1.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 (124): * Single equations (assignments): 114 * 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,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004983/0.4468, allocations: 231.7 kB / 0.5328 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.4469, allocations: 55.58 kB / 0.5328 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/0.4503, allocations: 1.482 MB / 0.5343 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.978e-05/0.4503, allocations: 16.94 kB / 0.5343 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.4503, allocations: 1.688 kB / 0.5343 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.927e-05/0.4504, allocations: 7.062 kB / 0.5343 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004756/0.4551, allocations: 2.585 MB / 0.5368 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.667e-05/0.4552, allocations: 6.156 kB / 0.5368 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005278/0.4605, allocations: 0.7566 MB / 0.5376 GB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001955/0.4624, allocations: 369.8 kB / 0.5379 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001444/0.4626, allocations: 31.88 kB / 0.538 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01375/0.4764, allocations: 15.19 MB / 0.5528 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.188e-05/0.4764, allocations: 13.91 kB / 0.5528 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004087/0.4805, allocations: 2.062 MB / 0.5548 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.4808, allocations: 135.2 kB / 0.5549 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.4809, allocations: 33.66 kB / 0.555 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006508/0.4815, allocations: 33.61 kB / 0.555 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/0.4819, allocations: 123 kB / 0.5551 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.135e-05/0.482, allocations: 49.84 kB / 0.5552 GB, free: 2.008 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.4822, allocations: 162.2 kB / 0.5553 GB, free: 1.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4822, allocations: 3.938 kB / 0.5553 GB, free: 1.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001264/0.4835, allocations: 258.3 kB / 0.5556 GB, free: 1.852 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 5 (U1.T,U1.phi,V.Ma,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 (119): * Single equations (assignments): 109 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004729/0.4882, allocations: 2.646 MB / 0.5582 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007611/0.4959, allocations: 2.053 MB / 0.5602 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/0.4959, allocations: 5.438 kB / 0.5602 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00597/0.5019, allocations: 1.623 MB / 0.5618 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.503, allocations: 202.3 kB / 0.562 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.5143, allocations: 6.643 MB / 0.5684 GB, free: 7.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007116/0.515, allocations: 0.9338 MB / 0.5694 GB, free: 6.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006614/0.5157, allocations: 113.5 kB / 0.5695 GB, free: 6.617 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004748/0.5162, allocations: 263.3 kB / 0.5697 GB, free: 6.359 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5162, allocations: 0 / 0.5697 GB, free: 6.359 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06498/0.5812, allocations: 19.49 MB / 0.5887 GB, free: 3.125 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.98, allocations: 23.84 kB / 0.5888 GB, free: 3.102 MB / 430.1 MB " [Timeout remaining time 646] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002_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_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.019708794890903] Failed to read output from testmodel.py, exit status != 0: 14.092404538067058 14.12018924 13.970108423 Calling exit ...