Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.001148/0.001148, allocations: 108 kB / 15.6 MB, free: 132 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.001178/0.001178, allocations: 198.3 kB / 16.54 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1894/0.1894, allocations: 22.36 MB / 312.8 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 380.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2383, allocations: 54.94 MB / 435.9 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.00319/0.2415, allocations: 3.192 MB / 439.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.2428, allocations: 0.9111 MB / 440 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.2429, allocations: 2.844 kB / 440 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.2431, allocations: 71.95 kB / 440.1 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.2434, allocations: 169.9 kB / 440.2 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.2438, allocations: 191.7 kB / 440.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000458/0.2442, allocations: 0.7478 MB / 441.2 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004348/0.2447, allocations: 438.7 kB / 441.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.2449, allocations: 309 kB / 441.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.2453, allocations: 393.9 kB / 442.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.542e-05/0.2454, allocations: 79.41 kB / 442.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.2455, allocations: 74.53 kB / 442.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.2456, allocations: 213.5 kB / 442.6 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002178/0.2458, allocations: 336.4 kB / 443 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004573/0.2463, allocations: 0.7952 MB / 443.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2463, allocations: 0 / 443.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2463, allocations: 0 / 443.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2463, allocations: 0 / 443.8 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.001608/0.248, allocations: 0.8978 MB / 444.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.248, allocations: 10.78 kB / 444.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.45e-05/0.2481, allocations: 89.89 kB / 444.8 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.2482, allocations: 61.75 kB / 444.8 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.2486, allocations: 392.2 kB / 445.2 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.2488, allocations: 112 kB / 445.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.703e-05/0.2489, allocations: 47.59 kB / 445.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.2502, allocations: 0.6933 MB / 446 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2502, allocations: 0 / 446 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.814e-05/0.2503, allocations: 15.12 kB / 446.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.2503, allocations: 11.38 kB / 446.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.2516, allocations: 0.6131 MB / 446.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/0.2558, allocations: 2.578 MB / 449.3 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.257, allocations: 0.556 MB / 449.8 MB, free: 31.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007769/0.2577, allocations: 409.4 kB / 450.2 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.769e-05/0.2578, allocations: 11.12 kB / 450.2 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.2578, allocations: 37.62 kB / 450.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.655e-06/0.2578, allocations: 0 / 450.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005235/0.2631, allocations: 2.192 MB / 452.5 MB, free: 30.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.2631, allocations: 65.31 kB / 452.5 MB, free: 30.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.2634, allocations: 355.5 kB / 452.9 MB, free: 30.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.2635, allocations: 36.09 kB / 452.9 MB, free: 30.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.179e-05/0.2636, allocations: 226.9 kB / 453.1 MB, free: 30.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.2637, allocations: 186.6 kB / 453.3 MB, free: 30.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.2639, allocations: 94.72 kB / 453.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.268e-05/0.2639, allocations: 356.3 kB / 453.8 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007777/0.2647, allocations: 370.1 kB / 454.1 MB, free: 29.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008053/0.2655, allocations: 414.5 kB / 454.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006464/0.272, allocations: 1.996 MB / 456.5 MB, free: 28.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.272, allocations: 5.406 kB / 456.5 MB, free: 28.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001882/0.2739, allocations: 0.8524 MB / 457.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.274, allocations: 11.94 kB / 457.4 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.274, allocations: 2.094 kB / 457.4 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.274, allocations: 2.812 kB / 457.4 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006025/0.28, allocations: 0.9092 MB / 458.3 MB, free: 28.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.2801, allocations: 8 kB / 458.3 MB, free: 28.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.2806, allocations: 53.2 kB / 458.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.2807, allocations: 21.03 kB / 458.4 MB, free: 28.5 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.0002973/0.281, allocations: 199.6 kB / 458.6 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.711e-05/0.2811, allocations: 48.34 kB / 458.6 MB, free: 28.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.283, allocations: 0.8395 MB / 459.5 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.283, allocations: 5.562 kB / 459.5 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.283, allocations: 4 kB / 459.5 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.283, allocations: 3.672 kB / 459.5 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.2862, allocations: 1.748 MB / 461.2 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2862, allocations: 0 / 461.2 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006163/0.2924, allocations: 0.8997 MB / 462.1 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.485e-06/0.2924, allocations: 2.312 kB / 462.1 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.494e-05/0.2925, allocations: 16.55 kB / 462.1 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.2925, allocations: 6.375 kB / 462.1 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2925, allocations: 1.188 kB / 462.1 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.2951, allocations: 1.274 MB / 463.4 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.468e-05/0.2952, allocations: 115.8 kB / 463.5 MB, free: 26.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.184e-05/0.2953, allocations: 17.8 kB / 463.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005197/0.2959, allocations: 53.75 kB / 463.6 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.296, allocations: 73.8 kB / 463.7 MB, free: 26.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.2961, allocations: 16.91 kB / 463.7 MB, free: 26.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000253/0.2963, allocations: 265.2 kB / 463.9 MB, free: 26.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2963, allocations: 96 / 463.9 MB, free: 26.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004838/0.2968, allocations: 145.6 kB / 464.1 MB, free: 26.19 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.002741/0.2996, allocations: 1.822 MB / 465.9 MB, free: 25.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.3016, allocations: 0.8463 MB / 466.8 MB, free: 24.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3016, allocations: 1.531 kB / 466.8 MB, free: 24.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008856/0.3025, allocations: 420.8 kB / 467.2 MB, free: 24.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.303, allocations: 103.2 kB / 467.3 MB, free: 24.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009627/0.3127, allocations: 6.055 MB / 473.3 MB, free: 21.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.313, allocations: 0.8529 MB / 474.2 MB, free: 20.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004486/0.3134, allocations: 96.3 kB / 474.3 MB, free: 20.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003451/0.3138, allocations: 187 kB / 474.5 MB, free: 20.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3138, allocations: 0 / 474.5 MB, free: 20.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.3415, allocations: 12.62 MB / 487.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/7.853, allocations: 6.938 kB / 487.1 MB, free: 10.21 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)