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.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.0008519/0.0008519, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0008161/0.0008161, allocations: 169.6 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.8893/0.8893, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.06172/0.06172, allocations: 18.14 MB / 278.1 MB, free: 11.53 MB / 266.7 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_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 1.543e-06/1.543e-06, allocations: 0 / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.892e-05, allocations: 2.281 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003117/0.003136, allocations: 3.803 MB / 418.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.004933, allocations: 1.304 MB / 420.2 MB, free: 9.23 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002283/0.005162, allocations: 4.5 kB / 420.2 MB, free: 9.23 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.005289, allocations: 85.33 kB / 420.3 MB, free: 9.18 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003599/0.005649, allocations: 247.1 kB / 420.5 MB, free: 9 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005137/0.006162, allocations: 317.4 kB / 420.8 MB, free: 8.805 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007674/0.00693, allocations: 1.202 MB / 422 MB, free: 8.172 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005861/0.007516, allocations: 0.5002 MB / 422.5 MB, free: 7.941 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005322/0.008048, allocations: 458.3 kB / 423 MB, free: 7.754 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005392/0.008587, allocations: 424.4 kB / 423.4 MB, free: 7.625 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001631/0.00875, allocations: 110.8 kB / 423.5 MB, free: 7.625 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.008902, allocations: 111.3 kB / 423.6 MB, free: 7.625 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.00903, allocations: 242.6 kB / 423.8 MB, free: 7.461 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003514/0.009381, allocations: 362.2 kB / 424.2 MB, free: 7.305 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009997/0.01038, allocations: 1.196 MB / 425.4 MB, free: 6.832 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.01039, allocations: 1.188 kB / 425.4 MB, free: 6.832 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.01039, allocations: 0 / 425.4 MB, free: 6.832 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.575e-05/0.01042, allocations: 0 / 425.4 MB, free: 6.832 MB / 330.7 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.001636/0.01206, allocations: 0.9839 MB / 426.4 MB, free: 6.223 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.01211, allocations: 10.52 kB / 426.4 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/0.01224, allocations: 145.9 kB / 426.5 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.01237, allocations: 83.33 kB / 426.6 MB, free: 6.078 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.01255, allocations: 210 kB / 426.8 MB, free: 5.871 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.054e-05/0.01259, allocations: 66.28 kB / 426.9 MB, free: 5.844 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.01271, allocations: 85.64 kB / 427 MB, free: 5.816 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.01375, allocations: 0.8498 MB / 427.8 MB, free: 5.453 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.01376, allocations: 1.062 kB / 427.8 MB, free: 5.453 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.362e-05/0.01382, allocations: 35.56 kB / 427.8 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.01384, allocations: 20.03 kB / 427.9 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.01491, allocations: 0.8342 MB / 428.7 MB, free: 5.133 MB / 330.7 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.002957/0.01787, allocations: 1.95 MB / 430.6 MB, free: 4.086 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.01911, allocations: 0.9213 MB / 431.6 MB, free: 3.742 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004414/0.01955, allocations: 390 kB / 431.9 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.205e-05/0.01961, allocations: 16.27 kB / 432 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.01964, allocations: 43.45 kB / 432 MB, free: 3.531 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004343/0.02007, allocations: 170.8 kB / 432.2 MB, free: 3.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=113): time 4.509e-06/0.02007, allocations: 0 / 432.2 MB, free: 3.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=124): time 0.004946/0.02502, allocations: 3.239 MB / 435.4 MB, free: 1.891 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.02505, allocations: 65.12 kB / 435.5 MB, free: 1.828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.02521, allocations: 216.4 kB / 435.7 MB, free: 1.668 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.868e-05/0.02526, allocations: 41.95 kB / 435.7 MB, free: 1.625 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.02533, allocations: 245.3 kB / 436 MB, free: 1.402 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.02549, allocations: 440.8 kB / 436.4 MB, free: 1.016 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.02566, allocations: 177.5 kB / 436.6 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.852e-05/0.02571, allocations: 359.1 kB / 436.9 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003999/0.02611, allocations: 361.2 kB / 437.3 MB, free: 384 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004327/0.02654, allocations: 459.9 kB / 437.7 MB, free: 112 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008902/0.03544, allocations: 3.453 MB / 441.2 MB, free: 14.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.03545, allocations: 0 / 441.2 MB, free: 14.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.001624/0.03707, allocations: 1.207 MB / 442.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.0371, allocations: 5.562 kB / 442.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.03711, allocations: 0 / 442.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000519/0.03762, allocations: 215 kB / 442.6 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002591/0.04022, allocations: 0.8116 MB / 443.4 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006782/0.047, allocations: 13.86 MB / 457.3 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006309/0.04763, allocations: 32.03 kB / 457.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.768e-05/0.04769, allocations: 48.03 kB / 457.3 MB, free: 13.02 MB / 362.7 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.0004236/0.04811, allocations: 237 kB / 457.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.438e-05/0.04819, allocations: 55.61 kB / 457.6 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/0.05011, allocations: 1.469 MB / 459.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.05012, allocations: 16 kB / 459.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.05013, allocations: 0 / 459.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.05014, allocations: 7.969 kB / 459.1 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.05316, allocations: 2.414 MB / 461.5 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.05316, allocations: 4 kB / 461.5 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/0.05546, allocations: 0.7648 MB / 462.3 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009071/0.05637, allocations: 363 kB / 462.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.507e-05/0.05644, allocations: 31.98 kB / 462.7 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007323/0.06376, allocations: 14.1 MB / 476.8 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.06377, allocations: 7.938 kB / 476.8 MB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002946/0.06672, allocations: 2.052 MB / 478.9 MB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.06688, allocations: 59.67 kB / 478.9 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.522e-05/0.06697, allocations: 35.98 kB / 479 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003556/0.06733, allocations: 35.94 kB / 479 MB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002406/0.06757, allocations: 128.7 kB / 479.1 MB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.016e-05/0.06762, allocations: 43.94 kB / 479.2 MB, free: 5.742 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001292/0.06774, allocations: 161.1 kB / 479.3 MB, free: 5.586 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.06775, allocations: 0 / 479.3 MB, free: 5.586 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009257/0.06867, allocations: 260 kB / 479.6 MB, free: 5.332 MB / 378.7 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.002734/0.07141, allocations: 2.631 MB / 482.2 MB, free: 2.586 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00369/0.0751, allocations: 1.979 MB / 484.2 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.0751, allocations: 4 kB / 484.2 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00281/0.07791, allocations: 1.587 MB / 485.8 MB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007867/0.0787, allocations: 205.9 kB / 486 MB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007362/0.08606, allocations: 6.593 MB / 492.6 MB, free: 7.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.08633, allocations: 337.7 kB / 492.9 MB, free: 7.465 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004747/0.0868, allocations: 113.5 kB / 493 MB, free: 7.352 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/0.08713, allocations: 260.4 kB / 493.3 MB, free: 7.098 MB / 394.7 MB Notification: Performance of SimCode: time 1.313e-06/0.08713, allocations: 0 / 493.3 MB, free: 7.098 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03605/0.1232, allocations: 21.21 MB / 0.5024 GB, free: 2.203 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.522/8.645, allocations: 10.22 kB / 0.5024 GB, free: 2.195 MB / 410.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002_fmu --startTime=0 --stopTime=8000 --stepSize=0.8 --timeout=50 --tolerance=1e-06 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: 10.701041479595006] Failed to read output from testmodel.py, exit status != 0: 8.745574996806681 8.753072991 8.740356473 Calling exit ...