Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 215.9 kB / 22.25 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.33/1.33, allocations: 230.6 MB / 256 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.894/2.894, allocations: 0.49 GB / 0.7951 GB, free: 33.42 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 61.47 kB / 1.154 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2987, allocations: 176.1 MB / 1.326 GB, free: 1.98 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05985/0.3586, allocations: 57.29 MB / 1.382 GB, free: 8.492 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.02366/0.3822, allocations: 18.21 MB / 1.4 GB, free: 6.23 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002305/0.3845, allocations: 103.2 kB / 1.4 GB, free: 6.129 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.002911/0.3875, allocations: 0.9274 MB / 1.401 GB, free: 5.195 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.007124/0.3946, allocations: 2.678 MB / 1.403 GB, free: 2.504 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003859/0.3984, allocations: 1.589 MB / 1.405 GB, free: 0.9219 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.02417/0.4226, allocations: 21.83 MB / 1.426 GB, free: 11.03 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01531/0.4379, allocations: 7.097 MB / 1.433 GB, free: 3.812 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01527/0.4532, allocations: 7.535 MB / 1.44 GB, free: 12.3 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01088/0.4641, allocations: 6.584 MB / 1.447 GB, free: 5.688 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.002681/0.4667, allocations: 0.9375 MB / 1.448 GB, free: 4.75 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005881/0.4726, allocations: 1.772 MB / 1.449 GB, free: 2.977 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.003673/0.4763, allocations: 2.441 MB / 1.452 GB, free: 0.5273 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.008593/0.4849, allocations: 4.723 MB / 1.456 GB, free: 11.78 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.01659/0.5015, allocations: 13.32 MB / 1.469 GB, free: 14.42 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.5015, allocations: 4 kB / 1.469 GB, free: 14.42 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5015, allocations: 0 / 1.469 GB, free: 14.42 MB / 1.17 GB Notification: Performance of Transformations before backend: time 0.0003818/0.5019, allocations: 0 / 1.469 GB, free: 14.42 MB / 1.17 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.02095/0.5228, allocations: 8.641 MB / 1.478 GB, free: 5.695 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.5229, allocations: 15.97 kB / 1.478 GB, free: 5.68 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00284/0.5257, allocations: 0.8383 MB / 1.479 GB, free: 4.832 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004682/0.5304, allocations: 0.9606 MB / 1.48 GB, free: 3.867 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/0.5449, allocations: 6.783 MB / 1.486 GB, free: 13 MB / 1.186 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004562/0.5453, allocations: 456.2 kB / 1.487 GB, free: 12.55 MB / 1.186 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001854/0.5472, allocations: 0.5976 MB / 1.487 GB, free: 11.96 MB / 1.186 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0196/0.5668, allocations: 9.036 MB / 1.496 GB, free: 2.598 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002285/0.567, allocations: 27.83 kB / 1.496 GB, free: 2.57 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001449/0.5685, allocations: 267.9 kB / 1.496 GB, free: 2.309 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001904/0.5686, allocations: 180 kB / 1.497 GB, free: 2.133 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/0.5846, allocations: 7.457 MB / 1.504 GB, free: 10.66 MB / 1.201 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.05841/0.643, allocations: 36.01 MB / 1.539 GB, free: 4.586 MB / 1.232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006943/0.65, allocations: 4.002 MB / 1.543 GB, free: 0.582 MB / 1.232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005148/0.6551, allocations: 3.035 MB / 1.546 GB, free: 13.54 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001075/0.6562, allocations: 222.2 kB / 1.546 GB, free: 13.32 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004449/0.6606, allocations: 2.386 MB / 1.548 GB, free: 10.9 MB / 1.248 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002497/0.6631, allocations: 401.1 kB / 1.549 GB, free: 10.5 MB / 1.248 GB Notification: Performance of pre-optimization done (n=317): time 1.172e-05/0.6631, allocations: 3.984 kB / 1.549 GB, free: 10.5 MB / 1.248 GB Notification: Performance of matching and sorting (n=317): time 0.01453/0.6777, allocations: 7 MB / 1.556 GB, free: 3.449 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.6777, allocations: 85.91 kB / 1.556 GB, free: 3.352 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/0.688, allocations: 5.682 MB / 1.561 GB, free: 13.69 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 0.0006801/0.6886, allocations: 85.7 kB / 1.561 GB, free: 13.6 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.003665/0.6923, allocations: 3.275 MB / 1.565 GB, free: 10.3 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.00185/0.6941, allocations: 1.17 MB / 1.566 GB, free: 9.121 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001934/0.6961, allocations: 0.8586 MB / 1.567 GB, free: 8.25 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.6962, allocations: 305.1 kB / 1.567 GB, free: 7.949 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003689/0.6999, allocations: 2.163 MB / 1.569 GB, free: 5.777 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004888/0.7048, allocations: 3.697 MB / 1.573 GB, free: 1.379 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00901/0.7138, allocations: 6.319 MB / 1.579 GB, free: 10.34 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-05/0.7138, allocations: 20 kB / 1.579 GB, free: 10.32 MB / 1.279 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01291/0.7268, allocations: 6.786 MB / 1.585 GB, free: 3.488 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 9.105e-05/0.7268, allocations: 57.64 kB / 1.585 GB, free: 3.426 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.787e-05/0.7269, allocations: 48 kB / 1.586 GB, free: 3.379 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.728, allocations: 431.3 kB / 1.586 GB, free: 2.953 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/0.7318, allocations: 1.006 MB / 1.587 GB, free: 1.945 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006566/0.7383, allocations: 5.496 MB / 1.592 GB, free: 12.22 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004829/0.7432, allocations: 283.7 kB / 1.593 GB, free: 11.94 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008442/0.744, allocations: 216 kB / 1.593 GB, free: 11.73 MB / 1.295 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.005047/0.7491, allocations: 2.483 MB / 1.595 GB, free: 9.234 MB / 1.295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001888/0.751, allocations: 0.559 MB / 1.596 GB, free: 8.672 MB / 1.295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0101/0.7611, allocations: 5.255 MB / 1.601 GB, free: 3.359 MB / 1.295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.723e-05/0.7611, allocations: 28 kB / 1.601 GB, free: 3.332 MB / 1.295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.69e-05/0.7611, allocations: 4 kB / 1.601 GB, free: 3.328 MB / 1.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153/1.914, allocations: 4.516 MB / 1.605 GB, free: 258.3 MB / 1.295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02147/1.935, allocations: 12.01 MB / 1.617 GB, free: 254.7 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/1.935, allocations: 2.094 kB / 1.617 GB, free: 254.7 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003052/1.938, allocations: 0.6436 MB / 1.618 GB, free: 254.7 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/1.939, allocations: 376.6 kB / 1.618 GB, free: 254.6 MB / 1.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002831/1.94, allocations: 82.92 kB / 1.618 GB, free: 254.6 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00469/1.944, allocations: 5.407 MB / 1.623 GB, free: 250.7 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.944, allocations: 5.75 kB / 1.623 GB, free: 250.7 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01121/1.956, allocations: 7.786 MB / 1.631 GB, free: 247.9 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003358/1.959, allocations: 1.145 MB / 1.632 GB, free: 247.6 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.96, allocations: 69.86 kB / 1.632 GB, free: 247.5 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002861/1.963, allocations: 199.6 kB / 1.632 GB, free: 247.5 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003919/1.963, allocations: 209.4 kB / 1.633 GB, free: 247.4 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002673/1.964, allocations: 136.6 kB / 1.633 GB, free: 247.4 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.005347/1.969, allocations: 3.97 MB / 1.637 GB, free: 246.1 MB / 1.295 GB Notification: Performance of sort global known variables: time 2.61e-07/1.969, allocations: 0 / 1.637 GB, free: 246.1 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.005553/1.975, allocations: 2.029 MB / 1.639 GB, free: 245.8 MB / 1.295 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.01018/1.985, allocations: 8.728 MB / 1.647 GB, free: 242.1 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.005913/1.991, allocations: 5.238 MB / 1.652 GB, free: 239.9 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/1.991, allocations: 9.594 kB / 1.652 GB, free: 239.9 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.00254/1.993, allocations: 2.37 MB / 1.655 GB, free: 238.6 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01177/2.005, allocations: 3.383 MB / 1.658 GB, free: 237.1 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06178/2.067, allocations: 52.65 MB / 1.709 GB, free: 182.5 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00419/2.071, allocations: 4.628 MB / 1.714 GB, free: 177.9 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.005773/2.077, allocations: 2.082 MB / 1.716 GB, free: 175.8 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003795/2.08, allocations: 2.674 MB / 1.718 GB, free: 173.1 MB / 1.295 GB Notification: Performance of SimCode: time 1.001e-06/2.08, allocations: 0 / 1.718 GB, free: 173.1 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1951/2.276, allocations: 164.3 MB / 1.879 GB, free: 10.1 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.83/24.1, allocations: 19.06 kB / 1.879 GB, free: 10.09 MB / 1.295 GB " [Timeout remaining time 276] (rm -f Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading_fmu --startTime=0 --stopTime=14400 --stepSize=5.76 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 30.5788560078945]