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.008049/0.008049, allocations: 100.3 kB / 15.73 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00181/0.00181, allocations: 189 kB / 16.68 MB, free: 6.367 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.206/0.206, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 72.77 kB / 436.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1164, allocations: 54.96 MB / 491.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004538/0.1209, allocations: 4.024 MB / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.1229, allocations: 1.278 MB / 496.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.1231, allocations: 4 kB / 496.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.1233, allocations: 87.08 kB / 496.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004129/0.1237, allocations: 214.1 kB / 497.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005419/0.1242, allocations: 291.5 kB / 497.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009218/0.1252, allocations: 1.095 MB / 498.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005545/0.1257, allocations: 444.6 kB / 499 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004328/0.1262, allocations: 402.9 kB / 499.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004619/0.1266, allocations: 418.4 kB / 499.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.1268, allocations: 92 kB / 499.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.1269, allocations: 96 kB / 499.9 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.1271, allocations: 199.4 kB / 0.4884 GB, free: 9.035 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00038/0.1275, allocations: 426.2 kB / 0.4888 GB, free: 8.617 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008421/0.1283, allocations: 0.9613 MB / 0.4898 GB, free: 7.652 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.1283, allocations: 4 kB / 0.4898 GB, free: 7.648 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1283, allocations: 0 / 0.4898 GB, free: 7.648 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.1283, allocations: 0 / 0.4898 GB, free: 7.648 MB / 366.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.002025/0.1304, allocations: 0.9982 MB / 0.4907 GB, free: 6.602 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1304, allocations: 12.03 kB / 0.4908 GB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.1306, allocations: 127.3 kB / 0.4909 GB, free: 6.457 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.1307, allocations: 76.47 kB / 0.491 GB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.1309, allocations: 247.5 kB / 0.4912 GB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.773e-05/0.131, allocations: 62.38 kB / 0.4912 GB, free: 6.039 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.1311, allocations: 84.12 kB / 0.4913 GB, free: 5.957 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.1323, allocations: 0.6907 MB / 0.492 GB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.1323, allocations: 3.938 kB / 0.492 GB, free: 5.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.996e-05/0.1324, allocations: 36 kB / 0.492 GB, free: 5.219 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.1324, allocations: 20 kB / 0.4921 GB, free: 5.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.1336, allocations: 0.6949 MB / 0.4927 GB, free: 4.508 MB / 366.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.003516/0.1371, allocations: 2.308 MB / 0.495 GB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.1383, allocations: 0.668 MB / 0.4956 GB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005172/0.1388, allocations: 335.8 kB / 0.496 GB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.855e-05/0.1389, allocations: 16.98 kB / 0.496 GB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.1389, allocations: 39.56 kB / 0.496 GB, free: 1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 2.545e-06/0.1389, allocations: 0 / 0.496 GB, free: 1 MB / 366.1 MB Notification: Performance of matching and sorting (n=112): time 0.007482/0.1464, allocations: 3.116 MB / 0.4991 GB, free: 13.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/0.1465, allocations: 60.41 kB / 0.4991 GB, free: 13.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/0.1467, allocations: 203.8 kB / 0.4993 GB, free: 13.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.465e-05/0.1468, allocations: 49.7 kB / 0.4994 GB, free: 13.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.147, allocations: 237.5 kB / 0.4996 GB, free: 13.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003354/0.1474, allocations: 400.5 kB / 0.5 GB, free: 12.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002546/0.1476, allocations: 146.7 kB / 0.5001 GB, free: 12.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.1478, allocations: 362.7 kB / 0.5005 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.1484, allocations: 293.8 kB / 0.5007 GB, free: 11.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006289/0.149, allocations: 395.1 kB / 0.5011 GB, free: 11.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/0.1595, allocations: 2.254 MB / 0.5033 GB, free: 9.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1595, allocations: 0 / 0.5033 GB, free: 9.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00221/0.1618, allocations: 1.039 MB / 0.5043 GB, free: 8.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.1618, allocations: 4 kB / 0.5043 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1618, allocations: 4 kB / 0.5043 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009714/0.1628, allocations: 215.2 kB / 0.5045 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005475/0.1683, allocations: 0.7569 MB / 0.5053 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/0.1806, allocations: 14.95 MB / 0.5199 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006237/0.1813, allocations: 20 kB / 0.5199 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.734e-05/0.1814, allocations: 32 kB / 0.5199 GB, free: 6.844 MB / 398.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.0004405/0.1818, allocations: 236.9 kB / 0.5202 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.1819, allocations: 51.67 kB / 0.5202 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002685/0.1846, allocations: 1.254 MB / 0.5214 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.1846, allocations: 12 kB / 0.5214 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1847, allocations: 0 / 0.5214 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.1847, allocations: 3.984 kB / 0.5214 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004177/0.1889, allocations: 2.389 MB / 0.5238 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.1889, allocations: 4 kB / 0.5238 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004996/0.1939, allocations: 0.703 MB / 0.5245 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/0.1958, allocations: 358.9 kB / 0.5248 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-05/0.1959, allocations: 35.98 kB / 0.5248 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01237/0.2083, allocations: 15.12 MB / 0.5396 GB, free: 1.078 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/0.2083, allocations: 11.94 kB / 0.5396 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003459/0.2118, allocations: 1.819 MB / 0.5414 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.2119, allocations: 132.8 kB / 0.5415 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.2121, allocations: 35.98 kB / 0.5416 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006072/0.2127, allocations: 31.98 kB / 0.5416 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.2129, allocations: 116.6 kB / 0.5417 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.198e-05/0.213, allocations: 40.17 kB / 0.5417 GB, free: 14.76 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001552/0.2132, allocations: 151 kB / 0.5419 GB, free: 14.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.267e-06/0.2132, allocations: 3.938 kB / 0.5419 GB, free: 14.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001035/0.2142, allocations: 239.9 kB / 0.5421 GB, free: 14.38 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.003644/0.2179, allocations: 2.403 MB / 0.5445 GB, free: 11.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006995/0.2249, allocations: 1.897 MB / 0.5463 GB, free: 9.895 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.2249, allocations: 0 / 0.5463 GB, free: 9.895 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005685/0.2306, allocations: 1.529 MB / 0.5478 GB, free: 8.312 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.2316, allocations: 176.9 kB / 0.548 GB, free: 8.141 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009838/0.2415, allocations: 6.047 MB / 0.5539 GB, free: 1.777 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000552/0.2421, allocations: 0.9091 MB / 0.5548 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004729/0.2425, allocations: 93.02 kB / 0.5549 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003696/0.2429, allocations: 215.4 kB / 0.5551 GB, free: 0.543 MB / 430.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2429, allocations: 0 / 0.5551 GB, free: 0.543 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05257/0.2955, allocations: 16.92 MB / 0.5716 GB, free: 15.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.41, allocations: 5.438 kB / 0.5716 GB, free: 15.84 MB / 462.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)