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.007597/0.007596, allocations: 96.42 kB / 15.73 MB, free: 5.988 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.001687/0.001688, allocations: 187.8 kB / 16.67 MB, free: 5.918 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2206/0.2206, allocations: 22.36 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 61.5 kB / 436.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1211, allocations: 54.97 MB / 491.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004775/0.1259, allocations: 4.244 MB / 495.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002468/0.1284, allocations: 1.333 MB / 497.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.1286, allocations: 4 kB / 497.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001702/0.1288, allocations: 91 kB / 497.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005727/0.1294, allocations: 233.9 kB / 497.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006886/0.1301, allocations: 303.5 kB / 497.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.1313, allocations: 1.165 MB / 498.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008022/0.1321, allocations: 0.5596 MB / 499.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005582/0.1327, allocations: 466.8 kB / 499.9 MB, free: 9.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005551/0.1333, allocations: 0.5138 MB / 0.4887 GB, free: 8.793 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.1334, allocations: 108 kB / 0.4888 GB, free: 8.688 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002014/0.1336, allocations: 108 kB / 0.4889 GB, free: 8.582 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.1338, allocations: 235.4 kB / 0.4892 GB, free: 8.352 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003984/0.1342, allocations: 478 kB / 0.4896 GB, free: 7.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.1355, allocations: 1.109 MB / 0.4907 GB, free: 6.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.691e-05/0.1355, allocations: 0 / 0.4907 GB, free: 6.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.491e-06/0.1355, allocations: 0 / 0.4907 GB, free: 6.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.493e-05/0.1356, allocations: 0 / 0.4907 GB, free: 6.77 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002625/0.1382, allocations: 1.092 MB / 0.4918 GB, free: 5.629 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.1383, allocations: 12.03 kB / 0.4918 GB, free: 5.617 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.1385, allocations: 135.7 kB / 0.4919 GB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.1386, allocations: 84.42 kB / 0.492 GB, free: 5.395 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.1389, allocations: 245 kB / 0.4922 GB, free: 5.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.915e-05/0.1389, allocations: 73.94 kB / 0.4923 GB, free: 5.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001903/0.1391, allocations: 84 kB / 0.4924 GB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.1405, allocations: 0.8116 MB / 0.4932 GB, free: 4.141 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.1406, allocations: 0 / 0.4932 GB, free: 4.141 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-05/0.1407, allocations: 36 kB / 0.4932 GB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.1407, allocations: 20 kB / 0.4932 GB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.1421, allocations: 0.8315 MB / 0.494 GB, free: 3.258 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: 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.00435/0.1465, allocations: 2.604 MB / 0.4966 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002132/0.1486, allocations: 1.013 MB / 0.4976 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007034/0.1493, allocations: 419.7 kB / 0.498 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-05/0.1494, allocations: 16.98 kB / 0.498 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.1494, allocations: 47.56 kB / 0.498 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004602/0.1499, allocations: 131.3 kB / 0.4981 GB, free: 14.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 2.234e-06/0.1499, allocations: 0 / 0.4981 GB, free: 14.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.008666/0.1586, allocations: 3.538 MB / 0.5016 GB, free: 11.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.1587, allocations: 64.41 kB / 0.5017 GB, free: 11.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.1589, allocations: 219.9 kB / 0.5019 GB, free: 10.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.203e-05/0.159, allocations: 45.7 kB / 0.5019 GB, free: 10.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.1591, allocations: 241.7 kB / 0.5021 GB, free: 10.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003491/0.1595, allocations: 440.1 kB / 0.5026 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002924/0.1598, allocations: 186.9 kB / 0.5027 GB, free: 10.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1599, allocations: 362.8 kB / 0.5031 GB, free: 9.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006581/0.1606, allocations: 358.5 kB / 0.5034 GB, free: 9.305 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007167/0.1613, allocations: 454.5 kB / 0.5039 GB, free: 8.844 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01876/0.1801, allocations: 3.485 MB / 0.5073 GB, free: 5.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1801, allocations: 0 / 0.5073 GB, free: 5.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002767/0.1829, allocations: 1.211 MB / 0.5084 GB, free: 4.109 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.1829, allocations: 7.938 kB / 0.5085 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.183, allocations: 4 kB / 0.5085 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.1841, allocations: 215.2 kB / 0.5087 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006182/0.1902, allocations: 0.8116 MB / 0.5095 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01325/0.2035, allocations: 14.94 MB / 0.524 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008778/0.2044, allocations: 27.98 kB / 0.5241 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/0.2047, allocations: 39.98 kB / 0.5241 GB, free: 2.637 MB / 398.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 = 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.0006907/0.2054, allocations: 243.8 kB / 0.5243 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/0.2056, allocations: 55.67 kB / 0.5244 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003245/0.2089, allocations: 1.484 MB / 0.5258 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.2089, allocations: 12 kB / 0.5259 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.2089, allocations: 0 / 0.5259 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.2089, allocations: 3.984 kB / 0.5259 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004897/0.2138, allocations: 2.591 MB / 0.5284 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.2139, allocations: 4 kB / 0.5284 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005675/0.2196, allocations: 0.7609 MB / 0.5291 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/0.2216, allocations: 382.9 kB / 0.5295 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001717/0.2218, allocations: 35.98 kB / 0.5295 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/0.2357, allocations: 15.18 MB / 0.5444 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.385e-06/0.2358, allocations: 7.938 kB / 0.5444 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004269/0.24, allocations: 2.067 MB / 0.5464 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002294/0.2403, allocations: 140.7 kB / 0.5465 GB, free: 9.945 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.2404, allocations: 28.19 kB / 0.5465 GB, free: 9.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007315/0.2412, allocations: 43.98 kB / 0.5466 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000291/0.2415, allocations: 120.7 kB / 0.5467 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.433e-05/0.2416, allocations: 43.98 kB / 0.5467 GB, free: 9.715 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.2418, allocations: 172.1 kB / 0.5469 GB, free: 9.547 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2418, allocations: 0 / 0.5469 GB, free: 9.547 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001269/0.243, allocations: 256 kB / 0.5472 GB, free: 9.297 MB / 430.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.004349/0.2474, allocations: 2.647 MB / 0.5497 GB, free: 6.531 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00748/0.2549, allocations: 2.053 MB / 0.5517 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.2549, allocations: 0 / 0.5517 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006208/0.2611, allocations: 1.622 MB / 0.5533 GB, free: 2.746 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.2625, allocations: 209.6 kB / 0.5535 GB, free: 2.539 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/0.2748, allocations: 6.617 MB / 0.56 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007129/0.2756, allocations: 0.9416 MB / 0.5609 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006662/0.2763, allocations: 121.5 kB / 0.561 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004685/0.2768, allocations: 255.3 kB / 0.5613 GB, free: 10.29 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2768, allocations: 0 / 0.5613 GB, free: 10.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05947/0.3363, allocations: 19.48 MB / 0.5803 GB, free: 7.039 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.59, allocations: 3.781 kB / 0.5803 GB, free: 7.035 MB / 462.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)