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.001326/0.001326, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001466/0.001466, allocations: 212.6 kB / 23.01 MB, free: 4.992 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.537/1.537, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1048/0.1048, allocations: 24.03 MB / 337.2 MB, free: 11.35 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.002891/0.002891, allocations: 71.89 kB / 473.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3279, allocations: 59.58 MB / 0.5209 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004254/0.3322, allocations: 3.606 MB / 0.5244 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.3345, allocations: 1.253 MB / 0.5257 GB, free: 6.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004402/0.3349, allocations: 7.188 kB / 0.5257 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.3352, allocations: 81.47 kB / 0.5257 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007457/0.3359, allocations: 218.9 kB / 0.526 GB, free: 6.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009568/0.3369, allocations: 290.1 kB / 0.5262 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001693/0.3386, allocations: 1.094 MB / 0.5273 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007759/0.3393, allocations: 383.1 kB / 0.5277 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007061/0.34, allocations: 409.2 kB / 0.5281 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005498/0.3406, allocations: 376.7 kB / 0.5284 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.3407, allocations: 97.66 kB / 0.5285 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.3409, allocations: 94.09 kB / 0.5286 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.341, allocations: 195.8 kB / 0.5288 GB, free: 5.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003042/0.3413, allocations: 360.3 kB / 0.5291 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.3424, allocations: 0.9738 MB / 0.5301 GB, free: 4.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3424, allocations: 0 / 0.5301 GB, free: 4.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.3424, allocations: 1.094 kB / 0.5301 GB, free: 4.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.3424, allocations: 0 / 0.5301 GB, free: 4.656 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.002293/0.3447, allocations: 0.9244 MB / 0.531 GB, free: 4.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3447, allocations: 9.656 kB / 0.531 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.3449, allocations: 130.1 kB / 0.5311 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.345, allocations: 80.97 kB / 0.5312 GB, free: 3.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.3452, allocations: 185.8 kB / 0.5314 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.3453, allocations: 67.28 kB / 0.5314 GB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.3454, allocations: 89.22 kB / 0.5315 GB, free: 3.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.3465, allocations: 0.7116 MB / 0.5322 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.3465, allocations: 0 / 0.5322 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-05/0.3466, allocations: 35.75 kB / 0.5323 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.3466, allocations: 19.91 kB / 0.5323 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.3479, allocations: 0.6832 MB / 0.5329 GB, free: 3.121 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.003436/0.3513, allocations: 1.703 MB / 0.5346 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009894/0.3523, allocations: 0.6183 MB / 0.5352 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004763/0.3528, allocations: 298.4 kB / 0.5355 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.884e-05/0.3529, allocations: 15.88 kB / 0.5355 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.3529, allocations: 45.31 kB / 0.5355 GB, free: 1.738 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.146e-06/0.3529, allocations: 0 / 0.5355 GB, free: 1.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.006915/0.3598, allocations: 2.807 MB / 0.5383 GB, free: 500 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/0.3598, allocations: 68.52 kB / 0.5384 GB, free: 428 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.36, allocations: 211.4 kB / 0.5386 GB, free: 276 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.304e-05/0.3601, allocations: 41.3 kB / 0.5386 GB, free: 232 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.317e-05/0.3602, allocations: 237.3 kB / 0.5388 GB, free: 32 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003405/0.3605, allocations: 402.2 kB / 0.5392 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.3607, allocations: 150.3 kB / 0.5393 GB, free: 15.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3609, allocations: 359.4 kB / 0.5397 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005876/0.3615, allocations: 296.3 kB / 0.54 GB, free: 15.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006019/0.3621, allocations: 385.4 kB / 0.5403 GB, free: 15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01095/0.3731, allocations: 2.253 MB / 0.5425 GB, free: 14.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3731, allocations: 0 / 0.5425 GB, free: 14.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002415/0.3755, allocations: 1.044 MB / 0.5436 GB, free: 13.86 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3755, allocations: 5.844 kB / 0.5436 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3755, allocations: 5.531 kB / 0.5436 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.3766, allocations: 209.2 kB / 0.5438 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005459/0.382, allocations: 0.7565 MB / 0.5445 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01342/0.3954, allocations: 13.88 MB / 0.5581 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007981/0.3962, allocations: 30.31 kB / 0.5581 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.812e-05/0.3963, allocations: 29.12 kB / 0.5581 GB, free: 15.44 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.0007422/0.3971, allocations: 233.6 kB / 0.5583 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3972, allocations: 52.17 kB / 0.5584 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003155/0.4003, allocations: 1.242 MB / 0.5596 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.4004, allocations: 10.59 kB / 0.5596 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.4004, allocations: 2.688 kB / 0.5596 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.4004, allocations: 7.922 kB / 0.5596 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004649/0.405, allocations: 2.22 MB / 0.5618 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.405, allocations: 10.66 kB / 0.5618 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005103/0.4102, allocations: 0.7009 MB / 0.5625 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001982/0.4121, allocations: 360 kB / 0.5628 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/0.4123, allocations: 29.19 kB / 0.5629 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01311/0.4254, allocations: 14.05 MB / 0.5766 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.4254, allocations: 12.19 kB / 0.5766 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003743/0.4292, allocations: 1.818 MB / 0.5784 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001779/0.4294, allocations: 53.36 kB / 0.5784 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.4295, allocations: 32.3 kB / 0.5784 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.43, allocations: 31.12 kB / 0.5785 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/0.4303, allocations: 124.8 kB / 0.5786 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.87e-05/0.4304, allocations: 40.95 kB / 0.5786 GB, free: 13.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002473/0.4306, allocations: 151.1 kB / 0.5788 GB, free: 12.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4306, allocations: 0 / 0.5788 GB, free: 12.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001032/0.4316, allocations: 236.2 kB / 0.579 GB, free: 12.86 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.003824/0.4355, allocations: 2.394 MB / 0.5813 GB, free: 10.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007243/0.4427, allocations: 1.846 MB / 0.5831 GB, free: 8.512 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/0.4427, allocations: 0 / 0.5831 GB, free: 8.512 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006638/0.4494, allocations: 1.501 MB / 0.5846 GB, free: 6.965 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.4508, allocations: 177 kB / 0.5848 GB, free: 6.789 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.4622, allocations: 6.043 MB / 0.5907 GB, free: 444 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/0.4626, allocations: 311.4 kB / 0.591 GB, free: 104 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005887/0.4632, allocations: 93.02 kB / 0.5911 GB, free: 12 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004085/0.4636, allocations: 219.4 kB / 0.5913 GB, free: 15.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4636, allocations: 0 / 0.5913 GB, free: 15.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06932/0.533, allocations: 18.41 MB / 0.6092 GB, free: 13.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.6, allocations: 10.66 kB / 0.6093 GB, free: 13.67 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: 17.747891544364393] Failed to read output from testmodel.py, exit status != 0: 14.731528060976416 14.751886224 14.405377147 Calling exit ...