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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, 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.00119/0.00119, allocations: 193 kB / 16.53 MB, free: 6.391 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.412/1.412, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2003/0.2003, allocations: 22.34 MB / 312.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002547/0.002547, allocations: 67.88 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3481, allocations: 54.94 MB / 435.9 MB, free: 39.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004699/0.3528, allocations: 4.009 MB / 439.9 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.3548, allocations: 1.293 MB / 441.2 MB, free: 36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002047/0.355, allocations: 2.844 kB / 441.2 MB, free: 36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.3552, allocations: 79.22 kB / 441.3 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003834/0.3556, allocations: 212.3 kB / 441.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.3561, allocations: 301.1 kB / 441.8 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007489/0.3569, allocations: 1.085 MB / 442.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004672/0.3573, allocations: 438 kB / 443.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003646/0.3577, allocations: 401.6 kB / 443.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003858/0.3581, allocations: 423.1 kB / 444.1 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.3582, allocations: 95.53 kB / 444.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.3584, allocations: 92.31 kB / 444.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3585, allocations: 191.6 kB / 444.5 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003028/0.3588, allocations: 430.4 kB / 444.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006321/0.3594, allocations: 0.9455 MB / 445.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3595, allocations: 0 / 445.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3595, allocations: 0 / 445.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.3595, allocations: 3.938 kB / 445.8 MB, free: 33.74 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.00175/0.3612, allocations: 0.9948 MB / 446.8 MB, free: 33.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.3613, allocations: 11.28 kB / 446.8 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001182/0.3614, allocations: 132.1 kB / 447 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.3615, allocations: 75.69 kB / 447 MB, free: 32.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.3617, allocations: 241 kB / 447.3 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.3618, allocations: 61.41 kB / 447.3 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.3619, allocations: 81.44 kB / 447.4 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.363, allocations: 0.6948 MB / 448.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.3631, allocations: 0 / 448.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.569e-05/0.3631, allocations: 31.69 kB / 448.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.3632, allocations: 23.03 kB / 448.2 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.3642, allocations: 0.701 MB / 448.9 MB, free: 32.08 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: 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.002972/0.3672, allocations: 2.308 MB / 451.2 MB, free: 30.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009953/0.3682, allocations: 0.6813 MB / 451.8 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/0.3686, allocations: 331.6 kB / 452.2 MB, free: 30.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.698e-05/0.3687, allocations: 18.5 kB / 452.2 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.3687, allocations: 49.81 kB / 452.2 MB, free: 30.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.766e-06/0.3687, allocations: 0 / 452.2 MB, free: 30.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006865/0.3756, allocations: 3.09 MB / 455.3 MB, free: 28.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.3757, allocations: 63.97 kB / 455.4 MB, free: 28.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.3759, allocations: 207.8 kB / 455.6 MB, free: 28.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.325e-05/0.376, allocations: 42.17 kB / 455.6 MB, free: 28.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.843e-05/0.3761, allocations: 237 kB / 455.9 MB, free: 28.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.3763, allocations: 379.5 kB / 456.2 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000228/0.3765, allocations: 152.4 kB / 456.4 MB, free: 27.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.635e-05/0.3766, allocations: 356.3 kB / 456.7 MB, free: 27.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005031/0.3771, allocations: 294.9 kB / 457 MB, free: 27.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000553/0.3776, allocations: 386.5 kB / 457.4 MB, free: 27.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/0.3884, allocations: 2.255 MB / 459.7 MB, free: 26.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.3884, allocations: 0.9688 kB / 459.7 MB, free: 26.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00271/0.3912, allocations: 1.041 MB / 460.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.3912, allocations: 6.094 kB / 460.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3912, allocations: 1.125 kB / 460.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.3923, allocations: 211.8 kB / 460.9 MB, free: 25.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005599/0.3979, allocations: 0.753 MB / 461.7 MB, free: 25.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009591/0.4076, allocations: 14.96 MB / 476.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007292/0.4083, allocations: 28.8 kB / 476.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-05/0.4084, allocations: 29.03 kB / 476.7 MB, free: 10.67 MB / 350.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 = 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 (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.0004626/0.4089, allocations: 225.5 kB / 476.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.409, allocations: 47.09 kB / 476.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003024/0.412, allocations: 1.255 MB / 478.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.4121, allocations: 13.03 kB / 478.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/0.4121, allocations: 1.656 kB / 478.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.4121, allocations: 9.859 kB / 478.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004671/0.4168, allocations: 2.381 MB / 480.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.4168, allocations: 6.875 kB / 480.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005097/0.4219, allocations: 0.6979 MB / 481.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00209/0.424, allocations: 363.9 kB / 481.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002225/0.4243, allocations: 36.64 kB / 481.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/0.4367, allocations: 15.11 MB / 496.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.375e-05/0.4367, allocations: 12.41 kB / 496.8 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004343/0.4411, allocations: 1.822 MB / 498.6 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002874/0.4414, allocations: 133.2 kB / 498.8 MB, free: 8.031 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.4416, allocations: 30.59 kB / 498.8 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007872/0.4424, allocations: 29.06 kB / 498.8 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004677/0.4429, allocations: 116.2 kB / 498.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.286e-05/0.443, allocations: 39.7 kB / 499 MB, free: 7.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002209/0.4432, allocations: 157.2 kB / 499.1 MB, free: 7.855 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4432, allocations: 0 / 499.1 MB, free: 7.855 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001378/0.4446, allocations: 232.3 kB / 499.4 MB, free: 7.82 MB / 366.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.004463/0.4491, allocations: 2.402 MB / 0.49 GB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007854/0.4569, allocations: 1.924 MB / 0.4919 GB, free: 5.348 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.55e-05/0.457, allocations: 1.188 kB / 0.4919 GB, free: 5.348 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006151/0.4631, allocations: 1.528 MB / 0.4934 GB, free: 4.152 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.4645, allocations: 182.4 kB / 0.4936 GB, free: 4.008 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.4752, allocations: 6.093 MB / 0.4995 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007056/0.476, allocations: 0.907 MB / 0.5004 GB, free: 13.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000809/0.4768, allocations: 97.02 kB / 0.5005 GB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004367/0.4773, allocations: 219.4 kB / 0.5007 GB, free: 12.83 MB / 382.1 MB Notification: Performance of SimCode: time 1.844e-06/0.4773, allocations: 3.938 kB / 0.5007 GB, free: 12.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06646/0.5438, allocations: 16.62 MB / 0.5169 GB, free: 12.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.46, allocations: 19.75 kB / 0.5169 GB, free: 12.42 MB / 398.1 MB (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)