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.001494/0.001494, allocations: 108.6 kB / 16.41 MB, free: 6.512 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.001738/0.001738, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.324/1.324, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09112/0.09112, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.89 kB / 437.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1057, allocations: 54.95 MB / 492.7 MB, free: 4.887 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.4431/0.5489, allocations: 22.72 MB / 0.5033 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.5507, allocations: 0.9127 MB / 0.5042 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.5509, allocations: 8.219 kB / 0.5042 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002117/0.5511, allocations: 81.66 kB / 0.5043 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003201/0.5514, allocations: 214.2 kB / 0.5045 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.552, allocations: 199.5 kB / 0.5047 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008585/0.5529, allocations: 0.8836 MB / 0.5055 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007439/0.5536, allocations: 0.5652 MB / 0.5061 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.5541, allocations: 380.3 kB / 0.5065 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005613/0.5547, allocations: 469.6 kB / 0.5069 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.5548, allocations: 80.72 kB / 0.507 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.555, allocations: 85 kB / 0.5071 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.5552, allocations: 288.5 kB / 0.5073 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003623/0.5556, allocations: 408.9 kB / 0.5077 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.5567, allocations: 0.9534 MB / 0.5087 GB, free: 5.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.5568, allocations: 4.344 kB / 0.5087 GB, free: 5.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.5568, allocations: 0 / 0.5087 GB, free: 5.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.249e-05/0.5568, allocations: 1.156 kB / 0.5087 GB, free: 5.09 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.002256/0.5591, allocations: 1.043 MB / 0.5097 GB, free: 4.516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.5591, allocations: 8.906 kB / 0.5097 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.5593, allocations: 83.89 kB / 0.5098 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006141/0.5599, allocations: 455.4 kB / 0.5102 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-05/0.56, allocations: 73.41 kB / 0.5103 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.5601, allocations: 65.08 kB / 0.5103 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.5614, allocations: 0.7227 MB / 0.511 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.5615, allocations: 0 / 0.511 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-05/0.5615, allocations: 24.09 kB / 0.5111 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.5616, allocations: 18.06 kB / 0.5111 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.5627, allocations: 0.6505 MB / 0.5117 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004641/0.5673, allocations: 2.759 MB / 0.5144 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/0.5692, allocations: 0.6415 MB / 0.515 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006916/0.5699, allocations: 391.6 kB / 0.5154 GB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/0.5699, allocations: 11.66 kB / 0.5154 GB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.57, allocations: 41.09 kB / 0.5155 GB, free: 2.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.074e-06/0.57, allocations: 2.625 kB / 0.5155 GB, free: 2.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.003265/0.5732, allocations: 1.504 MB / 0.5169 GB, free: 2.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.5733, allocations: 57.5 kB / 0.517 GB, free: 2.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000562/0.5739, allocations: 420.3 kB / 0.5174 GB, free: 2.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.15e-05/0.5739, allocations: 36.14 kB / 0.5174 GB, free: 2.121 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.5741, allocations: 305.2 kB / 0.5177 GB, free: 1.949 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.5743, allocations: 195.4 kB / 0.5179 GB, free: 1.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002184/0.5745, allocations: 122.8 kB / 0.518 GB, free: 1.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.71e-05/0.5746, allocations: 363.7 kB / 0.5184 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005791/0.5752, allocations: 338.1 kB / 0.5187 GB, free: 1.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.5758, allocations: 383.2 kB / 0.5191 GB, free: 1.434 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007958/0.5838, allocations: 2.056 MB / 0.5211 GB, free: 1.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.5838, allocations: 3.938 kB / 0.5211 GB, free: 1.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001964/0.5858, allocations: 0.9663 MB / 0.522 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.5859, allocations: 5.125 kB / 0.522 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.148e-06/0.5859, allocations: 1.219 kB / 0.522 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006743/0.5865, allocations: 173.7 kB / 0.5222 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.5878, allocations: 227.7 kB / 0.5224 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006202/0.5941, allocations: 7.601 MB / 0.5298 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008258/0.5949, allocations: 73.44 kB / 0.5299 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.5951, allocations: 24.55 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.0005553/0.5956, allocations: 223.6 kB / 0.5301 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000202/0.5958, allocations: 52.16 kB / 0.5302 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.5977, allocations: 0.8274 MB / 0.531 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.5977, allocations: 9.281 kB / 0.531 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.5977, allocations: 13.09 kB / 0.531 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.5977, allocations: 5.297 kB / 0.531 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/0.6012, allocations: 1.681 MB / 0.5327 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.6012, allocations: 2.656 kB / 0.5327 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.6024, allocations: 183.8 kB / 0.5328 GB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004876/0.6029, allocations: 145.6 kB / 0.533 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.25e-05/0.6029, allocations: 20.77 kB / 0.533 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005219/0.6082, allocations: 7.214 MB / 0.54 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.6082, allocations: 2.25 kB / 0.54 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/0.6107, allocations: 1.259 MB / 0.5413 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002656/0.611, allocations: 133.8 kB / 0.5414 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.6111, allocations: 23.7 kB / 0.5414 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005041/0.6117, allocations: 21.14 kB / 0.5414 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.6118, allocations: 53.56 kB / 0.5415 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-05/0.6119, allocations: 20.67 kB / 0.5415 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003905/0.6123, allocations: 295.9 kB / 0.5418 GB, free: 14.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.402e-06/0.6123, allocations: 3.938 kB / 0.5418 GB, free: 14.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009204/0.6132, allocations: 232.4 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.0001985/0.6134, allocations: 132.8 kB / 0.5421 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001985/0.6154, allocations: 1.289 MB / 0.5434 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.6154, allocations: 0 / 0.5434 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.6165, allocations: 0.8941 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.0008013/0.6173, allocations: 146.8 kB / 0.5444 GB, free: 12.51 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003618/0.6209, allocations: 1.972 MB / 0.5463 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006006/0.6216, allocations: 0.9295 MB / 0.5473 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.6219, allocations: 53.91 kB / 0.5473 GB, free: 10.3 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.6219, allocations: 0 / 0.5473 GB, free: 10.3 MB / 414.1 MB Notification: Performance of Templates: time 0.02213/0.6441, allocations: 18.88 MB / 0.5657 GB, free: 296 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)