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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001376/0.001376, allocations: 108.6 kB / 16.41 MB, free: 6.027 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.001394/0.001394, allocations: 188.7 kB / 17.34 MB, free: 5.633 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.409/1.409, 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 11.0.1-master/package.mo): time 2.735/2.735, allocations: 461.9 MB / 0.7354 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 59.91 kB / 1.055 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9354/0.9368, allocations: 157.4 MB / 1.208 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05389/0.9908, allocations: 56.01 MB / 1.263 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0257/1.017, allocations: 17.95 MB / 1.281 GB, free: 3.57 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003411/1.02, allocations: 75.56 kB / 1.281 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003109/1.023, allocations: 0.8963 MB / 1.282 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.008202/1.031, allocations: 2.495 MB / 1.284 GB, free: 88 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004649/1.036, allocations: 1.538 MB / 1.286 GB, free: 14.55 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.02386/1.06, allocations: 21.26 MB / 1.306 GB, free: 9.238 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01465/1.075, allocations: 10.68 MB / 1.317 GB, free: 14.44 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01469/1.089, allocations: 7.236 MB / 1.324 GB, free: 7.227 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01205/1.101, allocations: 6.358 MB / 1.33 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.003576/1.105, allocations: 0.9375 MB / 1.331 GB, free: 15.9 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007805/1.113, allocations: 1.698 MB / 1.333 GB, free: 14.21 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.004722/1.118, allocations: 2.337 MB / 1.335 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.01174/1.129, allocations: 4.707 MB / 1.339 GB, free: 7.137 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.01923/1.149, allocations: 13.17 MB / 1.352 GB, free: 9.926 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/1.149, allocations: 4 kB / 1.352 GB, free: 9.922 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.355e-06/1.149, allocations: 0 / 1.352 GB, free: 9.922 MB / 1.076 GB Notification: Performance of Transformations before backend: time 0.0004751/1.149, allocations: 0 / 1.352 GB, free: 9.922 MB / 1.076 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.02443/1.174, allocations: 8.506 MB / 1.361 GB, free: 1.32 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/1.174, allocations: 12.02 kB / 1.361 GB, free: 1.309 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005045/1.179, allocations: 0.8586 MB / 1.361 GB, free: 452 kB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01523/1.194, allocations: 6.703 MB / 1.368 GB, free: 9.68 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004995/1.195, allocations: 464.3 kB / 1.368 GB, free: 9.223 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002692/1.197, allocations: 0.5975 MB / 1.369 GB, free: 8.625 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02296/1.22, allocations: 9.032 MB / 1.378 GB, free: 15.27 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001738/1.22, allocations: 23.72 kB / 1.378 GB, free: 15.25 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001256/1.222, allocations: 264 kB / 1.378 GB, free: 14.99 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001694/1.222, allocations: 180 kB / 1.378 GB, free: 14.81 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01671/1.239, allocations: 7.445 MB / 1.386 GB, free: 7.359 MB / 1.107 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.05604/1.295, allocations: 35.99 MB / 1.421 GB, free: 1.305 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007435/1.302, allocations: 4.291 MB / 1.425 GB, free: 13.02 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005041/1.307, allocations: 3.298 MB / 1.428 GB, free: 9.719 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001366/1.309, allocations: 0.9622 MB / 1.429 GB, free: 8.57 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004583/1.313, allocations: 2.386 MB / 1.431 GB, free: 6.148 MB / 1.154 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002776/1.316, allocations: 371.9 kB / 1.432 GB, free: 5.781 MB / 1.154 GB Notification: Performance of pre-optimization done (n=317): time 9.628e-06/1.316, allocations: 0 / 1.432 GB, free: 5.781 MB / 1.154 GB Notification: Performance of matching and sorting (n=317): time 0.01349/1.33, allocations: 7.136 MB / 1.439 GB, free: 14.55 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.327e-05/1.33, allocations: 81.91 kB / 1.439 GB, free: 14.46 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0108/1.341, allocations: 5.666 MB / 1.444 GB, free: 8.816 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.000853/1.341, allocations: 85.7 kB / 1.444 GB, free: 8.727 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.003384/1.345, allocations: 3.2 MB / 1.448 GB, free: 5.492 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.001768/1.347, allocations: 1.117 MB / 1.449 GB, free: 4.359 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00139/1.348, allocations: 0.8658 MB / 1.449 GB, free: 3.48 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001078/1.348, allocations: 305.1 kB / 1.45 GB, free: 3.18 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003328/1.351, allocations: 2.163 MB / 1.452 GB, free: 1.008 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004349/1.356, allocations: 3.689 MB / 1.455 GB, free: 12.62 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008962/1.365, allocations: 6.323 MB / 1.462 GB, free: 5.57 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.756e-05/1.365, allocations: 16 kB / 1.462 GB, free: 5.555 MB / 1.186 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01371/1.379, allocations: 6.775 MB / 1.468 GB, free: 14.72 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/1.379, allocations: 53.7 kB / 1.468 GB, free: 14.66 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.701e-05/1.379, allocations: 48 kB / 1.468 GB, free: 14.62 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/1.38, allocations: 434.1 kB / 1.469 GB, free: 14.19 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00418/1.384, allocations: 1.006 MB / 1.47 GB, free: 13.18 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006266/1.39, allocations: 5.701 MB / 1.475 GB, free: 7.211 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005079/1.395, allocations: 283.7 kB / 1.476 GB, free: 6.934 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009305/1.396, allocations: 216 kB / 1.476 GB, free: 6.723 MB / 1.201 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.005486/1.402, allocations: 2.483 MB / 1.478 GB, free: 4.227 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002064/1.404, allocations: 0.5248 MB / 1.479 GB, free: 3.695 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/1.415, allocations: 5.274 MB / 1.484 GB, free: 14.36 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.849e-05/1.415, allocations: 36 kB / 1.484 GB, free: 14.33 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.478e-05/1.415, allocations: 4 kB / 1.484 GB, free: 14.32 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007621/1.423, allocations: 4.532 MB / 1.488 GB, free: 9.688 MB / 1.217 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02644/1.449, allocations: 11.97 MB / 1.5 GB, free: 13.56 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.449, allocations: 4 kB / 1.5 GB, free: 13.56 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003066/1.452, allocations: 0.6477 MB / 1.501 GB, free: 12.91 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009234/1.453, allocations: 373.3 kB / 1.501 GB, free: 12.54 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006135/1.454, allocations: 83.95 kB / 1.501 GB, free: 12.46 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00682/1.461, allocations: 5.605 MB / 1.507 GB, free: 6.578 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.461, allocations: 0 / 1.507 GB, free: 6.578 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/1.475, allocations: 7.773 MB / 1.514 GB, free: 14.7 MB / 1.248 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003381/1.479, allocations: 1.159 MB / 1.515 GB, free: 13.52 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001628/1.48, allocations: 63.94 kB / 1.515 GB, free: 13.46 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003997/1.484, allocations: 203.8 kB / 1.516 GB, free: 13.26 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006045/1.485, allocations: 198.2 kB / 1.516 GB, free: 13.06 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005105/1.486, allocations: 143.9 kB / 1.516 GB, free: 12.92 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.008042/1.494, allocations: 3.959 MB / 1.52 GB, free: 8.984 MB / 1.248 GB Notification: Performance of sort global known variables: time 5.41e-07/1.494, allocations: 0 / 1.52 GB, free: 8.984 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.00813/1.502, allocations: 2.011 MB / 1.522 GB, free: 6.969 MB / 1.248 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.001842/1.504, allocations: 499.6 kB / 1.522 GB, free: 6.48 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.01066/1.514, allocations: 5.44 MB / 1.528 GB, free: 0.9883 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 2.115e-05/1.514, allocations: 4.375 kB / 1.528 GB, free: 0.9844 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.004584/1.519, allocations: 2.541 MB / 1.53 GB, free: 14.41 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01764/1.537, allocations: 3.39 MB / 1.533 GB, free: 11.11 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02936/1.566, allocations: 13.92 MB / 1.547 GB, free: 13.13 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00726/1.573, allocations: 4.557 MB / 1.551 GB, free: 8.543 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002626/1.576, allocations: 495.2 kB / 1.552 GB, free: 8.059 MB / 1.279 GB Notification: Performance of SimCode: time 9.92e-07/1.576, allocations: 0 / 1.552 GB, free: 8.059 MB / 1.279 GB Notification: Performance of Templates: time 0.8635/2.44, allocations: 188 MB / 1.735 GB, free: 169.2 MB / 1.279 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/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