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.001104/0.001104, allocations: 104 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 197.6 kB / 16.54 MB, free: 6.684 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2047/0.2047, allocations: 22.35 MB / 312.7 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 63.91 kB / 380.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.32, allocations: 54.93 MB / 435.9 MB, free: 39.57 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.03166/0.3517, allocations: 22.73 MB / 458.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.3538, allocations: 0.9329 MB / 459.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.3541, allocations: 9.969 kB / 459.5 MB, free: 30.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.3543, allocations: 78.06 kB / 459.6 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003395/0.3547, allocations: 213.1 kB / 459.8 MB, free: 30.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.3552, allocations: 197.5 kB / 460 MB, free: 30.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008009/0.356, allocations: 0.8836 MB / 460.9 MB, free: 29.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006186/0.3566, allocations: 0.5598 MB / 461.5 MB, free: 29.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004179/0.357, allocations: 375.2 kB / 461.8 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000522/0.3576, allocations: 472.2 kB / 462.3 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.3577, allocations: 82 kB / 462.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.3579, allocations: 79.91 kB / 462.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002187/0.3581, allocations: 289 kB / 462.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003511/0.3585, allocations: 413.8 kB / 463.1 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006909/0.3592, allocations: 0.9461 MB / 464.1 MB, free: 28.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3592, allocations: 0 / 464.1 MB, free: 28.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3592, allocations: 5.031 kB / 464.1 MB, free: 28.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.3592, allocations: 0 / 464.1 MB, free: 28.44 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.002026/0.3613, allocations: 1.038 MB / 465.1 MB, free: 27.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3613, allocations: 9.562 kB / 465.1 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.3615, allocations: 109.6 kB / 465.2 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.3616, allocations: 78.03 kB / 465.3 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005535/0.3622, allocations: 460.2 kB / 465.8 MB, free: 27.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.192e-05/0.3623, allocations: 77.95 kB / 465.8 MB, free: 27.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.3624, allocations: 62.28 kB / 465.9 MB, free: 27.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.3635, allocations: 0.7269 MB / 466.6 MB, free: 26.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3635, allocations: 0 / 466.6 MB, free: 26.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.428e-05/0.3636, allocations: 20 kB / 466.7 MB, free: 26.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.3636, allocations: 16 kB / 466.7 MB, free: 26.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000938/0.3646, allocations: 0.6503 MB / 467.3 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003742/0.3683, allocations: 2.777 MB / 470.1 MB, free: 23.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.37, allocations: 0.6355 MB / 470.7 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005708/0.3705, allocations: 391.4 kB / 471.1 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.3706, allocations: 4.438 kB / 471.1 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.3706, allocations: 46.19 kB / 471.2 MB, free: 22.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.335e-06/0.3706, allocations: 0 / 471.2 MB, free: 22.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.0026/0.3732, allocations: 1.502 MB / 472.7 MB, free: 21.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/0.3733, allocations: 55.84 kB / 472.7 MB, free: 21.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003936/0.3737, allocations: 424.2 kB / 473.1 MB, free: 20.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.252e-05/0.3737, allocations: 33.64 kB / 473.2 MB, free: 20.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.3738, allocations: 308.5 kB / 473.5 MB, free: 20.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.374, allocations: 197.3 kB / 473.7 MB, free: 20.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.3741, allocations: 122.9 kB / 473.8 MB, free: 20.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.479e-05/0.3742, allocations: 360.4 kB / 474.1 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004634/0.3747, allocations: 344 kB / 474.5 MB, free: 19.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004601/0.3752, allocations: 381.2 kB / 474.8 MB, free: 19.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007073/0.3822, allocations: 2.069 MB / 476.9 MB, free: 17.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3823, allocations: 0 / 476.9 MB, free: 17.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001646/0.3839, allocations: 0.9703 MB / 477.9 MB, free: 16.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.384, allocations: 8 kB / 477.9 MB, free: 16.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.384, allocations: 0 / 477.9 MB, free: 16.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006524/0.3846, allocations: 170.3 kB / 478.1 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.3859, allocations: 222.5 kB / 478.3 MB, free: 16.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004209/0.3901, allocations: 7.605 MB / 485.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006434/0.3907, allocations: 65.89 kB / 485.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/0.3908, allocations: 31.42 kB / 486 MB, free: 8.355 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.0003478/0.3912, allocations: 222.8 kB / 486.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.05e-05/0.3913, allocations: 47.44 kB / 486.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/0.3927, allocations: 0.8348 MB / 487.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3927, allocations: 7.938 kB / 487.1 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3927, allocations: 4 kB / 487.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.3927, allocations: 3.094 kB / 487.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00256/0.3953, allocations: 1.69 MB / 488.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3953, allocations: 0 / 488.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.3964, allocations: 186.3 kB / 489 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004245/0.3968, allocations: 141.9 kB / 489.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.557e-05/0.3969, allocations: 27.7 kB / 489.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003883/0.4008, allocations: 7.204 MB / 496.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4008, allocations: 0 / 496.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.403, allocations: 1.258 MB / 497.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001974/0.4032, allocations: 140.3 kB / 497.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.4033, allocations: 23.05 kB / 497.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004732/0.4038, allocations: 17.91 kB / 497.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.404, allocations: 56.12 kB / 497.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.404, allocations: 18.34 kB / 497.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003706/0.4044, allocations: 295 kB / 498.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4044, allocations: 0 / 498.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008241/0.4052, allocations: 231.5 kB / 498.4 MB, free: 11.96 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.00239/0.4076, allocations: 1.833 MB / 0.4885 GB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.4098, allocations: 1.366 MB / 0.4898 GB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4098, allocations: 0 / 0.4898 GB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.4108, allocations: 0.8933 MB / 0.4907 GB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006854/0.4115, allocations: 139.3 kB / 0.4908 GB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/0.4219, allocations: 6.699 MB / 0.4973 GB, free: 1.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005293/0.4224, allocations: 0.9365 MB / 0.4983 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005251/0.423, allocations: 126.8 kB / 0.4984 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003593/0.4233, allocations: 221.8 kB / 0.4986 GB, free: 468 kB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4233, allocations: 0 / 0.4986 GB, free: 468 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04275/0.4661, allocations: 15.28 MB / 0.5135 GB, free: 1.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.495/9.961, allocations: 10.89 kB / 0.5135 GB, free: 1.633 MB / 382.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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 20 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)