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.004984/0.004984, allocations: 99.88 kB / 15.73 MB, free: 6.047 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.00111/0.00111, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1961/0.1961, allocations: 22.36 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 61.47 kB / 436.6 MB, free: 33.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09981/0.1011, allocations: 54.98 MB / 491.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003608/0.1047, allocations: 3.193 MB / 494.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.1063, allocations: 0.908 MB / 495.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.1064, allocations: 4 kB / 495.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001886/0.1067, allocations: 67.28 kB / 495.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003211/0.107, allocations: 170.7 kB / 495.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005299/0.1075, allocations: 187.7 kB / 496.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007057/0.1083, allocations: 0.7522 MB / 496.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005705/0.1088, allocations: 453.7 kB / 497.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003289/0.1092, allocations: 307.1 kB / 497.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000461/0.1096, allocations: 390.6 kB / 497.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.783e-05/0.1098, allocations: 76 kB / 498 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.1099, allocations: 80 kB / 498.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.1101, allocations: 207.4 kB / 498.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002958/0.1104, allocations: 338.6 kB / 498.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007042/0.1111, allocations: 0.7951 MB / 499.4 MB, free: 9.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1111, allocations: 0 / 499.4 MB, free: 9.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1111, allocations: 3.938 kB / 499.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.1111, allocations: 4 kB / 499.4 MB, free: 9.785 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.001842/0.113, allocations: 0.9004 MB / 0.4886 GB, free: 8.836 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.113, allocations: 12.03 kB / 0.4886 GB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000109/0.1131, allocations: 90.7 kB / 0.4887 GB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1133, allocations: 60.28 kB / 0.4888 GB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.1138, allocations: 396 kB / 0.4891 GB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.114, allocations: 109 kB / 0.4892 GB, free: 8.129 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.1141, allocations: 56.36 kB / 0.4893 GB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.1156, allocations: 0.6856 MB / 0.49 GB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.1156, allocations: 0 / 0.49 GB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.235e-05/0.1157, allocations: 20 kB / 0.49 GB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.1157, allocations: 12 kB / 0.49 GB, free: 7.352 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.117, allocations: 0.6089 MB / 0.4906 GB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004877/0.1219, allocations: 2.563 MB / 0.4931 GB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.1231, allocations: 0.5436 MB / 0.4936 GB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000862/0.124, allocations: 405.9 kB / 0.494 GB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.932e-05/0.1241, allocations: 8.438 kB / 0.494 GB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.1241, allocations: 46.98 kB / 0.4941 GB, free: 3.098 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.284e-06/0.1241, allocations: 0 / 0.4941 GB, free: 3.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.005647/0.1298, allocations: 2.196 MB / 0.4962 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.1298, allocations: 59.84 kB / 0.4963 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003829/0.1302, allocations: 357.7 kB / 0.4966 GB, free: 428 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.774e-05/0.1303, allocations: 33.7 kB / 0.4966 GB, free: 388 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.1305, allocations: 228.4 kB / 0.4969 GB, free: 156 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.1306, allocations: 189.5 kB / 0.497 GB, free: 15.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001921/0.1308, allocations: 90.23 kB / 0.4971 GB, free: 15.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.131, allocations: 358.8 kB / 0.4975 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008246/0.1318, allocations: 374.7 kB / 0.4978 GB, free: 15.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008419/0.1327, allocations: 411.1 kB / 0.4982 GB, free: 14.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00627/0.139, allocations: 2 MB / 0.5002 GB, free: 12.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.139, allocations: 0 / 0.5002 GB, free: 12.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001853/0.1408, allocations: 0.8536 MB / 0.501 GB, free: 11.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.1409, allocations: 8 kB / 0.501 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.1409, allocations: 0 / 0.501 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.1409, allocations: 4 kB / 0.501 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005517/0.1464, allocations: 0.9168 MB / 0.5019 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/0.1465, allocations: 4 kB / 0.5019 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006088/0.1471, allocations: 55.94 kB / 0.502 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-05/0.1472, allocations: 27.92 kB / 0.502 GB, free: 10.82 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.0004582/0.1477, allocations: 205.4 kB / 0.5022 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.1478, allocations: 51.38 kB / 0.5022 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.1499, allocations: 0.8289 MB / 0.503 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.1499, allocations: 4 kB / 0.503 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1499, allocations: 4 kB / 0.5031 GB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.1499, allocations: 0 / 0.5031 GB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003417/0.1533, allocations: 1.736 MB / 0.5047 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.1534, allocations: 0 / 0.5047 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005554/0.1589, allocations: 0.9012 MB / 0.5056 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.525e-05/0.159, allocations: 4 kB / 0.5056 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.844e-05/0.1591, allocations: 19.92 kB / 0.5057 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/0.1591, allocations: 8 kB / 0.5057 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1591, allocations: 0 / 0.5057 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002788/0.1619, allocations: 1.27 MB / 0.5069 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.1621, allocations: 116.6 kB / 0.507 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.1622, allocations: 15.98 kB / 0.507 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005452/0.1628, allocations: 51.94 kB / 0.5071 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.1629, allocations: 80.36 kB / 0.5072 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-05/0.163, allocations: 19.98 kB / 0.5072 GB, free: 5.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002822/0.1633, allocations: 259.1 kB / 0.5074 GB, free: 5.145 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1633, allocations: 0 / 0.5074 GB, free: 5.145 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005357/0.1638, allocations: 140 kB / 0.5076 GB, free: 5.008 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.003006/0.1669, allocations: 1.825 MB / 0.5093 GB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001879/0.1688, allocations: 0.7867 MB / 0.5101 GB, free: 2.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.1688, allocations: 4 kB / 0.5101 GB, free: 2.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009252/0.1697, allocations: 422.4 kB / 0.5105 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006865/0.1704, allocations: 109.7 kB / 0.5106 GB, free: 1.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.1811, allocations: 5.979 MB / 0.5165 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.1816, allocations: 0.8629 MB / 0.5173 GB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004577/0.1821, allocations: 88.34 kB / 0.5174 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004117/0.1825, allocations: 187.4 kB / 0.5176 GB, free: 10.57 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1825, allocations: 0 / 0.5176 GB, free: 10.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03632/0.2189, allocations: 13.09 MB / 0.5303 GB, free: 13.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.434/8.653, allocations: 3.75 kB / 0.5303 GB, free: 13.66 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)