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.0009863/0.0009863, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001361/0.001361, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.707/2.707, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003503, allocations: 8.594 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.275, allocations: 159.6 MB / 1.058 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04989/0.325, allocations: 51.55 MB / 1.108 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02066/0.3456, allocations: 16.82 MB / 1.125 GB, free: 0.7812 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002169/0.3478, allocations: 67.56 kB / 1.125 GB, free: 0.7148 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001888/0.3497, allocations: 0.6287 MB / 1.125 GB, free: 84 kB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.005276/0.355, allocations: 1.982 MB / 1.127 GB, free: 14.09 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003239/0.3583, allocations: 1.098 MB / 1.128 GB, free: 13 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.02128/0.3796, allocations: 23.61 MB / 1.152 GB, free: 5.324 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009703/0.3893, allocations: 7.15 MB / 1.159 GB, free: 14.1 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009642/0.399, allocations: 5.292 MB / 1.164 GB, free: 8.785 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008943/0.408, allocations: 5.477 MB / 1.169 GB, free: 3.285 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001391/0.4094, allocations: 348 kB / 1.169 GB, free: 2.945 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004495/0.4139, allocations: 0.7763 MB / 1.17 GB, free: 2.168 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.002296/0.4162, allocations: 1.525 MB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003467/0.4197, allocations: 1.615 MB / 1.173 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01237/0.4321, allocations: 10.31 MB / 1.183 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4321, allocations: 4 kB / 1.183 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.924e-06/0.4321, allocations: 0 / 1.183 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.000381/0.4325, allocations: 0 / 1.183 GB, free: 4.672 MB / 0.9356 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.01449/0.447, allocations: 6.963 MB / 1.19 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.4471, allocations: 15.97 kB / 1.19 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003476/0.4505, allocations: 0.8461 MB / 1.191 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01155/0.4621, allocations: 6.462 MB / 1.197 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003557/0.4625, allocations: 464.2 kB / 1.198 GB, free: 5.766 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/0.4639, allocations: 0.5936 MB / 1.198 GB, free: 5.172 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01736/0.4813, allocations: 8.978 MB / 1.207 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001442/0.4815, allocations: 27.72 kB / 1.207 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000778/0.4823, allocations: 264 kB / 1.207 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001666/0.4824, allocations: 180 kB / 1.207 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01484/0.4973, allocations: 7.41 MB / 1.215 GB, free: 3.988 MB / 0.9669 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.5797/1.077, allocations: 35.97 MB / 1.25 GB, free: 166.6 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006626/1.084, allocations: 4.273 MB / 1.254 GB, free: 166.5 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004734/1.088, allocations: 3.379 MB / 1.257 GB, free: 166.5 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001123/1.09, allocations: 0.988 MB / 1.258 GB, free: 165.5 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004262/1.094, allocations: 2.375 MB / 1.261 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002683/1.097, allocations: 446.7 kB / 1.261 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=317): time 1.285e-05/1.097, allocations: 0.5625 kB / 1.261 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=317): time 0.01477/1.111, allocations: 7.09 MB / 1.268 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/1.111, allocations: 84.47 kB / 1.268 GB, free: 165 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008425/1.12, allocations: 5.417 MB / 1.273 GB, free: 164.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005558/1.12, allocations: 90.09 kB / 1.273 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002683/1.123, allocations: 3.197 MB / 1.276 GB, free: 162.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001222/1.124, allocations: 1.113 MB / 1.278 GB, free: 162.1 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/1.125, allocations: 89.91 kB / 1.278 GB, free: 162 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000233/1.125, allocations: 496.5 kB / 1.278 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003369/1.128, allocations: 2.143 MB / 1.28 GB, free: 160.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003932/1.132, allocations: 3.667 MB / 1.284 GB, free: 158.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004091/1.136, allocations: 2.907 MB / 1.287 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.735e-05/1.136, allocations: 17.38 kB / 1.287 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009985/1.146, allocations: 6.73 MB / 1.293 GB, free: 154.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.896e-05/1.146, allocations: 53.39 kB / 1.293 GB, free: 154.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.674e-05/1.146, allocations: 47.22 kB / 1.293 GB, free: 154.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008561/1.147, allocations: 443.5 kB / 1.294 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003227/1.151, allocations: 1.01 MB / 1.295 GB, free: 154.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004489/1.155, allocations: 5.251 MB / 1.3 GB, free: 150.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004604/1.16, allocations: 470.9 kB / 1.3 GB, free: 150 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003841/1.16, allocations: 221.8 kB / 1.301 GB, free: 150 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00363/1.164, allocations: 2.477 MB / 1.303 GB, free: 148.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009394/1.165, allocations: 0.528 MB / 1.303 GB, free: 148.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007316/1.172, allocations: 5.246 MB / 1.309 GB, free: 145.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/1.172, allocations: 32.12 kB / 1.309 GB, free: 145.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/1.172, allocations: 4.938 kB / 1.309 GB, free: 145.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005327/1.177, allocations: 4.514 MB / 1.313 GB, free: 142.7 MB / 0.9981 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.01679/1.194, allocations: 11.96 MB / 1.325 GB, free: 131.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/1.194, allocations: 4 kB / 1.325 GB, free: 131.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002509/1.197, allocations: 0.6516 MB / 1.325 GB, free: 130.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006977/1.197, allocations: 373.5 kB / 1.326 GB, free: 130.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002141/1.198, allocations: 83.95 kB / 1.326 GB, free: 130 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003951/1.202, allocations: 5.17 MB / 1.331 GB, free: 124.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.202, allocations: 4 kB / 1.331 GB, free: 124.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009322/1.211, allocations: 7.603 MB / 1.338 GB, free: 116.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002824/1.214, allocations: 1.209 MB / 1.339 GB, free: 115.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009589/1.215, allocations: 75.98 kB / 1.34 GB, free: 115.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003432/1.218, allocations: 474.7 kB / 1.34 GB, free: 115.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00034/1.219, allocations: 206.1 kB / 1.34 GB, free: 114.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/1.219, allocations: 135.9 kB / 1.34 GB, free: 114.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004616/1.223, allocations: 3.764 MB / 1.344 GB, free: 111 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.11e-07/1.224, allocations: 0 / 1.344 GB, free: 111 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005341/1.229, allocations: 1.98 MB / 1.346 GB, free: 109 MB / 0.9981 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009984/1.23, allocations: 475.2 kB / 1.346 GB, free: 108.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00678/1.237, allocations: 5.362 MB / 1.352 GB, free: 103.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/1.237, allocations: 5 kB / 1.352 GB, free: 103.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003015/1.24, allocations: 2.494 MB / 1.354 GB, free: 100.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0134/1.253, allocations: 3.228 MB / 1.357 GB, free: 97.53 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02043/1.274, allocations: 16.15 MB / 1.373 GB, free: 81.33 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/1.277, allocations: 4.628 MB / 1.377 GB, free: 76.67 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.005946/1.283, allocations: 1.987 MB / 1.379 GB, free: 74.68 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/1.284, allocations: 463.2 kB / 1.38 GB, free: 74.23 MB / 0.9981 GB Notification: Performance of SimCode: time 1.011e-06/1.284, allocations: 0 / 1.38 GB, free: 74.23 MB / 0.9981 GB Notification: Performance of Templates: time 0.1541/1.438, allocations: 112 MB / 1.489 GB, free: 11.31 MB / 1.045 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches