Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.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.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",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.0008342/0.0008342, allocations: 91.77 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.0008503/0.0008503, 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.367/1.367, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2252/0.2252, allocations: 22.36 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002862/0.0002863, allocations: 12 kB / 382.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3089, allocations: 55.98 MB / 438 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.002437/0.3114, allocations: 2.915 MB / 441 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.3127, allocations: 0.9012 MB / 441.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.3129, allocations: 3.781 kB / 441.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.313, allocations: 47.48 kB / 441.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002633/0.3133, allocations: 175 kB / 442.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003835/0.3137, allocations: 141.1 kB / 442.2 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005204/0.3142, allocations: 0.7352 MB / 442.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003991/0.3146, allocations: 355.2 kB / 443.3 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.3148, allocations: 262.4 kB / 443.6 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003423/0.3152, allocations: 368 kB / 443.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.772e-05/0.3153, allocations: 44.12 kB / 444 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.245e-05/0.3154, allocations: 45.28 kB / 444 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.3155, allocations: 170 kB / 444.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.845e-05/0.3156, allocations: 123.7 kB / 444.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003389/0.3159, allocations: 0.5896 MB / 444.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3159, allocations: 0 / 444.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.316, allocations: 0 / 444.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.316, allocations: 0 / 444.9 MB, free: 35.08 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001367/0.3173, allocations: 0.8116 MB / 445.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3174, allocations: 8.719 kB / 445.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.909e-05/0.3175, allocations: 97.36 kB / 445.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.565e-05/0.3176, allocations: 64.97 kB / 445.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004145/0.318, allocations: 377.1 kB / 446.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.3181, allocations: 112.1 kB / 446.3 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.82e-05/0.3182, allocations: 47.44 kB / 446.4 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.3195, allocations: 0.7346 MB / 447.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.3195, allocations: 6.875 kB / 447.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.374e-05/0.3196, allocations: 19 kB / 447.1 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3196, allocations: 11.88 kB / 447.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.3208, allocations: 0.645 MB / 447.8 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004065/0.3249, allocations: 2.674 MB / 450.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009978/0.3259, allocations: 0.5836 MB / 451.1 MB, free: 31.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007522/0.3267, allocations: 439.5 kB / 451.5 MB, free: 31.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.353e-05/0.3268, allocations: 14.22 kB / 451.5 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.3268, allocations: 34.44 kB / 451.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.295e-06/0.3268, allocations: 0 / 451.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004886/0.3317, allocations: 2.38 MB / 453.9 MB, free: 30.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.3317, allocations: 56.97 kB / 454 MB, free: 30.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.3321, allocations: 352.7 kB / 454.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.3321, allocations: 36.89 kB / 454.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.3322, allocations: 238.3 kB / 454.6 MB, free: 30.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.3323, allocations: 185.3 kB / 454.8 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.733e-05/0.3324, allocations: 11.03 kB / 454.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.019e-05/0.3325, allocations: 353.5 kB / 455.1 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007348/0.3332, allocations: 405.7 kB / 455.5 MB, free: 29.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008171/0.334, allocations: 450 kB / 456 MB, free: 29.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007905/0.3348, allocations: 391.2 kB / 456.3 MB, free: 29.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3348, allocations: 0 / 456.3 MB, free: 29.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001774/0.3366, allocations: 0.9071 MB / 457.2 MB, free: 29.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3367, allocations: 6.25 kB / 457.2 MB, free: 29.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.3367, allocations: 5.406 kB / 457.3 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3367, allocations: 7.578 kB / 457.3 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005346/0.342, allocations: 1.2 MB / 458.5 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/0.3421, allocations: 4.281 kB / 458.5 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005664/0.3427, allocations: 84.92 kB / 458.5 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.484e-05/0.3427, allocations: 25.66 kB / 458.6 MB, free: 28.93 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" 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 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003536/0.3431, allocations: 196 kB / 458.8 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.3432, allocations: 44.16 kB / 458.8 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/0.3451, allocations: 0.9108 MB / 459.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.3452, allocations: 5.312 kB / 459.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3452, allocations: 3.953 kB / 459.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3452, allocations: 4.141 kB / 459.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00349/0.3487, allocations: 1.828 MB / 461.6 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.3487, allocations: 0 / 461.6 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005612/0.3543, allocations: 1.199 MB / 462.8 MB, free: 27.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.551e-05/0.3544, allocations: 3.031 kB / 462.8 MB, free: 27.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.127e-05/0.3544, allocations: 17.7 kB / 462.8 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.3545, allocations: 2.281 kB / 462.8 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3545, allocations: 1.344 kB / 462.8 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/0.3573, allocations: 1.371 MB / 464.2 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.3574, allocations: 120.4 kB / 464.3 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.3576, allocations: 17.02 kB / 464.3 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005345/0.3581, allocations: 70.41 kB / 464.4 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.3583, allocations: 76.97 kB / 464.4 MB, free: 26.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.697e-05/0.3584, allocations: 22.91 kB / 464.5 MB, free: 26.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003392/0.3587, allocations: 252.2 kB / 464.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3587, allocations: 5.906 kB / 464.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006389/0.3594, allocations: 141.2 kB / 464.8 MB, free: 26.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003001/0.3624, allocations: 1.935 MB / 466.8 MB, free: 25.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00202/0.3644, allocations: 0.8544 MB / 467.6 MB, free: 25.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3644, allocations: 0 / 467.6 MB, free: 25.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009338/0.3654, allocations: 455.2 kB / 468.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000605/0.366, allocations: 101.6 kB / 468.2 MB, free: 25.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008521/0.3745, allocations: 4.611 MB / 472.8 MB, free: 22.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.3749, allocations: 0.8535 MB / 473.6 MB, free: 22.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000523/0.3755, allocations: 95.06 kB / 473.7 MB, free: 22.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.3758, allocations: 186.8 kB / 473.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3759, allocations: 0 / 473.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.4007, allocations: 11.59 MB / 485.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001319/0.4008, allocations: 211.2 kB / 485.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.445, allocations: 0 / 485.7 MB, free: 13.34 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload.fmu > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1) Environment - environmentSimulation: