Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.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.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.errNegTemDif|heaPum.errHigPre|heaPum.errLowPre|heaPum.com.isOn|heaPum.TEvaMin|heaPum.eva.vol.T|heaPum.con.T|heaPum.TConMax|heaPum.QCon_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection") translateModel(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.errNegTemDif|heaPum.errHigPre|heaPum.errLowPre|heaPum.com.isOn|heaPum.TEvaMin|heaPum.eva.vol.T|heaPum.con.T|heaPum.TConMax|heaPum.QCon_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection") [: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.951/1.951, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001229/0.001229, allocations: 183 kB / 490.8 MB, free: 1.945 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.385/1.385, allocations: 221.3 MB / 0.7863 GB, free: 13.72 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.0009276/0.0009276, allocations: 88.44 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.227e-06/9.247e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3196, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.148/1.468, allocations: 435.6 MB / 1.637 GB, free: 12.2 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/1.468, allocations: 95.69 kB / 1.637 GB, free: 12.15 MB / 1.057 GB Notification: Performance of FrontEnd: time 2.489/3.957, allocations: 0.5632 GB / 2.2 GB, free: 203.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001726/3.957, allocations: 45.33 kB / 2.2 GB, free: 203.8 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.00441/3.962, allocations: 2.004 MB / 2.202 GB, free: 203.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/3.962, allocations: 7.281 kB / 2.202 GB, free: 203.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00524/3.967, allocations: 0.7272 MB / 2.203 GB, free: 203.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003949/3.971, allocations: 1.882 MB / 2.205 GB, free: 202.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/3.971, allocations: 94.53 kB / 2.205 GB, free: 202.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/3.971, allocations: 79.5 kB / 2.205 GB, free: 202.8 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002149/3.974, allocations: 1.156 MB / 2.206 GB, free: 202.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002253/3.976, allocations: 1.45 MB / 2.208 GB, free: 202.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/3.976, allocations: 3.75 kB / 2.208 GB, free: 202.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/3.976, allocations: 3.5 kB / 2.208 GB, free: 202.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.043e-05/3.976, allocations: 53.11 kB / 2.208 GB, free: 202.5 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/3.987, allocations: 7.647 MB / 2.215 GB, free: 199.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009965/3.988, allocations: 0.6157 MB / 2.216 GB, free: 199.1 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005089/3.989, allocations: 383.5 kB / 2.216 GB, free: 199.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001078/3.99, allocations: 1.27 MB / 2.217 GB, free: 197.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/3.99, allocations: 45.91 kB / 2.217 GB, free: 197.7 MB / 1.167 GB Notification: Performance of pre-optimization done (n=77): time 3.296e-06/3.99, allocations: 3.594 kB / 2.217 GB, free: 197.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=77): time 0.004022/3.994, allocations: 0.9945 MB / 2.218 GB, free: 197.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.292e-05/3.994, allocations: 197.6 kB / 2.218 GB, free: 197.3 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/3.995, allocations: 1.033 MB / 2.219 GB, free: 197.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.00014/3.996, allocations: 32.08 kB / 2.219 GB, free: 197.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004401/3.996, allocations: 0.5581 MB / 2.22 GB, free: 196.9 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002471/3.996, allocations: 262.9 kB / 2.22 GB, free: 196.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.368e-05/3.996, allocations: 2.156 kB / 2.22 GB, free: 196.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.671e-05/3.996, allocations: 340.6 kB / 2.221 GB, free: 196.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005698/3.997, allocations: 354.7 kB / 2.221 GB, free: 196.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007764/3.998, allocations: 0.65 MB / 2.222 GB, free: 196.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/3.999, allocations: 461.2 kB / 2.222 GB, free: 196.1 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/3.999, allocations: 2.062 kB / 2.222 GB, free: 196.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.004406/4.004, allocations: 1.275 MB / 2.223 GB, free: 196 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005525/4.004, allocations: 2.468 MB / 2.226 GB, free: 193.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.118e-05/4.004, allocations: 9.406 kB / 2.226 GB, free: 193.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008575/4.005, allocations: 367.6 kB / 2.226 GB, free: 193.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/4.007, allocations: 272.2 kB / 2.226 GB, free: 193.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/4.008, allocations: 0.9706 MB / 2.227 GB, free: 192.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/4.011, allocations: 268.8 kB / 2.228 GB, free: 192.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/4.011, allocations: 59.75 kB / 2.228 GB, free: 192.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/4.011, allocations: 3.875 kB / 2.228 GB, free: 192.9 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004387/4.015, allocations: 1.106 MB / 2.229 GB, free: 192.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/4.015, allocations: 6.844 kB / 2.229 GB, free: 192.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007647/4.016, allocations: 366.4 kB / 2.229 GB, free: 192.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/4.018, allocations: 275.5 kB / 2.229 GB, free: 192.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/4.019, allocations: 0.9645 MB / 2.23 GB, free: 192.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002573/4.022, allocations: 224.6 kB / 2.23 GB, free: 192.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/4.022, allocations: 66.14 kB / 2.23 GB, free: 192.3 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.heaPum.com.isOn,heaPum.com.isOn,$PRE.heaPum.temPro.hysHig.y,heaPum.temPro.hysHig.y,$PRE.heaPum.temPro.hysLow.y,heaPum.temPro.hysLow.y,heaPum.temPro.on.y,$PRE.heaPum.temPro.hysdTConEva.y,heaPum.temPro.hysdTConEva.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 97 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 19} Notification: Performance of prepare postOptimizeDAE: time 0.0004592/4.022, allocations: 134.2 kB / 2.231 GB, free: 192.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006214/4.023, allocations: 135.3 kB / 2.231 GB, free: 192.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004638/4.027, allocations: 1.099 MB / 2.232 GB, free: 192 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/4.027, allocations: 7.75 kB / 2.232 GB, free: 192 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/4.027, allocations: 0 / 2.232 GB, free: 192 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003455/4.031, allocations: 0.9668 MB / 2.233 GB, free: 191.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008742/4.04, allocations: 2.808 MB / 2.236 GB, free: 191.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/4.04, allocations: 3.938 kB / 2.236 GB, free: 191.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/4.041, allocations: 180.6 kB / 2.236 GB, free: 191.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007643/4.042, allocations: 363.8 kB / 2.236 GB, free: 191.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-05/4.042, allocations: 19.19 kB / 2.236 GB, free: 191.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/4.043, allocations: 0.9525 MB / 2.237 GB, free: 190.9 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/4.043, allocations: 6.719 kB / 2.237 GB, free: 190.9 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01135/4.054, allocations: 2.392 MB / 2.239 GB, free: 190.3 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/4.056, allocations: 397.4 kB / 2.24 GB, free: 190.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006677/4.057, allocations: 14.69 kB / 2.24 GB, free: 190.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002426/4.059, allocations: 163.9 kB / 2.24 GB, free: 190.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/4.059, allocations: 70.34 kB / 2.24 GB, free: 190.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001985/4.059, allocations: 54.17 kB / 2.24 GB, free: 190.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001846/4.061, allocations: 0.7791 MB / 2.241 GB, free: 190 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00493/4.066, allocations: 1.023 MB / 2.242 GB, free: 189.9 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 5 (heaPum.com.isOn,heaPum.temPro.hysHig.y,heaPum.temPro.hysLow.y,heaPum.temPro.on.y,heaPum.temPro.hysdTConEva.y) * Number of discrete states: 4 (heaPum.temPro.hysLow.y,heaPum.temPro.hysHig.y,heaPum.temPro.hysdTConEva.y,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.002578/4.069, allocations: 0.9051 MB / 2.243 GB, free: 189.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003204/4.072, allocations: 1.449 MB / 2.244 GB, free: 189.7 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/4.072, allocations: 3.969 kB / 2.244 GB, free: 189.7 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0009533/4.073, allocations: 471 kB / 2.245 GB, free: 189.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/4.077, allocations: 0.5723 MB / 2.245 GB, free: 189.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/4.083, allocations: 2.176 MB / 2.247 GB, free: 189 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001744/4.085, allocations: 1.466 MB / 2.249 GB, free: 188.3 MB / 1.167 GB Notification: Performance of SimCode: time 1.012e-06/4.085, allocations: 0 / 2.249 GB, free: 188.3 MB / 1.167 GB Notification: Performance of Templates: time 0.05935/4.145, allocations: 42.32 MB / 2.29 GB, free: 187.6 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_TemperatureProtection.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches