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.005404/0.005404, allocations: 108.4 kB / 15.74 MB, free: 6.453 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.00117/0.00117, allocations: 196.6 kB / 16.67 MB, free: 6.355 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1994/0.1994, allocations: 22.34 MB / 312.9 MB, free: 12.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 58 kB / 436.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1156, allocations: 54.96 MB / 491.5 MB, free: 1.727 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.0326/0.1482, allocations: 22.76 MB / 0.5022 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.1504, allocations: 0.912 MB / 0.5031 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003641/0.1508, allocations: 11.94 kB / 0.5031 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.1511, allocations: 79.22 kB / 0.5032 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005358/0.1517, allocations: 222.5 kB / 0.5034 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.1523, allocations: 203.7 kB / 0.5036 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.1534, allocations: 0.8895 MB / 0.5045 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007127/0.1541, allocations: 0.5513 MB / 0.505 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005551/0.1546, allocations: 386.8 kB / 0.5054 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006419/0.1553, allocations: 474.5 kB / 0.5058 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.1554, allocations: 80 kB / 0.5059 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.1556, allocations: 84 kB / 0.506 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000262/0.1558, allocations: 283.3 kB / 0.5063 GB, free: 6.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.1562, allocations: 414.2 kB / 0.5067 GB, free: 6.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008058/0.1571, allocations: 0.9539 MB / 0.5076 GB, free: 5.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1571, allocations: 0 / 0.5076 GB, free: 5.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1571, allocations: 0 / 0.5076 GB, free: 5.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.1571, allocations: 0 / 0.5076 GB, free: 5.566 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.001952/0.1591, allocations: 1.048 MB / 0.5086 GB, free: 4.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1591, allocations: 8.031 kB / 0.5086 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.1592, allocations: 106.7 kB / 0.5087 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.1594, allocations: 83.98 kB / 0.5088 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.16, allocations: 448.7 kB / 0.5092 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.043e-05/0.1601, allocations: 79.56 kB / 0.5093 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.1602, allocations: 68.38 kB / 0.5094 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.1614, allocations: 0.7208 MB / 0.5101 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.1614, allocations: 0 / 0.5101 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.31e-05/0.1615, allocations: 28 kB / 0.5101 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.1615, allocations: 12 kB / 0.5101 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.1626, allocations: 0.657 MB / 0.5108 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00434/0.167, allocations: 2.759 MB / 0.5135 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001719/0.1687, allocations: 0.634 MB / 0.5141 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006977/0.1694, allocations: 397.8 kB / 0.5145 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.994e-05/0.1695, allocations: 12.42 kB / 0.5145 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.1695, allocations: 35 kB / 0.5145 GB, free: 14.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=52): time 2.494e-06/0.1695, allocations: 0 / 0.5145 GB, free: 14.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.003027/0.1726, allocations: 1.5 MB / 0.516 GB, free: 12.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.1726, allocations: 59.84 kB / 0.516 GB, free: 12.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.1732, allocations: 418 kB / 0.5164 GB, free: 12.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.1732, allocations: 33.7 kB / 0.5165 GB, free: 12.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.1735, allocations: 304.1 kB / 0.5167 GB, free: 11.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.1736, allocations: 205.1 kB / 0.5169 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.1739, allocations: 122.2 kB / 0.5171 GB, free: 11.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.174, allocations: 358.8 kB / 0.5174 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005421/0.1746, allocations: 339.6 kB / 0.5177 GB, free: 10.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005794/0.1752, allocations: 394.2 kB / 0.5181 GB, free: 10.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006899/0.1821, allocations: 2.051 MB / 0.5201 GB, free: 8.242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1821, allocations: 4 kB / 0.5201 GB, free: 8.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001854/0.184, allocations: 0.9693 MB / 0.5211 GB, free: 7.246 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.184, allocations: 5.875 kB / 0.5211 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.184, allocations: 7.938 kB / 0.5211 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000654/0.1847, allocations: 168.2 kB / 0.5212 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.1859, allocations: 223.7 kB / 0.5214 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005899/0.1918, allocations: 7.599 MB / 0.5289 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006436/0.1924, allocations: 67.38 kB / 0.5289 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.1926, allocations: 27.98 kB / 0.5289 GB, free: 14.41 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.0005427/0.1931, allocations: 234.3 kB / 0.5292 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.1933, allocations: 55.38 kB / 0.5292 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.1949, allocations: 0.8215 MB / 0.53 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.195, allocations: 11.94 kB / 0.53 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.195, allocations: 3.938 kB / 0.53 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.195, allocations: 3.984 kB / 0.53 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003281/0.1983, allocations: 1.696 MB / 0.5317 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.1983, allocations: 7.984 kB / 0.5317 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.1994, allocations: 179.8 kB / 0.5319 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004848/0.1999, allocations: 144.4 kB / 0.532 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.126e-05/0.2, allocations: 20 kB / 0.532 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005781/0.2058, allocations: 7.203 MB / 0.5391 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.2058, allocations: 4.031 kB / 0.5391 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.208, allocations: 1.26 MB / 0.5403 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.2082, allocations: 136.3 kB / 0.5404 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.605e-05/0.2083, allocations: 24 kB / 0.5405 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004193/0.2087, allocations: 23.97 kB / 0.5405 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.2088, allocations: 48.31 kB / 0.5405 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.781e-05/0.2089, allocations: 23.98 kB / 0.5406 GB, free: 1.609 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003702/0.2093, allocations: 299.1 kB / 0.5408 GB, free: 1.316 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2093, allocations: 0 / 0.5408 GB, free: 1.316 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007727/0.2101, allocations: 231.5 kB / 0.5411 GB, free: 1.09 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.002378/0.2124, allocations: 1.823 MB / 0.5428 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.2143, allocations: 1.293 MB / 0.5441 GB, free: 13.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2143, allocations: 0 / 0.5441 GB, free: 13.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009726/0.2153, allocations: 0.8872 MB / 0.545 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006298/0.2159, allocations: 129.4 kB / 0.5451 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009833/0.2258, allocations: 6.587 MB / 0.5515 GB, free: 5.984 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/0.2263, allocations: 0.9299 MB / 0.5524 GB, free: 5.027 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004145/0.2268, allocations: 128.6 kB / 0.5526 GB, free: 4.902 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003907/0.2272, allocations: 215.4 kB / 0.5528 GB, free: 4.691 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2272, allocations: 0 / 0.5528 GB, free: 4.691 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04714/0.2743, allocations: 15.54 MB / 0.5679 GB, free: 5.422 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.48, allocations: 8.281 kB / 0.5679 GB, free: 5.414 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Temperature_flow_control_Temperature_flow_control_01_open_loop_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 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)