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.001386/0.001386, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001383/0.001383, allocations: 192.8 kB / 16.25 MB, free: 6.641 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.391/1.391, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1927/0.1927, allocations: 22.35 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 55.91 kB / 380.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2415, allocations: 54.93 MB / 435.2 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.00361/0.2451, allocations: 3.445 MB / 438.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.2464, allocations: 0.9356 MB / 439.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.2466, allocations: 5.375 kB / 439.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.2468, allocations: 52.75 kB / 439.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002756/0.2471, allocations: 146.9 kB / 439.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.2475, allocations: 171.1 kB / 440 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004957/0.248, allocations: 0.736 MB / 440.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004357/0.2485, allocations: 448.3 kB / 441.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.2487, allocations: 311.1 kB / 441.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.2491, allocations: 403 kB / 441.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.262e-05/0.2492, allocations: 74.97 kB / 441.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.583e-05/0.2493, allocations: 77.25 kB / 442 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.2495, allocations: 208 kB / 442.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002154/0.2497, allocations: 343.2 kB / 442.5 MB, free: 35.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004622/0.2502, allocations: 0.7862 MB / 443.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2502, allocations: 8 kB / 443.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2502, allocations: 0 / 443.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.2502, allocations: 0 / 443.3 MB, free: 34.71 MB / 350.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.001695/0.2519, allocations: 0.8944 MB / 444.2 MB, free: 34.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.2519, allocations: 9.594 kB / 444.2 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.2521, allocations: 62.94 kB / 444.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004274/0.2525, allocations: 386.8 kB / 444.7 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.2527, allocations: 112 kB / 444.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.273e-05/0.2528, allocations: 50.16 kB / 444.8 MB, free: 33.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.2542, allocations: 0.6886 MB / 445.5 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.2542, allocations: 2.781 kB / 445.5 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-05/0.2543, allocations: 22.97 kB / 445.5 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2543, allocations: 19.38 kB / 445.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.2556, allocations: 0.6023 MB / 446.2 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004267/0.2599, allocations: 2.589 MB / 448.7 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.2609, allocations: 0.5512 MB / 449.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007411/0.2616, allocations: 408.5 kB / 449.7 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.205e-05/0.2617, allocations: 7 kB / 449.7 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.2617, allocations: 37.62 kB / 449.7 MB, free: 31.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.914e-06/0.2617, allocations: 0 / 449.7 MB, free: 31.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005015/0.2668, allocations: 2.194 MB / 451.9 MB, free: 30.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.2668, allocations: 57.78 kB / 452 MB, free: 30.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000303/0.2671, allocations: 359.6 kB / 452.3 MB, free: 30.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.2672, allocations: 37.7 kB / 452.4 MB, free: 30.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.828e-05/0.2673, allocations: 230 kB / 452.6 MB, free: 29.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.2674, allocations: 188.4 kB / 452.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.2676, allocations: 97.47 kB / 452.9 MB, free: 29.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.306e-05/0.2677, allocations: 351 kB / 453.2 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007477/0.2684, allocations: 372.2 kB / 453.6 MB, free: 29.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007451/0.2692, allocations: 415.5 kB / 454 MB, free: 29.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006268/0.2754, allocations: 2.007 MB / 456 MB, free: 28.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2755, allocations: 0 / 456 MB, free: 28.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001857/0.2773, allocations: 0.8477 MB / 456.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.2774, allocations: 5.594 kB / 456.9 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.2774, allocations: 5.359 kB / 456.9 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.2774, allocations: 3.062 kB / 456.9 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005883/0.2833, allocations: 0.9076 MB / 457.8 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.2833, allocations: 5.125 kB / 457.8 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005749/0.2839, allocations: 58.72 kB / 457.8 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.284, allocations: 22.58 kB / 457.9 MB, free: 28.2 MB / 350.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.0003291/0.2843, allocations: 201.5 kB / 458.1 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.2844, allocations: 43.88 kB / 458.1 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.2864, allocations: 0.8319 MB / 458.9 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.2864, allocations: 10.03 kB / 458.9 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.2864, allocations: 0.7031 kB / 458.9 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.2864, allocations: 7.297 kB / 458.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003247/0.2897, allocations: 1.741 MB / 460.7 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.2897, allocations: 0 / 460.7 MB, free: 26.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006116/0.2958, allocations: 0.9016 MB / 461.6 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.315e-05/0.2959, allocations: 3.406 kB / 461.6 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.296, allocations: 16.27 kB / 461.6 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.296e-06/0.296, allocations: 6.781 kB / 461.6 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.296, allocations: 2.031 kB / 461.6 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002797/0.2988, allocations: 1.265 MB / 462.9 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.299, allocations: 119.5 kB / 463 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.2991, allocations: 13.14 kB / 463 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005736/0.2997, allocations: 63.14 kB / 463.1 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.2999, allocations: 73.89 kB / 463.1 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.617e-05/0.2999, allocations: 22.86 kB / 463.2 MB, free: 26.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002815/0.3002, allocations: 255.2 kB / 463.4 MB, free: 25.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3002, allocations: 0 / 463.4 MB, free: 25.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006742/0.3009, allocations: 150.2 kB / 463.6 MB, free: 25.89 MB / 350.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.0001747/0.3011, allocations: 117.4 kB / 463.7 MB, free: 25.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00221/0.3033, allocations: 0.8445 MB / 464.5 MB, free: 25.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3033, allocations: 0 / 464.5 MB, free: 25.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009091/0.3042, allocations: 420.9 kB / 464.9 MB, free: 25.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006265/0.3049, allocations: 107.2 kB / 465 MB, free: 25.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003564/0.3085, allocations: 1.965 MB / 467 MB, free: 24.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3088, allocations: 0.8489 MB / 467.8 MB, free: 23.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004748/0.3093, allocations: 99.72 kB / 467.9 MB, free: 23.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.3095, allocations: 52.45 kB / 468 MB, free: 23.41 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3095, allocations: 0 / 468 MB, free: 23.41 MB / 350.1 MB Notification: Performance of Templates: time 0.01361/0.3232, allocations: 8.085 MB / 476.1 MB, free: 20.84 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)