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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002304/0.002304, allocations: 195.3 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2433/0.2433, allocations: 22.35 MB / 312.7 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 63.91 kB / 380.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3463, allocations: 54.94 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.00478/0.3511, allocations: 4.228 MB / 440.1 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.3534, allocations: 1.341 MB / 441.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002146/0.3536, allocations: 9.5 kB / 441.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.3538, allocations: 85.86 kB / 441.6 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004124/0.3542, allocations: 237.7 kB / 441.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005285/0.3548, allocations: 305 kB / 442.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009128/0.3557, allocations: 1.164 MB / 443.2 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006433/0.3563, allocations: 0.5539 MB / 443.8 MB, free: 34.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004231/0.3568, allocations: 462.5 kB / 444.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005296/0.3573, allocations: 0.5136 MB / 444.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.3575, allocations: 109.1 kB / 444.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.3576, allocations: 109 kB / 445 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001706/0.3578, allocations: 232.1 kB / 445.2 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004268/0.3582, allocations: 478.4 kB / 445.7 MB, free: 33.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008665/0.3591, allocations: 1.088 MB / 446.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.3591, allocations: 2.562 kB / 446.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3591, allocations: 0 / 446.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.3592, allocations: 0 / 446.8 MB, free: 33.1 MB / 350.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.002398/0.3616, allocations: 1.078 MB / 447.8 MB, free: 32.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.13e-05/0.3616, allocations: 13.75 kB / 447.9 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00017/0.3618, allocations: 136.3 kB / 448 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.362, allocations: 83.55 kB / 448.1 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.3623, allocations: 252.9 kB / 448.3 MB, free: 32.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.687e-05/0.3624, allocations: 69.38 kB / 448.4 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.3625, allocations: 90.66 kB / 448.5 MB, free: 31.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.3639, allocations: 0.8037 MB / 449.3 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.3639, allocations: 3.984 kB / 449.3 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-05/0.364, allocations: 39.44 kB / 449.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.463e-05/0.364, allocations: 22.06 kB / 449.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.3653, allocations: 0.826 MB / 450.2 MB, free: 31.3 MB / 350.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.003766/0.3691, allocations: 2.615 MB / 452.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.3709, allocations: 0.9957 MB / 453.8 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005247/0.3715, allocations: 423.9 kB / 454.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.377e-05/0.3715, allocations: 20.48 kB / 454.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.3716, allocations: 46.62 kB / 454.3 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000439/0.372, allocations: 123.1 kB / 454.4 MB, free: 29.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.365e-06/0.372, allocations: 1.062 kB / 454.4 MB, free: 29.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.008307/0.3803, allocations: 3.531 MB / 457.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.3804, allocations: 65.19 kB / 458 MB, free: 27.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.3806, allocations: 220.5 kB / 458.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.377e-05/0.3807, allocations: 46.73 kB / 458.2 MB, free: 26.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.3808, allocations: 234.4 kB / 458.5 MB, free: 26.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002463/0.3811, allocations: 433.6 kB / 458.9 MB, free: 26.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003344/0.3814, allocations: 173 kB / 459.1 MB, free: 26.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.485e-05/0.3815, allocations: 364.7 kB / 459.4 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006614/0.3822, allocations: 355.3 kB / 459.8 MB, free: 25.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000738/0.3829, allocations: 458.1 kB / 460.2 MB, free: 25.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01945/0.4024, allocations: 3.482 MB / 463.7 MB, free: 24.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4025, allocations: 0 / 463.7 MB, free: 24.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002809/0.4053, allocations: 1.21 MB / 464.9 MB, free: 24.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.4053, allocations: 7.688 kB / 464.9 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.4053, allocations: 1.656 kB / 464.9 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.4065, allocations: 220.1 kB / 465.1 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006328/0.4128, allocations: 0.8086 MB / 465.9 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/0.4232, allocations: 14.94 MB / 480.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009748/0.4242, allocations: 28.36 kB / 480.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.91e-05/0.4243, allocations: 44.08 kB / 480.9 MB, free: 9.074 MB / 350.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 = 100000.0 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.0005948/0.4249, allocations: 235 kB / 481.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.4251, allocations: 54.25 kB / 481.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003705/0.4288, allocations: 1.493 MB / 482.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.4288, allocations: 16.7 kB / 482.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.4289, allocations: 2.125 kB / 482.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.4289, allocations: 8.031 kB / 482.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004394/0.4333, allocations: 2.573 MB / 485.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/0.4333, allocations: 9.922 kB / 485.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005598/0.4389, allocations: 0.7534 MB / 486.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/0.4409, allocations: 368.4 kB / 486.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/0.441, allocations: 36.78 kB / 486.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01206/0.4531, allocations: 15.17 MB / 0.4899 GB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/0.4531, allocations: 11 kB / 0.4899 GB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004297/0.4574, allocations: 2.063 MB / 0.4919 GB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002061/0.4577, allocations: 139.9 kB / 0.4921 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.4578, allocations: 37.97 kB / 0.4921 GB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006606/0.4585, allocations: 30.11 kB / 0.4921 GB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000324/0.4588, allocations: 122.5 kB / 0.4922 GB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.069e-05/0.4589, allocations: 50.7 kB / 0.4923 GB, free: 5.926 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001745/0.4591, allocations: 170.8 kB / 0.4924 GB, free: 5.773 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4591, allocations: 0 / 0.4924 GB, free: 5.773 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001178/0.4603, allocations: 260 kB / 0.4927 GB, free: 5.52 MB / 366.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.004047/0.4643, allocations: 2.645 MB / 0.4953 GB, free: 2.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008022/0.4723, allocations: 2.096 MB / 0.4973 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/0.4724, allocations: 0 / 0.4973 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006128/0.4785, allocations: 1.618 MB / 0.4989 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.4802, allocations: 201.7 kB / 0.4991 GB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.4933, allocations: 6.719 MB / 0.5057 GB, free: 7.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006494/0.494, allocations: 0.9299 MB / 0.5066 GB, free: 6.859 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008476/0.4949, allocations: 117.5 kB / 0.5067 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004938/0.4954, allocations: 263.3 kB / 0.5069 GB, free: 6.484 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4954, allocations: 0 / 0.5069 GB, free: 6.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0516/0.547, allocations: 19.15 MB / 0.5256 GB, free: 3.582 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.5, allocations: 26.34 kB / 0.5257 GB, free: 3.562 MB / 398.1 MB (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)