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.001054/0.001055, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009819/0.000982, allocations: 177.3 kB / 15.95 MB, free: 216 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.415/1.415, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2146/0.2146, allocations: 22.34 MB / 313.3 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003942, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3752, allocations: 55.97 MB / 437.9 MB, free: 39.26 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.003667/0.379, allocations: 2.683 MB / 440.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.3811, allocations: 0.9451 MB / 441.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/0.3813, allocations: 8.969 kB / 441.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000214/0.3816, allocations: 60.31 kB / 441.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004222/0.382, allocations: 180 kB / 441.8 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007405/0.3828, allocations: 150.1 kB / 441.9 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007971/0.3836, allocations: 0.5167 MB / 442.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006621/0.3843, allocations: 441 kB / 442.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004557/0.3847, allocations: 299.9 kB / 443.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000575/0.3853, allocations: 364.6 kB / 443.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001171/0.3855, allocations: 47.09 kB / 443.6 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.3856, allocations: 43.41 kB / 443.6 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002592/0.3859, allocations: 227.6 kB / 443.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.3861, allocations: 153.8 kB / 444 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007202/0.3868, allocations: 0.7072 MB / 444.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.3868, allocations: 0 / 444.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3869, allocations: 6.875 kB / 444.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.679e-06/0.3869, allocations: 0 / 444.7 MB, free: 35.39 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.002775/0.3897, allocations: 0.936 MB / 445.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/0.3897, allocations: 8.219 kB / 445.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001876/0.3899, allocations: 110.2 kB / 445.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.3902, allocations: 74.84 kB / 445.8 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009443/0.3911, allocations: 438.1 kB / 446.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.707e-05/0.3912, allocations: 78.48 kB / 446.3 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000167/0.3914, allocations: 69.05 kB / 446.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001795/0.3932, allocations: 0.713 MB / 447.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.3933, allocations: 0 / 447.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.895e-05/0.3934, allocations: 25.56 kB / 447.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.3934, allocations: 14.53 kB / 447.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.3951, allocations: 0.6465 MB / 447.8 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006893/0.402, allocations: 2.807 MB / 450.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002901/0.405, allocations: 0.6503 MB / 451.2 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.88e-05/0.4051, allocations: 2.969 kB / 451.2 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.4051, allocations: 37.97 kB / 451.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 3.156e-06/0.4051, allocations: 0 / 451.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004955/0.4101, allocations: 1.523 MB / 452.8 MB, free: 30.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.4102, allocations: 61.47 kB / 452.9 MB, free: 30.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007947/0.411, allocations: 424.5 kB / 453.3 MB, free: 30.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.347e-05/0.4111, allocations: 40.33 kB / 453.3 MB, free: 30.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000218/0.4113, allocations: 295 kB / 453.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.4116, allocations: 198.8 kB / 453.8 MB, free: 30.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.403e-05/0.4117, allocations: 14.62 kB / 453.8 MB, free: 30.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4118, allocations: 363 kB / 454.2 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009698/0.4128, allocations: 340.8 kB / 454.5 MB, free: 29.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009228/0.4137, allocations: 377.7 kB / 454.9 MB, free: 29.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.4148, allocations: 351.5 kB / 455.2 MB, free: 29.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.4148, allocations: 0 / 455.2 MB, free: 29.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00318/0.418, allocations: 0.9804 MB / 456.2 MB, free: 28.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.418, allocations: 7.75 kB / 456.2 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.4181, allocations: 1.125 kB / 456.2 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.4192, allocations: 169.5 kB / 456.4 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002208/0.4215, allocations: 224.4 kB / 456.6 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006402/0.4279, allocations: 7.12 MB / 463.7 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.4289, allocations: 77.05 kB / 463.8 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.429, allocations: 23.5 kB / 463.8 MB, free: 21.85 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.0005809/0.4296, allocations: 236 kB / 464 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.4299, allocations: 51.44 kB / 464.1 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002687/0.4326, allocations: 0.8348 MB / 464.9 MB, free: 21.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.4326, allocations: 6.656 kB / 464.9 MB, free: 21.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.4326, allocations: 0.7188 kB / 464.9 MB, free: 21.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.4326, allocations: 7.234 kB / 464.9 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004795/0.4374, allocations: 1.693 MB / 466.6 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.4375, allocations: 6.141 kB / 466.6 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/0.4395, allocations: 181.8 kB / 466.8 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007968/0.4403, allocations: 147.9 kB / 467 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.4404, allocations: 19.78 kB / 467 MB, free: 20.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005627/0.446, allocations: 6.734 MB / 473.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/0.4461, allocations: 6.75 kB / 473.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003722/0.4498, allocations: 1.348 MB / 475.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002652/0.4501, allocations: 137.2 kB / 475.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001883/0.4503, allocations: 19.97 kB / 475.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008431/0.4512, allocations: 31.14 kB / 475.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.4514, allocations: 52.12 kB / 475.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.699e-05/0.4515, allocations: 17.78 kB / 475.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005768/0.4521, allocations: 292.5 kB / 475.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.4521, allocations: 0 / 475.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001382/0.4535, allocations: 236.8 kB / 475.8 MB, free: 12.39 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.004098/0.4576, allocations: 2.471 MB / 478.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00297/0.4606, allocations: 1.285 MB / 479.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.4606, allocations: 1.125 kB / 479.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.4623, allocations: 0.8861 MB / 480.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.4635, allocations: 118.5 kB / 480.6 MB, free: 8.941 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007923/0.4714, allocations: 3.555 MB / 484.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000752/0.4722, allocations: 0.9452 MB / 485.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001072/0.4733, allocations: 128.1 kB / 485.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005594/0.4739, allocations: 220.9 kB / 485.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4739, allocations: 0 / 485.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05049/0.5244, allocations: 14.08 MB / 499.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003743/0.5249, allocations: 263.4 kB / 499.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.098/2.623, allocations: 0 / 499.8 MB, free: 13.27 MB / 366.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/linux/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) Environment - environmentSimulation: