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.0009854/0.0009854, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007794/0.007794, allocations: 170 kB / 16.26 MB, free: 6.613 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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1883/0.1883, allocations: 22.34 MB / 313.8 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002942/0.0002942, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2401, allocations: 55.97 MB / 438.7 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.002295/0.2424, allocations: 3.074 MB / 441.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.2435, allocations: 0.916 MB / 442.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.2436, allocations: 6.281 kB / 442.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.2438, allocations: 52.64 kB / 442.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.244, allocations: 149.9 kB / 442.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.2443, allocations: 173.2 kB / 443 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004857/0.2448, allocations: 0.8046 MB / 443.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003544/0.2452, allocations: 381.1 kB / 444.2 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.2454, allocations: 261.9 kB / 444.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.2457, allocations: 377.9 kB / 444.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.61e-05/0.2458, allocations: 44.84 kB / 444.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.71e-05/0.2459, allocations: 45.94 kB / 444.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.246, allocations: 173.2 kB / 445.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.2462, allocations: 330.9 kB / 445.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.2466, allocations: 0.7498 MB / 446.2 MB, free: 34.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2466, allocations: 0 / 446.2 MB, free: 34.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2466, allocations: 0 / 446.2 MB, free: 34.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.2466, allocations: 0 / 446.2 MB, free: 34.92 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.00135/0.248, allocations: 0.7982 MB / 447 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.901e-05/0.248, allocations: 8.719 kB / 447 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.532e-05/0.2481, allocations: 94.69 kB / 447.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.394e-05/0.2482, allocations: 68.36 kB / 447.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003782/0.2486, allocations: 389.4 kB / 447.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.2487, allocations: 111.7 kB / 447.6 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.221e-05/0.2488, allocations: 56.44 kB / 447.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.2502, allocations: 0.7362 MB / 448.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.2503, allocations: 3.938 kB / 448.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.865e-05/0.2503, allocations: 19.16 kB / 448.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.2503, allocations: 11.94 kB / 448.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.2517, allocations: 0.6511 MB / 449.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004187/0.2559, allocations: 2.681 MB / 451.8 MB, free: 31.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.257, allocations: 0.5808 MB / 452.4 MB, free: 31.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008543/0.2578, allocations: 449.1 kB / 452.8 MB, free: 31.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.2579, allocations: 11.16 kB / 452.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.2579, allocations: 41.88 kB / 452.9 MB, free: 31.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.613e-06/0.2579, allocations: 0 / 452.9 MB, free: 31.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005302/0.2632, allocations: 2.372 MB / 455.2 MB, free: 30.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.195e-05/0.2632, allocations: 55.03 kB / 455.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.2635, allocations: 362.8 kB / 455.6 MB, free: 30.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.2636, allocations: 31.92 kB / 455.7 MB, free: 30.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/0.2637, allocations: 224.7 kB / 455.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.2638, allocations: 192.9 kB / 456.1 MB, free: 29.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.2639, allocations: 57.25 kB / 456.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.907e-05/0.2639, allocations: 353.5 kB / 456.5 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008735/0.2648, allocations: 407.2 kB / 456.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008614/0.2657, allocations: 447.1 kB / 457.3 MB, free: 29.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006697/0.2724, allocations: 2.245 MB / 459.6 MB, free: 28.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2724, allocations: 0.9688 kB / 459.6 MB, free: 28.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001995/0.2744, allocations: 0.9227 MB / 460.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2744, allocations: 6.344 kB / 460.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2745, allocations: 1.891 kB / 460.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.2745, allocations: 7.344 kB / 460.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006411/0.2809, allocations: 1.199 MB / 461.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.2809, allocations: 4.188 kB / 461.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.2814, allocations: 76.88 kB / 461.8 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.845e-05/0.2815, allocations: 19.58 kB / 461.8 MB, free: 28.27 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.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 (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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002598/0.2818, allocations: 198.9 kB / 462 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.796e-05/0.2819, allocations: 48.81 kB / 462 MB, free: 28.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.2838, allocations: 0.9101 MB / 463 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.2839, allocations: 8.812 kB / 463 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2839, allocations: 1.031 kB / 463 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.2839, allocations: 2.812 kB / 463 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003141/0.287, allocations: 1.826 MB / 464.8 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.287, allocations: 0 / 464.8 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006611/0.2937, allocations: 1.191 MB / 466 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.75e-06/0.2937, allocations: 3.406 kB / 466 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.368e-05/0.2937, allocations: 17.59 kB / 466 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.2937, allocations: 2.344 kB / 466 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2937, allocations: 4 kB / 466 MB, free: 26.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00276/0.2965, allocations: 1.379 MB / 467.4 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.839e-05/0.2966, allocations: 120.5 kB / 467.5 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.2967, allocations: 12.56 kB / 467.5 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/0.2972, allocations: 74.44 kB / 467.6 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.2974, allocations: 75.05 kB / 467.7 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.395e-05/0.2975, allocations: 17.34 kB / 467.7 MB, free: 26.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002411/0.2977, allocations: 260.3 kB / 467.9 MB, free: 25.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2977, allocations: 0 / 467.9 MB, free: 25.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004655/0.2982, allocations: 145.3 kB / 468.1 MB, free: 25.91 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002986/0.3012, allocations: 1.94 MB / 470 MB, free: 24.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001892/0.3031, allocations: 0.857 MB / 470.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3031, allocations: 0 / 470.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009655/0.3041, allocations: 456.8 kB / 471.3 MB, free: 24.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006207/0.3047, allocations: 109.8 kB / 471.4 MB, free: 24.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.3148, allocations: 6.592 MB / 478 MB, free: 20.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.315, allocations: 0.8611 MB / 478.9 MB, free: 19.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004129/0.3154, allocations: 97.88 kB / 479 MB, free: 19.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003402/0.3158, allocations: 183.5 kB / 479.2 MB, free: 19.69 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3158, allocations: 4 kB / 479.2 MB, free: 19.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1401/0.4559, allocations: 11.69 MB / 490.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/0.4561, allocations: 233.7 kB / 491.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.14/2.596, allocations: 11.94 kB / 491.1 MB, free: 8.406 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/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)