Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.364/2.364, allocations: 387.1 MB / 399.7 MB, free: 9.555 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.001716/0.001716, allocations: 182.4 kB / 492.3 MB, free: 0.6211 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.701/1.701, allocations: 221.3 MB / 0.7872 GB, free: 12.98 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.0009898/0.0009898, allocations: 95.08 kB / 0.9267 GB, free: 14.05 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.571e-05/4.574e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3618, allocations: 142.3 MB / 1.212 GB, free: 38.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.41/1.772, allocations: 435.5 MB / 1.638 GB, free: 11.37 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/1.772, allocations: 91.2 kB / 1.638 GB, free: 11.33 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.733/4.505, allocations: 0.563 GB / 2.201 GB, free: 237.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.994e-06/4.505, allocations: 0.6562 kB / 2.201 GB, free: 237.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002489/4.506, allocations: 47.25 kB / 2.201 GB, free: 237.4 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: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.006964/4.513, allocations: 1.978 MB / 2.203 GB, free: 236.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/4.513, allocations: 11.69 kB / 2.203 GB, free: 236.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005589/4.518, allocations: 0.6841 MB / 2.203 GB, free: 236.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005467/4.524, allocations: 1.872 MB / 2.205 GB, free: 236.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/4.524, allocations: 140.5 kB / 2.205 GB, free: 236.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003346/4.524, allocations: 132 kB / 2.206 GB, free: 236.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003382/4.528, allocations: 1.64 MB / 2.207 GB, free: 236.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.867e-05/4.528, allocations: 10.31 kB / 2.207 GB, free: 236.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001757/4.528, allocations: 60.16 kB / 2.207 GB, free: 236.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001057/4.528, allocations: 56.59 kB / 2.207 GB, free: 236.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/4.531, allocations: 1.237 MB / 2.208 GB, free: 236.1 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.01292/4.544, allocations: 7.382 MB / 2.216 GB, free: 233.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/4.545, allocations: 0.6884 MB / 2.216 GB, free: 233.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006805/4.546, allocations: 411 kB / 2.217 GB, free: 233.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001209/4.547, allocations: 1.277 MB / 2.218 GB, free: 231.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.506e-05/4.547, allocations: 43.78 kB / 2.218 GB, free: 231.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=77): time 2.675e-06/4.547, allocations: 0 / 2.218 GB, free: 231.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=77): time 0.003955/4.551, allocations: 1.011 MB / 2.219 GB, free: 231.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.391e-05/4.551, allocations: 195.2 kB / 2.219 GB, free: 231.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002656/4.554, allocations: 1.285 MB / 2.22 GB, free: 231.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002029/4.554, allocations: 49.56 kB / 2.22 GB, free: 231.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008046/4.555, allocations: 0.7698 MB / 2.221 GB, free: 230.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003478/4.555, allocations: 263.5 kB / 2.221 GB, free: 230.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.95e-05/4.555, allocations: 18.84 kB / 2.222 GB, free: 230.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001375/4.555, allocations: 341.9 kB / 2.222 GB, free: 230.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007976/4.556, allocations: 369.1 kB / 2.222 GB, free: 230.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/4.557, allocations: 0.6709 MB / 2.223 GB, free: 230.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008823/4.558, allocations: 420.8 kB / 2.223 GB, free: 230.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/4.558, allocations: 2.531 kB / 2.223 GB, free: 230.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.004278/4.563, allocations: 1.332 MB / 2.225 GB, free: 230 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006321/4.563, allocations: 2.505 MB / 2.227 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/4.563, allocations: 9.594 kB / 2.227 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/4.565, allocations: 422.8 kB / 2.227 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/4.566, allocations: 271.4 kB / 2.228 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/4.567, allocations: 0.9113 MB / 2.229 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003047/4.57, allocations: 297.2 kB / 2.229 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001791/4.571, allocations: 57.55 kB / 2.229 GB, free: 226.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/4.571, allocations: 3.375 kB / 2.229 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003853/4.574, allocations: 1.162 MB / 2.23 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/4.574, allocations: 11.11 kB / 2.23 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/4.576, allocations: 420.6 kB / 2.23 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/4.577, allocations: 270.8 kB / 2.231 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/4.578, allocations: 0.9061 MB / 2.232 GB, free: 226.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002822/4.581, allocations: 262.3 kB / 2.232 GB, free: 226.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002013/4.582, allocations: 57.17 kB / 2.232 GB, free: 226.2 MB / 1.151 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.0005028/4.582, allocations: 176.1 kB / 2.232 GB, free: 226 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006936/4.583, allocations: 156.2 kB / 2.232 GB, free: 226 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004183/4.587, allocations: 1.115 MB / 2.233 GB, free: 225.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/4.587, allocations: 10.56 kB / 2.233 GB, free: 225.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/4.587, allocations: 0 / 2.233 GB, free: 225.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003041/4.59, allocations: 0.966 MB / 2.234 GB, free: 225.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008475/4.599, allocations: 3.014 MB / 2.237 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/4.599, allocations: 3.406 kB / 2.237 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009784/4.6, allocations: 178.7 kB / 2.237 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/4.601, allocations: 412.6 kB / 2.238 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.998e-05/4.601, allocations: 29.45 kB / 2.238 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008689/4.602, allocations: 0.9024 MB / 2.239 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.401e-06/4.602, allocations: 6.219 kB / 2.239 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0102/4.612, allocations: 2.428 MB / 2.241 GB, free: 224 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/4.613, allocations: 425.3 kB / 2.241 GB, free: 223.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007529/4.614, allocations: 24.81 kB / 2.241 GB, free: 223.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/4.617, allocations: 168.6 kB / 2.242 GB, free: 223.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/4.617, allocations: 89.23 kB / 2.242 GB, free: 223.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/4.617, allocations: 49.44 kB / 2.242 GB, free: 223.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002071/4.619, allocations: 1.013 MB / 2.243 GB, free: 223.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.9e-07/4.619, allocations: 0 / 2.243 GB, free: 223.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005455/4.624, allocations: 1.033 MB / 2.244 GB, free: 223.6 MB / 1.151 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.00292/4.627, allocations: 0.9032 MB / 2.245 GB, free: 223.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003955/4.631, allocations: 1.522 MB / 2.246 GB, free: 223.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/4.631, allocations: 5.609 kB / 2.246 GB, free: 223.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001094/4.633, allocations: 496.5 kB / 2.247 GB, free: 223.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00502/4.638, allocations: 0.7937 MB / 2.247 GB, free: 223.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006819/4.644, allocations: 2.139 MB / 2.249 GB, free: 222.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001593/4.646, allocations: 1.301 MB / 2.251 GB, free: 221.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003991/4.65, allocations: 488.1 kB / 2.251 GB, free: 221.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005537/4.651, allocations: 116 kB / 2.251 GB, free: 221.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.493e-06/4.651, allocations: 3.375 kB / 2.251 GB, free: 221.9 MB / 1.151 GB Notification: Performance of Templates: time 0.07368/4.724, allocations: 44.73 MB / 2.295 GB, free: 220.8 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_TemperatureProtection.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_TemperatureProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches