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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.975/1.975, allocations: 390.4 MB / 397.7 MB, free: 11.21 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.00104/0.00104, allocations: 175.7 kB / 490.8 MB, free: 1.91 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.0009339/0.000934, allocations: 84.73 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.648e-06/9.668e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.277, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/1.295, allocations: 425.7 MB / 1.627 GB, free: 5.922 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/1.295, allocations: 83.89 kB / 1.627 GB, free: 5.883 MB / 1.042 GB Notification: Performance of FrontEnd: time 3.232/4.527, allocations: 0.9994 GB / 2.627 GB, free: 12.35 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0003566/4.527, allocations: 83.86 kB / 2.627 GB, free: 12.27 MB / 1.182 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.007459/4.535, allocations: 2.676 MB / 2.629 GB, free: 9.531 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/4.535, allocations: 15.91 kB / 2.629 GB, free: 9.516 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/4.537, allocations: 359.9 kB / 2.63 GB, free: 9.16 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00752/4.544, allocations: 3.15 MB / 2.633 GB, free: 5.957 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.609e-05/4.544, allocations: 75.98 kB / 2.633 GB, free: 5.883 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004676/4.545, allocations: 144 kB / 2.633 GB, free: 5.742 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004325/4.549, allocations: 2.262 MB / 2.635 GB, free: 3.473 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004649/4.554, allocations: 2.699 MB / 2.638 GB, free: 0.6406 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.698e-05/4.554, allocations: 11.84 kB / 2.638 GB, free: 0.6289 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/4.554, allocations: 7.984 kB / 2.638 GB, free: 0.6211 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-05/4.554, allocations: 68 kB / 2.638 GB, free: 0.5547 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5531/5.107, allocations: 12.95 MB / 2.651 GB, free: 411.8 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002098/5.109, allocations: 1.509 MB / 2.652 GB, free: 411.7 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/5.111, allocations: 1.124 MB / 2.653 GB, free: 411.7 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008215/5.112, allocations: 0.7091 MB / 2.654 GB, free: 410.9 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.566e-05/5.112, allocations: 55.88 kB / 2.654 GB, free: 410.9 MB / 1.182 GB Notification: Performance of pre-optimization done (n=126): time 5.18e-06/5.112, allocations: 0 / 2.654 GB, free: 410.9 MB / 1.182 GB Notification: Performance of matching and sorting (n=126): time 0.004028/5.116, allocations: 1.681 MB / 2.656 GB, free: 410.7 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.029e-05/5.116, allocations: 144.3 kB / 2.656 GB, free: 410.6 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003186/5.119, allocations: 1.793 MB / 2.657 GB, free: 410.3 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0002585/5.119, allocations: 29.55 kB / 2.657 GB, free: 410.3 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009913/5.12, allocations: 0.938 MB / 2.658 GB, free: 409.9 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.000538/5.121, allocations: 431.3 kB / 2.659 GB, free: 409.7 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.465e-05/5.121, allocations: 2.656 kB / 2.659 GB, free: 409.7 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0001084/5.121, allocations: 371.8 kB / 2.659 GB, free: 409.4 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008808/5.122, allocations: 0.6793 MB / 2.66 GB, free: 409.4 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/5.123, allocations: 1.196 MB / 2.661 GB, free: 408.8 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/5.125, allocations: 0.958 MB / 2.662 GB, free: 408.8 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/5.125, allocations: 6.844 kB / 2.662 GB, free: 408.8 MB / 1.182 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003751/5.128, allocations: 2.222 MB / 2.664 GB, free: 408.6 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.001225/5.13, allocations: 5.689 MB / 2.67 GB, free: 402.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.172e-05/5.13, allocations: 19.44 kB / 2.67 GB, free: 402.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/5.132, allocations: 441.6 kB / 2.67 GB, free: 402.6 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/5.133, allocations: 352.4 kB / 2.67 GB, free: 402.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003357/5.137, allocations: 2.951 MB / 2.673 GB, free: 400.8 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002975/5.139, allocations: 274.5 kB / 2.674 GB, free: 400.8 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000191/5.14, allocations: 83.2 kB / 2.674 GB, free: 400.8 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 9.178e-06/5.14, allocations: 3.656 kB / 2.674 GB, free: 400.8 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00366/5.143, allocations: 1.972 MB / 2.676 GB, free: 400.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/5.143, allocations: 11.81 kB / 2.676 GB, free: 400.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000614/5.144, allocations: 210.6 kB / 2.676 GB, free: 400.7 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/5.146, allocations: 373.1 kB / 2.676 GB, free: 400.7 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003146/5.149, allocations: 3.682 MB / 2.68 GB, free: 398.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002568/5.151, allocations: 241 kB / 2.68 GB, free: 398.1 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/5.152, allocations: 81.27 kB / 2.68 GB, free: 398.1 MB / 1.182 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 (182): * Single equations (assignments): 180 * 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 19} Notification: Performance of prepare postOptimizeDAE: time 0.0005272/5.152, allocations: 152 kB / 2.68 GB, free: 398 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004823/5.153, allocations: 207.1 kB / 2.68 GB, free: 397.9 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003389/5.156, allocations: 1.961 MB / 2.682 GB, free: 397.8 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/5.156, allocations: 14.53 kB / 2.682 GB, free: 397.8 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/5.156, allocations: 3.906 kB / 2.682 GB, free: 397.8 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002065/5.158, allocations: 1.554 MB / 2.684 GB, free: 397.7 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007633/5.166, allocations: 4.268 MB / 2.688 GB, free: 397.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.902e-06/5.166, allocations: 0 / 2.688 GB, free: 397.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/5.167, allocations: 216.1 kB / 2.688 GB, free: 397.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/5.168, allocations: 409.5 kB / 2.689 GB, free: 397.2 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-05/5.168, allocations: 20.78 kB / 2.689 GB, free: 397.2 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002476/5.171, allocations: 2.906 MB / 2.691 GB, free: 395.4 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/5.171, allocations: 2.156 kB / 2.691 GB, free: 395.4 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004097/5.175, allocations: 2.965 MB / 2.694 GB, free: 394.9 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/5.177, allocations: 0.533 MB / 2.695 GB, free: 394.7 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003567/5.177, allocations: 17.73 kB / 2.695 GB, free: 394.7 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/5.178, allocations: 159.6 kB / 2.695 GB, free: 394.7 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/5.179, allocations: 88.97 kB / 2.695 GB, free: 394.7 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/5.179, allocations: 58.17 kB / 2.695 GB, free: 394.7 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.001841/5.181, allocations: 1.361 MB / 2.697 GB, free: 394.6 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.004826/5.185, allocations: 1.449 MB / 2.698 GB, free: 394.5 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (onOffMid.y,onOffBot.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * 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 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001235/5.187, allocations: 0.5605 MB / 2.698 GB, free: 394.4 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.004604/5.191, allocations: 3.136 MB / 2.702 GB, free: 394 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/5.191, allocations: 3.938 kB / 2.702 GB, free: 394 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.00119/5.193, allocations: 0.9283 MB / 2.702 GB, free: 393.9 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005423/5.198, allocations: 1.021 MB / 2.703 GB, free: 393.9 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008817/5.207, allocations: 4.351 MB / 2.708 GB, free: 393 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00211/5.209, allocations: 2.391 MB / 2.71 GB, free: 392.3 MB / 1.182 GB Notification: Performance of SimCode: time 1.372e-06/5.209, allocations: 0 / 2.71 GB, free: 392.3 MB / 1.182 GB Notification: Performance of Templates: time 0.07909/5.288, allocations: 52.44 MB / 2.761 GB, free: 391.3 MB / 1.182 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