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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.004987/0.004987, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001055/0.001055, allocations: 189.4 kB / 16.67 MB, free: 5.875 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.559/2.559, allocations: 472.7 MB / 0.7453 GB, free: 432 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 1.069 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.012/1.013, allocations: 159.9 MB / 1.226 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05647/1.07, allocations: 56.02 MB / 1.28 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02606/1.096, allocations: 17.95 MB / 1.298 GB, free: 3.266 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003815/1.1, allocations: 83.56 kB / 1.298 GB, free: 3.184 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0033/1.103, allocations: 0.8924 MB / 1.299 GB, free: 2.285 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.008835/1.112, allocations: 2.502 MB / 1.301 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.004689/1.117, allocations: 1.534 MB / 1.303 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.02248/1.139, allocations: 21.24 MB / 1.324 GB, free: 8.941 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0153/1.155, allocations: 10.68 MB / 1.334 GB, free: 14.14 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01838/1.173, allocations: 7.158 MB / 1.341 GB, free: 7.008 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01189/1.185, allocations: 6.358 MB / 1.347 GB, free: 0.625 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.003756/1.189, allocations: 0.9375 MB / 1.348 GB, free: 15.68 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008522/1.197, allocations: 1.702 MB / 1.35 GB, free: 13.98 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.005481/1.203, allocations: 2.337 MB / 1.352 GB, free: 11.64 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.01525/1.218, allocations: 4.707 MB / 1.357 GB, free: 6.914 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.02387/1.242, allocations: 13.22 MB / 1.369 GB, free: 9.652 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/1.242, allocations: 4 kB / 1.37 GB, free: 9.648 MB / 1.092 GB Notification: Performance of FrontEnd: time 2.595e-06/1.242, allocations: 4 kB / 1.37 GB, free: 9.645 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.000579/1.243, allocations: 0 / 1.37 GB, free: 9.645 MB / 1.092 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.02741/1.27, allocations: 8.717 MB / 1.378 GB, free: 0.8242 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/1.27, allocations: 12.03 kB / 1.378 GB, free: 0.8125 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005131/1.275, allocations: 0.8903 MB / 1.379 GB, free: 15.91 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01658/1.292, allocations: 6.743 MB / 1.385 GB, free: 9.117 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005762/1.293, allocations: 468.3 kB / 1.386 GB, free: 8.656 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003006/1.296, allocations: 0.5975 MB / 1.387 GB, free: 8.059 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02574/1.321, allocations: 9.025 MB / 1.395 GB, free: 14.71 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003515/1.322, allocations: 19.81 kB / 1.395 GB, free: 14.69 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002514/1.324, allocations: 264 kB / 1.396 GB, free: 14.43 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002555/1.325, allocations: 176 kB / 1.396 GB, free: 14.26 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0184/1.343, allocations: 7.449 MB / 1.403 GB, free: 6.805 MB / 1.123 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.06221/1.405, allocations: 36.08 MB / 1.438 GB, free: 0.668 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008019/1.413, allocations: 4.284 MB / 1.442 GB, free: 12.38 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007092/1.421, allocations: 3.289 MB / 1.446 GB, free: 9.082 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001687/1.422, allocations: 0.9621 MB / 1.447 GB, free: 7.938 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005481/1.428, allocations: 2.386 MB / 1.449 GB, free: 5.516 MB / 1.17 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003524/1.431, allocations: 385 kB / 1.449 GB, free: 5.137 MB / 1.17 GB Notification: Performance of pre-optimization done (n=317): time 1.561e-05/1.431, allocations: 0 / 1.449 GB, free: 5.137 MB / 1.17 GB Notification: Performance of matching and sorting (n=317): time 0.01602/1.447, allocations: 7.159 MB / 1.456 GB, free: 13.89 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.171e-05/1.448, allocations: 85.91 kB / 1.456 GB, free: 13.79 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/1.459, allocations: 5.663 MB / 1.462 GB, free: 8.145 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 0.001026/1.46, allocations: 85.7 kB / 1.462 GB, free: 8.055 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.003681/1.464, allocations: 3.275 MB / 1.465 GB, free: 4.758 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.002183/1.466, allocations: 1.166 MB / 1.466 GB, free: 3.582 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002924/1.469, allocations: 0.8741 MB / 1.467 GB, free: 2.695 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001287/1.469, allocations: 305.1 kB / 1.467 GB, free: 2.395 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003504/1.473, allocations: 2.16 MB / 1.47 GB, free: 232 kB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004319/1.477, allocations: 3.697 MB / 1.473 GB, free: 11.83 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008278/1.486, allocations: 6.319 MB / 1.479 GB, free: 4.793 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.723e-05/1.486, allocations: 19.94 kB / 1.479 GB, free: 4.773 MB / 1.201 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01281/1.498, allocations: 6.798 MB / 1.486 GB, free: 13.93 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 8.924e-05/1.499, allocations: 57.69 kB / 1.486 GB, free: 13.86 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.149e-05/1.499, allocations: 48 kB / 1.486 GB, free: 13.82 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/1.5, allocations: 436.4 kB / 1.487 GB, free: 13.39 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003741/1.504, allocations: 1.01 MB / 1.488 GB, free: 12.38 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006803/1.51, allocations: 5.71 MB / 1.493 GB, free: 6.395 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006066/1.516, allocations: 287.7 kB / 1.493 GB, free: 6.113 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/1.517, allocations: 216 kB / 1.494 GB, free: 5.902 MB / 1.217 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.005889/1.523, allocations: 2.479 MB / 1.496 GB, free: 3.41 MB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002286/1.526, allocations: 0.5513 MB / 1.497 GB, free: 2.855 MB / 1.217 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/1.537, allocations: 5.27 MB / 1.502 GB, free: 13.52 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.645e-05/1.537, allocations: 35.98 kB / 1.502 GB, free: 13.49 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.299e-05/1.537, allocations: 4 kB / 1.502 GB, free: 13.48 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007248/1.544, allocations: 4.532 MB / 1.506 GB, free: 8.848 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02744/1.572, allocations: 11.98 MB / 1.518 GB, free: 12.72 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/1.572, allocations: 4 kB / 1.518 GB, free: 12.71 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002901/1.575, allocations: 0.6476 MB / 1.518 GB, free: 12.07 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008991/1.576, allocations: 365.3 kB / 1.519 GB, free: 11.7 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000462/1.576, allocations: 83.95 kB / 1.519 GB, free: 11.62 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005674/1.582, allocations: 5.628 MB / 1.524 GB, free: 5.723 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/1.582, allocations: 4 kB / 1.524 GB, free: 5.719 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/1.595, allocations: 7.795 MB / 1.532 GB, free: 13.83 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003683/1.599, allocations: 1.181 MB / 1.533 GB, free: 12.62 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001634/1.601, allocations: 75.92 kB / 1.533 GB, free: 12.55 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004052/1.605, allocations: 195.8 kB / 1.533 GB, free: 12.36 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005327/1.605, allocations: 206.2 kB / 1.534 GB, free: 12.16 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004715/1.606, allocations: 135.9 kB / 1.534 GB, free: 12.02 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.008634/1.614, allocations: 3.959 MB / 1.538 GB, free: 8.086 MB / 1.264 GB Notification: Performance of sort global known variables: time 2.11e-07/1.614, allocations: 4 kB / 1.538 GB, free: 8.082 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.008561/1.623, allocations: 2.016 MB / 1.54 GB, free: 6.062 MB / 1.264 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.001823/1.625, allocations: 0.4949 MB / 1.54 GB, free: 5.562 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.009815/1.635, allocations: 5.436 MB / 1.545 GB, free: 76 kB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.635, allocations: 4.312 kB / 1.545 GB, free: 72 kB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.004321/1.639, allocations: 2.549 MB / 1.548 GB, free: 13.49 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01808/1.657, allocations: 3.398 MB / 1.551 GB, free: 10.19 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8457/2.503, allocations: 14.07 MB / 1.565 GB, free: 307.2 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009632/2.512, allocations: 4.633 MB / 1.569 GB, free: 306.4 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.01032/2.523, allocations: 2.081 MB / 1.572 GB, free: 306.3 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002735/2.526, allocations: 469.2 kB / 1.572 GB, free: 306.3 MB / 1.279 GB Notification: Performance of SimCode: time 9.52e-07/2.526, allocations: 0 / 1.572 GB, free: 306.3 MB / 1.279 GB Notification: Performance of Templates: time 0.173/2.699, allocations: 116.6 MB / 1.686 GB, free: 211.3 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/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