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.0009285/0.0009285, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005358/0.005358, allocations: 173.7 kB / 16.27 MB, free: 6.648 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.523/1.523, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2185/0.2185, allocations: 22.35 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.000327, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3647, allocations: 55.98 MB / 438.6 MB, free: 39.32 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.03068/0.3954, allocations: 22.41 MB / 461 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.3974, allocations: 0.9366 MB / 461.9 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000285/0.3977, allocations: 9.188 kB / 461.9 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.3979, allocations: 61.86 kB / 462 MB, free: 30.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003963/0.3983, allocations: 195.6 kB / 462.2 MB, free: 30.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006376/0.399, allocations: 182.4 kB / 462.4 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.4, allocations: 1.1 MB / 463.5 MB, free: 29.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005965/0.4006, allocations: 471.4 kB / 463.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004676/0.4011, allocations: 324.3 kB / 464.2 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005573/0.4016, allocations: 459.8 kB / 464.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.4018, allocations: 48.97 kB / 464.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.4019, allocations: 46.12 kB / 464.8 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002123/0.4021, allocations: 247.2 kB / 465 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004212/0.4025, allocations: 386.2 kB / 465.4 MB, free: 28.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009912/0.4035, allocations: 0.9041 MB / 466.3 MB, free: 28.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.339e-05/0.4036, allocations: 5.188 kB / 466.3 MB, free: 28.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.4036, allocations: 0 / 466.3 MB, free: 28.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.4036, allocations: 0 / 466.3 MB, free: 28.58 MB / 350.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.002107/0.4057, allocations: 0.9227 MB / 467.2 MB, free: 27.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.4058, allocations: 16.47 kB / 467.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.406, allocations: 83.19 kB / 467.3 MB, free: 27.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006748/0.4067, allocations: 453.1 kB / 467.8 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-05/0.4068, allocations: 74.95 kB / 467.8 MB, free: 27.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.4069, allocations: 70.06 kB / 467.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.4082, allocations: 0.7229 MB / 468.6 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.4082, allocations: 0 / 468.6 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.241e-05/0.4083, allocations: 24 kB / 468.7 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.4083, allocations: 16 kB / 468.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.4094, allocations: 0.6499 MB / 469.3 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004196/0.4136, allocations: 2.794 MB / 472.1 MB, free: 24.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.4153, allocations: 0.6584 MB / 472.8 MB, free: 23.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006008/0.4159, allocations: 407.8 kB / 473.2 MB, free: 23.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.774e-05/0.4159, allocations: 4.438 kB / 473.2 MB, free: 23.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.416, allocations: 39 kB / 473.2 MB, free: 23.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 3.547e-06/0.416, allocations: 0 / 473.2 MB, free: 23.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002988/0.419, allocations: 1.533 MB / 474.8 MB, free: 21.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.419, allocations: 63.27 kB / 474.8 MB, free: 21.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004364/0.4195, allocations: 425.5 kB / 475.2 MB, free: 21.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/0.4195, allocations: 29.7 kB / 475.3 MB, free: 21.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.4197, allocations: 305.3 kB / 475.6 MB, free: 20.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.4198, allocations: 193.6 kB / 475.7 MB, free: 20.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.315e-05/0.4199, allocations: 63.38 kB / 475.8 MB, free: 20.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.42, allocations: 366.4 kB / 476.2 MB, free: 20.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004849/0.4205, allocations: 337 kB / 476.5 MB, free: 20 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005011/0.421, allocations: 381.3 kB / 476.9 MB, free: 19.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008119/0.4292, allocations: 2.219 MB / 479.1 MB, free: 17.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.4292, allocations: 7.938 kB / 479.1 MB, free: 17.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002339/0.4316, allocations: 0.9732 MB / 480.1 MB, free: 17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.79e-05/0.4317, allocations: 8 kB / 480.1 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.4317, allocations: 0 / 480.1 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007582/0.4325, allocations: 179.5 kB / 480.2 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.4337, allocations: 222.1 kB / 480.5 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005277/0.439, allocations: 7.086 MB / 487.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007568/0.4397, allocations: 74.11 kB / 487.6 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/0.4398, allocations: 27.09 kB / 487.7 MB, free: 9.031 MB / 350.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.000456/0.4403, allocations: 223.8 kB / 487.9 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.4404, allocations: 48.19 kB / 487.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001768/0.4422, allocations: 0.8265 MB / 488.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.4422, allocations: 4 kB / 488.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.4422, allocations: 4 kB / 488.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.4423, allocations: 7.125 kB / 488.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003356/0.4456, allocations: 1.69 MB / 490.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.4457, allocations: 4.75 kB / 490.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.4468, allocations: 190.1 kB / 490.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004544/0.4472, allocations: 145.6 kB / 490.8 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.561e-05/0.4473, allocations: 23.92 kB / 490.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003876/0.4512, allocations: 6.688 MB / 497.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.748e-06/0.4512, allocations: 4.031 kB / 497.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.4536, allocations: 1.263 MB / 498.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002708/0.4539, allocations: 136.7 kB / 498.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.4541, allocations: 17.78 kB / 498.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004867/0.4545, allocations: 26.33 kB / 498.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.4547, allocations: 56.53 kB / 499 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-05/0.4548, allocations: 18.25 kB / 499 MB, free: 13.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003853/0.4552, allocations: 295.7 kB / 499.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4552, allocations: 0 / 499.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009276/0.4561, allocations: 231.5 kB / 499.5 MB, free: 13.17 MB / 366.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.0002335/0.4563, allocations: 129 kB / 499.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002469/0.4588, allocations: 1.286 MB / 0.4892 GB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4588, allocations: 0 / 0.4892 GB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.4602, allocations: 0.8936 MB / 0.4901 GB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008782/0.4611, allocations: 132.3 kB / 0.4902 GB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004156/0.4653, allocations: 2.386 MB / 0.4925 GB, free: 8.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007753/0.4661, allocations: 0.9364 MB / 0.4934 GB, free: 7.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006467/0.4667, allocations: 131 kB / 0.4936 GB, free: 7.625 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.467, allocations: 44.12 kB / 0.4936 GB, free: 7.59 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.467, allocations: 0 / 0.4936 GB, free: 7.59 MB / 366.1 MB Notification: Performance of Templates: time 0.01848/0.4855, allocations: 9.414 MB / 0.5028 GB, free: 14.88 MB / 382.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)