Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dH.y|tanSim.m_flow|tanSim.vol.1..T|tanSim.vol.2..T|tanSim.vol.3..T|tanSim.vol.4..T|tanSim.vol.5..T|tanSim.vol.6..T|tanSim.vol.7..T|tanSim.vol.8..T|tanSim.vol.9..T|tanSim.vol.10..T|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|tanEnh.vol.8..T|tanEnh.vol.9..T|tanEnh.vol.10..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dH.y|tanSim.m_flow|tanSim.vol.1..T|tanSim.vol.2..T|tanSim.vol.3..T|tanSim.vol.4..T|tanSim.vol.5..T|tanSim.vol.6..T|tanSim.vol.7..T|tanSim.vol.8..T|tanSim.vol.9..T|tanSim.vol.10..T|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|tanEnh.vol.8..T|tanEnh.vol.9..T|tanEnh.vol.10..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.319/2.319, allocations: 387.1 MB / 399.7 MB, free: 9.465 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 184.9 kB / 492.3 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.658/1.658, allocations: 221.3 MB / 0.7871 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008851/0.0008851, allocations: 99.25 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.278e-05/3.28e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2816, allocations: 142.4 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.233/1.514, allocations: 423.4 MB / 1.626 GB, free: 7.16 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/1.515, allocations: 87.58 kB / 1.626 GB, free: 7.117 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 13.43/14.95, allocations: 3.013 GB / 4.639 GB, free: 212.5 MB / 1.182 GB Notification: Performance of FrontEnd: time 3.506e-06/14.95, allocations: 0 / 4.639 GB, free: 212.5 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.002546/14.95, allocations: 265.2 kB / 4.64 GB, free: 212.5 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.03195/14.98, allocations: 8.33 MB / 4.648 GB, free: 207.4 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/14.98, allocations: 13.28 kB / 4.648 GB, free: 207.4 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008631/14.99, allocations: 1.171 MB / 4.649 GB, free: 206.9 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03086/15.02, allocations: 11.06 MB / 4.66 GB, free: 200.3 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009362/15.02, allocations: 0.6111 MB / 4.66 GB, free: 200 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004455/15.03, allocations: 0.8219 MB / 4.661 GB, free: 199.8 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05001/15.08, allocations: 11.56 MB / 4.672 GB, free: 193 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00071/15.08, allocations: 29.69 kB / 4.672 GB, free: 192.9 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004464/15.08, allocations: 354 kB / 4.673 GB, free: 192.7 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00033/15.08, allocations: 246.1 kB / 4.673 GB, free: 192.7 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02605/15.11, allocations: 9.435 MB / 4.682 GB, free: 184.5 MB / 1.182 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.09884/15.21, allocations: 46.62 MB / 4.728 GB, free: 136.3 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/15.22, allocations: 6.239 MB / 4.734 GB, free: 130.1 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007754/15.23, allocations: 5.41 MB / 4.739 GB, free: 124.6 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001244/15.23, allocations: 0.8201 MB / 4.74 GB, free: 123.7 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00592/15.23, allocations: 3.323 MB / 4.743 GB, free: 120.3 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005916/15.24, allocations: 0.556 MB / 4.744 GB, free: 119.8 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 2.217e-05/15.24, allocations: 0 / 4.744 GB, free: 119.8 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.01204/15.25, allocations: 6.199 MB / 4.75 GB, free: 113.5 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.944e-05/15.25, allocations: 162.2 kB / 4.75 GB, free: 113.3 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01586/15.27, allocations: 7.127 MB / 4.757 GB, free: 106.2 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.002331/15.27, allocations: 116.3 kB / 4.757 GB, free: 106.1 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.007535/15.28, allocations: 4.321 MB / 4.761 GB, free: 101.8 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.00319/15.28, allocations: 1.564 MB / 4.763 GB, free: 100.2 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001503/15.28, allocations: 116 kB / 4.763 GB, free: 100.1 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0007383/15.28, allocations: 0.542 MB / 4.763 GB, free: 99.57 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005717/15.29, allocations: 2.893 MB / 4.766 GB, free: 96.68 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006933/15.3, allocations: 4.775 MB / 4.771 GB, free: 91.06 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007041/15.3, allocations: 3.973 MB / 4.775 GB, free: 87.07 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-05/15.3, allocations: 16 kB / 4.775 GB, free: 87.05 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02028/15.32, allocations: 8.674 MB / 4.783 GB, free: 78.35 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.007301/15.33, allocations: 29.26 MB / 4.812 GB, free: 46.27 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001724/15.33, allocations: 60 kB / 4.812 GB, free: 46.21 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001736/15.33, allocations: 96 kB / 4.812 GB, free: 46.12 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007052/15.34, allocations: 1.447 MB / 4.813 GB, free: 44.67 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001881/15.34, allocations: 127.5 kB / 4.813 GB, free: 44.54 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01093/15.35, allocations: 0.6233 MB / 4.814 GB, free: 43.92 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002017/15.35, allocations: 280 kB / 4.814 GB, free: 43.64 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/15.35, allocations: 5.094 kB / 4.814 GB, free: 43.64 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02264/15.37, allocations: 8.079 MB / 4.822 GB, free: 35.55 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003048/15.37, allocations: 63.98 kB / 4.822 GB, free: 35.48 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/15.37, allocations: 96.91 kB / 4.822 GB, free: 35.39 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00676/15.38, allocations: 1.443 MB / 4.824 GB, free: 33.95 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001775/15.38, allocations: 123.6 kB / 4.824 GB, free: 33.82 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009801/15.39, allocations: 0.5961 MB / 4.824 GB, free: 33.23 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001864/15.39, allocations: 291.4 kB / 4.825 GB, free: 32.95 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * 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.003296/15.4, allocations: 0.538 MB / 4.825 GB, free: 32.39 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003677/15.4, allocations: 0.7218 MB / 4.826 GB, free: 31.66 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01743/15.42, allocations: 6.972 MB / 4.833 GB, free: 24.66 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.91e-05/15.42, allocations: 44 kB / 4.833 GB, free: 24.62 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.233e-05/15.42, allocations: 0 / 4.833 GB, free: 24.62 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009915/15.43, allocations: 5.664 MB / 4.838 GB, free: 18.92 MB / 1.182 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 postOpt removeSimpleEquations (simulation): time 0.04532/15.47, allocations: 16.48 MB / 4.854 GB, free: 2.391 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.685e-05/15.47, allocations: 7.938 kB / 4.854 GB, free: 2.383 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004733/15.48, allocations: 0.9161 MB / 4.855 GB, free: 1.469 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.708e-05/15.48, allocations: 12 kB / 4.855 GB, free: 1.457 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/15.48, allocations: 127.3 kB / 4.855 GB, free: 1.336 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.744e-05/15.48, allocations: 12 kB / 4.855 GB, free: 1.324 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/15.48, allocations: 4 kB / 4.855 GB, free: 1.32 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.015/16.49, allocations: 10.54 MB / 4.866 GB, free: 210.3 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009679/16.5, allocations: 1.758 MB / 4.867 GB, free: 210.1 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003659/16.51, allocations: 91.86 kB / 4.868 GB, free: 210.1 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009605/16.52, allocations: 0.5663 MB / 4.868 GB, free: 210 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001508/16.52, allocations: 250.9 kB / 4.868 GB, free: 210 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008986/16.52, allocations: 205 kB / 4.869 GB, free: 210 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01609/16.54, allocations: 5.56 MB / 4.874 GB, free: 209.8 MB / 1.182 GB Notification: Performance of sort global known variables: time 7.71e-07/16.54, allocations: 0 / 4.874 GB, free: 209.8 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02644/16.56, allocations: 4.923 MB / 4.879 GB, free: 209.4 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * 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.00387/16.57, allocations: 0.9376 MB / 4.88 GB, free: 209.3 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.02457/16.59, allocations: 11.42 MB / 4.891 GB, free: 208.9 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.56e-05/16.59, allocations: 6.281 kB / 4.891 GB, free: 208.9 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.006828/16.6, allocations: 3.125 MB / 4.894 GB, free: 208.8 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03052/16.63, allocations: 4.39 MB / 4.898 GB, free: 208.8 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05172/16.68, allocations: 16.71 MB / 4.915 GB, free: 205.9 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01801/16.7, allocations: 6.312 MB / 4.921 GB, free: 205 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.03217/16.73, allocations: 6.675 MB / 4.927 GB, free: 205 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004744/16.74, allocations: 497.2 kB / 4.928 GB, free: 205 MB / 1.182 GB Notification: Performance of SimCode: time 2.875e-06/16.74, allocations: 2.906 kB / 4.928 GB, free: 205 MB / 1.182 GB Notification: Performance of Templates: time 0.2669/17, allocations: 164.6 MB / 5.088 GB, free: 168.4 MB / 1.182 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.Stratified_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_Stratified.csv","../files/Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches