Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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|dHTan.y|dHTanEnh.y|tan.vol.1..T|tan.vol.2..T|tan.vol.3..T|tan.vol.4..T|tan.vol.5..T|tan.vol.6..T|tan.vol.7..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading") translateModel(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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|dHTan.y|dHTanEnh.y|tan.vol.1..T|tan.vol.2..T|tan.vol.3..T|tan.vol.4..T|tan.vol.5..T|tan.vol.6..T|tan.vol.7..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 116.7 kB / 16.37 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 192.6 kB / 17.31 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.305/2.305, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 61.36 kB / 0.814 GB, free: 32.58 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3352, allocations: 140.4 MB / 0.9511 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0561/0.3914, allocations: 56 MB / 1.006 GB, free: 15.83 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02641/0.4178, allocations: 17.94 MB / 1.023 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003803/0.4217, allocations: 71.62 kB / 1.023 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003583/0.4253, allocations: 0.9002 MB / 1.024 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.009004/0.4344, allocations: 2.51 MB / 1.027 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005003/0.4394, allocations: 1.532 MB / 1.028 GB, free: 8.809 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.02262/0.462, allocations: 21.25 MB / 1.049 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01406/0.4761, allocations: 10.69 MB / 1.059 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01532/0.4915, allocations: 7.152 MB / 1.066 GB, free: 1.566 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01255/0.5041, allocations: 6.362 MB / 1.073 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.003709/0.5078, allocations: 0.9375 MB / 1.074 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00797/0.5158, allocations: 1.702 MB / 1.075 GB, free: 8.539 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.007181/0.523, allocations: 2.341 MB / 1.077 GB, free: 6.191 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.01454/0.5376, allocations: 4.707 MB / 1.082 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.7749/1.313, allocations: 13.16 MB / 1.095 GB, free: 34.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/1.313, allocations: 1.266 kB / 1.095 GB, free: 34.41 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.465e-06/1.313, allocations: 0 / 1.095 GB, free: 34.41 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0007503/1.313, allocations: 0.875 kB / 1.095 GB, free: 34.41 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.04406/1.357, allocations: 8.519 MB / 1.103 GB, free: 31.46 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/1.358, allocations: 12 kB / 1.103 GB, free: 31.46 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008143/1.366, allocations: 0.855 MB / 1.104 GB, free: 31.06 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01995/1.386, allocations: 6.699 MB / 1.111 GB, free: 30.09 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009226/1.387, allocations: 462 kB / 1.111 GB, free: 30.07 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004789/1.391, allocations: 0.5989 MB / 1.112 GB, free: 30.06 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03552/1.427, allocations: 9.023 MB / 1.12 GB, free: 29.09 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007182/1.428, allocations: 18.25 kB / 1.12 GB, free: 29.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004282/1.432, allocations: 261.7 kB / 1.121 GB, free: 29.09 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003651/1.432, allocations: 183.5 kB / 1.121 GB, free: 29.09 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02345/1.456, allocations: 7.447 MB / 1.128 GB, free: 29.04 MB / 0.8575 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.07246/1.528, allocations: 36 MB / 1.163 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008468/1.537, allocations: 4.284 MB / 1.168 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005572/1.543, allocations: 3.307 MB / 1.171 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001398/1.544, allocations: 0.9567 MB / 1.172 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005672/1.55, allocations: 2.386 MB / 1.174 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004426/1.554, allocations: 368.9 kB / 1.174 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=317): time 1.431e-05/1.554, allocations: 2.672 kB / 1.174 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of matching and sorting (n=317): time 0.01863/1.573, allocations: 7.138 MB / 1.181 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/1.573, allocations: 84.69 kB / 1.181 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01389/1.587, allocations: 5.665 MB / 1.187 GB, free: 7.367 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.001271/1.588, allocations: 88.95 kB / 1.187 GB, free: 7.289 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.005244/1.593, allocations: 3.197 MB / 1.19 GB, free: 4.535 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.002807/1.596, allocations: 1.117 MB / 1.191 GB, free: 3.582 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00364/1.6, allocations: 0.8574 MB / 1.192 GB, free: 3.098 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001163/1.6, allocations: 304.8 kB / 1.192 GB, free: 2.801 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004103/1.604, allocations: 2.163 MB / 1.194 GB, free: 1.676 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005433/1.61, allocations: 3.697 MB / 1.198 GB, free: 14.54 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009999/1.62, allocations: 6.326 MB / 1.204 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.02e-05/1.62, allocations: 15.78 kB / 1.204 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01774/1.637, allocations: 6.767 MB / 1.211 GB, free: 4.691 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/1.638, allocations: 53.7 kB / 1.211 GB, free: 4.633 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001225/1.638, allocations: 52.91 kB / 1.211 GB, free: 4.582 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/1.639, allocations: 433.3 kB / 1.211 GB, free: 4.152 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004896/1.644, allocations: 1.007 MB / 1.212 GB, free: 3.215 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006889/1.651, allocations: 5.7 MB / 1.218 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006997/1.658, allocations: 287.5 kB / 1.218 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001623/1.66, allocations: 221.8 kB / 1.218 GB, free: 12.81 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 222 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008258/1.668, allocations: 2.478 MB / 1.221 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003092/1.671, allocations: 0.5327 MB / 1.221 GB, free: 9.852 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01382/1.685, allocations: 5.265 MB / 1.227 GB, free: 4.551 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.942e-05/1.685, allocations: 31.47 kB / 1.227 GB, free: 4.523 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/1.685, allocations: 8 kB / 1.227 GB, free: 4.516 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008561/1.693, allocations: 4.535 MB / 1.231 GB, free: 15.89 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0288/1.722, allocations: 11.98 MB / 1.243 GB, free: 3.883 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/1.722, allocations: 0 / 1.243 GB, free: 3.883 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/1.725, allocations: 0.6424 MB / 1.243 GB, free: 3.266 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009223/1.726, allocations: 378.7 kB / 1.244 GB, free: 2.895 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003371/1.727, allocations: 79.95 kB / 1.244 GB, free: 2.816 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00631/1.733, allocations: 5.616 MB / 1.249 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.733, allocations: 3.469 kB / 1.249 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01466/1.748, allocations: 7.769 MB / 1.257 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005365/1.753, allocations: 1.154 MB / 1.258 GB, free: 3.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002622/1.756, allocations: 67.17 kB / 1.258 GB, free: 3.871 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005148/1.761, allocations: 197.7 kB / 1.258 GB, free: 3.68 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007604/1.762, allocations: 198.2 kB / 1.258 GB, free: 3.484 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005461/1.762, allocations: 149 kB / 1.259 GB, free: 3.344 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.008384/1.771, allocations: 3.955 MB / 1.262 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of sort global known variables: time 4.71e-07/1.771, allocations: 0 / 1.262 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.01424/1.785, allocations: 2.007 MB / 1.264 GB, free: 13.4 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (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,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U,tan.vol[6].dynBal.U,tan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002976/1.788, allocations: 498.1 kB / 1.265 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01389/1.802, allocations: 5.445 MB / 1.27 GB, free: 7.621 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/1.802, allocations: 4.125 kB / 1.27 GB, free: 7.617 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.006653/1.808, allocations: 2.548 MB / 1.273 GB, free: 5.098 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02555/1.834, allocations: 3.395 MB / 1.276 GB, free: 1.809 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03032/1.864, allocations: 13.87 MB / 1.29 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006792/1.871, allocations: 4.628 MB / 1.294 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.007193/1.879, allocations: 2.08 MB / 1.296 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001836/1.88, allocations: 467.1 kB / 1.297 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of SimCode: time 1.072e-06/1.88, allocations: 0 / 1.297 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of Templates: time 0.1836/2.064, allocations: 114.8 MB / 1.409 GB, free: 11.58 MB / 1.092 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches