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.001167/0.001168, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001415/0.001415, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2134/0.2134, allocations: 22.34 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004979/0.0004983, allocations: 8 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3599, allocations: 55.97 MB / 437.9 MB, free: 39.24 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.003343/0.3633, allocations: 2.891 MB / 440.8 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.3652, allocations: 0.9152 MB / 441.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.3654, allocations: 7 kB / 441.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.3656, allocations: 61.78 kB / 441.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.366, allocations: 204.6 kB / 442 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005093/0.3665, allocations: 154.8 kB / 442.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007605/0.3672, allocations: 0.9531 MB / 443.1 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004988/0.3678, allocations: 456.3 kB / 443.5 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003298/0.3681, allocations: 319.3 kB / 443.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004698/0.3686, allocations: 452 kB / 444.3 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.778e-05/0.3687, allocations: 45.78 kB / 444.3 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.994e-05/0.3688, allocations: 47.28 kB / 444.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001778/0.369, allocations: 252.4 kB / 444.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.3691, allocations: 161.6 kB / 444.8 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005294/0.3696, allocations: 0.7173 MB / 445.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3696, allocations: 0 / 445.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3696, allocations: 0 / 445.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3697, allocations: 3.281 kB / 445.5 MB, free: 35.07 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.00163/0.3713, allocations: 0.9344 MB / 446.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3713, allocations: 9.125 kB / 446.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.3715, allocations: 72.84 kB / 446.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005161/0.372, allocations: 439.5 kB / 446.9 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.609e-05/0.3721, allocations: 72.17 kB / 447 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.768e-05/0.3722, allocations: 67.09 kB / 447.1 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.3733, allocations: 0.7145 MB / 447.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.3733, allocations: 0 / 447.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.485e-05/0.3734, allocations: 25.31 kB / 447.8 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.3734, allocations: 19.03 kB / 447.8 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009732/0.3744, allocations: 0.6439 MB / 448.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003736/0.3781, allocations: 2.806 MB / 451.3 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.3797, allocations: 0.6391 MB / 451.9 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000604/0.3803, allocations: 403.9 kB / 452.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.597e-05/0.3803, allocations: 9.672 kB / 452.3 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.3804, allocations: 41.56 kB / 452.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.104e-06/0.3804, allocations: 0 / 452.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002499/0.3829, allocations: 1.53 MB / 453.9 MB, free: 30.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.3829, allocations: 56.58 kB / 454 MB, free: 30.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003982/0.3833, allocations: 423.8 kB / 454.4 MB, free: 30.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.3834, allocations: 44 kB / 454.4 MB, free: 30.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.3835, allocations: 289.3 kB / 454.7 MB, free: 29.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.3837, allocations: 199.5 kB / 454.9 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.3837, allocations: 12 kB / 454.9 MB, free: 29.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.183e-05/0.3838, allocations: 366 kB / 455.3 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004728/0.3843, allocations: 335.8 kB / 455.6 MB, free: 29.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.3848, allocations: 385.2 kB / 456 MB, free: 29.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005655/0.3853, allocations: 357.2 kB / 456.3 MB, free: 28.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.3853, allocations: 1.156 kB / 456.3 MB, free: 28.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001837/0.3872, allocations: 0.9692 MB / 457.3 MB, free: 28.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.3872, allocations: 9.312 kB / 457.3 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.3873, allocations: 1.875 kB / 457.3 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006852/0.3879, allocations: 172.1 kB / 457.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.3892, allocations: 230.4 kB / 457.7 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004277/0.3935, allocations: 7.074 MB / 464.8 MB, free: 21.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006581/0.3941, allocations: 77.42 kB / 464.8 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-05/0.3942, allocations: 26.53 kB / 464.9 MB, free: 21.48 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: heater.Ec:VARIABLE(flow=false fixed = true ) type: Real heater.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real heater.Tfo:VARIABLE(min = 0.0 start = heater.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004614/0.3947, allocations: 230.8 kB / 465.1 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.956e-05/0.3948, allocations: 48.53 kB / 465.1 MB, free: 21.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/0.3966, allocations: 0.832 MB / 466 MB, free: 20.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.3966, allocations: 9.484 kB / 466 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3966, allocations: 5.297 kB / 466 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3966, allocations: 8 kB / 466 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002896/0.3995, allocations: 1.686 MB / 467.7 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.3995, allocations: 2.125 kB / 467.7 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.4006, allocations: 182.7 kB / 467.9 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004513/0.4011, allocations: 142.7 kB / 468 MB, free: 19.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.288e-05/0.4011, allocations: 20.56 kB / 468 MB, free: 19.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003674/0.4048, allocations: 6.687 MB / 474.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.4048, allocations: 2.625 kB / 474.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.4071, allocations: 1.258 MB / 476 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.4073, allocations: 137.2 kB / 476.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.535e-05/0.4074, allocations: 22.36 kB / 476.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004063/0.4078, allocations: 33.5 kB / 476.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.4079, allocations: 57.72 kB / 476.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/0.408, allocations: 19.2 kB / 476.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003793/0.4084, allocations: 289.7 kB / 476.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4084, allocations: 0 / 476.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009206/0.4093, allocations: 235.9 kB / 476.7 MB, free: 12.2 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001657/0.4095, allocations: 131.6 kB / 476.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.4113, allocations: 1.29 MB / 478.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4113, allocations: 0 / 478.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009881/0.4123, allocations: 0.8859 MB / 479 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007285/0.4131, allocations: 128.7 kB / 479.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003522/0.4166, allocations: 2.331 MB / 481.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005206/0.4171, allocations: 0.9276 MB / 482.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006044/0.4178, allocations: 133 kB / 482.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.418, allocations: 46.58 kB / 482.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.418, allocations: 0 / 482.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of Templates: time 0.01787/0.4359, allocations: 9.13 MB / 491.7 MB, free: 5.352 MB / 350.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)