Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.384/2.384, allocations: 390.5 MB / 398 MB, free: 10.95 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.001168/0.001168, allocations: 176.8 kB / 491.2 MB, free: 1.562 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.584/1.584, allocations: 221.5 MB / 0.7868 GB, free: 13.33 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.0009837/0.0009837, allocations: 91.58 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.895e-05/1.89e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3095, allocations: 143 MB / 1.212 GB, free: 39.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.282/1.592, allocations: 423.5 MB / 1.626 GB, free: 7.359 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/1.592, allocations: 94.62 kB / 1.626 GB, free: 7.312 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 11.71/13.31, allocations: 2.998 GB / 4.624 GB, free: 218.6 MB / 1.182 GB Notification: Performance of FrontEnd: time 2.585e-06/13.31, allocations: 0 / 4.624 GB, free: 218.6 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001829/13.31, allocations: 266.7 kB / 4.624 GB, free: 218.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.04024/13.35, allocations: 8.332 MB / 4.632 GB, free: 214.8 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 7.259e-05/13.35, allocations: 9.062 kB / 4.632 GB, free: 214.8 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01116/13.36, allocations: 1.17 MB / 4.634 GB, free: 214.2 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02989/13.39, allocations: 11.05 MB / 4.644 GB, free: 209.4 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005639/13.39, allocations: 274.1 kB / 4.645 GB, free: 209.4 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004106/13.4, allocations: 492 kB / 4.645 GB, free: 209.4 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02518/13.42, allocations: 8.901 MB / 4.654 GB, free: 205.1 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04118/13.46, allocations: 10.34 MB / 4.664 GB, free: 199.1 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008239/13.46, allocations: 30.09 kB / 4.664 GB, free: 199.1 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004967/13.47, allocations: 14.66 kB / 4.664 GB, free: 199.1 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003993/13.47, allocations: 245.8 kB / 4.664 GB, free: 199.1 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.102/13.57, allocations: 45.01 MB / 4.708 GB, free: 155.1 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01159/13.58, allocations: 5.995 MB / 4.714 GB, free: 149.1 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008445/13.59, allocations: 4.645 MB / 4.719 GB, free: 144.5 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001532/13.59, allocations: 0.83 MB / 4.719 GB, free: 143.5 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00772/13.6, allocations: 3.171 MB / 4.722 GB, free: 140.3 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006938/13.61, allocations: 403.1 kB / 4.723 GB, free: 139.9 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 3.648e-05/13.61, allocations: 0 / 4.723 GB, free: 139.9 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.01744/13.62, allocations: 6.118 MB / 4.729 GB, free: 133.8 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/13.62, allocations: 158.2 kB / 4.729 GB, free: 133.6 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01626/13.64, allocations: 5.923 MB / 4.735 GB, free: 127.7 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001868/13.64, allocations: 29.7 kB / 4.735 GB, free: 127.6 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.006726/13.65, allocations: 4.304 MB / 4.739 GB, free: 123.3 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.003627/13.65, allocations: 1.509 MB / 4.74 GB, free: 121.8 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/13.65, allocations: 0 / 4.74 GB, free: 121.8 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0008014/13.66, allocations: 0.5459 MB / 4.741 GB, free: 121.2 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005451/13.66, allocations: 2.779 MB / 4.744 GB, free: 118.4 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006745/13.67, allocations: 4.619 MB / 4.748 GB, free: 113 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008446/13.68, allocations: 4.067 MB / 4.752 GB, free: 108.9 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/13.68, allocations: 18.25 kB / 4.752 GB, free: 108.9 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.0264/13.7, allocations: 8.235 MB / 4.76 GB, free: 100.6 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.01114/13.71, allocations: 28.13 MB / 4.788 GB, free: 70.61 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003254/13.71, allocations: 56 kB / 4.788 GB, free: 70.55 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002231/13.71, allocations: 96 kB / 4.788 GB, free: 70.46 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007797/13.72, allocations: 1.447 MB / 4.789 GB, free: 69.01 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001865/13.72, allocations: 127.5 kB / 4.789 GB, free: 68.88 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01175/13.73, allocations: 0.5099 MB / 4.79 GB, free: 68.37 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002747/13.74, allocations: 284 kB / 4.79 GB, free: 68.09 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/13.74, allocations: 4 kB / 4.79 GB, free: 68.09 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02427/13.76, allocations: 7.596 MB / 4.798 GB, free: 60.49 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000379/13.76, allocations: 60 kB / 4.798 GB, free: 60.43 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001853/13.76, allocations: 96 kB / 4.798 GB, free: 60.34 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007065/13.77, allocations: 1.448 MB / 4.799 GB, free: 58.89 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001966/13.77, allocations: 127.5 kB / 4.799 GB, free: 58.77 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01093/13.78, allocations: 490.5 kB / 4.8 GB, free: 58.29 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002326/13.78, allocations: 280 kB / 4.8 GB, free: 58.01 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.004208/13.79, allocations: 367.2 kB / 4.8 GB, free: 57.64 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005499/13.79, allocations: 0.6367 MB / 4.801 GB, free: 56.99 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02506/13.82, allocations: 6.775 MB / 4.808 GB, free: 50.21 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.393e-05/13.82, allocations: 40 kB / 4.808 GB, free: 50.17 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-05/13.82, allocations: 0 / 4.808 GB, free: 50.17 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01252/13.83, allocations: 5.652 MB / 4.813 GB, free: 44.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 postOpt removeSimpleEquations (simulation): time 0.04134/13.87, allocations: 15.4 MB / 4.828 GB, free: 29.09 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/13.87, allocations: 0 / 4.828 GB, free: 29.09 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003822/13.88, allocations: 0.9129 MB / 4.829 GB, free: 28.18 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.281e-05/13.88, allocations: 20 kB / 4.829 GB, free: 28.16 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003347/13.88, allocations: 63.94 kB / 4.829 GB, free: 28.1 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.591e-05/13.88, allocations: 16 kB / 4.829 GB, free: 28.08 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/13.88, allocations: 0 / 4.829 GB, free: 28.08 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/13.89, allocations: 10.34 MB / 4.839 GB, free: 17.67 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006391/13.9, allocations: 1.664 MB / 4.841 GB, free: 15.98 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00283/13.9, allocations: 27.48 kB / 4.841 GB, free: 15.95 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007657/13.91, allocations: 0.4907 MB / 4.841 GB, free: 15.46 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006789/13.91, allocations: 263.1 kB / 4.842 GB, free: 15.21 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008746/13.91, allocations: 199.8 kB / 4.842 GB, free: 15.01 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.009926/13.92, allocations: 4.522 MB / 4.846 GB, free: 10.5 MB / 1.182 GB Notification: Performance of sort global known variables: time 3e-07/13.92, allocations: 0 / 4.846 GB, free: 10.5 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02404/13.94, allocations: 4.773 MB / 4.851 GB, free: 5.711 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.00397/13.95, allocations: 0.868 MB / 4.852 GB, free: 4.945 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 1/14.95, allocations: 10.86 MB / 4.862 GB, free: 214.8 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 2.629e-05/14.95, allocations: 8.094 kB / 4.862 GB, free: 214.8 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.007483/14.95, allocations: 3.027 MB / 4.865 GB, free: 214.7 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02546/14.98, allocations: 3.469 MB / 4.869 GB, free: 214.7 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05797/15.04, allocations: 16.24 MB / 4.885 GB, free: 211.9 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01718/15.06, allocations: 6.309 MB / 4.891 GB, free: 211 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02539/15.08, allocations: 5.977 MB / 4.897 GB, free: 210.9 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0039/15.09, allocations: 478.7 kB / 4.897 GB, free: 210.9 MB / 1.182 GB Notification: Performance of SimCode: time 2.325e-06/15.09, allocations: 0 / 4.897 GB, free: 210.9 MB / 1.182 GB Notification: Performance of Templates: time 0.2449/15.33, allocations: 130.1 MB / 5.024 GB, free: 203.8 MB / 1.182 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Examples_Stratified.csv","../files/Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches