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.005103/0.005103, allocations: 100.5 kB / 15.87 MB, free: 5.867 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.001316/0.001316, allocations: 193.2 kB / 16.79 MB, free: 5.809 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.5 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.1842/0.1842, allocations: 22.36 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 59.91 kB / 380.8 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2222, allocations: 54.95 MB / 435.7 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003439/0.2257, allocations: 3.436 MB / 439.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.2268, allocations: 0.9276 MB / 440.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.227, allocations: 2.875 kB / 440.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.2272, allocations: 52.66 kB / 440.1 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002431/0.2274, allocations: 148.9 kB / 440.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003885/0.2278, allocations: 169.7 kB / 440.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000496/0.2283, allocations: 0.8037 MB / 441.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004006/0.2287, allocations: 401.5 kB / 441.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.2289, allocations: 271.2 kB / 441.9 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003211/0.2293, allocations: 390.5 kB / 442.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.339e-05/0.2294, allocations: 48.97 kB / 442.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.2295, allocations: 53.16 kB / 442.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.2296, allocations: 178.1 kB / 442.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002199/0.2298, allocations: 318.2 kB / 442.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000335/0.2302, allocations: 0.596 MB / 443.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2302, allocations: 6.781 kB / 443.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.2302, allocations: 0 / 443.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.2302, allocations: 0 / 443.5 MB, free: 35.06 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.001641/0.2318, allocations: 0.8963 MB / 444.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.2319, allocations: 15.31 kB / 444.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.232, allocations: 64.22 kB / 444.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.2324, allocations: 392.1 kB / 444.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.2326, allocations: 107.7 kB / 444.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-05/0.2326, allocations: 53.28 kB / 445 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.234, allocations: 0.6915 MB / 445.7 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.2341, allocations: 0 / 445.7 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.025e-05/0.2341, allocations: 25.84 kB / 445.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.2341, allocations: 11.47 kB / 445.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.2354, allocations: 0.6009 MB / 446.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004217/0.2397, allocations: 2.59 MB / 448.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009911/0.2407, allocations: 0.5431 MB / 449.5 MB, free: 31.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007358/0.2414, allocations: 412.1 kB / 449.9 MB, free: 31.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.371e-05/0.2415, allocations: 8.188 kB / 449.9 MB, free: 31.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/0.2415, allocations: 41.41 kB / 449.9 MB, free: 31.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.824e-06/0.2415, allocations: 0 / 449.9 MB, free: 31.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004942/0.2465, allocations: 2.195 MB / 452.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.998e-05/0.2465, allocations: 54.5 kB / 452.2 MB, free: 30.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.2468, allocations: 362.8 kB / 452.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.167e-05/0.2469, allocations: 29.7 kB / 452.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.769e-05/0.2469, allocations: 232.9 kB / 452.8 MB, free: 30.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.2471, allocations: 194.3 kB / 453 MB, free: 30.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.2472, allocations: 88.09 kB / 453 MB, free: 30.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.2473, allocations: 359.6 kB / 453.4 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007343/0.248, allocations: 379.1 kB / 453.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007299/0.2488, allocations: 403.9 kB / 454.2 MB, free: 29.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006143/0.2549, allocations: 1.994 MB / 456.1 MB, free: 28.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.255, allocations: 0 / 456.1 MB, free: 28.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001768/0.2567, allocations: 0.8573 MB / 457 MB, free: 28.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2568, allocations: 5.375 kB / 457 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.2568, allocations: 1.094 kB / 457 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.2568, allocations: 4.312 kB / 457 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005581/0.2624, allocations: 0.9096 MB / 457.9 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/0.2624, allocations: 3.703 kB / 457.9 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005738/0.263, allocations: 56.12 kB / 458 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.325e-05/0.2631, allocations: 20.89 kB / 458 MB, free: 28.55 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.0003382/0.2634, allocations: 207 kB / 458.2 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.2635, allocations: 47.75 kB / 458.3 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.2654, allocations: 0.8371 MB / 459.1 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.2654, allocations: 4.969 kB / 459.1 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2655, allocations: 7.938 kB / 459.1 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.2655, allocations: 2.625 kB / 459.1 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.2684, allocations: 1.737 MB / 460.8 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2685, allocations: 4.828 kB / 460.8 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005589/0.274, allocations: 0.8985 MB / 461.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.236e-06/0.2741, allocations: 2.25 kB / 461.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.033e-05/0.2741, allocations: 16.7 kB / 461.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.2741, allocations: 3.141 kB / 461.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2742, allocations: 1.156 kB / 461.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00254/0.2767, allocations: 1.272 MB / 463 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.897e-05/0.2768, allocations: 120.9 kB / 463.2 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.952e-05/0.2769, allocations: 16.64 kB / 463.2 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.2774, allocations: 54.78 kB / 463.2 MB, free: 26.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.2776, allocations: 74.08 kB / 463.3 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.715e-05/0.2777, allocations: 18.94 kB / 463.3 MB, free: 26.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.2779, allocations: 260.5 kB / 463.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2779, allocations: 0 / 463.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004809/0.2784, allocations: 149.3 kB / 463.7 MB, free: 26.24 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.0001171/0.2785, allocations: 116.1 kB / 463.8 MB, free: 26.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.2802, allocations: 0.7826 MB / 464.6 MB, free: 25.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2802, allocations: 5.406 kB / 464.6 MB, free: 25.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008236/0.281, allocations: 415.8 kB / 465 MB, free: 25.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005644/0.2816, allocations: 101.6 kB / 465.1 MB, free: 25.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003272/0.2849, allocations: 1.999 MB / 467.1 MB, free: 24.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.2852, allocations: 0.8582 MB / 468 MB, free: 23.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/0.2855, allocations: 50.83 kB / 468 MB, free: 23.78 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2855, allocations: 0 / 468 MB, free: 23.78 MB / 350.1 MB Notification: Performance of Templates: time 0.0093/0.2948, allocations: 7.361 MB / 475.4 MB, free: 21.43 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)