Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001817/0.001817, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002124/0.002124, allocations: 194.5 kB / 16.14 MB, free: 6.629 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.53/1.53, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.811/2.811, allocations: 437 MB / 0.7099 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 63.88 kB / 0.8686 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7871/0.7891, allocations: 151.6 MB / 1.017 GB, free: 2.934 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06443/0.8536, allocations: 55.67 MB / 1.071 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02805/0.8817, allocations: 17.92 MB / 1.088 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004109/0.8858, allocations: 67.62 kB / 1.089 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003787/0.8897, allocations: 0.7185 MB / 1.089 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.009837/0.8996, allocations: 2.321 MB / 1.092 GB, free: 5.973 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004878/0.9045, allocations: 1.383 MB / 1.093 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.03264/0.9371, allocations: 27.82 MB / 1.12 GB, free: 8.711 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01451/0.9517, allocations: 8.69 MB / 1.129 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01482/0.9666, allocations: 5.529 MB / 1.134 GB, free: 10.35 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01458/0.9812, allocations: 6.177 MB / 1.14 GB, free: 4.148 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.003509/0.9848, allocations: 472 kB / 1.14 GB, free: 3.688 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008247/0.993, allocations: 1.155 MB / 1.142 GB, free: 2.531 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.006123/0.9992, allocations: 1.802 MB / 1.143 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.01369/1.013, allocations: 4.114 MB / 1.147 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.02292/1.036, allocations: 12.64 MB / 1.16 GB, free: 15.91 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 1.658e-05/1.036, allocations: 4 kB / 1.16 GB, free: 15.91 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.525e-06/1.036, allocations: 0 / 1.16 GB, free: 15.91 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0006252/1.037, allocations: 0 / 1.16 GB, free: 15.91 MB / 0.92 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.03654/1.073, allocations: 8.487 MB / 1.168 GB, free: 7.328 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/1.073, allocations: 12.03 kB / 1.168 GB, free: 7.316 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006051/1.079, allocations: 0.8586 MB / 1.169 GB, free: 6.449 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01844/1.098, allocations: 6.614 MB / 1.175 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006677/1.098, allocations: 460.4 kB / 1.176 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00311/1.102, allocations: 0.6014 MB / 1.176 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03009/1.132, allocations: 9.028 MB / 1.185 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004052/1.132, allocations: 19.78 kB / 1.185 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003198/1.135, allocations: 267.9 kB / 1.185 GB, free: 5.086 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003785/1.136, allocations: 183.9 kB / 1.186 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02582/1.162, allocations: 7.445 MB / 1.193 GB, free: 13.45 MB / 0.9512 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.0776/1.239, allocations: 35.9 MB / 1.228 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009225/1.249, allocations: 4.287 MB / 1.232 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006732/1.255, allocations: 3.312 MB / 1.235 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001952/1.257, allocations: 0.9583 MB / 1.236 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007263/1.265, allocations: 2.382 MB / 1.239 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005009/1.27, allocations: 443.8 kB / 1.239 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=317): time 1.68e-05/1.27, allocations: 0 / 1.239 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of matching and sorting (n=317): time 0.01951/1.289, allocations: 7.105 MB / 1.246 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.34e-05/1.289, allocations: 89.91 kB / 1.246 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.7431/2.033, allocations: 5.455 MB / 1.251 GB, free: 213.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0009616/2.034, allocations: 88.94 kB / 1.251 GB, free: 213.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004282/2.038, allocations: 3.194 MB / 1.255 GB, free: 212 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002167/2.04, allocations: 1.123 MB / 1.256 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001845/2.042, allocations: 0.8539 MB / 1.256 GB, free: 210.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.022e-05/2.042, allocations: 305.5 kB / 1.257 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004516/2.047, allocations: 2.154 MB / 1.259 GB, free: 209.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005675/2.052, allocations: 3.683 MB / 1.262 GB, free: 207.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/2.063, allocations: 6.3 MB / 1.269 GB, free: 203.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.964e-05/2.063, allocations: 13.31 kB / 1.269 GB, free: 203.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01441/2.078, allocations: 6.76 MB / 1.275 GB, free: 200.6 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.138e-05/2.078, allocations: 54.03 kB / 1.275 GB, free: 200.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.621e-05/2.078, allocations: 48.78 kB / 1.275 GB, free: 200.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/2.079, allocations: 435 kB / 1.276 GB, free: 200.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003874/2.083, allocations: 1.002 MB / 1.277 GB, free: 200.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004652/2.088, allocations: 5.266 MB / 1.282 GB, free: 196.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006039/2.094, allocations: 466.6 kB / 1.282 GB, free: 196.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008035/2.095, allocations: 217.5 kB / 1.283 GB, free: 196.4 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.004728/2.099, allocations: 2.478 MB / 1.285 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001893/2.101, allocations: 0.5206 MB / 1.285 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009956/2.111, allocations: 5.257 MB / 1.291 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/2.111, allocations: 33.09 kB / 1.291 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.233e-05/2.111, allocations: 8.062 kB / 1.291 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006122/2.117, allocations: 4.512 MB / 1.295 GB, free: 191.2 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.02599/2.143, allocations: 11.96 MB / 1.307 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/2.143, allocations: 4 kB / 1.307 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002689/2.146, allocations: 0.6359 MB / 1.307 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008221/2.147, allocations: 378.4 kB / 1.308 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004311/2.147, allocations: 87.95 kB / 1.308 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004316/2.152, allocations: 5.182 MB / 1.313 GB, free: 175 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/2.152, allocations: 8 kB / 1.313 GB, free: 175 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01258/2.164, allocations: 7.615 MB / 1.32 GB, free: 167.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004249/2.169, allocations: 1.131 MB / 1.321 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002431/2.171, allocations: 63.98 kB / 1.321 GB, free: 166 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005233/2.176, allocations: 467 kB / 1.322 GB, free: 165.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006491/2.177, allocations: 206 kB / 1.322 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005832/2.178, allocations: 139.9 kB / 1.322 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00732/2.185, allocations: 3.807 MB / 1.326 GB, free: 161.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.31e-07/2.185, allocations: 0 / 1.326 GB, free: 161.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.008975/2.194, allocations: 1.981 MB / 1.328 GB, free: 159.5 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 (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.001843/2.196, allocations: 500 kB / 1.328 GB, free: 159.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.009203/2.205, allocations: 5.367 MB / 1.334 GB, free: 153.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/2.205, allocations: 0 / 1.334 GB, free: 153.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003922/2.209, allocations: 2.512 MB / 1.336 GB, free: 151.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02117/2.23, allocations: 3.219 MB / 1.339 GB, free: 148 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03419/2.264, allocations: 16.46 MB / 1.355 GB, free: 131.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007633/2.272, allocations: 4.624 MB / 1.36 GB, free: 126.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.01017/2.282, allocations: 1.991 MB / 1.362 GB, free: 124.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003875/2.286, allocations: 459.3 kB / 1.362 GB, free: 124.4 MB / 0.9981 GB Notification: Performance of SimCode: time 3.607e-06/2.286, allocations: 0 / 1.362 GB, free: 124.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.1852/2.471, allocations: 116 MB / 1.475 GB, free: 9.543 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches