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.313/2.313, allocations: 393.5 MB / 408.4 MB, free: 11 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.001145/0.001145, allocations: 172 kB / 0.4902 GB, free: 2.219 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.459/1.459, allocations: 223.2 MB / 0.7992 GB, free: 14.62 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.0008472/0.0008469, allocations: 100.2 kB / 0.9396 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003982, allocations: 10.78 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2887, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.191/1.48, allocations: 424.2 MB / 1.643 GB, free: 5.336 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004067/1.481, allocations: 102.1 kB / 1.644 GB, free: 5.281 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 12.73/14.21, allocations: 3.02 GB / 4.664 GB, free: 183.8 MB / 1.182 GB Notification: Performance of FrontEnd: time 3.336e-06/14.21, allocations: 0 / 4.664 GB, free: 183.8 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.002307/14.21, allocations: 261.6 kB / 4.664 GB, free: 183.8 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.04642/14.26, allocations: 9.913 MB / 4.674 GB, free: 180.5 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/14.26, allocations: 8.875 kB / 4.674 GB, free: 180.5 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01001/14.27, allocations: 1.179 MB / 4.675 GB, free: 179.9 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03481/14.3, allocations: 11.11 MB / 4.686 GB, free: 178.8 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009924/14.31, allocations: 0.6123 MB / 4.687 GB, free: 178.8 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006233/14.31, allocations: 0.8145 MB / 4.687 GB, free: 178.8 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04356/14.36, allocations: 11.71 MB / 4.699 GB, free: 177.6 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008489/14.36, allocations: 22.31 kB / 4.699 GB, free: 177.6 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004861/14.36, allocations: 358.3 kB / 4.699 GB, free: 177.6 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003948/14.36, allocations: 250.3 kB / 4.699 GB, free: 177.6 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03283/14.39, allocations: 9.631 MB / 4.709 GB, free: 177.5 MB / 1.182 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.09248/14.49, allocations: 46.63 MB / 4.754 GB, free: 158.1 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/14.5, allocations: 6.322 MB / 4.761 GB, free: 157.8 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001711/14.5, allocations: 0.8184 MB / 4.761 GB, free: 157 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007647/14.51, allocations: 3.407 MB / 4.765 GB, free: 156.8 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006753/14.52, allocations: 0.5554 MB / 4.765 GB, free: 156.5 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 3.243e-05/14.52, allocations: 0 / 4.765 GB, free: 156.5 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.01863/14.53, allocations: 9.022 MB / 4.774 GB, free: 155.5 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.642e-05/14.53, allocations: 157.6 kB / 4.774 GB, free: 155.4 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01821/14.55, allocations: 7.199 MB / 4.781 GB, free: 153 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001646/14.55, allocations: 112.5 kB / 4.781 GB, free: 152.9 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.006513/14.56, allocations: 4.327 MB / 4.786 GB, free: 149.6 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.003248/14.56, allocations: 1.554 MB / 4.787 GB, free: 148.4 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001411/14.56, allocations: 121 kB / 4.787 GB, free: 148.3 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0007225/14.57, allocations: 0.5404 MB / 4.788 GB, free: 147.9 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005712/14.57, allocations: 2.987 MB / 4.791 GB, free: 146.9 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00689/14.58, allocations: 4.863 MB / 4.795 GB, free: 143.6 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006963/14.59, allocations: 4.028 MB / 4.799 GB, free: 142 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.104e-05/14.59, allocations: 15.34 kB / 4.799 GB, free: 142 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01863/14.6, allocations: 8.864 MB / 4.808 GB, free: 138.9 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.009864/14.61, allocations: 29.27 MB / 4.837 GB, free: 107.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001994/14.61, allocations: 56.09 kB / 4.837 GB, free: 107.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001869/14.61, allocations: 98.06 kB / 4.837 GB, free: 107.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006881/14.62, allocations: 1.437 MB / 4.838 GB, free: 107 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001962/14.62, allocations: 132.1 kB / 4.838 GB, free: 107 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01069/14.63, allocations: 0.6293 MB / 4.839 GB, free: 106.9 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001709/14.63, allocations: 279.4 kB / 4.839 GB, free: 106.8 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/14.63, allocations: 3.438 kB / 4.839 GB, free: 106.8 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01843/14.65, allocations: 8.265 MB / 4.847 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002683/14.65, allocations: 57.5 kB / 4.847 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001505/14.65, allocations: 102.7 kB / 4.847 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006318/14.66, allocations: 1.439 MB / 4.849 GB, free: 103.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000211/14.66, allocations: 122.4 kB / 4.849 GB, free: 103.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009858/14.67, allocations: 0.6117 MB / 4.849 GB, free: 103.4 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/14.67, allocations: 287 kB / 4.85 GB, free: 103.4 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 () * Number of clocked 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.01038/14.68, allocations: 3.584 MB / 4.853 GB, free: 101.8 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003921/14.69, allocations: 0.7247 MB / 4.854 GB, free: 101.4 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01922/14.7, allocations: 7.121 MB / 4.861 GB, free: 98.71 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.062e-05/14.7, allocations: 40 kB / 4.861 GB, free: 98.71 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.66e-05/14.7, allocations: 0 / 4.861 GB, free: 98.71 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01028/14.71, allocations: 5.827 MB / 4.867 GB, free: 96.58 MB / 1.182 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 postOpt removeSimpleEquations (simulation): time 0.04708/14.76, allocations: 16.42 MB / 4.883 GB, free: 85.71 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/14.76, allocations: 4 kB / 4.883 GB, free: 85.71 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004782/14.77, allocations: 0.9064 MB / 4.884 GB, free: 84.96 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.687e-05/14.77, allocations: 16 kB / 4.884 GB, free: 84.95 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00103/14.77, allocations: 113.7 kB / 4.884 GB, free: 84.85 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-05/14.77, allocations: 19.61 kB / 4.884 GB, free: 84.84 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/14.77, allocations: 6.969 kB / 4.884 GB, free: 84.83 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0197/14.79, allocations: 10.78 MB / 4.894 GB, free: 75.42 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007981/14.8, allocations: 1.764 MB / 4.896 GB, free: 73.89 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003687/14.8, allocations: 95.89 kB / 4.896 GB, free: 73.8 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009143/14.81, allocations: 0.5698 MB / 4.897 GB, free: 73.43 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/14.81, allocations: 254.2 kB / 4.897 GB, free: 73.27 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001228/14.81, allocations: 200.6 kB / 4.897 GB, free: 73.11 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01431/14.83, allocations: 5.63 MB / 4.902 GB, free: 68.55 MB / 1.182 GB Notification: Performance of sort global known variables: time 4.41e-07/14.83, allocations: 0 / 4.902 GB, free: 68.55 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02534/14.85, allocations: 4.934 MB / 4.907 GB, free: 63.62 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) * Number of clocked states: 0 () * 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.004079/14.85, allocations: 0.9312 MB / 4.908 GB, free: 62.94 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.02281/14.88, allocations: 11.46 MB / 4.919 GB, free: 53.07 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.866e-05/14.88, allocations: 4.562 kB / 4.919 GB, free: 53.07 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.007226/14.88, allocations: 3.199 MB / 4.923 GB, free: 50.28 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02635/14.91, allocations: 4.387 MB / 4.927 GB, free: 47.27 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05772/14.97, allocations: 22.63 MB / 4.949 GB, free: 26.98 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01638/14.99, allocations: 6.298 MB / 4.955 GB, free: 20.87 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02639/15.01, allocations: 4.346 MB / 4.959 GB, free: 16.67 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005362/15.02, allocations: 0.6185 MB / 4.96 GB, free: 16.05 MB / 1.182 GB Notification: Performance of SimCode: time 1.733e-06/15.02, allocations: 0 / 4.96 GB, free: 16.05 MB / 1.182 GB Notification: Performance of Templates: time 1.135/16.15, allocations: 158.6 MB / 5.115 GB, free: 173.1 MB / 1.198 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