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: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007977/0.007977, allocations: 101.4 kB / 15.73 MB, free: 6.043 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.001702/0.001702, allocations: 199.3 kB / 16.68 MB, free: 5.961 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09036/0.09036, allocations: 22.32 MB / 312.8 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.89 kB / 437 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1159, allocations: 54.95 MB / 492 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004371/0.1204, allocations: 3.191 MB / 495.2 MB, free: 1.582 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.1221, allocations: 0.9002 MB / 496.1 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.1222, allocations: 4 kB / 496.1 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002155/0.1225, allocations: 67.3 kB / 496.1 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003208/0.1228, allocations: 174.7 kB / 496.3 MB, free: 444 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000584/0.1234, allocations: 191.7 kB / 496.5 MB, free: 252 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006739/0.1241, allocations: 0.7561 MB / 497.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005668/0.1247, allocations: 445.7 kB / 497.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003291/0.125, allocations: 303.2 kB / 498 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000427/0.1255, allocations: 394.6 kB / 498.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.1256, allocations: 76 kB / 498.5 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.1257, allocations: 76 kB / 498.5 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.1259, allocations: 207.4 kB / 498.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003543/0.1263, allocations: 338.5 kB / 499.1 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000928/0.1272, allocations: 0.7943 MB / 499.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.1272, allocations: 0 / 499.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1272, allocations: 0 / 499.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.1274, allocations: 8 kB / 499.9 MB, free: 12.88 MB / 382.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.002145/0.1295, allocations: 0.9081 MB / 0.489 GB, free: 11.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.1296, allocations: 8.031 kB / 0.489 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.1297, allocations: 60.28 kB / 0.4891 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/0.1303, allocations: 392.1 kB / 0.4895 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.1304, allocations: 109 kB / 0.4896 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.509e-05/0.1305, allocations: 48.38 kB / 0.4896 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.1322, allocations: 0.6936 MB / 0.4903 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1323, allocations: 7.922 kB / 0.4903 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.104e-05/0.1323, allocations: 24 kB / 0.4903 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.1323, allocations: 12 kB / 0.4903 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.1337, allocations: 0.6089 MB / 0.4909 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004968/0.1387, allocations: 2.547 MB / 0.4934 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.1399, allocations: 0.5535 MB / 0.494 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008872/0.1408, allocations: 413.9 kB / 0.4944 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.138e-05/0.1409, allocations: 9.125 kB / 0.4944 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.1409, allocations: 35 kB / 0.4944 GB, free: 6.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.914e-06/0.1409, allocations: 4 kB / 0.4944 GB, free: 6.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005804/0.1467, allocations: 2.189 MB / 0.4965 GB, free: 4.039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/0.1468, allocations: 63.78 kB / 0.4966 GB, free: 3.965 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004278/0.1473, allocations: 365.6 kB / 0.497 GB, free: 3.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.378e-05/0.1473, allocations: 41.7 kB / 0.497 GB, free: 3.551 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.1475, allocations: 220.5 kB / 0.4972 GB, free: 3.332 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/0.1477, allocations: 189.3 kB / 0.4974 GB, free: 3.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.1478, allocations: 90.23 kB / 0.4975 GB, free: 3.051 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.148, allocations: 354.8 kB / 0.4978 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008536/0.1489, allocations: 374.7 kB / 0.4982 GB, free: 2.328 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008641/0.1497, allocations: 411.1 kB / 0.4986 GB, free: 1.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2343/0.384, allocations: 1.997 MB / 0.5005 GB, free: 22.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3841, allocations: 2.875 kB / 0.5005 GB, free: 22.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001996/0.3861, allocations: 0.8514 MB / 0.5013 GB, free: 21.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.3861, allocations: 8.656 kB / 0.5013 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.3861, allocations: 0 / 0.5013 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.3862, allocations: 3.594 kB / 0.5014 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005775/0.3919, allocations: 0.9087 MB / 0.5022 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/0.392, allocations: 8.344 kB / 0.5022 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005471/0.3925, allocations: 58.28 kB / 0.5023 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.535e-05/0.3926, allocations: 18.39 kB / 0.5023 GB, free: 21.98 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.0003654/0.393, allocations: 200.7 kB / 0.5025 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.13e-05/0.3931, allocations: 46.69 kB / 0.5026 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/0.3951, allocations: 0.8324 MB / 0.5034 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3951, allocations: 5.25 kB / 0.5034 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.3951, allocations: 0 / 0.5034 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.3951, allocations: 3.188 kB / 0.5034 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003135/0.3983, allocations: 1.733 MB / 0.5051 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.3983, allocations: 2.891 kB / 0.5051 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005942/0.4042, allocations: 0.8998 MB / 0.506 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.319e-05/0.4043, allocations: 6.453 kB / 0.506 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.437e-05/0.4043, allocations: 21.58 kB / 0.506 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.4043, allocations: 1.938 kB / 0.506 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.4044, allocations: 6.406 kB / 0.506 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002717/0.4071, allocations: 1.265 MB / 0.5072 GB, free: 21.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.4072, allocations: 117 kB / 0.5073 GB, free: 21.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.116e-05/0.4073, allocations: 16.62 kB / 0.5073 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005019/0.4078, allocations: 53.91 kB / 0.5074 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001956/0.408, allocations: 74.05 kB / 0.5075 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/0.4081, allocations: 22.69 kB / 0.5075 GB, free: 21.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002821/0.4083, allocations: 262.9 kB / 0.5077 GB, free: 21.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4083, allocations: 0 / 0.5077 GB, free: 21.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005138/0.4089, allocations: 142.6 kB / 0.5079 GB, free: 21.09 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.0001346/0.409, allocations: 118.1 kB / 0.508 GB, free: 21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.4108, allocations: 0.7957 MB / 0.5088 GB, free: 20.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4108, allocations: 0 / 0.5088 GB, free: 20.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009011/0.4117, allocations: 415 kB / 0.5092 GB, free: 20.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005483/0.4123, allocations: 104.9 kB / 0.5093 GB, free: 20.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.4158, allocations: 1.763 MB / 0.511 GB, free: 20.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.4162, allocations: 0.8519 MB / 0.5118 GB, free: 19.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004437/0.4166, allocations: 100.6 kB / 0.5119 GB, free: 19.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.4169, allocations: 51.94 kB / 0.512 GB, free: 19.52 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4169, allocations: 0 / 0.512 GB, free: 19.52 MB / 382.1 MB Notification: Performance of Templates: time 0.01536/0.4323, allocations: 8.683 MB / 0.5204 GB, free: 16.86 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile (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 & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)