Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tan.vol.1..T|tan.vol.3..T|tan.vol.5..T|senTem.T|yBot.u|yMid.u|yTop.u|yHea.u",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tan.vol.1..T|tan.vol.3..T|tan.vol.5..T|senTem.T|yBot.u|yMid.u|yTop.u|yHea.u",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.399/1.399, allocations: 249.3 MB / 261.8 MB, free: 5.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 176.8 kB / 321.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.2 MB / 0.572 GB, free: 10.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009108/0.0009109, allocations: 86.53 kB / 0.6764 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.022e-05/4.037e-05, allocations: 4 kB / 0.7879 GB, free: 97.13 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2613, allocations: 106.3 MB / 0.8918 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.814/2.075, allocations: 419.7 MB / 1.302 GB, free: 259.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/2.076, allocations: 88.33 kB / 1.302 GB, free: 259.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.308/5.384, allocations: 0.9456 GB / 2.247 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.583e-06/5.384, allocations: 0 / 2.247 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0005844/5.384, allocations: 75.92 kB / 2.247 GB, free: 15.3 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.01028/5.395, allocations: 2.679 MB / 2.25 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/5.395, allocations: 8.031 kB / 2.25 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002731/5.398, allocations: 352 kB / 2.25 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/5.408, allocations: 3.017 MB / 2.253 GB, free: 9.141 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/5.408, allocations: 176.6 kB / 2.254 GB, free: 8.965 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001471/5.41, allocations: 239.9 kB / 2.254 GB, free: 8.73 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009439/5.419, allocations: 2.965 MB / 2.257 GB, free: 5.625 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.798e-05/5.419, allocations: 3.938 kB / 2.257 GB, free: 5.621 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003651/5.42, allocations: 100 kB / 2.257 GB, free: 5.523 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.961e-05/5.42, allocations: 67.98 kB / 2.257 GB, free: 5.457 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004624/5.424, allocations: 2.336 MB / 2.259 GB, free: 3.105 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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.6952/6.12, allocations: 12.94 MB / 2.272 GB, free: 177.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003037/6.123, allocations: 1.627 MB / 2.273 GB, free: 177.5 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001562/6.124, allocations: 1.112 MB / 2.274 GB, free: 177.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007623/6.125, allocations: 0.7109 MB / 2.275 GB, free: 176.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/6.125, allocations: 55.77 kB / 2.275 GB, free: 176.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002263/6.127, allocations: 230.4 kB / 2.275 GB, free: 176.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=126): time 5.821e-06/6.127, allocations: 2.156 kB / 2.275 GB, free: 176.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=126): time 0.003411/6.131, allocations: 1.685 MB / 2.277 GB, free: 176.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.896e-05/6.131, allocations: 144.5 kB / 2.277 GB, free: 176.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/6.135, allocations: 1.853 MB / 2.279 GB, free: 176.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002751/6.135, allocations: 55.67 kB / 2.279 GB, free: 176.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001656/6.137, allocations: 1.25 MB / 2.28 GB, free: 175.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005636/6.137, allocations: 447 kB / 2.281 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.98e-05/6.138, allocations: 34.38 kB / 2.281 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001409/6.138, allocations: 378.1 kB / 2.281 GB, free: 175.1 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001357/6.139, allocations: 0.6909 MB / 2.282 GB, free: 175.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001772/6.141, allocations: 1.214 MB / 2.283 GB, free: 174.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/6.143, allocations: 0.9256 MB / 2.284 GB, free: 174.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/6.143, allocations: 6.656 kB / 2.284 GB, free: 174.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.005504/6.148, allocations: 2.317 MB / 2.286 GB, free: 174.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.002195/6.15, allocations: 5.701 MB / 2.292 GB, free: 168.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.844e-05/6.15, allocations: 14 kB / 2.292 GB, free: 168.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002381/6.153, allocations: 470 kB / 2.292 GB, free: 168.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001904/6.155, allocations: 353.3 kB / 2.292 GB, free: 168.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/6.159, allocations: 3.083 MB / 2.295 GB, free: 166.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003978/6.163, allocations: 234.2 kB / 2.296 GB, free: 166.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006038/6.164, allocations: 82.88 kB / 2.296 GB, free: 166.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/6.164, allocations: 7.625 kB / 2.296 GB, free: 166.5 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005777/6.17, allocations: 2.097 MB / 2.298 GB, free: 166.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.509e-05/6.17, allocations: 14.97 kB / 2.298 GB, free: 166.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008133/6.171, allocations: 241.6 kB / 2.298 GB, free: 166.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/6.172, allocations: 376.6 kB / 2.298 GB, free: 166.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005008/6.177, allocations: 4.148 MB / 2.302 GB, free: 163.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003342/6.181, allocations: 217 kB / 2.303 GB, free: 163.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005463/6.181, allocations: 82.66 kB / 2.303 GB, free: 163.7 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,nor.y,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0009535/6.182, allocations: 212.6 kB / 2.303 GB, free: 163.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/6.184, allocations: 203.3 kB / 2.303 GB, free: 163.5 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005472/6.189, allocations: 1.99 MB / 2.305 GB, free: 163.4 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.941e-05/6.189, allocations: 13.31 kB / 2.305 GB, free: 163.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.602e-05/6.189, allocations: 2.188 kB / 2.305 GB, free: 163.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00321/6.192, allocations: 1.586 MB / 2.307 GB, free: 163.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/6.206, allocations: 4.568 MB / 2.311 GB, free: 162.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/6.206, allocations: 0.7812 kB / 2.311 GB, free: 162.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/6.207, allocations: 210.8 kB / 2.311 GB, free: 162.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001816/6.209, allocations: 411.3 kB / 2.312 GB, free: 162.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/6.209, allocations: 33.84 kB / 2.312 GB, free: 162.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003222/6.212, allocations: 2.997 MB / 2.315 GB, free: 160.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/6.212, allocations: 5.266 kB / 2.315 GB, free: 160.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005834/6.218, allocations: 2.915 MB / 2.318 GB, free: 160.5 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00238/6.221, allocations: 0.5119 MB / 2.318 GB, free: 160.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001055/6.222, allocations: 31.41 kB / 2.318 GB, free: 160.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002817/6.225, allocations: 192.9 kB / 2.318 GB, free: 160.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/6.225, allocations: 101.3 kB / 2.318 GB, free: 160.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002013/6.225, allocations: 53.91 kB / 2.318 GB, free: 160.3 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.003655/6.229, allocations: 1.431 MB / 2.32 GB, free: 160.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3e-07/6.229, allocations: 0 / 2.32 GB, free: 160.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.008131/6.237, allocations: 1.521 MB / 2.321 GB, free: 160 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (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) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,nor.y,onOffHea.y) * Number of discrete states: 3 (onOffBot.y,onOffMid.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.001867/6.239, allocations: 0.5638 MB / 2.322 GB, free: 159.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.007001/6.246, allocations: 3.308 MB / 2.325 GB, free: 159.5 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/6.246, allocations: 6.156 kB / 2.325 GB, free: 159.5 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001799/6.248, allocations: 0.9672 MB / 2.326 GB, free: 159.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007232/6.255, allocations: 1.128 MB / 2.327 GB, free: 159.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/6.268, allocations: 4.277 MB / 2.331 GB, free: 158.5 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003012/6.271, allocations: 2.205 MB / 2.333 GB, free: 157.7 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.005946/6.277, allocations: 1.37 MB / 2.335 GB, free: 157.7 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008268/6.278, allocations: 143.1 kB / 2.335 GB, free: 157.7 MB / 0.8855 GB Notification: Performance of SimCode: time 1.092e-06/6.278, allocations: 0 / 2.335 GB, free: 157.7 MB / 0.8855 GB Notification: Performance of Templates: time 0.08931/6.367, allocations: 50.89 MB / 2.385 GB, free: 155.7 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches