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.001274/0.001274, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.001422/0.001422, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1025/0.1025, allocations: 22.93 MB / 332.5 MB, free: 2.633 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="cs",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="cs",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.002006/0.002006, allocations: 64.7 kB / 466.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.1004, allocations: 59.27 MB / 0.5137 GB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005476/0.1059, allocations: 4.054 MB / 0.5176 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002323/0.1082, allocations: 1.309 MB / 0.5189 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.1084, allocations: 4 kB / 0.5189 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.1086, allocations: 79.14 kB / 0.519 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004285/0.109, allocations: 218 kB / 0.5192 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005766/0.1096, allocations: 295.5 kB / 0.5195 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.1107, allocations: 1.092 MB / 0.5206 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005258/0.1112, allocations: 381 kB / 0.5209 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004576/0.1116, allocations: 414.9 kB / 0.5213 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005135/0.1122, allocations: 422.4 kB / 0.5217 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.1123, allocations: 96 kB / 0.5218 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.1124, allocations: 92 kB / 0.5219 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.1126, allocations: 191.5 kB / 0.5221 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004193/0.113, allocations: 430.3 kB / 0.5225 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.1141, allocations: 0.9691 MB / 0.5234 GB, free: 3.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1141, allocations: 0 / 0.5234 GB, free: 3.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1141, allocations: 0 / 0.5234 GB, free: 3.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.1141, allocations: 0 / 0.5234 GB, free: 3.961 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.002189/0.1163, allocations: 1.002 MB / 0.5244 GB, free: 2.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.1164, allocations: 8.031 kB / 0.5244 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.9e-05/0.1164, allocations: 22.19 kB / 0.5244 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/0.1166, allocations: 131.3 kB / 0.5246 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.1167, allocations: 76.47 kB / 0.5246 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.117, allocations: 240 kB / 0.5249 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.068e-05/0.117, allocations: 66.36 kB / 0.5249 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.1171, allocations: 79.94 kB / 0.525 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.1185, allocations: 0.6984 MB / 0.5257 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.1185, allocations: 0 / 0.5257 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.968e-05/0.1186, allocations: 35.94 kB / 0.5257 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.62e-05/0.1186, allocations: 20 kB / 0.5258 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.12, allocations: 0.6949 MB / 0.5264 GB, free: 0.7969 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.004172/0.1241, allocations: 2.302 MB / 0.5287 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.1253, allocations: 0.6211 MB / 0.5293 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005569/0.1259, allocations: 307.8 kB / 0.5296 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.061e-05/0.1259, allocations: 12.98 kB / 0.5296 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001021/0.126, allocations: 43.56 kB / 0.5296 GB, free: 13.37 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 2.946e-06/0.126, allocations: 0 / 0.5296 GB, free: 13.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=112): time 0.008317/0.1344, allocations: 3.107 MB / 0.5327 GB, free: 10.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.1344, allocations: 72.28 kB / 0.5327 GB, free: 10.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.1347, allocations: 199.8 kB / 0.5329 GB, free: 9.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.838e-05/0.1347, allocations: 45.7 kB / 0.533 GB, free: 9.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.1349, allocations: 237.5 kB / 0.5332 GB, free: 9.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003489/0.1352, allocations: 408.4 kB / 0.5336 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.1355, allocations: 146.7 kB / 0.5337 GB, free: 9.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002115/0.1357, allocations: 354.8 kB / 0.5341 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005765/0.1363, allocations: 293.9 kB / 0.5343 GB, free: 8.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006551/0.137, allocations: 391.1 kB / 0.5347 GB, free: 7.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/0.1485, allocations: 2.247 MB / 0.5369 GB, free: 5.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1485, allocations: 4 kB / 0.5369 GB, free: 5.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002433/0.1509, allocations: 1.043 MB / 0.5379 GB, free: 4.652 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.151, allocations: 8 kB / 0.5379 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.151, allocations: 3.938 kB / 0.5379 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.152, allocations: 219.2 kB / 0.5382 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005846/0.1579, allocations: 0.7569 MB / 0.5389 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01405/0.1719, allocations: 14.93 MB / 0.5535 GB, free: 3.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007121/0.1726, allocations: 28.02 kB / 0.5535 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.978e-05/0.1727, allocations: 32 kB / 0.5535 GB, free: 3.234 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.0005025/0.1732, allocations: 238.6 kB / 0.5538 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.1733, allocations: 47.72 kB / 0.5538 GB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002947/0.1763, allocations: 1.238 MB / 0.555 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.1763, allocations: 16 kB / 0.555 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.1763, allocations: 4 kB / 0.555 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.1763, allocations: 11.91 kB / 0.555 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004677/0.181, allocations: 2.378 MB / 0.5574 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.181, allocations: 8 kB / 0.5574 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005193/0.1862, allocations: 0.7029 MB / 0.5581 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/0.1883, allocations: 355 kB / 0.5584 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.1884, allocations: 31.98 kB / 0.5584 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01389/0.2023, allocations: 15.12 MB / 0.5732 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/0.2023, allocations: 7.938 kB / 0.5732 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003664/0.206, allocations: 1.819 MB / 0.575 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.2061, allocations: 132.8 kB / 0.5751 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.953e-05/0.2062, allocations: 43.92 kB / 0.5751 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000592/0.2068, allocations: 24 kB / 0.5752 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.2071, allocations: 120.6 kB / 0.5753 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.015e-05/0.2071, allocations: 36 kB / 0.5753 GB, free: 11.17 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001734/0.2073, allocations: 162.8 kB / 0.5755 GB, free: 11.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2073, allocations: 0 / 0.5755 GB, free: 11.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00104/0.2084, allocations: 232 kB / 0.5757 GB, free: 10.78 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.004012/0.2124, allocations: 2.399 MB / 0.578 GB, free: 8.254 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007439/0.2198, allocations: 1.842 MB / 0.5798 GB, free: 6.355 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.2198, allocations: 4.25 kB / 0.5798 GB, free: 6.352 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006208/0.226, allocations: 1.497 MB / 0.5813 GB, free: 4.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.2272, allocations: 179 kB / 0.5815 GB, free: 4.633 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2434/0.4706, allocations: 6.032 MB / 0.5874 GB, free: 66.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008474/0.4714, allocations: 0.912 MB / 0.5883 GB, free: 66.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007124/0.4722, allocations: 90.86 kB / 0.5883 GB, free: 66.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005001/0.4727, allocations: 218.3 kB / 0.5885 GB, free: 66.09 MB / 446.1 MB Notification: Performance of SimCode: time 2.926e-06/0.4727, allocations: 0 / 0.5885 GB, free: 66.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06584/0.5385, allocations: 17.09 MB / 0.6052 GB, free: 61.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.22, allocations: 11.27 kB / 0.6053 GB, free: 61.23 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001_fmu --startTime=0 --stopTime=8000 --stepSize=0.8 --timeout=50 --tolerance=1e-06 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.687059360963758] Failed to read output from testmodel.py, exit status != 0: 14.389841886004433 14.408898691 14.291297675 Calling exit ...