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.0008296/0.0008297, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001124/0.001124, allocations: 168.7 kB / 15.95 MB, free: 204 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.369/1.369, allocations: 223.3 MB / 240 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2246/0.2246, allocations: 22.35 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003192, allocations: 8 kB / 382.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.32, allocations: 55.98 MB / 438 MB, free: 39.13 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.00246/0.3225, allocations: 2.894 MB / 440.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.3236, allocations: 0.9117 MB / 441.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001853/0.3238, allocations: 13.09 kB / 441.9 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.324, allocations: 58.81 kB / 441.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002819/0.3243, allocations: 205.9 kB / 442.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004322/0.3247, allocations: 161.7 kB / 442.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006438/0.3254, allocations: 0.9501 MB / 443.2 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.3258, allocations: 439.5 kB / 443.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002879/0.3261, allocations: 319.7 kB / 444 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004498/0.3266, allocations: 455.7 kB / 444.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.626e-05/0.3267, allocations: 44.66 kB / 444.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.776e-05/0.3268, allocations: 47.41 kB / 444.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.327, allocations: 253 kB / 444.7 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.3271, allocations: 160 kB / 444.9 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004544/0.3275, allocations: 0.7099 MB / 445.6 MB, free: 34.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.3276, allocations: 0 / 445.6 MB, free: 34.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3276, allocations: 0 / 445.6 MB, free: 34.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.3276, allocations: 0 / 445.6 MB, free: 34.97 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.001618/0.3292, allocations: 0.9386 MB / 446.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.3293, allocations: 11.69 kB / 446.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001128/0.3294, allocations: 104.3 kB / 446.7 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.3295, allocations: 80.05 kB / 446.7 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004985/0.33, allocations: 439.8 kB / 447.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.956e-05/0.3301, allocations: 75.05 kB / 447.2 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.493e-05/0.3302, allocations: 69.23 kB / 447.3 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.3312, allocations: 0.7132 MB / 448 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.3312, allocations: 0 / 448 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.87e-05/0.3313, allocations: 29.75 kB / 448.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.3313, allocations: 22.02 kB / 448.1 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009722/0.3323, allocations: 0.6445 MB / 448.7 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00387/0.3362, allocations: 2.799 MB / 451.5 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.3377, allocations: 0.6432 MB / 452.2 MB, free: 31.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006138/0.3383, allocations: 399.5 kB / 452.6 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.222e-05/0.3384, allocations: 4.219 kB / 452.6 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.3384, allocations: 46.17 kB / 452.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.244e-06/0.3384, allocations: 0 / 452.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002534/0.341, allocations: 1.526 MB / 454.1 MB, free: 30.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.673e-05/0.341, allocations: 62.34 kB / 454.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003934/0.3414, allocations: 428.3 kB / 454.6 MB, free: 30.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.3415, allocations: 33.7 kB / 454.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.3416, allocations: 299.2 kB / 454.9 MB, free: 29.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.3418, allocations: 196.1 kB / 455.1 MB, free: 29.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.3418, allocations: 15 kB / 455.1 MB, free: 29.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.509e-05/0.3419, allocations: 361.4 kB / 455.5 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004709/0.3424, allocations: 343.3 kB / 455.8 MB, free: 29.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005431/0.3429, allocations: 377.9 kB / 456.2 MB, free: 28.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006093/0.3435, allocations: 358.8 kB / 456.5 MB, free: 28.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3435, allocations: 0 / 456.5 MB, free: 28.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001789/0.3453, allocations: 0.9754 MB / 457.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3454, allocations: 8.844 kB / 457.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3454, allocations: 2.344 kB / 457.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006523/0.346, allocations: 167.6 kB / 457.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.3472, allocations: 229.3 kB / 457.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005126/0.3523, allocations: 7.059 MB / 465 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006926/0.353, allocations: 72.75 kB / 465 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-05/0.3531, allocations: 27.09 kB / 465.1 MB, free: 21.31 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.0004466/0.3536, allocations: 231.3 kB / 465.3 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.507e-05/0.3537, allocations: 58.22 kB / 465.4 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.3552, allocations: 0.8296 MB / 466.2 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.3553, allocations: 5.375 kB / 466.2 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3553, allocations: 6.047 kB / 466.2 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3553, allocations: 2.672 kB / 466.2 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002944/0.3582, allocations: 1.695 MB / 467.9 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.3583, allocations: 7.156 kB / 467.9 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.3593, allocations: 186.4 kB / 468.1 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004572/0.3598, allocations: 143.2 kB / 468.2 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.307e-05/0.3598, allocations: 19.45 kB / 468.2 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003473/0.3633, allocations: 6.678 MB / 474.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.3633, allocations: 10.53 kB / 474.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.3655, allocations: 1.259 MB / 476.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001732/0.3657, allocations: 137.7 kB / 476.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.722e-05/0.3658, allocations: 17.5 kB / 476.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000408/0.3662, allocations: 36.73 kB / 476.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3664, allocations: 51.23 kB / 476.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.686e-05/0.3664, allocations: 18.58 kB / 476.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003743/0.3668, allocations: 290 kB / 476.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3668, allocations: 0 / 476.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008712/0.3677, allocations: 236.2 kB / 477 MB, free: 12.01 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.002301/0.37, allocations: 1.826 MB / 478.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001946/0.372, allocations: 1.282 MB / 480.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.371e-06/0.372, allocations: 1.656 kB / 480.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009478/0.3729, allocations: 0.8884 MB / 481 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007294/0.3737, allocations: 138.2 kB / 481.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008034/0.3817, allocations: 4.889 MB / 486 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.3823, allocations: 0.9325 MB / 486.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006099/0.383, allocations: 124 kB / 487 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003534/0.3833, allocations: 216.6 kB / 487.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3833, allocations: 0 / 487.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03102/0.4143, allocations: 14.43 MB / 0.4899 GB, free: 11.6 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002462/0.4146, allocations: 269.9 kB / 0.4902 GB, free: 11.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.505, allocations: 0 / 0.4902 GB, free: 11.25 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: