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.0008696/0.0008696, 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.006808/0.006808, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.417/1.417, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.732/2.732, allocations: 462.7 MB / 0.7364 GB, free: 304 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.000389, allocations: 13.53 kB / 0.9028 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3381, allocations: 159.6 MB / 1.059 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic): time 0.1204/0.4585, allocations: 127.9 MB / 1.184 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03421/0.4928, allocations: 24.94 MB / 1.208 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007532/0.5003, allocations: 119.2 kB / 1.208 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.006477/0.5069, allocations: 1.41 MB / 1.209 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0157/0.5226, allocations: 4.163 MB / 1.214 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.009978/0.5326, allocations: 3.19 MB / 1.217 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01645/0.549, allocations: 11.37 MB / 1.228 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004989/0.5541, allocations: 2.53 MB / 1.23 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006816/0.5609, allocations: 2.745 MB / 1.233 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00458/0.5655, allocations: 2.306 MB / 1.235 GB, free: 208 kB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0007555/0.5663, allocations: 132 kB / 1.235 GB, free: 76 kB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006934/0.5733, allocations: 2.472 MB / 1.238 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.5744, allocations: 0.6183 MB / 1.238 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.005217/0.5796, allocations: 1.712 MB / 1.24 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.5928, allocations: 6.024 MB / 1.246 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.5928, allocations: 3.938 kB / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.964e-06/0.5928, allocations: 0 / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001389/0.5929, allocations: 0 / 1.246 GB, free: 5.203 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.006914/0.5999, allocations: 3.36 MB / 1.249 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.5999, allocations: 15.97 kB / 1.249 GB, free: 1.727 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.6113, allocations: 1.456 MB / 1.251 GB, free: 272 kB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6275/1.239, allocations: 2.932 MB / 1.253 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000435/1.239, allocations: 253.7 kB / 1.254 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009298/1.24, allocations: 239.2 kB / 1.254 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009794/1.25, allocations: 3.236 MB / 1.257 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.076e-05/1.25, allocations: 6.5 kB / 1.257 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003613/1.251, allocations: 104.9 kB / 1.257 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-05/1.251, allocations: 73.38 kB / 1.257 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009604/1.26, allocations: 2.893 MB / 1.26 GB, free: 183.2 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.02259/1.283, allocations: 13.67 MB / 1.273 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00556/1.289, allocations: 1.508 MB / 1.275 GB, free: 175.7 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003687/1.292, allocations: 0.9395 MB / 1.276 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001642/1.294, allocations: 1.786 MB / 1.278 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004469/1.298, allocations: 1.216 MB / 1.279 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=126): time 1.149e-05/1.298, allocations: 0 / 1.279 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=132): time 0.05983/1.358, allocations: 11.93 MB / 1.29 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/1.358, allocations: 0.5846 MB / 1.291 GB, free: 166.5 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004228/1.363, allocations: 2.608 MB / 1.293 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004558/1.363, allocations: 62.92 kB / 1.294 GB, free: 165 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009713/1.364, allocations: 1.322 MB / 1.295 GB, free: 163.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004546/1.365, allocations: 462.8 kB / 1.295 GB, free: 163.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002262/1.365, allocations: 152.9 kB / 1.295 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.731e-05/1.365, allocations: 306.5 kB / 1.296 GB, free: 163.1 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003712/1.369, allocations: 1.012 MB / 1.297 GB, free: 162.6 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003999/1.373, allocations: 1.604 MB / 1.298 GB, free: 161.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007067/1.38, allocations: 2.319 MB / 1.301 GB, free: 159.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-05/1.38, allocations: 3.969 kB / 1.301 GB, free: 159.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=225) (initialization): time 0.02306/1.403, allocations: 4.264 MB / 1.305 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002359/1.403, allocations: 0.4891 MB / 1.305 GB, free: 157.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/1.403, allocations: 11.88 kB / 1.305 GB, free: 157.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003733/1.407, allocations: 1.154 MB / 1.306 GB, free: 156.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002652/1.41, allocations: 479.2 kB / 1.307 GB, free: 156.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/1.413, allocations: 2.392 MB / 1.309 GB, free: 154.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005134/1.418, allocations: 408.7 kB / 1.309 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000335/1.419, allocations: 117.5 kB / 1.31 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/1.419, allocations: 4.531 kB / 1.31 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02258/1.441, allocations: 3.972 MB / 1.313 GB, free: 152.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.965e-05/1.441, allocations: 12.94 kB / 1.314 GB, free: 152.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003974/1.445, allocations: 1.162 MB / 1.315 GB, free: 152.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002651/1.448, allocations: 471.2 kB / 1.315 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003649/1.452, allocations: 2.385 MB / 1.317 GB, free: 149.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004757/1.456, allocations: 376.3 kB / 1.318 GB, free: 148.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004014/1.457, allocations: 107.6 kB / 1.318 GB, free: 148.8 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.001856/1.459, allocations: 0.6998 MB / 1.319 GB, free: 148.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009016/1.46, allocations: 284.6 kB / 1.319 GB, free: 147.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00833/1.468, allocations: 2.464 MB / 1.321 GB, free: 145.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.018e-05/1.468, allocations: 20 kB / 1.321 GB, free: 145.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/1.468, allocations: 0 / 1.321 GB, free: 145.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006714/1.475, allocations: 2.064 MB / 1.323 GB, free: 143.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02205/1.497, allocations: 7.102 MB / 1.33 GB, free: 135.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-05/1.497, allocations: 8 kB / 1.33 GB, free: 135.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00179/1.499, allocations: 287.7 kB / 1.33 GB, free: 135.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003303/1.502, allocations: 1.026 MB / 1.331 GB, free: 134.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002119/1.502, allocations: 55.89 kB / 1.332 GB, free: 134.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003141/1.505, allocations: 2.167 MB / 1.334 GB, free: 132.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/1.505, allocations: 11.94 kB / 1.334 GB, free: 132.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01332/1.519, allocations: 3.842 MB / 1.337 GB, free: 128.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/1.521, allocations: 0.6612 MB / 1.338 GB, free: 127.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001016/1.522, allocations: 36 kB / 1.338 GB, free: 127.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004107/1.526, allocations: 298.7 kB / 1.338 GB, free: 127.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/1.526, allocations: 120.6 kB / 1.339 GB, free: 127.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/1.526, allocations: 75.91 kB / 1.339 GB, free: 127.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003314/1.53, allocations: 1.836 MB / 1.34 GB, free: 125.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.1e-07/1.53, allocations: 0 / 1.34 GB, free: 125.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005307/1.535, allocations: 1.472 MB / 1.342 GB, free: 123.9 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.001795/1.537, allocations: 0.7977 MB / 1.343 GB, free: 123.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01216/1.549, allocations: 3.813 MB / 1.346 GB, free: 119.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/1.549, allocations: 4.438 kB / 1.346 GB, free: 119.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003563/1.552, allocations: 1.116 MB / 1.347 GB, free: 118.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0105/1.563, allocations: 1.569 MB / 1.349 GB, free: 116.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/1.573, allocations: 6.136 MB / 1.355 GB, free: 110.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/1.575, allocations: 1.717 MB / 1.357 GB, free: 108.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003261/1.578, allocations: 0.6529 MB / 1.357 GB, free: 108.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006865/1.579, allocations: 251.3 kB / 1.357 GB, free: 107.8 MB / 0.9981 GB Notification: Performance of SimCode: time 6.31e-07/1.579, allocations: 4 kB / 1.357 GB, free: 107.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.09661/1.675, allocations: 76.2 MB / 1.432 GB, free: 32.41 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