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.008289/0.008289, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001979/0.001979, allocations: 196.8 kB / 16.68 MB, free: 5.965 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09194/0.09194, allocations: 22.33 MB / 312.9 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002194, allocations: 63.89 kB / 436.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1216, allocations: 54.96 MB / 491.5 MB, free: 5.258 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.4219/0.5436, allocations: 22.7 MB / 0.5022 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.5454, allocations: 0.9165 MB / 0.503 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002148/0.5456, allocations: 8.031 kB / 0.5031 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002083/0.5459, allocations: 79.48 kB / 0.5031 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003448/0.5462, allocations: 215.3 kB / 0.5033 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005539/0.5468, allocations: 210.3 kB / 0.5035 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008004/0.5476, allocations: 0.8779 MB / 0.5044 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007262/0.5483, allocations: 0.5665 MB / 0.5049 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004423/0.5488, allocations: 379.6 kB / 0.5053 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005391/0.5493, allocations: 476.5 kB / 0.5058 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.5494, allocations: 80 kB / 0.5058 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.5496, allocations: 80.19 kB / 0.5059 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002609/0.5498, allocations: 287.2 kB / 0.5062 GB, free: 4.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.5502, allocations: 411.2 kB / 0.5066 GB, free: 4.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008866/0.5511, allocations: 0.9585 MB / 0.5075 GB, free: 4.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.5511, allocations: 0 / 0.5075 GB, free: 4.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5511, allocations: 0 / 0.5075 GB, free: 4.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.328e-05/0.5512, allocations: 0 / 0.5075 GB, free: 4.617 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.002096/0.5533, allocations: 1.043 MB / 0.5085 GB, free: 4.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.5533, allocations: 9.156 kB / 0.5085 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.5535, allocations: 105.5 kB / 0.5086 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.5536, allocations: 82.22 kB / 0.5087 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006383/0.5543, allocations: 459.1 kB / 0.5092 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.97e-05/0.5544, allocations: 77.5 kB / 0.5092 GB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.5545, allocations: 64.61 kB / 0.5093 GB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.5557, allocations: 0.7189 MB / 0.51 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.5557, allocations: 5.312 kB / 0.51 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-05/0.5558, allocations: 24.62 kB / 0.51 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.5558, allocations: 17.78 kB / 0.51 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.5569, allocations: 0.6508 MB / 0.5107 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004302/0.5612, allocations: 2.76 MB / 0.5134 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.5629, allocations: 0.6379 MB / 0.514 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006491/0.5636, allocations: 392.3 kB / 0.5144 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.5636, allocations: 8.078 kB / 0.5144 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.5637, allocations: 38.47 kB / 0.5144 GB, free: 2.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.525e-06/0.5637, allocations: 2.656 kB / 0.5144 GB, free: 2.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.002915/0.5666, allocations: 1.501 MB / 0.5159 GB, free: 1.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/0.5666, allocations: 57.41 kB / 0.5159 GB, free: 1.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005026/0.5671, allocations: 423.4 kB / 0.5163 GB, free: 1.652 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.037e-05/0.5672, allocations: 35.64 kB / 0.5164 GB, free: 1.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.5674, allocations: 307.1 kB / 0.5167 GB, free: 1.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.5675, allocations: 193.9 kB / 0.5169 GB, free: 1.328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002064/0.5677, allocations: 122.1 kB / 0.517 GB, free: 1.309 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.874e-05/0.5678, allocations: 364.8 kB / 0.5173 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005411/0.5684, allocations: 338.3 kB / 0.5176 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.569, allocations: 382.8 kB / 0.518 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007206/0.5762, allocations: 2.056 MB / 0.52 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.5762, allocations: 1.344 kB / 0.52 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001882/0.5781, allocations: 0.9699 MB / 0.521 GB, free: 484 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.5781, allocations: 5.531 kB / 0.521 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.5781, allocations: 1 kB / 0.521 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006731/0.5788, allocations: 167.5 kB / 0.5211 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.5801, allocations: 230.9 kB / 0.5214 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005874/0.5859, allocations: 7.61 MB / 0.5288 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007288/0.5867, allocations: 66.3 kB / 0.5288 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-05/0.5868, allocations: 24.55 kB / 0.5289 GB, free: 8.73 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.0004691/0.5872, allocations: 240.8 kB / 0.5291 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.5874, allocations: 48.16 kB / 0.5291 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001689/0.5891, allocations: 0.8361 MB / 0.53 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.5891, allocations: 9.438 kB / 0.53 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.5891, allocations: 3.844 kB / 0.53 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.5891, allocations: 5.234 kB / 0.53 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.5922, allocations: 1.687 MB / 0.5316 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.5922, allocations: 2.344 kB / 0.5316 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.5933, allocations: 186.5 kB / 0.5318 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004548/0.5938, allocations: 142 kB / 0.5319 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.956e-05/0.5938, allocations: 20.83 kB / 0.532 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004786/0.5986, allocations: 7.202 MB / 0.539 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5987, allocations: 5.516 kB / 0.539 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002156/0.6008, allocations: 1.258 MB / 0.5402 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.601, allocations: 145.8 kB / 0.5404 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.34e-05/0.6011, allocations: 15.06 kB / 0.5404 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004287/0.6016, allocations: 25.75 kB / 0.5404 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.6017, allocations: 52.09 kB / 0.5405 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.285e-05/0.6017, allocations: 16.81 kB / 0.5405 GB, free: 14.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003316/0.6021, allocations: 295.5 kB / 0.5408 GB, free: 14.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6021, allocations: 0 / 0.5408 GB, free: 14.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007741/0.6029, allocations: 235.2 kB / 0.541 GB, free: 14.11 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.00216/0.605, allocations: 1.831 MB / 0.5428 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.6067, allocations: 1.291 MB / 0.544 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.6067, allocations: 0 / 0.544 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009089/0.6076, allocations: 0.8875 MB / 0.5449 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000689/0.6083, allocations: 128.5 kB / 0.545 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009532/0.6179, allocations: 6.587 MB / 0.5514 GB, free: 6.695 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005209/0.6184, allocations: 0.9342 MB / 0.5524 GB, free: 5.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004917/0.6189, allocations: 128.7 kB / 0.5525 GB, free: 5.828 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003373/0.6193, allocations: 223.1 kB / 0.5527 GB, free: 5.645 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6193, allocations: 0 / 0.5527 GB, free: 5.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05835/0.6776, allocations: 15.82 MB / 0.5681 GB, free: 14.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.71, allocations: 14.77 kB / 0.5682 GB, free: 14.09 MB / 430.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)