Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.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_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_flow_control_Temperature_flow_control_01_open_loop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_flow_control_Temperature_flow_control_01_open_loop",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.00603/0.00603, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001209/0.001209, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.205/0.205, allocations: 22.33 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 61.59 kB / 436.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0914/0.09265, allocations: 54.96 MB / 491.5 MB, free: 1.73 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_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop): time 0.02853/0.1212, allocations: 22.79 MB / 0.5023 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.1231, allocations: 0.916 MB / 0.5032 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.1233, allocations: 11.94 kB / 0.5032 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002161/0.1236, allocations: 79.22 kB / 0.5033 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003497/0.1239, allocations: 214.6 kB / 0.5035 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.1244, allocations: 211.6 kB / 0.5037 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007738/0.1252, allocations: 0.8895 MB / 0.5045 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005928/0.1258, allocations: 0.5474 MB / 0.5051 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003841/0.1262, allocations: 382.9 kB / 0.5054 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005276/0.1268, allocations: 474.5 kB / 0.5059 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.1269, allocations: 84 kB / 0.506 GB, free: 7.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.127, allocations: 84 kB / 0.506 GB, free: 7.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002366/0.1273, allocations: 287.2 kB / 0.5063 GB, free: 6.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003699/0.1276, allocations: 410.2 kB / 0.5067 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008232/0.1285, allocations: 0.9612 MB / 0.5077 GB, free: 5.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1285, allocations: 0 / 0.5077 GB, free: 5.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1285, allocations: 0 / 0.5077 GB, free: 5.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.1285, allocations: 0 / 0.5077 GB, free: 5.531 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: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.002102/0.1306, allocations: 1.063 MB / 0.5087 GB, free: 4.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1307, allocations: 12.02 kB / 0.5087 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.1308, allocations: 106.7 kB / 0.5088 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.1309, allocations: 80.47 kB / 0.5089 GB, free: 4.215 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006602/0.1316, allocations: 457 kB / 0.5093 GB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.072e-05/0.1317, allocations: 75.58 kB / 0.5094 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.1318, allocations: 72.31 kB / 0.5095 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.1331, allocations: 0.713 MB / 0.5102 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.1332, allocations: 4 kB / 0.5102 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.5e-05/0.1332, allocations: 28 kB / 0.5102 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.1333, allocations: 12 kB / 0.5102 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.1345, allocations: 0.6532 MB / 0.5108 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004586/0.1391, allocations: 2.767 MB / 0.5135 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001798/0.1409, allocations: 0.638 MB / 0.5142 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006956/0.1416, allocations: 393.9 kB / 0.5145 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.1416, allocations: 16.36 kB / 0.5146 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.1417, allocations: 38.94 kB / 0.5146 GB, free: 14.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=52): time 1.804e-06/0.1417, allocations: 0 / 0.5146 GB, free: 14.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.003034/0.1447, allocations: 1.497 MB / 0.516 GB, free: 12.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.1448, allocations: 63.84 kB / 0.5161 GB, free: 12.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004557/0.1452, allocations: 417.9 kB / 0.5165 GB, free: 12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.506e-05/0.1453, allocations: 37.7 kB / 0.5165 GB, free: 11.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.1455, allocations: 312.8 kB / 0.5168 GB, free: 11.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.1457, allocations: 202.3 kB / 0.517 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.1459, allocations: 126.3 kB / 0.5172 GB, free: 11.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1461, allocations: 358.8 kB / 0.5175 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005449/0.1467, allocations: 343.6 kB / 0.5178 GB, free: 10.63 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005657/0.1472, allocations: 390.2 kB / 0.5182 GB, free: 10.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007345/0.1546, allocations: 2.047 MB / 0.5202 GB, free: 8.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1546, allocations: 0 / 0.5202 GB, free: 8.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001916/0.1565, allocations: 0.9735 MB / 0.5211 GB, free: 7.172 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.1566, allocations: 8 kB / 0.5212 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1566, allocations: 4 kB / 0.5212 GB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006783/0.1573, allocations: 168.1 kB / 0.5213 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.1585, allocations: 227.6 kB / 0.5215 GB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005809/0.1643, allocations: 7.607 MB / 0.529 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005681/0.1649, allocations: 71.52 kB / 0.529 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-05/0.165, allocations: 24 kB / 0.5291 GB, free: 14.32 MB / 414.1 MB Warning: Assuming fixed start value for the following 3 variables: heater.Ec:VARIABLE(flow=false fixed = true ) type: Real heater.Tfo:VARIABLE(min = 0.0 start = heater.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real heater.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003889/0.1654, allocations: 234.2 kB / 0.5293 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.1655, allocations: 51.67 kB / 0.5293 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.1671, allocations: 0.8371 MB / 0.5301 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.1671, allocations: 11.94 kB / 0.5302 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.1671, allocations: 4 kB / 0.5302 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1671, allocations: 3.984 kB / 0.5302 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.17, allocations: 1.688 MB / 0.5318 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.17, allocations: 4 kB / 0.5318 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.1711, allocations: 187.7 kB / 0.532 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004425/0.1716, allocations: 136.5 kB / 0.5321 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.413e-05/0.1716, allocations: 19.98 kB / 0.5321 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004906/0.1766, allocations: 7.219 MB / 0.5392 GB, free: 3.105 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.1766, allocations: 4.031 kB / 0.5392 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.1787, allocations: 1.268 MB / 0.5404 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.1788, allocations: 140.6 kB / 0.5406 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.81e-05/0.1789, allocations: 16 kB / 0.5406 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004371/0.1794, allocations: 23.97 kB / 0.5406 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.1795, allocations: 44.38 kB / 0.5407 GB, free: 1.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-05/0.1795, allocations: 20 kB / 0.5407 GB, free: 1.512 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003286/0.1799, allocations: 295.1 kB / 0.541 GB, free: 1.223 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1799, allocations: 7.938 kB / 0.541 GB, free: 1.215 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000705/0.1806, allocations: 231.7 kB / 0.5412 GB, free: 0.9883 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 13 (stream_loss.T[1],stream_loss.T[2],stream_loss.T[3],stream_loss.T[4],stream_loss.T[5],stream_load.T[1],stream_load.T[2],stream_load.T[3],stream_load.T[4],stream_load.T[5],heater.Tfo,heater.Ec,heater.xpi) * 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 (51): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002457/0.1831, allocations: 1.831 MB / 0.543 GB, free: 15.09 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.185, allocations: 1.286 MB / 0.5442 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.185, allocations: 3.938 kB / 0.5442 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.186, allocations: 0.8871 MB / 0.5451 GB, free: 12.79 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006468/0.1867, allocations: 129.4 kB / 0.5452 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.1969, allocations: 6.618 MB / 0.5517 GB, free: 5.844 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005989/0.1976, allocations: 0.9338 MB / 0.5526 GB, free: 4.883 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004677/0.198, allocations: 124.6 kB / 0.5527 GB, free: 4.762 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.1984, allocations: 215.4 kB / 0.5529 GB, free: 4.551 MB / 430.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1984, allocations: 0 / 0.5529 GB, free: 4.551 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05005/0.2485, allocations: 15.53 MB / 0.5681 GB, free: 5.293 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.52, allocations: 10.61 kB / 0.5681 GB, free: 5.289 MB / 446.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 20 AES_AES_Coursework_ThermSys_control_problems_Temperature_flow_control_Temperature_flow_control_01_open_loop.fmu > AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe 2>&1)