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.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.001571/0.001571, allocations: 113.9 kB / 17.16 MB, free: 5.895 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.002045/0.002045, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.494/1.494, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.954/2.954, allocations: 0.5003 GB / 0.8026 GB, free: 6.684 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="cs",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.001955/0.001955, allocations: 63.89 kB / 1.165 GB, free: 492 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.033, allocations: 178.9 MB / 1.34 GB, free: 16.26 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06212/1.095, allocations: 56.76 MB / 1.396 GB, free: 7.621 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.0297/1.125, allocations: 18.09 MB / 1.413 GB, free: 10.66 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004892/1.129, allocations: 100.9 kB / 1.413 GB, free: 10.61 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.003595/1.133, allocations: 0.9255 MB / 1.414 GB, free: 10.05 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.009604/1.143, allocations: 2.615 MB / 1.417 GB, free: 8.484 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.005745/1.148, allocations: 1.536 MB / 1.418 GB, free: 7.625 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.02827/1.177, allocations: 21.26 MB / 1.439 GB, free: 11.73 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01296/1.19, allocations: 8.88 MB / 1.448 GB, free: 6.57 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01809/1.208, allocations: 7.521 MB / 1.455 GB, free: 2.477 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01501/1.223, allocations: 6.577 MB / 1.461 GB, free: 12.12 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.003925/1.227, allocations: 0.9414 MB / 1.462 GB, free: 11.18 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00901/1.236, allocations: 1.752 MB / 1.464 GB, free: 9.43 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.004857/1.241, allocations: 2.441 MB / 1.466 GB, free: 6.98 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.0101/1.251, allocations: 4.719 MB / 1.471 GB, free: 2.242 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.01807/1.269, allocations: 13.31 MB / 1.484 GB, free: 4.887 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/1.269, allocations: 4 kB / 1.484 GB, free: 4.883 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.823e-06/1.269, allocations: 0 / 1.484 GB, free: 4.883 MB / 1.154 GB Notification: Performance of Transformations before backend: time 0.0004187/1.269, allocations: 4 kB / 1.484 GB, free: 4.879 MB / 1.154 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.02168/1.291, allocations: 8.705 MB / 1.493 GB, free: 12.07 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/1.291, allocations: 12.03 kB / 1.493 GB, free: 12.06 MB / 1.17 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002037/1.291, allocations: 160.4 kB / 1.493 GB, free: 11.9 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00203/1.293, allocations: 0.8422 MB / 1.494 GB, free: 11.05 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003973/1.297, allocations: 0.9644 MB / 1.495 GB, free: 10.08 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0142/1.311, allocations: 6.753 MB / 1.501 GB, free: 3.27 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004416/1.312, allocations: 464.2 kB / 1.502 GB, free: 2.812 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001771/1.313, allocations: 0.5898 MB / 1.502 GB, free: 2.223 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01723/1.331, allocations: 9.04 MB / 1.511 GB, free: 8.859 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/1.331, allocations: 23.83 kB / 1.511 GB, free: 8.836 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007201/1.332, allocations: 260 kB / 1.511 GB, free: 8.582 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001736/1.332, allocations: 176 kB / 1.511 GB, free: 8.41 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0141/1.346, allocations: 7.465 MB / 1.519 GB, free: 0.9375 MB / 1.186 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.05331/1.399, allocations: 36.11 MB / 1.554 GB, free: 10.77 MB / 1.232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006435/1.406, allocations: 3.994 MB / 1.558 GB, free: 6.777 MB / 1.232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004648/1.41, allocations: 3.031 MB / 1.561 GB, free: 3.738 MB / 1.232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001379/1.412, allocations: 0.9544 MB / 1.562 GB, free: 2.598 MB / 1.232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003899/1.415, allocations: 2.398 MB / 1.564 GB, free: 168 kB / 1.232 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002635/1.418, allocations: 405 kB / 1.564 GB, free: 15.77 MB / 1.248 GB Notification: Performance of pre-optimization done (n=317): time 8.326e-06/1.418, allocations: 0 / 1.564 GB, free: 15.77 MB / 1.248 GB Notification: Performance of matching and sorting (n=317): time 0.01499/1.433, allocations: 7.139 MB / 1.571 GB, free: 8.539 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.921e-05/1.433, allocations: 85.91 kB / 1.572 GB, free: 8.441 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01338/1.447, allocations: 5.67 MB / 1.577 GB, free: 2.793 MB / 1.248 GB Notification: Performance of collectPreVariables (initialization): time 0.001045/1.448, allocations: 89.7 kB / 1.577 GB, free: 2.699 MB / 1.248 GB Notification: Performance of collectInitialEqns (initialization): time 0.004074/1.452, allocations: 3.279 MB / 1.58 GB, free: 15.39 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.002114/1.454, allocations: 1.162 MB / 1.581 GB, free: 14.22 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001541/1.455, allocations: 0.8624 MB / 1.582 GB, free: 13.35 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001527/1.456, allocations: 305.1 kB / 1.583 GB, free: 13.05 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003817/1.459, allocations: 2.163 MB / 1.585 GB, free: 10.88 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005168/1.464, allocations: 3.697 MB / 1.588 GB, free: 6.477 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/1.475, allocations: 6.323 MB / 1.595 GB, free: 15.43 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-05/1.475, allocations: 12 kB / 1.595 GB, free: 15.42 MB / 1.279 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01501/1.49, allocations: 6.794 MB / 1.601 GB, free: 8.578 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 8.945e-05/1.49, allocations: 53.7 kB / 1.601 GB, free: 8.52 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/1.49, allocations: 55.97 kB / 1.601 GB, free: 8.465 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/1.491, allocations: 431.7 kB / 1.602 GB, free: 8.039 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004186/1.495, allocations: 1.006 MB / 1.603 GB, free: 7.031 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00694/1.502, allocations: 5.706 MB / 1.608 GB, free: 1.055 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005493/1.508, allocations: 279.7 kB / 1.609 GB, free: 0.7812 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/1.509, allocations: 216 kB / 1.609 GB, free: 0.5703 MB / 1.279 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.006214/1.515, allocations: 2.483 MB / 1.611 GB, free: 14.07 MB / 1.295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002397/1.517, allocations: 0.5512 MB / 1.612 GB, free: 13.52 MB / 1.295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/1.53, allocations: 5.259 MB / 1.617 GB, free: 8.203 MB / 1.295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-05/1.53, allocations: 32 kB / 1.617 GB, free: 8.172 MB / 1.295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.467e-05/1.53, allocations: 4 kB / 1.617 GB, free: 8.168 MB / 1.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008347/1.538, allocations: 4.524 MB / 1.621 GB, free: 3.539 MB / 1.295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03533/1.574, allocations: 11.95 MB / 1.633 GB, free: 7.438 MB / 1.311 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/1.574, allocations: 4.125 kB / 1.633 GB, free: 7.434 MB / 1.311 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003405/1.577, allocations: 0.6476 MB / 1.634 GB, free: 6.785 MB / 1.311 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001023/1.578, allocations: 375.5 kB / 1.634 GB, free: 6.414 MB / 1.311 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005989/1.579, allocations: 87.95 kB / 1.634 GB, free: 6.328 MB / 1.311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006773/1.585, allocations: 5.626 MB / 1.64 GB, free: 436 kB / 1.311 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.585, allocations: 3.938 kB / 1.64 GB, free: 432 kB / 1.311 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/1.601, allocations: 7.768 MB / 1.647 GB, free: 8.559 MB / 1.326 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003964/1.605, allocations: 1.188 MB / 1.648 GB, free: 7.348 MB / 1.326 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001938/1.607, allocations: 67.98 kB / 1.648 GB, free: 7.281 MB / 1.326 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004629/1.612, allocations: 199.9 kB / 1.649 GB, free: 7.086 MB / 1.326 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008263/1.612, allocations: 194.2 kB / 1.649 GB, free: 6.895 MB / 1.326 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007953/1.613, allocations: 139.9 kB / 1.649 GB, free: 6.758 MB / 1.326 GB Notification: Performance of sorting global known variables: time 0.00947/1.623, allocations: 3.963 MB / 1.653 GB, free: 2.816 MB / 1.326 GB Notification: Performance of sort global known variables: time 2.9e-07/1.623, allocations: 0 / 1.653 GB, free: 2.816 MB / 1.326 GB Notification: Performance of remove unused functions: time 0.009426/1.632, allocations: 2.031 MB / 1.655 GB, free: 0.7812 MB / 1.326 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.01851/1.651, allocations: 8.712 MB / 1.663 GB, free: 7.965 MB / 1.342 GB Notification: Performance of simCode: created initialization part: time 0.0109/1.662, allocations: 5.245 MB / 1.668 GB, free: 2.668 MB / 1.342 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.662, allocations: 0 / 1.668 GB, free: 2.668 MB / 1.342 GB Notification: Performance of simCode: created simulation system equations: time 0.005236/1.667, allocations: 2.381 MB / 1.671 GB, free: 264 kB / 1.342 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02056/1.687, allocations: 3.377 MB / 1.674 GB, free: 12.97 MB / 1.357 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1255/1.813, allocations: 52.55 MB / 1.725 GB, free: 6.285 MB / 1.404 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005814/1.819, allocations: 4.628 MB / 1.73 GB, free: 1.621 MB / 1.404 GB Notification: Performance of simCode: alias equations: time 0.007028/1.826, allocations: 2.08 MB / 1.732 GB, free: 15.54 MB / 1.42 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005971/1.832, allocations: 2.678 MB / 1.734 GB, free: 12.86 MB / 1.42 GB Notification: Performance of SimCode: time 1.744e-06/1.832, allocations: 0 / 1.734 GB, free: 12.86 MB / 1.42 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.031/2.863, allocations: 160.5 MB / 1.891 GB, free: 467.3 MB / 1.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.76/23.63, allocations: 6.344 kB / 1.891 GB, free: 467.3 MB / 1.545 GB " [Timeout remaining time 276] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading_fmu --startTime=0 --stopTime=14400 --stepSize=5.76 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 30.842350257968064]