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.4/2.4, allocations: 390.3 MB / 402.8 MB, free: 6.66 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.001193/0.001193, allocations: 176.9 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 221.3 MB / 0.7915 GB, free: 5.48 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.0009467/0.0009468, allocations: 95.94 kB / 0.9318 GB, free: 5.793 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.116e-05/3.129e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2901, allocations: 143 MB / 1.219 GB, free: 13.56 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.188/1.478, allocations: 424.2 MB / 1.633 GB, free: 10.33 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/1.478, allocations: 87.95 kB / 1.633 GB, free: 10.24 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 13.06/14.54, allocations: 3.013 GB / 4.646 GB, free: 168.6 MB / 1.182 GB Notification: Performance of FrontEnd: time 2.264e-06/14.54, allocations: 0 / 4.646 GB, free: 168.6 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.002779/14.54, allocations: 265 kB / 4.647 GB, free: 168.3 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.03629/14.58, allocations: 8.336 MB / 4.655 GB, free: 160 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 7.976e-05/14.58, allocations: 8.031 kB / 4.655 GB, free: 160 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01306/14.59, allocations: 1.174 MB / 4.656 GB, free: 158.8 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04886/14.64, allocations: 11.05 MB / 4.667 GB, free: 147.8 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001098/14.64, allocations: 0.6167 MB / 4.667 GB, free: 147.2 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005077/14.64, allocations: 0.8223 MB / 4.668 GB, free: 146.4 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04919/14.69, allocations: 11.54 MB / 4.679 GB, free: 134.5 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005367/14.69, allocations: 27.72 kB / 4.679 GB, free: 134.5 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004113/14.7, allocations: 358.7 kB / 4.68 GB, free: 134.1 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003296/14.7, allocations: 251.9 kB / 4.68 GB, free: 133.9 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03473/14.73, allocations: 9.432 MB / 4.689 GB, free: 124.4 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.1183/14.85, allocations: 46.62 MB / 4.735 GB, free: 75.88 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01604/14.87, allocations: 6.242 MB / 4.741 GB, free: 69.64 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01358/14.88, allocations: 5.408 MB / 4.746 GB, free: 64.23 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001826/14.88, allocations: 0.8204 MB / 4.747 GB, free: 63.26 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01151/14.89, allocations: 3.323 MB / 4.75 GB, free: 59.9 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009119/14.9, allocations: 0.5603 MB / 4.751 GB, free: 59.33 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 2.922e-05/14.9, allocations: 0 / 4.751 GB, free: 59.33 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.02149/14.93, allocations: 6.203 MB / 4.757 GB, free: 53.09 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/14.93, allocations: 158.3 kB / 4.757 GB, free: 52.91 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02279/14.95, allocations: 7.131 MB / 4.764 GB, free: 45.81 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.002026/14.95, allocations: 109.7 kB / 4.764 GB, free: 45.7 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.005521/14.96, allocations: 4.318 MB / 4.768 GB, free: 41.34 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.002412/14.96, allocations: 1.568 MB / 4.77 GB, free: 39.75 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004703/14.96, allocations: 116 kB / 4.77 GB, free: 39.63 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0003195/14.96, allocations: 0.5459 MB / 4.77 GB, free: 39.08 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00388/14.96, allocations: 2.897 MB / 4.773 GB, free: 36.18 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005085/14.97, allocations: 4.767 MB / 4.778 GB, free: 30.57 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006116/14.97, allocations: 3.961 MB / 4.782 GB, free: 26.59 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.275e-05/14.97, allocations: 19.94 kB / 4.782 GB, free: 26.57 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01519/14.99, allocations: 8.675 MB / 4.79 GB, free: 17.87 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.648/16.64, allocations: 29.26 MB / 4.819 GB, free: 179.4 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002178/16.64, allocations: 61.25 kB / 4.819 GB, free: 179.4 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002437/16.64, allocations: 98.12 kB / 4.819 GB, free: 179.4 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007777/16.65, allocations: 1.448 MB / 4.82 GB, free: 179.4 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000239/16.65, allocations: 126.2 kB / 4.821 GB, free: 179.4 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01059/16.66, allocations: 0.6248 MB / 4.821 GB, free: 179.4 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001936/16.66, allocations: 283.1 kB / 4.821 GB, free: 179.4 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/16.66, allocations: 4 kB / 4.821 GB, free: 179.4 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01954/16.68, allocations: 8.08 MB / 4.829 GB, free: 179.3 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002664/16.68, allocations: 60.34 kB / 4.829 GB, free: 179.3 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001953/16.68, allocations: 97.75 kB / 4.829 GB, free: 179.3 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006865/16.69, allocations: 1.444 MB / 4.831 GB, free: 179.3 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002013/16.69, allocations: 127.6 kB / 4.831 GB, free: 179.3 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009533/16.7, allocations: 0.594 MB / 4.832 GB, free: 179.3 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001703/16.7, allocations: 282.9 kB / 4.832 GB, free: 179.3 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.002437/16.7, allocations: 0.5418 MB / 4.832 GB, free: 179.1 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003131/16.7, allocations: 0.7197 MB / 4.833 GB, free: 179.1 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01801/16.72, allocations: 6.961 MB / 4.84 GB, free: 178.8 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-05/16.72, allocations: 45.98 kB / 4.84 GB, free: 178.8 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.415e-05/16.72, allocations: 3.203 kB / 4.84 GB, free: 178.8 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01615/16.74, allocations: 5.668 MB / 4.845 GB, free: 178.6 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.06062/16.8, allocations: 16.48 MB / 4.862 GB, free: 177.6 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.077e-05/16.8, allocations: 1.344 kB / 4.862 GB, free: 177.6 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005193/16.8, allocations: 0.9129 MB / 4.862 GB, free: 177.6 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.556e-05/16.8, allocations: 15.12 kB / 4.862 GB, free: 177.6 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00116/16.8, allocations: 120.5 kB / 4.863 GB, free: 177.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.097e-05/16.8, allocations: 17.06 kB / 4.863 GB, free: 177.6 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/16.8, allocations: 3.719 kB / 4.863 GB, free: 177.6 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02167/16.83, allocations: 10.55 MB / 4.873 GB, free: 176.8 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01017/16.84, allocations: 1.753 MB / 4.875 GB, free: 176.4 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005712/16.84, allocations: 93.33 kB / 4.875 GB, free: 176.4 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01101/16.85, allocations: 0.5688 MB / 4.875 GB, free: 176.4 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001449/16.85, allocations: 250 kB / 4.876 GB, free: 176.3 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001575/16.86, allocations: 204.1 kB / 4.876 GB, free: 176.3 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01442/16.87, allocations: 5.561 MB / 4.881 GB, free: 176.1 MB / 1.182 GB Notification: Performance of sort global known variables: time 6.82e-07/16.87, allocations: 0 / 4.881 GB, free: 176.1 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02811/16.9, allocations: 4.922 MB / 4.886 GB, free: 175.7 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.004068/16.9, allocations: 0.9264 MB / 4.887 GB, free: 175.6 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.02602/16.93, allocations: 11.42 MB / 4.898 GB, free: 175.2 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 2.777e-05/16.93, allocations: 10.62 kB / 4.898 GB, free: 175.2 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.007965/16.94, allocations: 3.117 MB / 4.901 GB, free: 175.1 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02682/16.96, allocations: 4.384 MB / 4.905 GB, free: 175.1 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04738/17.01, allocations: 16.72 MB / 4.922 GB, free: 172.2 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01246/17.02, allocations: 6.313 MB / 4.928 GB, free: 171.3 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.0268/17.05, allocations: 6.674 MB / 4.934 GB, free: 171.3 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003925/17.05, allocations: 0.4961 MB / 4.935 GB, free: 171.3 MB / 1.182 GB Notification: Performance of SimCode: time 1.883e-06/17.05, allocations: 0 / 4.935 GB, free: 171.3 MB / 1.182 GB Notification: Performance of Templates: time 0.3096/17.36, allocations: 164.6 MB / 5.096 GB, free: 114.1 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