Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5685/0.5685, allocations: 94.76 MB / 102.2 MB, free: 14.09 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001086/0.001086, allocations: 168.1 kB / 125.6 MB, free: 7.918 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.794/1.794, allocations: 170.6 MB / 319.4 MB, free: 1.148 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001743/0.001743, allocations: 111.6 kB / 381.4 MB, free: 3.141 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.712e-05/1.706e-05, allocations: 4 kB / 449.1 MB, free: 44.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.145, allocations: 61.52 MB / 0.4987 GB, free: 15.25 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.241/1.386, allocations: 426.4 MB / 0.9151 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004719/1.387, allocations: 93.94 kB / 0.9152 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.264/5.651, allocations: 0.8701 GB / 1.785 GB, free: 59.03 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.367e-06/5.651, allocations: 1.156 kB / 1.785 GB, free: 59.03 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.00238/5.654, allocations: 239.3 kB / 1.786 GB, free: 58.99 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.04519/5.699, allocations: 7.789 MB / 1.793 GB, free: 56.39 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 7.874e-05/5.699, allocations: 7.625 kB / 1.793 GB, free: 56.39 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01289/5.712, allocations: 1.078 MB / 1.794 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03004/5.742, allocations: 8.753 MB / 1.803 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007994/5.743, allocations: 249.3 kB / 1.803 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005322/5.748, allocations: 478.5 kB / 1.803 GB, free: 54.89 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03119/5.78, allocations: 9.299 MB / 1.813 GB, free: 54.86 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04649/5.826, allocations: 9.87 MB / 1.822 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007023/5.827, allocations: 6.562 kB / 1.822 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005434/5.832, allocations: 9.406 kB / 1.822 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002434/5.833, allocations: 192.6 kB / 1.822 GB, free: 54.2 MB / 0.5573 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1105/5.943, allocations: 41.39 MB / 1.863 GB, free: 38.88 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01481/5.958, allocations: 6.881 MB / 1.869 GB, free: 38.63 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0114/5.97, allocations: 5.257 MB / 1.875 GB, free: 38.54 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002001/5.972, allocations: 0.833 MB / 1.875 GB, free: 37.78 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01183/5.984, allocations: 4.1 MB / 1.879 GB, free: 37.53 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007868/5.992, allocations: 384.6 kB / 1.88 GB, free: 37.3 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=539): time 6.668e-05/5.992, allocations: 3.75 kB / 1.88 GB, free: 37.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=599): time 0.07732/6.069, allocations: 20.31 MB / 1.9 GB, free: 35.08 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003088/6.069, allocations: 248.1 kB / 1.9 GB, free: 34.85 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01802/6.087, allocations: 4.834 MB / 1.905 GB, free: 33.58 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002973/6.09, allocations: 32.95 kB / 1.905 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.008353/6.099, allocations: 3.754 MB / 1.908 GB, free: 30.7 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005407/6.104, allocations: 2.003 MB / 1.91 GB, free: 29.13 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002492/6.107, allocations: 2.625 kB / 1.91 GB, free: 29.13 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001421/6.108, allocations: 0.5819 MB / 1.911 GB, free: 28.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009693/6.118, allocations: 3.611 MB / 1.914 GB, free: 27.39 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01203/6.13, allocations: 5.184 MB / 1.919 GB, free: 24.21 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01571/6.146, allocations: 5.566 MB / 1.925 GB, free: 22.4 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002155/6.146, allocations: 11.72 kB / 1.925 GB, free: 22.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=871) (initialization): time 0.0378/6.184, allocations: 10.5 MB / 1.935 GB, free: 19.06 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.01402/6.198, allocations: 21.5 MB / 1.956 GB, free: 11.85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004376/6.199, allocations: 50.62 kB / 1.956 GB, free: 11.85 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002676/6.199, allocations: 86.84 kB / 1.956 GB, free: 11.85 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01139/6.21, allocations: 1.671 MB / 1.958 GB, free: 11.64 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003927/6.211, allocations: 109.7 kB / 1.958 GB, free: 11.56 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01364/6.224, allocations: 464.7 kB / 1.958 GB, free: 11.23 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003837/6.228, allocations: 294.4 kB / 1.959 GB, free: 10.96 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/6.228, allocations: 4 kB / 1.959 GB, free: 10.96 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03507/6.263, allocations: 9.818 MB / 1.968 GB, free: 2.953 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003349/6.264, allocations: 44 kB / 1.968 GB, free: 2.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/6.264, allocations: 84 kB / 1.968 GB, free: 2.828 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01056/6.275, allocations: 1.675 MB / 1.97 GB, free: 1.504 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003411/6.275, allocations: 108.3 kB / 1.97 GB, free: 1.426 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01121/6.286, allocations: 451.1 kB / 1.971 GB, free: 1.109 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003086/6.289, allocations: 293.4 kB / 1.971 GB, free: 0.8359 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 206 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (863): * Single equations (assignments): 861 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005275/6.295, allocations: 340.4 kB / 1.971 GB, free: 0.5 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004495/6.299, allocations: 0.6139 MB / 1.972 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02882/6.328, allocations: 9.478 MB / 1.981 GB, free: 8.191 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.727e-05/6.328, allocations: 56 kB / 1.981 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.231e-05/6.328, allocations: 7.781 kB / 1.981 GB, free: 8.133 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001634/6.328, allocations: 28.5 kB / 1.981 GB, free: 8.133 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6716/7, allocations: 19.65 MB / 2 GB, free: 81.53 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.005e-05/7, allocations: 1.75 kB / 2 GB, free: 81.53 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007204/7.007, allocations: 1.236 MB / 2.002 GB, free: 81.53 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001217/7.008, allocations: 18.31 kB / 2.002 GB, free: 81.53 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001485/7.009, allocations: 95.25 kB / 2.002 GB, free: 81.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-05/7.009, allocations: 20.66 kB / 2.002 GB, free: 81.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/7.009, allocations: 0 / 2.002 GB, free: 81.53 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0309/7.04, allocations: 14.36 MB / 2.016 GB, free: 81.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00742/7.048, allocations: 1.758 MB / 2.017 GB, free: 81.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00377/7.051, allocations: 38.5 kB / 2.017 GB, free: 81.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009181/7.061, allocations: 411.1 kB / 2.018 GB, free: 81.01 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001847/7.063, allocations: 332.9 kB / 2.018 GB, free: 81 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009666/7.063, allocations: 225 kB / 2.018 GB, free: 81 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.008756/7.072, allocations: 3.668 MB / 2.022 GB, free: 80.82 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.032e-06/7.072, allocations: 0 / 2.022 GB, free: 80.82 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02564/7.098, allocations: 3.611 MB / 2.025 GB, free: 80.82 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 45 (tanSim.vol[1].dynBal.medium.T,tanSim.vol[2].dynBal.medium.T,tanSim.vol[3].dynBal.medium.T,tanSim.vol[4].dynBal.medium.T,tanSim.vol[5].dynBal.medium.T,tanSim.vol[6].dynBal.medium.T,tanSim.vol[7].dynBal.medium.T,tanSim.vol[8].dynBal.medium.T,tanSim.vol[9].dynBal.medium.T,tanSim.vol[10].dynBal.medium.T,tanSim.hA_flow.h_out,tanSim.hVol_flow[1].h_out,tanSim.hVol_flow[2].h_out,tanSim.hVol_flow[3].h_out,tanSim.hVol_flow[4].h_out,tanSim.hVol_flow[5].h_out,tanSim.hVol_flow[6].h_out,tanSim.hVol_flow[7].h_out,tanSim.hVol_flow[8].h_out,tanSim.hVol_flow[9].h_out,tanSim.hB_flow.h_out,tanEnh.vol[1].dynBal.medium.T,tanEnh.vol[2].dynBal.medium.T,tanEnh.vol[3].dynBal.medium.T,tanEnh.vol[4].dynBal.medium.T,tanEnh.vol[5].dynBal.medium.T,tanEnh.vol[6].dynBal.medium.T,tanEnh.vol[7].dynBal.medium.T,tanEnh.vol[8].dynBal.medium.T,tanEnh.vol[9].dynBal.medium.T,tanEnh.vol[10].dynBal.medium.T,tanEnh.hA_flow.h_out,tanEnh.hVol_flow[1].h_out,tanEnh.hVol_flow[2].h_out,tanEnh.hVol_flow[3].h_out,tanEnh.hVol_flow[4].h_out,tanEnh.hVol_flow[5].h_out,tanEnh.hVol_flow[6].h_out,tanEnh.hVol_flow[7].h_out,tanEnh.hVol_flow[8].h_out,tanEnh.hVol_flow[9].h_out,tanEnh.hB_flow.h_out,HOut_flow.h_out,HOut_flow1.h_out,dH.y) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,P.a,P.b,P.last,P.nextEvent) * Number of discrete states: 10 (P.last,P.nextEvent,P.b,P.a,$whenCondition2,TWat.last,TWat.nextEvent,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (595): * Single equations (assignments): 593 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004553/7.103, allocations: 0.9574 MB / 2.026 GB, free: 80.68 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02916/7.132, allocations: 13.66 MB / 2.04 GB, free: 80.27 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-05/7.132, allocations: 5.625 kB / 2.04 GB, free: 80.27 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009449/7.141, allocations: 4.106 MB / 2.044 GB, free: 80.12 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02304/7.164, allocations: 3.18 MB / 2.047 GB, free: 80.05 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06252/7.227, allocations: 18.61 MB / 2.065 GB, free: 76.79 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009259/7.236, allocations: 5.853 MB / 2.071 GB, free: 75.81 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.02465/7.261, allocations: 6.158 MB / 2.077 GB, free: 75.45 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003803/7.265, allocations: 491.8 kB / 2.077 GB, free: 75.44 MB / 0.5886 GB Notification: Performance of SimCode: time 3.106e-06/7.265, allocations: 0 / 2.077 GB, free: 75.44 MB / 0.5886 GB Notification: Performance of Templates: time 0.2429/7.508, allocations: 131.6 MB / 2.206 GB, free: 2.902 MB / 0.5886 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)