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.001142/0.001142, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001172/0.001172, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.167/1.167, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1724/0.1724, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 55.91 kB / 380.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.215, allocations: 54.95 MB / 435.4 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.00283/0.2179, allocations: 3.448 MB / 438.8 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009778/0.2188, allocations: 0.9361 MB / 439.7 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.219, allocations: 6 kB / 439.7 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.2191, allocations: 45.52 kB / 439.8 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002093/0.2193, allocations: 157 kB / 439.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.2196, allocations: 167.5 kB / 440.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003937/0.22, allocations: 0.7362 MB / 440.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003401/0.2204, allocations: 443 kB / 441.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.2206, allocations: 309.6 kB / 441.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.2209, allocations: 405.7 kB / 442 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.409e-05/0.2209, allocations: 76.94 kB / 442.1 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-05/0.221, allocations: 75.84 kB / 442.1 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.2211, allocations: 204.8 kB / 442.3 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.2213, allocations: 341.1 kB / 442.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003745/0.2217, allocations: 0.7855 MB / 443.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.2217, allocations: 0 / 443.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2217, allocations: 7.328 kB / 443.5 MB, free: 34.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.2217, allocations: 3.938 kB / 443.5 MB, free: 34.71 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.001332/0.2231, allocations: 0.8935 MB / 444.3 MB, free: 34.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.189e-05/0.2231, allocations: 8.844 kB / 444.4 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.636e-05/0.2232, allocations: 97.69 kB / 444.5 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.881e-05/0.2233, allocations: 63.03 kB / 444.5 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.2236, allocations: 392.8 kB / 444.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.965e-05/0.2237, allocations: 105.9 kB / 445 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.998e-05/0.2238, allocations: 50.31 kB / 445.1 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.225, allocations: 0.6949 MB / 445.7 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.225, allocations: 0 / 445.7 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.211e-05/0.2251, allocations: 26.91 kB / 445.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.2251, allocations: 14.41 kB / 445.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.2263, allocations: 0.5966 MB / 446.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003698/0.23, allocations: 2.589 MB / 449 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009071/0.2309, allocations: 0.5492 MB / 449.5 MB, free: 31.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006974/0.2316, allocations: 408.5 kB / 449.9 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.689e-05/0.2316, allocations: 10.02 kB / 449.9 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.2317, allocations: 38.19 kB / 450 MB, free: 31.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.363e-06/0.2317, allocations: 0 / 450 MB, free: 31.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004442/0.2361, allocations: 2.193 MB / 452.2 MB, free: 30.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.714e-05/0.2361, allocations: 57.56 kB / 452.2 MB, free: 30.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.2364, allocations: 358.8 kB / 452.6 MB, free: 30.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.2365, allocations: 37.7 kB / 452.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.664e-05/0.2365, allocations: 230.4 kB / 452.8 MB, free: 29.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.2367, allocations: 187.6 kB / 453 MB, free: 29.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.2368, allocations: 92.42 kB / 453.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.239e-05/0.2369, allocations: 355.6 kB / 453.4 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006977/0.2376, allocations: 381.5 kB / 453.8 MB, free: 29.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007082/0.2383, allocations: 411.2 kB / 454.2 MB, free: 29.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005701/0.244, allocations: 1.997 MB / 456.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.244, allocations: 0 / 456.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001582/0.2456, allocations: 0.8497 MB / 457.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.2456, allocations: 5.688 kB / 457.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2456, allocations: 1.031 kB / 457.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.2457, allocations: 3.219 kB / 457.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00546/0.2511, allocations: 0.9098 MB / 458 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.2511, allocations: 4.156 kB / 458 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004627/0.2516, allocations: 59.61 kB / 458.1 MB, free: 28.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.2517, allocations: 21.12 kB / 458.1 MB, free: 28.12 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.000239/0.2519, allocations: 207.8 kB / 458.3 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.408e-05/0.252, allocations: 45.31 kB / 458.3 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.2537, allocations: 0.8384 MB / 459.2 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.2537, allocations: 9.188 kB / 459.2 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.2537, allocations: 3.938 kB / 459.2 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2538, allocations: 1.062 kB / 459.2 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00272/0.2565, allocations: 1.743 MB / 460.9 MB, free: 26.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.2565, allocations: 1.344 kB / 460.9 MB, free: 26.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005508/0.262, allocations: 0.903 MB / 461.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.262, allocations: 2.438 kB / 461.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/0.2621, allocations: 17.41 kB / 461.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.2621, allocations: 1.5 kB / 461.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2621, allocations: 1.438 kB / 461.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002274/0.2644, allocations: 1.269 MB / 463.1 MB, free: 26.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.2644, allocations: 123.7 kB / 463.2 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.62e-05/0.2645, allocations: 14.06 kB / 463.2 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004912/0.265, allocations: 63.11 kB / 463.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.2652, allocations: 73.34 kB / 463.4 MB, free: 25.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.211e-05/0.2652, allocations: 16.7 kB / 463.4 MB, free: 25.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.2654, allocations: 260.7 kB / 463.6 MB, free: 25.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2655, allocations: 1.312 kB / 463.7 MB, free: 25.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000412/0.2659, allocations: 144.3 kB / 463.8 MB, free: 25.81 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.002453/0.2683, allocations: 1.824 MB / 465.6 MB, free: 24.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.2701, allocations: 0.8389 MB / 466.5 MB, free: 24.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2701, allocations: 1.375 kB / 466.5 MB, free: 24.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007797/0.2709, allocations: 420.7 kB / 466.9 MB, free: 24.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004983/0.2714, allocations: 105.8 kB / 467 MB, free: 24.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008445/0.2798, allocations: 6.236 MB / 473.2 MB, free: 20.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.2801, allocations: 0.8565 MB / 474.1 MB, free: 20.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003936/0.2805, allocations: 92.3 kB / 474.2 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000328/0.2808, allocations: 183.9 kB / 474.3 MB, free: 19.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2808, allocations: 0 / 474.3 MB, free: 19.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.595/1.875, allocations: 12.31 MB / 486.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/1.876, allocations: 238.2 kB / 486.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/3.782, allocations: 2.5 kB / 486.9 MB, free: 10.16 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)