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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0009897/0.0009898, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008706/0.008706, allocations: 171.1 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.69/2.69, allocations: 462.7 MB / 0.7364 GB, free: 336 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004027/0.0004024, allocations: 12.81 kB / 0.9028 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3456, allocations: 159.6 MB / 1.059 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic): time 0.1224/0.4681, allocations: 127.9 MB / 1.184 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03405/0.5022, allocations: 24.94 MB / 1.208 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004637/0.5069, allocations: 119.2 kB / 1.208 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.004151/0.511, allocations: 1.41 MB / 1.209 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.01238/0.5234, allocations: 4.166 MB / 1.214 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.008729/0.5322, allocations: 3.195 MB / 1.217 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01753/0.5497, allocations: 11.37 MB / 1.228 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004841/0.5546, allocations: 2.515 MB / 1.23 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007135/0.5618, allocations: 2.745 MB / 1.233 GB, free: 2.57 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004627/0.5664, allocations: 2.306 MB / 1.235 GB, free: 260 kB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0007853/0.5673, allocations: 132 kB / 1.235 GB, free: 128 kB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006596/0.5739, allocations: 2.464 MB / 1.238 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009872/0.5749, allocations: 0.6221 MB / 1.238 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003075/0.578, allocations: 1.72 MB / 1.24 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009384/0.5874, allocations: 6.032 MB / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.5874, allocations: 0 / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.855e-06/0.5874, allocations: 0 / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001292/0.5876, allocations: 0 / 1.246 GB, free: 5.246 MB / 0.9981 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.006725/0.5943, allocations: 3.352 MB / 1.249 GB, free: 1.793 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.5944, allocations: 12.03 kB / 1.249 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01115/0.6055, allocations: 1.464 MB / 1.251 GB, free: 320 kB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6188/1.224, allocations: 2.926 MB / 1.253 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005141/1.225, allocations: 255.2 kB / 1.254 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009863/1.226, allocations: 236.3 kB / 1.254 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00929/1.235, allocations: 3.239 MB / 1.257 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.127e-05/1.235, allocations: 6.75 kB / 1.257 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003049/1.236, allocations: 99.95 kB / 1.257 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.224e-05/1.236, allocations: 74.78 kB / 1.257 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009942/1.246, allocations: 2.903 MB / 1.26 GB, free: 182.8 MB / 0.9981 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.02467/1.27, allocations: 13.67 MB / 1.273 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005455/1.276, allocations: 1.504 MB / 1.275 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003657/1.28, allocations: 0.9394 MB / 1.276 GB, free: 175 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001539/1.281, allocations: 1.784 MB / 1.278 GB, free: 173 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00446/1.286, allocations: 1.22 MB / 1.279 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=126): time 1.458e-05/1.286, allocations: 0.5 kB / 1.279 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=132): time 0.06268/1.348, allocations: 11.93 MB / 1.29 GB, free: 166.7 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/1.349, allocations: 0.581 MB / 1.291 GB, free: 166 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004596/1.353, allocations: 2.611 MB / 1.293 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004278/1.354, allocations: 67.84 kB / 1.294 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009975/1.355, allocations: 1.319 MB / 1.295 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005995/1.355, allocations: 459.8 kB / 1.295 GB, free: 163 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002573/1.355, allocations: 149.2 kB / 1.295 GB, free: 162.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.351e-05/1.356, allocations: 305.1 kB / 1.296 GB, free: 162.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004322/1.36, allocations: 1.013 MB / 1.297 GB, free: 162.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004532/1.364, allocations: 1.607 MB / 1.298 GB, free: 160.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00722/1.372, allocations: 2.312 MB / 1.301 GB, free: 159.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.519e-05/1.372, allocations: 4.125 kB / 1.301 GB, free: 159.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=225) (initialization): time 0.02351/1.395, allocations: 4.274 MB / 1.305 GB, free: 157.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002296/1.395, allocations: 494.3 kB / 1.305 GB, free: 156.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/1.396, allocations: 11.91 kB / 1.305 GB, free: 156.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003688/1.399, allocations: 1.176 MB / 1.306 GB, free: 156.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00255/1.402, allocations: 467.4 kB / 1.307 GB, free: 156.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003422/1.405, allocations: 2.395 MB / 1.309 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005199/1.41, allocations: 409.7 kB / 1.31 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004291/1.411, allocations: 103.6 kB / 1.31 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/1.411, allocations: 4.562 kB / 1.31 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02305/1.434, allocations: 3.974 MB / 1.313 GB, free: 152.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.054e-05/1.434, allocations: 16.58 kB / 1.314 GB, free: 152.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003721/1.438, allocations: 1.17 MB / 1.315 GB, free: 151.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/1.44, allocations: 463.2 kB / 1.315 GB, free: 151.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003507/1.444, allocations: 2.393 MB / 1.317 GB, free: 148.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004806/1.449, allocations: 380.2 kB / 1.318 GB, free: 148.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002483/1.449, allocations: 105.2 kB / 1.318 GB, free: 148.2 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 (realToInteger.y,N.count,$PRE.N.count,N.T_start,$PRE.N.T_start,heaPum1.com.isOn,$PRE.heaPum1.com.isOn,heaPum.com.isOn,$PRE.heaPum.com.isOn,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,25), (4,27)} Notification: Performance of prepare postOptimizeDAE: time 0.00152/1.451, allocations: 0.6959 MB / 1.319 GB, free: 147.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005824/1.451, allocations: 284.6 kB / 1.319 GB, free: 147.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007455/1.459, allocations: 2.461 MB / 1.321 GB, free: 144.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/1.459, allocations: 16.03 kB / 1.321 GB, free: 144.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/1.459, allocations: 4 kB / 1.321 GB, free: 144.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006431/1.465, allocations: 2.072 MB / 1.323 GB, free: 142.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/1.486, allocations: 7.092 MB / 1.33 GB, free: 135.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.922e-05/1.486, allocations: 12.03 kB / 1.33 GB, free: 135.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001796/1.488, allocations: 283.6 kB / 1.33 GB, free: 135.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003202/1.491, allocations: 1.024 MB / 1.331 GB, free: 134 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001522/1.491, allocations: 47.94 kB / 1.332 GB, free: 134 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/1.494, allocations: 2.182 MB / 1.334 GB, free: 131.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/1.494, allocations: 12.03 kB / 1.334 GB, free: 131.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.507, allocations: 3.838 MB / 1.337 GB, free: 127.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001911/1.509, allocations: 0.6612 MB / 1.338 GB, free: 127.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006083/1.51, allocations: 40 kB / 1.338 GB, free: 127.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003411/1.513, allocations: 297.1 kB / 1.338 GB, free: 126.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/1.513, allocations: 120.6 kB / 1.339 GB, free: 126.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/1.513, allocations: 75.92 kB / 1.339 GB, free: 126.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00266/1.516, allocations: 1.836 MB / 1.34 GB, free: 124.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.1e-07/1.516, allocations: 3.938 kB / 1.34 GB, free: 124.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004187/1.52, allocations: 1.478 MB / 1.342 GB, free: 123.3 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 (82): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,19), (4,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001492/1.522, allocations: 0.7961 MB / 1.343 GB, free: 122.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01188/1.534, allocations: 3.82 MB / 1.346 GB, free: 118.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.665e-05/1.534, allocations: 4.438 kB / 1.346 GB, free: 118.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003656/1.537, allocations: 1.11 MB / 1.347 GB, free: 117.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01021/1.548, allocations: 1.553 MB / 1.349 GB, free: 116.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009994/1.558, allocations: 6.136 MB / 1.355 GB, free: 109.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008883/1.559, allocations: 1.721 MB / 1.357 GB, free: 108.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003245/1.562, allocations: 0.6539 MB / 1.357 GB, free: 107.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006484/1.562, allocations: 247.3 kB / 1.357 GB, free: 107.3 MB / 0.9981 GB Notification: Performance of SimCode: time 7.42e-07/1.562, allocations: 0 / 1.357 GB, free: 107.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.0944/1.657, allocations: 76.22 MB / 1.432 GB, free: 31.83 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches