Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001121/0.001121, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.001062/0.001062, allocations: 191 kB / 17.29 MB, free: 5.516 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.464/2.464, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 63.89 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3275, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.6413/0.9688, allocations: 56.01 MB / 1.081 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02415/0.993, allocations: 17.94 MB / 1.099 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003933/0.997, allocations: 75.25 kB / 1.099 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003493/1.001, allocations: 0.8967 MB / 1.1 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.009524/1.01, allocations: 2.508 MB / 1.102 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004941/1.015, allocations: 1.533 MB / 1.104 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02436/1.039, allocations: 21.26 MB / 1.125 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01788/1.057, allocations: 10.68 MB / 1.135 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0196/1.077, allocations: 7.159 MB / 1.142 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01468/1.092, allocations: 6.357 MB / 1.148 GB, free: 7.254 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.004024/1.096, allocations: 0.9431 MB / 1.149 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009419/1.105, allocations: 1.702 MB / 1.151 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.005309/1.111, allocations: 2.34 MB / 1.153 GB, free: 5.609 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.01349/1.124, allocations: 4.711 MB / 1.158 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.02095/1.145, allocations: 13.17 MB / 1.171 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/1.145, allocations: 0 / 1.171 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.733e-06/1.145, allocations: 0 / 1.171 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0005311/1.146, allocations: 0 / 1.171 GB, free: 7.445 MB / 0.8731 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.02706/1.173, allocations: 8.508 MB / 1.179 GB, free: 14.91 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/1.173, allocations: 12.03 kB / 1.179 GB, free: 14.89 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004774/1.178, allocations: 0.8586 MB / 1.18 GB, free: 14.03 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01624/1.194, allocations: 6.697 MB / 1.186 GB, free: 7.402 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005499/1.194, allocations: 458.7 kB / 1.187 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002651/1.197, allocations: 0.6021 MB / 1.187 GB, free: 6.355 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02393/1.221, allocations: 9.03 MB / 1.196 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003074/1.221, allocations: 15.88 kB / 1.196 GB, free: 13 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002159/1.224, allocations: 262.7 kB / 1.196 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002552/1.224, allocations: 183.9 kB / 1.197 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0179/1.242, allocations: 7.449 MB / 1.204 GB, free: 5.105 MB / 0.9044 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.05645/1.298, allocations: 36 MB / 1.239 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007064/1.305, allocations: 4.285 MB / 1.243 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005181/1.311, allocations: 3.312 MB / 1.246 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001385/1.312, allocations: 0.9529 MB / 1.247 GB, free: 6.613 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004399/1.316, allocations: 2.386 MB / 1.25 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002611/1.319, allocations: 371.7 kB / 1.25 GB, free: 3.824 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=317): time 1.281e-05/1.319, allocations: 0 / 1.25 GB, free: 3.824 MB / 0.9512 GB Notification: Performance of matching and sorting (n=317): time 0.01409/1.333, allocations: 7.127 MB / 1.257 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/1.333, allocations: 89.91 kB / 1.257 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0125/1.346, allocations: 5.662 MB / 1.263 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0008737/1.347, allocations: 93.7 kB / 1.263 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.003963/1.351, allocations: 3.199 MB / 1.266 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.002067/1.353, allocations: 1.118 MB / 1.267 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002611/1.355, allocations: 0.8542 MB / 1.268 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001117/1.356, allocations: 305.1 kB / 1.268 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003686/1.359, allocations: 2.163 MB / 1.27 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004551/1.364, allocations: 3.705 MB / 1.274 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007621/1.371, allocations: 6.315 MB / 1.28 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.764e-05/1.372, allocations: 16 kB / 1.28 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01143/1.383, allocations: 6.776 MB / 1.287 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.567e-05/1.383, allocations: 53.95 kB / 1.287 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-05/1.383, allocations: 48 kB / 1.287 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/1.384, allocations: 439.6 kB / 1.287 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003562/1.388, allocations: 1.006 MB / 1.288 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005592/1.393, allocations: 5.688 MB / 1.294 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005058/1.398, allocations: 291.4 kB / 1.294 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006408/1.399, allocations: 220 kB / 1.294 GB, free: 4.816 MB / 0.9981 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.004419/1.403, allocations: 2.484 MB / 1.296 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001539/1.405, allocations: 0.5249 MB / 1.297 GB, free: 1.789 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008502/1.414, allocations: 5.277 MB / 1.302 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.009e-05/1.414, allocations: 28 kB / 1.302 GB, free: 12.43 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/1.414, allocations: 4 kB / 1.302 GB, free: 12.43 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006234/1.42, allocations: 4.532 MB / 1.307 GB, free: 7.789 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02079/1.441, allocations: 11.98 MB / 1.318 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/1.441, allocations: 0 / 1.318 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002696/1.443, allocations: 0.6476 MB / 1.319 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007965/1.444, allocations: 375.1 kB / 1.319 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/1.444, allocations: 83.95 kB / 1.319 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00531/1.45, allocations: 5.615 MB / 1.325 GB, free: 4.754 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/1.45, allocations: 3.984 kB / 1.325 GB, free: 4.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/1.462, allocations: 7.769 MB / 1.332 GB, free: 12.89 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003803/1.465, allocations: 1.159 MB / 1.334 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001184/1.467, allocations: 67.92 kB / 1.334 GB, free: 11.64 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002922/1.469, allocations: 195.9 kB / 1.334 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00041/1.47, allocations: 202.2 kB / 1.334 GB, free: 11.25 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003122/1.47, allocations: 143.9 kB / 1.334 GB, free: 11.11 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.005983/1.476, allocations: 3.959 MB / 1.338 GB, free: 7.168 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.5e-07/1.476, allocations: 4 kB / 1.338 GB, free: 7.164 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.00638/1.483, allocations: 2.003 MB / 1.34 GB, free: 5.156 MB / 1.045 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.001206/1.484, allocations: 0.4895 MB / 1.34 GB, free: 4.688 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.007896/1.492, allocations: 5.44 MB / 1.346 GB, free: 15.2 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/1.492, allocations: 4 kB / 1.346 GB, free: 15.19 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.003605/1.495, allocations: 2.538 MB / 1.348 GB, free: 12.62 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01605/1.511, allocations: 3.391 MB / 1.352 GB, free: 9.324 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02669/1.538, allocations: 13.88 MB / 1.365 GB, free: 11.4 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006763/1.545, allocations: 4.624 MB / 1.37 GB, free: 6.742 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.008752/1.554, allocations: 2.077 MB / 1.372 GB, free: 4.668 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002434/1.556, allocations: 467.2 kB / 1.372 GB, free: 4.211 MB / 1.076 GB Notification: Performance of SimCode: time 6.31e-07/1.556, allocations: 0 / 1.372 GB, free: 4.211 MB / 1.076 GB Notification: Performance of Templates: time 0.1903/1.747, allocations: 114.8 MB / 1.484 GB, free: 2.613 MB / 1.186 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches