Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.243/2.243, allocations: 390.3 MB / 402.8 MB, free: 6.672 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 176.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.779/1.779, allocations: 221.3 MB / 0.7915 GB, free: 5.457 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 87.95 kB / 0.9317 GB, free: 5.773 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.198e-05/3.219e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3437, allocations: 143 MB / 1.219 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.407/1.751, allocations: 426.4 MB / 1.635 GB, free: 8.098 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/1.752, allocations: 87.95 kB / 1.635 GB, free: 8.012 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 4.334/6.085, allocations: 0.9991 GB / 2.634 GB, free: 255.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.716e-06/6.085, allocations: 0 / 2.634 GB, free: 255.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003202/6.086, allocations: 91.22 kB / 2.634 GB, free: 255.1 MB / 1.151 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.007108/6.093, allocations: 2.684 MB / 2.637 GB, free: 254.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/6.093, allocations: 14 kB / 2.637 GB, free: 254.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001515/6.094, allocations: 356.5 kB / 2.637 GB, free: 254 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006277/6.101, allocations: 3.107 MB / 2.64 GB, free: 253.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/6.101, allocations: 178.3 kB / 2.641 GB, free: 253.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003638/6.101, allocations: 240.5 kB / 2.641 GB, free: 253.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004964/6.106, allocations: 2.987 MB / 2.644 GB, free: 253.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.476e-05/6.106, allocations: 10.59 kB / 2.644 GB, free: 253.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002349/6.106, allocations: 97.06 kB / 2.644 GB, free: 253.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-05/6.106, allocations: 69.36 kB / 2.644 GB, free: 253.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003531/6.11, allocations: 2.338 MB / 2.646 GB, free: 253.2 MB / 1.151 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.0162/6.126, allocations: 12.99 MB / 2.659 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/6.129, allocations: 1.621 MB / 2.66 GB, free: 246.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/6.13, allocations: 1.135 MB / 2.662 GB, free: 246.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006292/6.13, allocations: 0.7073 MB / 2.662 GB, free: 246 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/6.131, allocations: 52.12 kB / 2.662 GB, free: 246 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001805/6.132, allocations: 227.9 kB / 2.663 GB, free: 245.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=126): time 5.721e-06/6.132, allocations: 0 / 2.663 GB, free: 245.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=126): time 0.002518/6.135, allocations: 1.699 MB / 2.664 GB, free: 245.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/6.135, allocations: 141.1 kB / 2.664 GB, free: 245.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002379/6.137, allocations: 1.888 MB / 2.666 GB, free: 245.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001379/6.137, allocations: 55.11 kB / 2.666 GB, free: 245.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.00106/6.139, allocations: 1.27 MB / 2.667 GB, free: 244.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003829/6.139, allocations: 447.7 kB / 2.668 GB, free: 244.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.14e-05/6.139, allocations: 36.44 kB / 2.668 GB, free: 244.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001123/6.139, allocations: 373.1 kB / 2.668 GB, free: 244.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009199/6.14, allocations: 0.6938 MB / 2.669 GB, free: 244.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001176/6.141, allocations: 1.22 MB / 2.67 GB, free: 243.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/6.142, allocations: 0.9202 MB / 2.671 GB, free: 243.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/6.142, allocations: 7.859 kB / 2.671 GB, free: 243.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003366/6.146, allocations: 2.323 MB / 2.673 GB, free: 243.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001341/6.147, allocations: 5.718 MB / 2.679 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.358e-05/6.147, allocations: 14 kB / 2.679 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001776/6.149, allocations: 479.2 kB / 2.679 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/6.15, allocations: 352.2 kB / 2.68 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002957/6.153, allocations: 3.097 MB / 2.683 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/6.156, allocations: 234.6 kB / 2.683 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/6.156, allocations: 82.73 kB / 2.683 GB, free: 235.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/6.156, allocations: 3.844 kB / 2.683 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003091/6.159, allocations: 2.101 MB / 2.685 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/6.159, allocations: 15.16 kB / 2.685 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005303/6.16, allocations: 236.8 kB / 2.685 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/6.161, allocations: 372.6 kB / 2.686 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003401/6.164, allocations: 4.154 MB / 2.69 GB, free: 232.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002497/6.167, allocations: 216.3 kB / 2.69 GB, free: 232.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/6.167, allocations: 85.53 kB / 2.69 GB, free: 232.7 MB / 1.151 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.0005083/6.168, allocations: 208.1 kB / 2.69 GB, free: 232.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003986/6.168, allocations: 209.6 kB / 2.69 GB, free: 232.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003301/6.171, allocations: 1.99 MB / 2.692 GB, free: 232.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/6.171, allocations: 12.62 kB / 2.692 GB, free: 232.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/6.171, allocations: 7.297 kB / 2.692 GB, free: 232.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002163/6.173, allocations: 1.586 MB / 2.694 GB, free: 232.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007585/6.181, allocations: 4.604 MB / 2.698 GB, free: 231.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/6.181, allocations: 0 / 2.698 GB, free: 231.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008493/6.182, allocations: 214.4 kB / 2.699 GB, free: 231.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/6.184, allocations: 430.1 kB / 2.699 GB, free: 231.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.655e-05/6.184, allocations: 41.61 kB / 2.699 GB, free: 231.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002467/6.186, allocations: 3.002 MB / 2.702 GB, free: 229.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/6.186, allocations: 3.953 kB / 2.702 GB, free: 229.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004141/6.19, allocations: 2.93 MB / 2.705 GB, free: 229.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/6.192, allocations: 0.5268 MB / 2.705 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006878/6.193, allocations: 31.06 kB / 2.705 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00213/6.195, allocations: 192 kB / 2.706 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/6.195, allocations: 98.03 kB / 2.706 GB, free: 229.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001627/6.195, allocations: 56.67 kB / 2.706 GB, free: 229.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002816/6.198, allocations: 1.453 MB / 2.707 GB, free: 229.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.01e-07/6.198, allocations: 3.938 kB / 2.707 GB, free: 229.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00731/6.205, allocations: 1.529 MB / 2.709 GB, free: 228.9 MB / 1.151 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.001828/6.207, allocations: 0.5597 MB / 2.709 GB, free: 228.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.006057/6.213, allocations: 3.314 MB / 2.712 GB, free: 228.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.066e-06/6.213, allocations: 5.266 kB / 2.713 GB, free: 228.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001477/6.215, allocations: 0.9687 MB / 2.713 GB, free: 228.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006854/6.222, allocations: 1.135 MB / 2.715 GB, free: 228.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/6.232, allocations: 4.307 MB / 2.719 GB, free: 226.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002995/6.235, allocations: 2.218 MB / 2.721 GB, free: 225.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.005992/6.241, allocations: 1.416 MB / 2.722 GB, free: 225.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006435/6.242, allocations: 147.9 kB / 2.722 GB, free: 225.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.994e-06/6.242, allocations: 0 / 2.722 GB, free: 225.9 MB / 1.151 GB Notification: Performance of Templates: time 0.09338/6.335, allocations: 51.3 MB / 2.773 GB, free: 212 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.csv","../files/Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches