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.004731/0.004731, allocations: 99.59 kB / 15.73 MB, free: 6.484 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.001193/0.001193, allocations: 192.2 kB / 16.68 MB, free: 6.367 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.207/0.207, allocations: 22.37 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 71.45 kB / 436.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.09018, allocations: 54.97 MB / 491.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003653/0.09386, allocations: 3.182 MB / 494.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.09562, allocations: 0.9157 MB / 495.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002601/0.0959, allocations: 4 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.09618, allocations: 63.36 kB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004447/0.09664, allocations: 182.6 kB / 495.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.09729, allocations: 187.7 kB / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009136/0.09822, allocations: 0.7484 MB / 496.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006668/0.0989, allocations: 449.7 kB / 497.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000457/0.09937, allocations: 307.1 kB / 497.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005702/0.09995, allocations: 398.6 kB / 498 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.1001, allocations: 76 kB / 498 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.1003, allocations: 76 kB / 498.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.1005, allocations: 211.4 kB / 498.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003814/0.1009, allocations: 338.5 kB / 498.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008409/0.1017, allocations: 0.7981 MB / 499.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1018, allocations: 0 / 499.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1018, allocations: 4 kB / 499.4 MB, free: 9.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.1018, allocations: 0 / 499.4 MB, free: 9.77 MB / 366.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.002168/0.104, allocations: 0.9115 MB / 0.4886 GB, free: 8.809 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.104, allocations: 12.02 kB / 0.4886 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001293/0.1042, allocations: 90.72 kB / 0.4887 GB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.1043, allocations: 68.55 kB / 0.4888 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006346/0.1049, allocations: 388.4 kB / 0.4892 GB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.1051, allocations: 112.9 kB / 0.4893 GB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.1053, allocations: 56.27 kB / 0.4893 GB, free: 8.043 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.107, allocations: 0.6934 MB / 0.49 GB, free: 7.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.107, allocations: 0 / 0.49 GB, free: 7.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.519e-05/0.1071, allocations: 16 kB / 0.49 GB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1071, allocations: 16 kB / 0.49 GB, free: 7.312 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.1086, allocations: 0.6011 MB / 0.4906 GB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005712/0.1144, allocations: 2.567 MB / 0.4931 GB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.1158, allocations: 0.563 MB / 0.4937 GB, free: 3.504 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00096/0.1167, allocations: 401.9 kB / 0.4941 GB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-05/0.1168, allocations: 8.438 kB / 0.4941 GB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.1169, allocations: 39 kB / 0.4941 GB, free: 3.055 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 4.498e-06/0.1169, allocations: 0 / 0.4941 GB, free: 3.055 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.006488/0.1234, allocations: 2.204 MB / 0.4963 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.1234, allocations: 59.84 kB / 0.4963 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004334/0.1239, allocations: 365.6 kB / 0.4967 GB, free: 368 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.318e-05/0.124, allocations: 29.7 kB / 0.4967 GB, free: 332 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.1241, allocations: 229.5 kB / 0.4969 GB, free: 100 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.1244, allocations: 202.3 kB / 0.4971 GB, free: 15.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.1246, allocations: 94.23 kB / 0.4972 GB, free: 15.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1247, allocations: 354.8 kB / 0.4975 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009339/0.1257, allocations: 374.7 kB / 0.4979 GB, free: 15.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009653/0.1266, allocations: 419 kB / 0.4983 GB, free: 14.65 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007223/0.1339, allocations: 1.992 MB / 0.5002 GB, free: 12.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1339, allocations: 0 / 0.5002 GB, free: 12.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002189/0.1361, allocations: 0.8538 MB / 0.5011 GB, free: 11.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.1362, allocations: 4 kB / 0.5011 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1362, allocations: 7.938 kB / 0.5011 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.1362, allocations: 4 kB / 0.5011 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006519/0.1428, allocations: 0.9091 MB / 0.502 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.889e-05/0.1428, allocations: 4 kB / 0.502 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006438/0.1435, allocations: 63.92 kB / 0.502 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-05/0.1435, allocations: 16 kB / 0.502 GB, free: 10.77 MB / 382.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.0004056/0.144, allocations: 210 kB / 0.5022 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.1441, allocations: 47.66 kB / 0.5023 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002168/0.1463, allocations: 0.8289 MB / 0.5031 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.1463, allocations: 12 kB / 0.5031 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1463, allocations: 0 / 0.5031 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/0.1463, allocations: 3.984 kB / 0.5031 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003588/0.1499, allocations: 1.732 MB / 0.5048 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1499, allocations: 4.031 kB / 0.5048 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006286/0.1562, allocations: 0.8973 MB / 0.5057 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.318e-05/0.1563, allocations: 4 kB / 0.5057 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-05/0.1564, allocations: 19.98 kB / 0.5057 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1564, allocations: 3.938 kB / 0.5057 GB, free: 6.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.1564, allocations: 4 kB / 0.5057 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002914/0.1593, allocations: 1.278 MB / 0.507 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.1595, allocations: 120.8 kB / 0.5071 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.1596, allocations: 12 kB / 0.5071 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005625/0.1601, allocations: 59.92 kB / 0.5072 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.1603, allocations: 76.33 kB / 0.5072 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.1604, allocations: 8 kB / 0.5072 GB, free: 5.332 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002798/0.1607, allocations: 267.1 kB / 0.5075 GB, free: 5.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1607, allocations: 0 / 0.5075 GB, free: 5.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000511/0.1612, allocations: 140 kB / 0.5076 GB, free: 4.938 MB / 382.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.003162/0.1644, allocations: 1.826 MB / 0.5094 GB, free: 3.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.1663, allocations: 0.7945 MB / 0.5102 GB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1663, allocations: 0 / 0.5102 GB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009244/0.1672, allocations: 414.5 kB / 0.5106 GB, free: 1.883 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006081/0.1679, allocations: 104.3 kB / 0.5107 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.1784, allocations: 6.009 MB / 0.5165 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.1789, allocations: 0.8629 MB / 0.5174 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004414/0.1793, allocations: 92.34 kB / 0.5175 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004109/0.1797, allocations: 187.3 kB / 0.5177 GB, free: 10.48 MB / 398.1 MB Notification: Performance of SimCode: time 1.473e-06/0.1797, allocations: 8 kB / 0.5177 GB, free: 10.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03312/0.2129, allocations: 12.78 MB / 0.5301 GB, free: 13.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.37/8.583, allocations: 7.125 kB / 0.5301 GB, free: 13.86 MB / 414.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)