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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001182/0.001182, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001328/0.001328, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.549/2.549, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003177, allocations: 8 kB / 0.8708 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6292/0.6296, allocations: 153.6 MB / 1.021 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04612/0.6757, allocations: 46.86 MB / 1.067 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02121/0.697, allocations: 15.55 MB / 1.082 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002717/0.6997, allocations: 63.56 kB / 1.082 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002988/0.7028, allocations: 0.8084 MB / 1.083 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.007383/0.7102, allocations: 2.162 MB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004775/0.7149, allocations: 1.578 MB / 1.086 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01462/0.7296, allocations: 11.44 MB / 1.097 GB, free: 2.508 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01048/0.7401, allocations: 7.151 MB / 1.104 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008734/0.7489, allocations: 4.473 MB / 1.109 GB, free: 6.793 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0073/0.7562, allocations: 3.851 MB / 1.113 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0016/0.7578, allocations: 348 kB / 1.113 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004361/0.7622, allocations: 0.8391 MB / 1.114 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001958/0.7642, allocations: 1.464 MB / 1.115 GB, free: 284 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003327/0.7675, allocations: 1.611 MB / 1.117 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01175/0.7793, allocations: 10.27 MB / 1.127 GB, free: 4.359 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.7793, allocations: 0 / 1.127 GB, free: 4.359 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.974e-06/0.7793, allocations: 0 / 1.127 GB, free: 4.359 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003901/0.7797, allocations: 4 kB / 1.127 GB, free: 4.355 MB / 0.8731 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.01536/0.7951, allocations: 6.952 MB / 1.134 GB, free: 13.31 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.7951, allocations: 15.98 kB / 1.134 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003758/0.7989, allocations: 0.85 MB / 1.134 GB, free: 12.44 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01324/0.8122, allocations: 6.032 MB / 1.14 GB, free: 6.348 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004211/0.8126, allocations: 456.2 kB / 1.141 GB, free: 5.898 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001645/0.8143, allocations: 0.6013 MB / 1.141 GB, free: 5.297 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01658/0.8309, allocations: 8.934 MB / 1.15 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/0.831, allocations: 15.88 kB / 1.15 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006726/0.8317, allocations: 268 kB / 1.15 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.8319, allocations: 179.9 kB / 1.15 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.8456, allocations: 7.41 MB / 1.158 GB, free: 4.168 MB / 0.9044 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.05188/0.8975, allocations: 36.22 MB / 1.193 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007859/0.9054, allocations: 4.338 MB / 1.197 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001421/0.9069, allocations: 0.9817 MB / 1.198 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004778/0.9117, allocations: 2.39 MB / 1.201 GB, free: 5.961 MB / 0.9512 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003154/0.9149, allocations: 471.4 kB / 1.201 GB, free: 5.496 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=317): time 1.025e-05/0.9149, allocations: 0 / 1.201 GB, free: 5.496 MB / 0.9512 GB Notification: Performance of matching and sorting (n=317): time 0.01418/0.9291, allocations: 7.153 MB / 1.208 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.9292, allocations: 81.91 kB / 1.208 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009666/0.9388, allocations: 5.846 MB / 1.214 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0006566/0.9395, allocations: 85.7 kB / 1.214 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.00319/0.9427, allocations: 3.192 MB / 1.217 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.001492/0.9442, allocations: 1.121 MB / 1.218 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002729/0.9445, allocations: 88 kB / 1.218 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0003513/0.9449, allocations: 495.6 kB / 1.219 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0034/0.9483, allocations: 2.163 MB / 1.221 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004501/0.9528, allocations: 3.674 MB / 1.224 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00453/0.9573, allocations: 2.923 MB / 1.227 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.912e-05/0.9574, allocations: 16 kB / 1.227 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01136/0.9688, allocations: 6.772 MB / 1.234 GB, free: 2.973 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.806e-05/0.9688, allocations: 57.69 kB / 1.234 GB, free: 2.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.655e-05/0.9689, allocations: 48 kB / 1.234 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.9699, allocations: 437.4 kB / 1.234 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004144/0.9741, allocations: 1.057 MB / 1.235 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005613/0.9797, allocations: 5.329 MB / 1.241 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005168/0.9849, allocations: 478.6 kB / 1.241 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005409/0.9855, allocations: 224 kB / 1.241 GB, free: 11.08 MB / 0.9981 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004339/0.9898, allocations: 2.479 MB / 1.244 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/0.9912, allocations: 0.5327 MB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008577/0.9997, allocations: 5.282 MB / 1.249 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.078e-05/0.9998, allocations: 39.94 kB / 1.249 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.9998, allocations: 7.953 kB / 1.249 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.956/1.956, allocations: 4.551 MB / 1.254 GB, free: 209 MB / 0.9982 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 postOpt removeSimpleEquations (simulation): time 0.0278/1.984, allocations: 12.16 MB / 1.266 GB, free: 204.6 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/1.984, allocations: 1.609 kB / 1.266 GB, free: 204.6 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002985/1.987, allocations: 0.6224 MB / 1.266 GB, free: 204.5 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009093/1.988, allocations: 368.1 kB / 1.267 GB, free: 204.4 MB / 0.9982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003915/1.988, allocations: 82.55 kB / 1.267 GB, free: 204.4 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004749/1.993, allocations: 5.246 MB / 1.272 GB, free: 200.6 MB / 0.9982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/1.993, allocations: 5.062 kB / 1.272 GB, free: 200.6 MB / 0.9982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01211/2.005, allocations: 7.771 MB / 1.279 GB, free: 197.7 MB / 0.9982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003922/2.009, allocations: 1.307 MB / 1.281 GB, free: 197.1 MB / 0.9982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001337/2.01, allocations: 63.88 kB / 1.281 GB, free: 197.1 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004198/2.015, allocations: 441.2 kB / 1.281 GB, free: 197 MB / 0.9982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005488/2.015, allocations: 200 kB / 1.281 GB, free: 197 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003541/2.015, allocations: 137.5 kB / 1.282 GB, free: 197 MB / 0.9982 GB Notification: Performance of sorting global known variables: time 0.005691/2.021, allocations: 4.097 MB / 1.286 GB, free: 195.6 MB / 0.9982 GB Notification: Performance of sort global known variables: time 5.01e-07/2.021, allocations: 0 / 1.286 GB, free: 195.6 MB / 0.9982 GB Notification: Performance of remove unused functions: time 0.00589/2.027, allocations: 2.005 MB / 1.288 GB, free: 195.3 MB / 0.9982 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001219/2.028, allocations: 495.7 kB / 1.288 GB, free: 195.2 MB / 0.9982 GB Notification: Performance of simCode: created initialization part: time 0.00693/2.035, allocations: 5.394 MB / 1.293 GB, free: 192.6 MB / 0.9982 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/2.035, allocations: 3.5 kB / 1.293 GB, free: 192.6 MB / 0.9982 GB Notification: Performance of simCode: created simulation system equations: time 0.002993/2.038, allocations: 2.525 MB / 1.296 GB, free: 191.3 MB / 0.9982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01418/2.053, allocations: 3.163 MB / 1.299 GB, free: 189 MB / 0.9982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/2.071, allocations: 16.13 MB / 1.315 GB, free: 172.9 MB / 0.9982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003441/2.075, allocations: 4.747 MB / 1.319 GB, free: 168.1 MB / 0.9982 GB Notification: Performance of simCode: alias equations: time 0.005944/2.081, allocations: 2.064 MB / 1.321 GB, free: 166.1 MB / 0.9982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001331/2.082, allocations: 463.2 kB / 1.322 GB, free: 165.6 MB / 0.9982 GB Notification: Performance of SimCode: time 7.82e-07/2.082, allocations: 3.938 kB / 1.322 GB, free: 165.6 MB / 0.9982 GB Notification: Performance of Templates: time 0.1354/2.217, allocations: 113.7 MB / 1.433 GB, free: 53.07 MB / 0.9982 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","../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches