Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QCon_flow|heaPum1.QCon_flow|appCap.y|heaPum.com.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic") translateModel(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QCon_flow|heaPum1.QCon_flow|appCap.y|heaPum.com.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 99.78 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.525/2.525, allocations: 436.5 MB / 0.7104 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003237, allocations: 8 kB / 0.8708 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5422/0.5425, allocations: 153.6 MB / 1.021 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic): time 0.1102/0.6527, allocations: 109.4 MB / 1.128 GB, free: 3.43 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.03088/0.6836, allocations: 21.4 MB / 1.149 GB, free: 14 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004801/0.6885, allocations: 115.2 kB / 1.149 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.005262/0.6938, allocations: 1.461 MB / 1.15 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.7064, allocations: 4.183 MB / 1.154 GB, free: 8.23 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.009038/0.7154, allocations: 3.131 MB / 1.157 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.009574/0.725, allocations: 5.071 MB / 1.162 GB, free: 68 kB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004811/0.7299, allocations: 2.278 MB / 1.164 GB, free: 13.74 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007478/0.7374, allocations: 2.425 MB / 1.167 GB, free: 11.31 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003423/0.7409, allocations: 1.579 MB / 1.168 GB, free: 9.723 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0009301/0.7418, allocations: 128 kB / 1.168 GB, free: 9.598 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005932/0.7478, allocations: 1.744 MB / 1.17 GB, free: 7.852 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001355/0.7491, allocations: 0.568 MB / 1.171 GB, free: 7.281 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001656/0.7508, allocations: 0.7266 MB / 1.171 GB, free: 6.547 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.007425/0.7583, allocations: 4.561 MB / 1.176 GB, free: 1.977 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.7583, allocations: 0 / 1.176 GB, free: 1.977 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.514e-06/0.7583, allocations: 0 / 1.176 GB, free: 1.977 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001696/0.7585, allocations: 0 / 1.176 GB, free: 1.977 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.007691/0.7662, allocations: 3.358 MB / 1.179 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.7662, allocations: 8.031 kB / 1.179 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01129/0.7775, allocations: 1.455 MB / 1.181 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0057/0.7833, allocations: 2.713 MB / 1.183 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003318/0.7836, allocations: 255.9 kB / 1.183 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006146/0.7843, allocations: 235.9 kB / 1.184 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008496/0.7928, allocations: 3.206 MB / 1.187 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.016e-05/0.7929, allocations: 7.938 kB / 1.187 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003653/0.7932, allocations: 104 kB / 1.187 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.749e-05/0.7933, allocations: 68 kB / 1.187 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009697/0.803, allocations: 2.881 MB / 1.19 GB, free: 3.293 MB / 0.9356 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02151/0.8246, allocations: 13.73 MB / 1.203 GB, free: 4.918 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004538/0.8292, allocations: 1.508 MB / 1.205 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001808/0.831, allocations: 1.785 MB / 1.206 GB, free: 1.234 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003867/0.8349, allocations: 1.2 MB / 1.208 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=126): time 5.811e-06/0.8349, allocations: 0 / 1.208 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of matching and sorting (n=130): time 0.05596/0.8909, allocations: 11.83 MB / 1.219 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002142/0.8911, allocations: 0.5766 MB / 1.22 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00405/0.8952, allocations: 2.69 MB / 1.222 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0003385/0.8955, allocations: 65.69 kB / 1.222 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.8968, allocations: 1.329 MB / 1.224 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005778/0.8974, allocations: 457.5 kB / 1.224 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.8975, allocations: 36 kB / 1.224 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.8977, allocations: 369.9 kB / 1.225 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003864/0.9016, allocations: 0.9954 MB / 1.225 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004306/0.9059, allocations: 1.585 MB / 1.227 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004003/0.9099, allocations: 1.124 MB / 1.228 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.9099, allocations: 7.938 kB / 1.228 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.02363/0.9336, allocations: 4.24 MB / 1.232 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.001881/0.9355, allocations: 5.245 MB / 1.237 GB, free: 420 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.9355, allocations: 12 kB / 1.237 GB, free: 408 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004009/0.9396, allocations: 1.164 MB / 1.239 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002668/0.9422, allocations: 471.2 kB / 1.239 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003935/0.9462, allocations: 2.387 MB / 1.241 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004762/0.951, allocations: 403.3 kB / 1.242 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000262/0.9512, allocations: 107.9 kB / 1.242 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.9513, allocations: 4 kB / 1.242 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02302/0.9743, allocations: 3.949 MB / 1.246 GB, free: 7.863 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/0.9744, allocations: 16 kB / 1.246 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00394/0.9783, allocations: 1.165 MB / 1.247 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/0.981, allocations: 463.2 kB / 1.247 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004042/0.9851, allocations: 2.39 MB / 1.25 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004316/0.9894, allocations: 373.7 kB / 1.25 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002637/0.9897, allocations: 103.9 kB / 1.25 GB, free: 3.32 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.com.isOn,$PRE.heaPum1.com.isOn,heaPum1.com.isOn,$PRE.N.T_start,N.T_start,$PRE.N.count,N.count,realToInteger.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 2 {4 25,4 27} Notification: Performance of prepare postOptimizeDAE: time 0.001407/0.9911, allocations: 0.7014 MB / 1.251 GB, free: 2.609 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005689/0.9917, allocations: 288.5 kB / 1.251 GB, free: 2.324 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4733/1.465, allocations: 3.034 MB / 1.254 GB, free: 219.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-05/1.465, allocations: 14.62 kB / 1.254 GB, free: 219.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/1.465, allocations: 4.281 kB / 1.254 GB, free: 219.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01538/1.48, allocations: 2.639 MB / 1.257 GB, free: 219.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02227/1.503, allocations: 7.041 MB / 1.263 GB, free: 216.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-05/1.503, allocations: 7.281 kB / 1.263 GB, free: 216.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/1.505, allocations: 280.2 kB / 1.264 GB, free: 216.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004068/1.509, allocations: 1.015 MB / 1.265 GB, free: 216.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/1.509, allocations: 54.28 kB / 1.265 GB, free: 216.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003484/1.512, allocations: 2.149 MB / 1.267 GB, free: 215 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/1.512, allocations: 12.38 kB / 1.267 GB, free: 215 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01919/1.532, allocations: 5.016 MB / 1.272 GB, free: 212.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001676/1.533, allocations: 0.6859 MB / 1.272 GB, free: 212.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/1.534, allocations: 37.34 kB / 1.272 GB, free: 212.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003269/1.537, allocations: 297.6 kB / 1.273 GB, free: 212.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/1.537, allocations: 110.7 kB / 1.273 GB, free: 212.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/1.538, allocations: 76.28 kB / 1.273 GB, free: 212.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003035/1.541, allocations: 1.891 MB / 1.275 GB, free: 211.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.3e-07/1.541, allocations: 3.938 kB / 1.275 GB, free: 211.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004248/1.545, allocations: 1.498 MB / 1.276 GB, free: 211.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 2 (heaPum1.con.vol.dynBal.U,heaPum1.eva.vol.dynBal.U) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum1.com.isOn,N.T_start,N.count,realToInteger.y) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * 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: 0 * Non-linear torn systems: 2 {2 19,4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001463/1.546, allocations: 0.8273 MB / 1.277 GB, free: 211.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0115/1.558, allocations: 3.769 MB / 1.281 GB, free: 210.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.558, allocations: 8.031 kB / 1.281 GB, free: 210.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003463/1.561, allocations: 1.095 MB / 1.282 GB, free: 209.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006198/1.568, allocations: 1.461 MB / 1.283 GB, free: 209.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009106/1.577, allocations: 5.823 MB / 1.289 GB, free: 205.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009024/1.578, allocations: 1.779 MB / 1.291 GB, free: 204.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002802/1.58, allocations: 0.6658 MB / 1.291 GB, free: 204.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004958/1.581, allocations: 228.6 kB / 1.292 GB, free: 204.2 MB / 0.9981 GB Notification: Performance of SimCode: time 5.51e-07/1.581, allocations: 3.562 kB / 1.292 GB, free: 204.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.08363/1.665, allocations: 72.03 MB / 1.362 GB, free: 134.8 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches