Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Pumps_valve.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.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",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.006999/0.006999, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.001627/0.001627, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2287/0.2287, allocations: 22.36 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 71.73 kB / 436.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 54.97 MB / 491.6 MB, free: 1.719 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Pumps_valve): time 0.02988/0.1461, allocations: 22.29 MB / 0.5018 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.1472, allocations: 394.9 kB / 0.5022 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.1473, allocations: 4 kB / 0.5022 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.855e-05/0.1474, allocations: 39.52 kB / 0.5022 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.1476, allocations: 107.1 kB / 0.5023 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.1479, allocations: 107.8 kB / 0.5024 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003533/0.1483, allocations: 418.1 kB / 0.5028 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003124/0.1486, allocations: 251.5 kB / 0.5031 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.1488, allocations: 159.5 kB / 0.5032 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.149, allocations: 219.1 kB / 0.5034 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.132e-05/0.149, allocations: 40 kB / 0.5035 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.1492, allocations: 63.97 kB / 0.5035 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.151e-05/0.1492, allocations: 91.66 kB / 0.5036 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.1494, allocations: 187.1 kB / 0.5038 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004212/0.1498, allocations: 442.2 kB / 0.5042 GB, free: 9.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1498, allocations: 0 / 0.5042 GB, free: 9.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1498, allocations: 3.938 kB / 0.5042 GB, free: 9.074 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1499, allocations: 0 / 0.5042 GB, free: 9.074 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001097/0.151, allocations: 0.697 MB / 0.5049 GB, free: 8.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.151, allocations: 8.031 kB / 0.5049 GB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.471e-05/0.1511, allocations: 62.72 kB / 0.505 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.837e-05/0.1511, allocations: 44.7 kB / 0.505 GB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.1515, allocations: 308.2 kB / 0.5053 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.1515, allocations: 16.94 kB / 0.5053 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.013e-05/0.1516, allocations: 28.31 kB / 0.5053 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005339/0.1521, allocations: 285.3 kB / 0.5056 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1521, allocations: 3.938 kB / 0.5056 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.1522, allocations: 8 kB / 0.5056 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1522, allocations: 12 kB / 0.5056 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005742/0.1528, allocations: 250.1 kB / 0.5059 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001287/0.1541, allocations: 0.8112 MB / 0.5067 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000492/0.1546, allocations: 238.6 kB / 0.5069 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003342/0.1549, allocations: 152.7 kB / 0.507 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.1549, allocations: 3.938 kB / 0.507 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.155, allocations: 38.56 kB / 0.5071 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001974/0.1552, allocations: 43.77 kB / 0.5071 GB, free: 5.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.876e-06/0.1552, allocations: 3.984 kB / 0.5071 GB, free: 5.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003412/0.1586, allocations: 0.9677 MB / 0.5081 GB, free: 4.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.1586, allocations: 59.34 kB / 0.5081 GB, free: 4.801 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.1589, allocations: 287.4 kB / 0.5084 GB, free: 4.512 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.1589, allocations: 33.7 kB / 0.5084 GB, free: 4.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1591, allocations: 180.7 kB / 0.5086 GB, free: 4.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.838e-05/0.1591, allocations: 83.25 kB / 0.5087 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.578e-05/0.1592, allocations: 53.92 kB / 0.5087 GB, free: 4.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1593, allocations: 338.8 kB / 0.5091 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.1596, allocations: 100.4 kB / 0.5092 GB, free: 3.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.1599, allocations: 104.9 kB / 0.5093 GB, free: 3.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005245/0.1604, allocations: 236.2 kB / 0.5095 GB, free: 3.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1604, allocations: 0 / 0.5095 GB, free: 3.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001741/0.1621, allocations: 0.496 MB / 0.51 GB, free: 2.871 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.1622, allocations: 4 kB / 0.51 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1622, allocations: 0 / 0.51 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.1633, allocations: 202.4 kB / 0.5102 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005877/0.1639, allocations: 95.84 kB / 0.5103 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004112/0.168, allocations: 4.759 MB / 0.5149 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000235/0.1683, allocations: 23.94 kB / 0.5149 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.1683, allocations: 8 kB / 0.5149 GB, free: 13.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.1685, allocations: 149.8 kB / 0.5151 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.752e-05/0.1686, allocations: 27.81 kB / 0.5151 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.1699, allocations: 0.5179 MB / 0.5156 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1699, allocations: 4 kB / 0.5156 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1699, allocations: 0 / 0.5156 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.17, allocations: 3.938 kB / 0.5156 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.1718, allocations: 0.9311 MB / 0.5165 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1718, allocations: 0 / 0.5165 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005107/0.1723, allocations: 91.86 kB / 0.5166 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006242/0.173, allocations: 142.5 kB / 0.5167 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.173, allocations: 12 kB / 0.5168 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002975/0.176, allocations: 4.431 MB / 0.5211 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.176, allocations: 0 / 0.5211 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.1772, allocations: 0.5612 MB / 0.5216 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.638e-05/0.1773, allocations: 120.7 kB / 0.5218 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.124e-05/0.1774, allocations: 8 kB / 0.5218 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.1776, allocations: 15.98 kB / 0.5218 GB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.617e-05/0.1777, allocations: 23.97 kB / 0.5218 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.1778, allocations: 15.98 kB / 0.5218 GB, free: 5.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.178, allocations: 206 kB / 0.522 GB, free: 5.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.178, allocations: 0 / 0.522 GB, free: 5.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005699/0.1785, allocations: 99.89 kB / 0.5221 GB, free: 5.613 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,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.001455/0.18, allocations: 1.085 MB / 0.5232 GB, free: 4.492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.182, allocations: 0.6455 MB / 0.5238 GB, free: 3.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.182, allocations: 4 kB / 0.5238 GB, free: 3.816 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008811/0.1829, allocations: 449.6 kB / 0.5242 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/0.1834, allocations: 55.45 kB / 0.5243 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006053/0.1894, allocations: 3.279 MB / 0.5275 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.1898, allocations: 0.7962 MB / 0.5283 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.1899, allocations: 34.95 kB / 0.5283 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.1901, allocations: 111.4 kB / 0.5284 GB, free: 14.96 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1901, allocations: 0 / 0.5284 GB, free: 14.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/0.222, allocations: 8.019 MB / 0.5362 GB, free: 7.027 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.03, allocations: 13.66 kB / 0.5362 GB, free: 7.016 MB / 414.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Pumps_valve.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Pumps_valve_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 AES_AES_Coursework_ThermSys_component_models_Pumps_valve.fmu > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)