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.001551/0.001551, allocations: 108.4 kB / 16.27 MB, free: 6.016 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.001698/0.001698, allocations: 191.7 kB / 17.2 MB, free: 5.625 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.463/1.463, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09666/0.09666, allocations: 22.32 MB / 313.4 MB, free: 8.961 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 68.83 kB / 381.5 MB, free: 41.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07427/0.07561, allocations: 54.96 MB / 436.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004069/0.0797, allocations: 3.193 MB / 439.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.08123, allocations: 0.9041 MB / 440.5 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.0814, allocations: 4 kB / 440.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000184/0.08159, allocations: 63.3 kB / 440.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003218/0.08195, allocations: 174.7 kB / 440.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004742/0.08243, allocations: 199.6 kB / 440.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006352/0.08307, allocations: 0.7407 MB / 441.7 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005418/0.08363, allocations: 449.8 kB / 442.1 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003135/0.08395, allocations: 303.1 kB / 442.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000444/0.0844, allocations: 394.6 kB / 442.8 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.08453, allocations: 79.94 kB / 442.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.08466, allocations: 80 kB / 443 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.08486, allocations: 203.4 kB / 443.2 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003192/0.08518, allocations: 334.6 kB / 443.5 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006507/0.08584, allocations: 0.7907 MB / 444.3 MB, free: 5.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.08585, allocations: 4 kB / 444.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.08586, allocations: 4 kB / 444.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.08588, allocations: 0 / 444.3 MB, free: 5.105 MB / 318.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.001893/0.08778, allocations: 0.9081 MB / 445.2 MB, free: 4.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.08782, allocations: 8.031 kB / 445.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.08796, allocations: 60.28 kB / 445.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004987/0.08847, allocations: 388.1 kB / 445.6 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.08861, allocations: 105 kB / 445.7 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.08872, allocations: 60.3 kB / 445.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.09033, allocations: 0.6858 MB / 446.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.09036, allocations: 0 / 446.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.811e-05/0.09044, allocations: 20 kB / 446.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.09046, allocations: 12 kB / 446.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.09198, allocations: 0.605 MB / 447.1 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.09701, allocations: 2.575 MB / 449.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.09826, allocations: 0.5497 MB / 450.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009324/0.0992, allocations: 413.9 kB / 450.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.061e-05/0.09927, allocations: 9.125 kB / 450.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.0993, allocations: 39 kB / 450.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 1.964e-06/0.09931, allocations: 0 / 450.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.006082/0.1054, allocations: 2.197 MB / 452.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.1054, allocations: 55.84 kB / 452.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003854/0.1058, allocations: 349.7 kB / 453.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.219e-05/0.1059, allocations: 41.7 kB / 453.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.1061, allocations: 232.4 kB / 453.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.1062, allocations: 185.3 kB / 453.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.1064, allocations: 94.23 kB / 453.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1066, allocations: 358.7 kB / 454.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009245/0.1075, allocations: 374.3 kB / 454.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009339/0.1084, allocations: 411.1 kB / 454.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007305/0.1158, allocations: 1.994 MB / 456.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1158, allocations: 4 kB / 456.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002082/0.1179, allocations: 0.8496 MB / 457.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.1179, allocations: 4 kB / 457.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.1179, allocations: 4 kB / 457.8 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1179, allocations: 0 / 457.8 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006564/0.1245, allocations: 0.913 MB / 458.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.1245, allocations: 11.92 kB / 458.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000565/0.1251, allocations: 55.94 kB / 458.8 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.435e-05/0.1252, allocations: 23.98 kB / 458.8 MB, free: 6.234 MB / 334.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.0003485/0.1255, allocations: 207.1 kB / 459 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.1256, allocations: 51.41 kB / 459.1 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002105/0.1278, allocations: 0.8327 MB / 459.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.1278, allocations: 8 kB / 459.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1278, allocations: 0 / 459.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.1278, allocations: 4 kB / 459.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003475/0.1313, allocations: 1.743 MB / 461.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.1313, allocations: 7.984 kB / 461.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006648/0.138, allocations: 0.8934 MB / 462.5 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.407e-06/0.138, allocations: 4 kB / 462.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.207e-05/0.138, allocations: 15.98 kB / 462.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.251e-06/0.1381, allocations: 4 kB / 462.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1381, allocations: 3.938 kB / 462.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.141, allocations: 1.269 MB / 463.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.1411, allocations: 124.5 kB / 464 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.704e-05/0.1412, allocations: 15.98 kB / 464 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005625/0.1418, allocations: 55.94 kB / 464 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.1419, allocations: 68.33 kB / 464.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-05/0.142, allocations: 19.98 kB / 464.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.1423, allocations: 255.2 kB / 464.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1423, allocations: 0 / 464.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004932/0.1428, allocations: 151.9 kB / 464.5 MB, free: 416 kB / 334.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.0001364/0.1429, allocations: 123.2 kB / 464.6 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002152/0.1451, allocations: 0.8413 MB / 465.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1451, allocations: 0 / 465.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009571/0.146, allocations: 418.4 kB / 465.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005775/0.1466, allocations: 105.5 kB / 466 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003716/0.1504, allocations: 1.802 MB / 467.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.1508, allocations: 0.8514 MB / 468.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003031/0.1511, allocations: 55.42 kB / 468.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1511, allocations: 0 / 468.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of Templates: time 0.009732/0.1608, allocations: 7.368 MB / 476.1 MB, free: 4.812 MB / 350.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)