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: translateModel(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 108 kB / 16.41 MB, free: 6.441 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.001092/0.001092, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.271/1.271, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08788/0.08788, allocations: 22.32 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 63.89 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, allocations: 54.96 MB / 492.7 MB, free: 4.734 MB / 366.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.398/0.5025, allocations: 22.72 MB / 0.5033 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.5042, allocations: 0.9074 MB / 0.5042 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002069/0.5045, allocations: 10.56 kB / 0.5042 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.5047, allocations: 83.38 kB / 0.5043 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.505, allocations: 207.9 kB / 0.5045 GB, free: 5.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005212/0.5055, allocations: 209 kB / 0.5047 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007893/0.5063, allocations: 0.8766 MB / 0.5055 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006238/0.5069, allocations: 0.5652 MB / 0.5061 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003846/0.5073, allocations: 377.2 kB / 0.5065 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005698/0.5079, allocations: 477.5 kB / 0.5069 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.508, allocations: 79.59 kB / 0.507 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.5082, allocations: 82.16 kB / 0.5071 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.5084, allocations: 287 kB / 0.5073 GB, free: 5.293 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003444/0.5088, allocations: 410.4 kB / 0.5077 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.5098, allocations: 0.9534 MB / 0.5087 GB, free: 5.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.5098, allocations: 1.375 kB / 0.5087 GB, free: 5.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5098, allocations: 0 / 0.5087 GB, free: 5.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.5098, allocations: 0 / 0.5087 GB, free: 5.059 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.002347/0.5122, allocations: 1.047 MB / 0.5097 GB, free: 4.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.5123, allocations: 10.22 kB / 0.5097 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.5125, allocations: 77.81 kB / 0.5098 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007217/0.5132, allocations: 453.7 kB / 0.5102 GB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.332e-05/0.5133, allocations: 77.56 kB / 0.5103 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.5134, allocations: 62.09 kB / 0.5103 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.5149, allocations: 0.7214 MB / 0.511 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.5149, allocations: 5.375 kB / 0.511 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.125e-05/0.515, allocations: 26.91 kB / 0.5111 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.515, allocations: 13.75 kB / 0.5111 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.5161, allocations: 0.6522 MB / 0.5117 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004429/0.5205, allocations: 2.757 MB / 0.5144 GB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.5223, allocations: 0.6473 MB / 0.515 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006869/0.523, allocations: 395.5 kB / 0.5154 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.036e-05/0.5231, allocations: 7.922 kB / 0.5154 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.5231, allocations: 36.89 kB / 0.5155 GB, free: 2.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.275e-06/0.5231, allocations: 1.344 kB / 0.5155 GB, free: 2.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.002956/0.5261, allocations: 1.502 MB / 0.5169 GB, free: 2.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.5261, allocations: 57.06 kB / 0.517 GB, free: 2.203 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005185/0.5267, allocations: 421.5 kB / 0.5174 GB, free: 2.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/0.5267, allocations: 39.55 kB / 0.5174 GB, free: 2.051 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.5269, allocations: 304.9 kB / 0.5177 GB, free: 1.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.5271, allocations: 197.3 kB / 0.5179 GB, free: 1.758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.5273, allocations: 121.8 kB / 0.518 GB, free: 1.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.638e-05/0.5274, allocations: 363.5 kB / 0.5184 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/0.528, allocations: 337.3 kB / 0.5187 GB, free: 1.418 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006337/0.5286, allocations: 391 kB / 0.5191 GB, free: 1.359 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007442/0.5361, allocations: 2.05 MB / 0.5211 GB, free: 1.242 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.5361, allocations: 5.219 kB / 0.5211 GB, free: 1.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001912/0.538, allocations: 0.9688 MB / 0.522 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.5381, allocations: 9.156 kB / 0.522 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.5381, allocations: 1.375 kB / 0.522 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000648/0.5387, allocations: 169.2 kB / 0.5222 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.54, allocations: 221.3 kB / 0.5224 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005562/0.5455, allocations: 7.608 MB / 0.5298 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008248/0.5464, allocations: 70.91 kB / 0.5299 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.354e-05/0.5465, allocations: 28.39 kB / 0.5299 GB, free: 9.062 MB / 398.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.0005081/0.547, allocations: 218.8 kB / 0.5301 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.5471, allocations: 55.97 kB / 0.5302 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.5487, allocations: 0.8265 MB / 0.531 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.5488, allocations: 9.406 kB / 0.531 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.5488, allocations: 10.12 kB / 0.531 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.5488, allocations: 3.984 kB / 0.531 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/0.5519, allocations: 1.686 MB / 0.5327 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.5519, allocations: 2.25 kB / 0.5327 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.553, allocations: 180.4 kB / 0.5328 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004731/0.5535, allocations: 144.7 kB / 0.533 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.979e-05/0.5536, allocations: 27.36 kB / 0.533 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004883/0.5585, allocations: 7.209 MB / 0.54 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.5585, allocations: 2.031 kB / 0.54 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.5609, allocations: 1.263 MB / 0.5413 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/0.5611, allocations: 137.3 kB / 0.5414 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.5613, allocations: 23.73 kB / 0.5414 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004489/0.5617, allocations: 16.64 kB / 0.5414 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.5619, allocations: 49.72 kB / 0.5415 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.896e-05/0.5619, allocations: 20.27 kB / 0.5415 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003641/0.5623, allocations: 304.9 kB / 0.5418 GB, free: 14.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5623, allocations: 0 / 0.5418 GB, free: 14.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008559/0.5631, allocations: 228.2 kB / 0.542 GB, free: 14.39 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.000173/0.5633, allocations: 132.2 kB / 0.5421 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.5651, allocations: 1.288 MB / 0.5434 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5651, allocations: 0 / 0.5434 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009153/0.566, allocations: 0.8876 MB / 0.5443 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006683/0.5667, allocations: 146 kB / 0.5444 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003328/0.57, allocations: 1.98 MB / 0.5463 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000512/0.5706, allocations: 0.9298 MB / 0.5473 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.5708, allocations: 53.08 kB / 0.5473 GB, free: 10.29 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5709, allocations: 4 kB / 0.5473 GB, free: 10.29 MB / 414.1 MB Notification: Performance of Templates: time 0.01954/0.5904, allocations: 18.95 MB / 0.5658 GB, free: 236 kB / 414.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe 2>&1)