Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 116.1 kB / 16.42 MB, free: 6.504 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.001094/0.001094, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.3/1.3, allocations: 222.9 MB / 241.1 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.09268/0.09268, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 59.91 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08758/0.0888, allocations: 54.95 MB / 492.7 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004086/0.09292, allocations: 3.182 MB / 495.9 MB, free: 1.582 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.09456, allocations: 0.9002 MB / 496.8 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.09478, allocations: 4 kB / 496.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.09499, allocations: 67.3 kB / 496.8 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003668/0.09538, allocations: 182.7 kB / 497 MB, free: 436 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005161/0.09591, allocations: 191.6 kB / 497.2 MB, free: 244 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007515/0.09667, allocations: 0.7522 MB / 497.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005762/0.09726, allocations: 433.8 kB / 498.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003512/0.09762, allocations: 315 kB / 498.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005089/0.09814, allocations: 386.7 kB / 499.1 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.09827, allocations: 76 kB / 499.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.09841, allocations: 80 kB / 499.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.0986, allocations: 203.4 kB / 499.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003573/0.09896, allocations: 338.5 kB / 499.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007238/0.09969, allocations: 0.7939 MB / 0.4888 GB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.0997, allocations: 0 / 0.4888 GB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09971, allocations: 0 / 0.4888 GB, free: 12.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.09974, allocations: 4 kB / 0.4888 GB, 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001921/0.1017, allocations: 0.9116 MB / 0.4897 GB, free: 11.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.1017, allocations: 8.031 kB / 0.4897 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.1018, allocations: 64.56 kB / 0.4898 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005359/0.1024, allocations: 396.3 kB / 0.4901 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.1025, allocations: 109 kB / 0.4902 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1026, allocations: 52.33 kB / 0.4903 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.1042, allocations: 0.6974 MB / 0.491 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1043, allocations: 0 / 0.491 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.78e-05/0.1043, allocations: 20 kB / 0.491 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1044, allocations: 15.94 kB / 0.491 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.1058, allocations: 0.6011 MB / 0.4916 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005253/0.1111, allocations: 2.579 MB / 0.4941 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.1123, allocations: 0.5269 MB / 0.4946 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008899/0.1132, allocations: 397.4 kB / 0.495 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.337e-05/0.1132, allocations: 8.375 kB / 0.495 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.1133, allocations: 46.86 kB / 0.4951 GB, free: 6.281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 1.794e-06/0.1133, allocations: 0 / 0.4951 GB, free: 6.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.005794/0.1191, allocations: 2.17 MB / 0.4972 GB, free: 4.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.1191, allocations: 55.84 kB / 0.4972 GB, free: 3.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003692/0.1195, allocations: 357.7 kB / 0.4976 GB, free: 3.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.217e-05/0.1196, allocations: 37.7 kB / 0.4976 GB, free: 3.594 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.1197, allocations: 236.7 kB / 0.4978 GB, free: 3.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.1199, allocations: 194.3 kB / 0.498 GB, free: 3.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.1201, allocations: 94.23 kB / 0.4981 GB, free: 3.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1202, allocations: 354.8 kB / 0.4985 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008835/0.1211, allocations: 366.7 kB / 0.4988 GB, free: 2.355 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009012/0.122, allocations: 415.9 kB / 0.4992 GB, free: 1.926 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1915/0.3135, allocations: 1.973 MB / 0.5011 GB, free: 22.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3136, allocations: 0 / 0.5011 GB, free: 22.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001991/0.3156, allocations: 0.8447 MB / 0.5019 GB, free: 22.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.3156, allocations: 11.2 kB / 0.502 GB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3156, allocations: 2.031 kB / 0.502 GB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.3157, allocations: 4.125 kB / 0.502 GB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006038/0.3217, allocations: 0.8948 MB / 0.5028 GB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.3217, allocations: 4.656 kB / 0.5028 GB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.3223, allocations: 58.58 kB / 0.5029 GB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.3223, allocations: 19.52 kB / 0.5029 GB, free: 22.1 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: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002999/0.3226, allocations: 200.4 kB / 0.5031 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.9e-05/0.3227, allocations: 49.64 kB / 0.5032 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/0.3247, allocations: 0.819 MB / 0.504 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3247, allocations: 2.766 kB / 0.504 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3247, allocations: 0 / 0.504 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/0.3248, allocations: 121.6 kB / 0.5041 GB, free: 21.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.975e-05/0.3249, allocations: 14.53 kB / 0.5041 GB, free: 21.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/0.3254, allocations: 50.61 kB / 0.5041 GB, free: 21.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.3256, allocations: 74.92 kB / 0.5042 GB, free: 21.84 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006578/0.3321, allocations: 1.478 MB / 0.5057 GB, free: 21.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002714/0.3349, allocations: 1.337 MB / 0.507 GB, free: 21.5 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008326/0.3357, allocations: 380.9 kB / 0.5073 GB, free: 21.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002463/0.336, allocations: 261.2 kB / 0.5076 GB, free: 21.41 MB / 382.1 MB Notification: Performance of Backend: time 2.2e-07/0.336, allocations: 2.219 kB / 0.5076 GB, free: 21.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.3374, allocations: 0.5456 MB / 0.5081 GB, free: 21.35 MB / 382.1 MB Notification: Performance of SimCode: time 0.001766/0.3392, allocations: 1.79 MB / 0.5099 GB, free: 20.14 MB / 382.1 MB Notification: Performance of Templates: time 0.01442/0.3536, allocations: 9.802 MB / 0.5194 GB, free: 17.48 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)