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.5824/0.5824, allocations: 95.61 MB / 110.6 MB, free: 9.227 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.001186/0.001186, allocations: 177 kB / 134.2 MB, free: 2.168 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.667/1.667, allocations: 170.7 MB / 328.4 MB, free: 12.2 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001846/0.001846, allocations: 107.3 kB / 390.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004065/0.0004065, allocations: 12 kB / 462.7 MB, free: 35.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1597, allocations: 61.52 MB / 0.512 GB, free: 6.105 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.171/1.331, allocations: 426.8 MB / 0.9287 GB, free: 2.527 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/1.331, allocations: 91.95 kB / 0.9288 GB, free: 2.438 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.869/5.2, allocations: 0.8773 GB / 1.806 GB, free: 58.81 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.878e-06/5.2, allocations: 0 / 1.806 GB, free: 58.81 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.001734/5.202, allocations: 244.9 kB / 1.806 GB, free: 58.77 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.0445/5.247, allocations: 8.987 MB / 1.815 GB, free: 55.71 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/5.247, allocations: 14.2 kB / 1.815 GB, free: 55.71 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009328/5.256, allocations: 1.076 MB / 1.816 GB, free: 55.21 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02795/5.284, allocations: 8.795 MB / 1.825 GB, free: 54.22 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007866/5.285, allocations: 0.5692 MB / 1.825 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004526/5.289, allocations: 0.7724 MB / 1.826 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04006/5.33, allocations: 11.15 MB / 1.837 GB, free: 53.51 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005772/5.33, allocations: 8.031 kB / 1.837 GB, free: 53.51 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004569/5.335, allocations: 331.7 kB / 1.837 GB, free: 53.51 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00023/5.335, allocations: 189.6 kB / 1.838 GB, free: 53.51 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02791/5.363, allocations: 9.98 MB / 1.847 GB, free: 53.45 MB / 0.5573 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.09434/5.457, allocations: 42.99 MB / 1.889 GB, free: 37.84 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01287/5.47, allocations: 7.302 MB / 1.896 GB, free: 37.25 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001527/5.472, allocations: 0.832 MB / 1.897 GB, free: 36.48 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01215/5.484, allocations: 4.364 MB / 1.901 GB, free: 34.9 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00796/5.492, allocations: 0.6008 MB / 1.902 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=539): time 3.162e-05/5.492, allocations: 0 / 1.902 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=599): time 0.08506/5.577, allocations: 29.22 MB / 1.931 GB, free: 25.06 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001766/5.577, allocations: 249.9 kB / 1.931 GB, free: 24.83 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01654/5.594, allocations: 6.428 MB / 1.937 GB, free: 21.35 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002251/5.596, allocations: 133.7 kB / 1.937 GB, free: 21.21 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005772/5.602, allocations: 3.702 MB / 1.941 GB, free: 17.86 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004038/5.606, allocations: 2.074 MB / 1.943 GB, free: 15.98 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001665/5.608, allocations: 140 kB / 1.943 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0008033/5.609, allocations: 0.575 MB / 1.944 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00778/5.616, allocations: 3.85 MB / 1.947 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008662/5.625, allocations: 5.473 MB / 1.953 GB, free: 6.879 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00858/5.634, allocations: 4.879 MB / 1.957 GB, free: 2.66 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.826e-05/5.634, allocations: 13.97 kB / 1.957 GB, free: 2.648 MB / 0.5573 GB Notification: Performance of matching and sorting (n=871) (initialization): time 0.03344/5.667, allocations: 10.9 MB / 1.968 GB, free: 10.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.01494/5.682, allocations: 22.7 MB / 1.99 GB, free: 2.488 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002697/5.683, allocations: 45.69 kB / 1.99 GB, free: 2.445 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003055/5.683, allocations: 91.95 kB / 1.99 GB, free: 2.355 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01346/5.696, allocations: 1.661 MB / 1.992 GB, free: 0.9453 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003293/5.697, allocations: 107.2 kB / 1.992 GB, free: 0.8477 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01413/5.711, allocations: 0.595 MB / 1.993 GB, free: 396 kB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002814/5.714, allocations: 294 kB / 1.993 GB, free: 116 kB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/5.714, allocations: 4 kB / 1.993 GB, free: 112 kB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5293/6.243, allocations: 10.02 MB / 2.003 GB, free: 81.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001926/6.243, allocations: 49.19 kB / 2.003 GB, free: 81.11 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.683e-05/6.244, allocations: 84.69 kB / 2.003 GB, free: 81.11 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006882/6.25, allocations: 1.666 MB / 2.005 GB, free: 81.11 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001407/6.251, allocations: 110.7 kB / 2.005 GB, free: 81.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00887/6.259, allocations: 0.5757 MB / 2.005 GB, free: 81.11 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002001/6.262, allocations: 297 kB / 2.005 GB, free: 81.11 MB / 0.5886 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 () * Number of clocked 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.01101/6.273, allocations: 3.258 MB / 2.009 GB, free: 80.86 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004192/6.277, allocations: 0.7115 MB / 2.009 GB, free: 80.86 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02813/6.305, allocations: 9.309 MB / 2.018 GB, free: 80.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.741e-05/6.305, allocations: 55.75 kB / 2.018 GB, free: 80.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.981e-05/6.305, allocations: 4 kB / 2.018 GB, free: 80.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001743/6.305, allocations: 28.17 kB / 2.019 GB, free: 80.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05365/6.359, allocations: 18.86 MB / 2.037 GB, free: 79.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.889e-05/6.359, allocations: 0 / 2.037 GB, free: 79.75 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006755/6.366, allocations: 1.231 MB / 2.038 GB, free: 79.75 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001093/6.366, allocations: 23 kB / 2.038 GB, free: 79.75 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001498/6.367, allocations: 170.5 kB / 2.038 GB, free: 79.75 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-05/6.368, allocations: 20.59 kB / 2.038 GB, free: 79.75 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/6.368, allocations: 2.25 kB / 2.038 GB, free: 79.75 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02955/6.397, allocations: 14.27 MB / 2.052 GB, free: 79.25 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009594/6.407, allocations: 1.897 MB / 2.054 GB, free: 79.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004875/6.412, allocations: 137 kB / 2.054 GB, free: 79.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009427/6.421, allocations: 0.5064 MB / 2.055 GB, free: 79.16 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001912/6.423, allocations: 328.5 kB / 2.055 GB, free: 79.15 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001658/6.425, allocations: 224 kB / 2.055 GB, free: 79.15 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0124/6.437, allocations: 5.002 MB / 2.06 GB, free: 78.93 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.01e-07/6.437, allocations: 0.5938 kB / 2.06 GB, free: 78.93 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02211/6.459, allocations: 4.02 MB / 2.064 GB, free: 78.93 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) * Number of clocked states: 0 () * 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.004156/6.464, allocations: 1.043 MB / 2.065 GB, free: 78.79 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02688/6.49, allocations: 14.36 MB / 2.079 GB, free: 78.36 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.989e-05/6.491, allocations: 7.781 kB / 2.079 GB, free: 78.36 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.008149/6.499, allocations: 4.328 MB / 2.083 GB, free: 78.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02144/6.52, allocations: 4.1 MB / 2.087 GB, free: 78.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0552/6.575, allocations: 24.69 MB / 2.111 GB, free: 69.71 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01081/6.586, allocations: 5.844 MB / 2.117 GB, free: 67.85 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.02125/6.608, allocations: 4.982 MB / 2.122 GB, free: 67.53 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004815/6.612, allocations: 0.6331 MB / 2.123 GB, free: 67.49 MB / 0.5886 GB Notification: Performance of SimCode: time 1.784e-06/6.612, allocations: 0 / 2.123 GB, free: 67.49 MB / 0.5886 GB Notification: Performance of Templates: time 0.6505/7.263, allocations: 155.2 MB / 2.274 GB, free: 60.89 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)