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.001466/0.001466, allocations: 108 kB / 15.61 MB, free: 128 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.001169/0.001169, allocations: 197.5 kB / 16.53 MB, free: 6.672 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.237/1.237, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1866/0.1866, allocations: 22.35 MB / 312.7 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001904, allocations: 64.05 kB / 380.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2246, allocations: 54.93 MB / 435.9 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003032/0.2277, allocations: 3.204 MB / 439.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.2287, allocations: 0.9208 MB / 440 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.2289, allocations: 2.844 kB / 440 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.229, allocations: 65.75 kB / 440.1 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.2293, allocations: 171.9 kB / 440.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003546/0.2296, allocations: 191.4 kB / 440.4 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.23, allocations: 0.7366 MB / 441.2 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.2304, allocations: 445.6 kB / 441.6 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.2306, allocations: 314.1 kB / 441.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003089/0.2309, allocations: 393.6 kB / 442.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.429e-05/0.231, allocations: 77.16 kB / 442.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.468e-05/0.2311, allocations: 79.12 kB / 442.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.2312, allocations: 201.7 kB / 442.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002023/0.2314, allocations: 339 kB / 443 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.2318, allocations: 0.7913 MB / 443.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2318, allocations: 0 / 443.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2318, allocations: 0 / 443.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.2319, allocations: 0 / 443.8 MB, free: 35.04 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.001437/0.2333, allocations: 0.8995 MB / 444.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.786e-05/0.2333, allocations: 12.84 kB / 444.7 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.838e-05/0.2334, allocations: 93.19 kB / 444.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.316e-05/0.2335, allocations: 60.19 kB / 444.8 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.2339, allocations: 390.9 kB / 445.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.394e-05/0.234, allocations: 107 kB / 445.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.339e-05/0.2341, allocations: 52.2 kB / 445.4 MB, free: 33.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.2353, allocations: 0.6959 MB / 446.1 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.2354, allocations: 0 / 446.1 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.439e-05/0.2354, allocations: 21.53 kB / 446.1 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.2354, allocations: 11.72 kB / 446.1 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.2366, allocations: 0.6058 MB / 446.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.2405, allocations: 2.591 MB / 449.3 MB, free: 32.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009641/0.2415, allocations: 0.5528 MB / 449.8 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007255/0.2422, allocations: 409.1 kB / 450.2 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.081e-05/0.2423, allocations: 5.688 kB / 450.2 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.2423, allocations: 37.62 kB / 450.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.654e-06/0.2423, allocations: 0 / 450.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004784/0.2471, allocations: 2.193 MB / 452.5 MB, free: 30.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.339e-05/0.2471, allocations: 58.31 kB / 452.5 MB, free: 30.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.2474, allocations: 358.5 kB / 452.9 MB, free: 30.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.2475, allocations: 33.7 kB / 452.9 MB, free: 30.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.2476, allocations: 232.6 kB / 453.1 MB, free: 30.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.2477, allocations: 188.8 kB / 453.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.2479, allocations: 93.62 kB / 453.4 MB, free: 30.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.578e-05/0.2479, allocations: 355.4 kB / 453.8 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007536/0.2487, allocations: 372.4 kB / 454.1 MB, free: 29.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00077/0.2495, allocations: 410.7 kB / 454.5 MB, free: 29.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006069/0.2555, allocations: 2.008 MB / 456.5 MB, free: 28.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2556, allocations: 0 / 456.5 MB, free: 28.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001689/0.2573, allocations: 0.8516 MB / 457.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2573, allocations: 5.469 kB / 457.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2573, allocations: 2.953 kB / 457.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.2573, allocations: 3.031 kB / 457.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005829/0.2631, allocations: 0.91 MB / 458.3 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.2632, allocations: 5.188 kB / 458.3 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004884/0.2637, allocations: 59.08 kB / 458.4 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.641e-05/0.2637, allocations: 20.28 kB / 458.4 MB, free: 28.45 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.0002595/0.264, allocations: 203.3 kB / 458.6 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.772e-05/0.2641, allocations: 49.58 kB / 458.6 MB, free: 28.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/0.2658, allocations: 0.8318 MB / 459.5 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.2658, allocations: 5.562 kB / 459.5 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2659, allocations: 1.969 kB / 459.5 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2659, allocations: 2.484 kB / 459.5 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002878/0.2688, allocations: 1.746 MB / 461.2 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2688, allocations: 1.922 kB / 461.2 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005881/0.2747, allocations: 0.9015 MB / 462.1 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.2747, allocations: 3.141 kB / 462.1 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.996e-05/0.2747, allocations: 17 kB / 462.2 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2747, allocations: 7.141 kB / 462.2 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2747, allocations: 3.938 kB / 462.2 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002429/0.2772, allocations: 1.27 MB / 463.4 MB, free: 26.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.2772, allocations: 115.8 kB / 463.5 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.745e-05/0.2773, allocations: 13.45 kB / 463.6 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.2778, allocations: 50.78 kB / 463.6 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.278, allocations: 73.09 kB / 463.7 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.182e-05/0.2781, allocations: 26.23 kB / 463.7 MB, free: 26.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002088/0.2783, allocations: 260.7 kB / 464 MB, free: 26.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2783, allocations: 3.938 kB / 464 MB, free: 26.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004232/0.2787, allocations: 145.3 kB / 464.1 MB, free: 26.14 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.002552/0.2813, allocations: 1.823 MB / 465.9 MB, free: 25.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.2831, allocations: 0.8475 MB / 466.8 MB, free: 24.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2831, allocations: 0 / 466.8 MB, free: 24.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008046/0.2839, allocations: 417.4 kB / 467.2 MB, free: 24.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.2844, allocations: 104 kB / 467.3 MB, free: 24.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00872/0.2931, allocations: 6.055 MB / 473.3 MB, free: 21.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.2934, allocations: 0.852 MB / 474.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004001/0.2938, allocations: 95.72 kB / 474.3 MB, free: 20.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003189/0.2941, allocations: 187.3 kB / 474.5 MB, free: 20.46 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2941, allocations: 1.219 kB / 474.5 MB, free: 20.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.45/1.744, allocations: 12.65 MB / 487.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/11.81, allocations: 2.469 kB / 487.1 MB, free: 10.25 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)