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.001489/0.001489, allocations: 107.7 kB / 16.41 MB, free: 6.484 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.001591/0.001591, allocations: 187 kB / 17.34 MB, free: 5.734 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.572/2.572, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 68.11 kB / 1.055 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9067/0.9082, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05251/0.9607, allocations: 56 MB / 1.263 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02328/0.9841, allocations: 17.94 MB / 1.281 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00332/0.9874, allocations: 79.56 kB / 1.281 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002902/0.9904, allocations: 0.8924 MB / 1.282 GB, free: 2.453 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007511/0.9979, allocations: 2.506 MB / 1.284 GB, free: 15.94 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003998/1.002, allocations: 1.536 MB / 1.286 GB, free: 14.41 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.02106/1.023, allocations: 21.25 MB / 1.306 GB, free: 9.102 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01398/1.037, allocations: 10.69 MB / 1.317 GB, free: 14.3 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01445/1.052, allocations: 7.231 MB / 1.324 GB, free: 7.086 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01107/1.063, allocations: 6.354 MB / 1.33 GB, free: 0.707 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.00322/1.066, allocations: 0.9375 MB / 1.331 GB, free: 15.77 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006995/1.073, allocations: 1.702 MB / 1.333 GB, free: 14.07 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.004497/1.077, allocations: 2.341 MB / 1.335 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.01067/1.088, allocations: 4.707 MB / 1.339 GB, free: 6.992 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0176/1.106, allocations: 13.18 MB / 1.352 GB, free: 9.781 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/1.106, allocations: 4 kB / 1.352 GB, free: 9.777 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.333e-06/1.106, allocations: 4 kB / 1.352 GB, free: 9.773 MB / 1.076 GB Notification: Performance of Transformations before backend: time 0.0004731/1.106, allocations: 0 / 1.352 GB, free: 9.773 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.02159/1.128, allocations: 8.503 MB / 1.361 GB, free: 1.176 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/1.128, allocations: 12.03 kB / 1.361 GB, free: 1.164 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003686/1.132, allocations: 0.8547 MB / 1.361 GB, free: 308 kB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01497/1.147, allocations: 6.703 MB / 1.368 GB, free: 9.539 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005438/1.147, allocations: 468.3 kB / 1.368 GB, free: 9.078 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002367/1.15, allocations: 0.5898 MB / 1.369 GB, free: 8.488 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02162/1.171, allocations: 9.036 MB / 1.378 GB, free: 15.13 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000274/1.172, allocations: 19.78 kB / 1.378 GB, free: 15.11 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001846/1.173, allocations: 264 kB / 1.378 GB, free: 14.85 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001984/1.174, allocations: 179.9 kB / 1.378 GB, free: 14.68 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/1.19, allocations: 7.449 MB / 1.386 GB, free: 7.219 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.06108/1.251, allocations: 35.99 MB / 1.421 GB, free: 1.16 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007507/1.259, allocations: 4.299 MB / 1.425 GB, free: 12.87 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005503/1.264, allocations: 3.29 MB / 1.428 GB, free: 9.574 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001447/1.266, allocations: 0.9622 MB / 1.429 GB, free: 8.426 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004923/1.271, allocations: 2.386 MB / 1.431 GB, free: 6.004 MB / 1.154 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002951/1.274, allocations: 367.9 kB / 1.432 GB, free: 5.641 MB / 1.154 GB Notification: Performance of pre-optimization done (n=317): time 1.421e-05/1.274, allocations: 0 / 1.432 GB, free: 5.641 MB / 1.154 GB Notification: Performance of matching and sorting (n=317): time 0.01592/1.29, allocations: 7.14 MB / 1.439 GB, free: 14.41 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.184e-05/1.29, allocations: 85.91 kB / 1.439 GB, free: 14.31 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01165/1.301, allocations: 5.662 MB / 1.444 GB, free: 8.672 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0008974/1.302, allocations: 85.7 kB / 1.444 GB, free: 8.582 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.003833/1.306, allocations: 3.196 MB / 1.448 GB, free: 5.352 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.001961/1.308, allocations: 1.117 MB / 1.449 GB, free: 4.219 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002636/1.311, allocations: 0.858 MB / 1.449 GB, free: 3.348 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001126/1.311, allocations: 313 kB / 1.45 GB, free: 3.039 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003761/1.315, allocations: 2.16 MB / 1.452 GB, free: 0.8711 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004928/1.32, allocations: 3.697 MB / 1.455 GB, free: 12.47 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009205/1.329, allocations: 6.315 MB / 1.462 GB, free: 5.434 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.272e-05/1.329, allocations: 16 kB / 1.462 GB, free: 5.418 MB / 1.186 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.014/1.343, allocations: 6.779 MB / 1.468 GB, free: 14.59 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001084/1.343, allocations: 53.7 kB / 1.468 GB, free: 14.53 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.945e-05/1.343, allocations: 48 kB / 1.468 GB, free: 14.48 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/1.344, allocations: 432.5 kB / 1.469 GB, free: 14.05 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00438/1.349, allocations: 1.014 MB / 1.47 GB, free: 13.04 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006229/1.355, allocations: 5.696 MB / 1.475 GB, free: 7.066 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005245/1.36, allocations: 283.5 kB / 1.476 GB, free: 6.789 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009624/1.361, allocations: 216.2 kB / 1.476 GB, free: 6.578 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.005367/1.367, allocations: 2.484 MB / 1.478 GB, free: 4.082 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002102/1.369, allocations: 0.5326 MB / 1.479 GB, free: 3.543 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01049/1.379, allocations: 5.274 MB / 1.484 GB, free: 14.21 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.645e-05/1.379, allocations: 32 kB / 1.484 GB, free: 14.18 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.213e-05/1.379, allocations: 4 kB / 1.484 GB, free: 14.18 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008572/1.388, allocations: 4.528 MB / 1.488 GB, free: 9.543 MB / 1.217 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02947/1.417, allocations: 11.97 MB / 1.5 GB, free: 13.42 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/1.418, allocations: 4 kB / 1.5 GB, free: 13.41 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003062/1.421, allocations: 0.6399 MB / 1.501 GB, free: 12.77 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009363/1.422, allocations: 377.2 kB / 1.501 GB, free: 12.4 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004953/1.422, allocations: 87.95 kB / 1.501 GB, free: 12.31 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005691/1.428, allocations: 5.613 MB / 1.507 GB, free: 6.426 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.428, allocations: 4 kB / 1.507 GB, free: 6.422 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01356/1.441, allocations: 7.765 MB / 1.514 GB, free: 14.55 MB / 1.248 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004494/1.446, allocations: 1.155 MB / 1.515 GB, free: 13.38 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001879/1.448, allocations: 71.94 kB / 1.515 GB, free: 13.3 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0042/1.452, allocations: 195.8 kB / 1.516 GB, free: 13.11 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000712/1.453, allocations: 202.2 kB / 1.516 GB, free: 12.91 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006016/1.453, allocations: 139.9 kB / 1.516 GB, free: 12.78 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.008189/1.462, allocations: 3.955 MB / 1.52 GB, free: 8.844 MB / 1.248 GB Notification: Performance of sort global known variables: time 5.91e-07/1.462, allocations: 4 kB / 1.52 GB, free: 8.84 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.008319/1.47, allocations: 2.007 MB / 1.522 GB, free: 6.828 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.001961/1.472, allocations: 0.4943 MB / 1.522 GB, free: 6.336 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.01048/1.482, allocations: 5.437 MB / 1.528 GB, free: 0.8477 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/1.483, allocations: 4 kB / 1.528 GB, free: 0.8438 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.004815/1.487, allocations: 2.537 MB / 1.53 GB, free: 14.28 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02041/1.508, allocations: 3.391 MB / 1.533 GB, free: 10.97 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03208/1.54, allocations: 13.93 MB / 1.547 GB, free: 12.98 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006785/1.547, allocations: 4.553 MB / 1.551 GB, free: 8.398 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002591/1.549, allocations: 495.3 kB / 1.552 GB, free: 7.914 MB / 1.279 GB Notification: Performance of SimCode: time 1.483e-06/1.549, allocations: 0 / 1.552 GB, free: 7.914 MB / 1.279 GB Notification: Performance of Templates: time 0.9392/2.489, allocations: 188.9 MB / 1.736 GB, free: 166.6 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