Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.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.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.m1_flow|heaPum.m2_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QCon_flow|heaPum.QEva_flow|heaPum.P",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater") translateModel(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.m1_flow|heaPum.m2_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QCon_flow|heaPum.QEva_flow|heaPum.P",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 99.86 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.001292/0.001292, allocations: 177.3 kB / 15.94 MB, free: 228 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.323/1.323, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.542/2.542, allocations: 436.5 MB / 0.7104 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003226, allocations: 15.98 kB / 0.8707 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5821/0.5825, allocations: 153.7 MB / 1.021 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater): time 0.1028/0.6854, allocations: 105.5 MB / 1.124 GB, free: 7.289 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01824/0.7036, allocations: 13.15 MB / 1.137 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.7058, allocations: 63.56 kB / 1.137 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.7084, allocations: 0.8239 MB / 1.138 GB, free: 9.227 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006451/0.7149, allocations: 2.275 MB / 1.14 GB, free: 6.945 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.005487/0.7204, allocations: 1.982 MB / 1.142 GB, free: 4.996 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004704/0.7251, allocations: 2.754 MB / 1.144 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001974/0.7271, allocations: 1.251 MB / 1.146 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002699/0.7298, allocations: 1.316 MB / 1.147 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.731, allocations: 0.8671 MB / 1.148 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002144/0.7313, allocations: 68 kB / 1.148 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002974/0.7343, allocations: 1.221 MB / 1.149 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.7346, allocations: 330.7 kB / 1.149 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005076/0.7352, allocations: 416.8 kB / 1.15 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003132/0.7383, allocations: 2.57 MB / 1.152 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.7383, allocations: 0 / 1.152 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.104e-06/0.7383, allocations: 0 / 1.152 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.619e-05/0.7384, allocations: 0 / 1.152 GB, free: 10.17 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.003738/0.7421, allocations: 2.042 MB / 1.154 GB, free: 8.055 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.7422, allocations: 11.98 kB / 1.154 GB, free: 8.043 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005521/0.7477, allocations: 0.7469 MB / 1.155 GB, free: 7.293 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00266/0.7504, allocations: 1.554 MB / 1.157 GB, free: 5.684 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.7505, allocations: 136.1 kB / 1.157 GB, free: 5.543 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/0.7507, allocations: 124 kB / 1.157 GB, free: 5.422 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003767/0.7545, allocations: 1.724 MB / 1.158 GB, free: 3.598 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.7545, allocations: 3.938 kB / 1.158 GB, free: 3.594 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/0.7547, allocations: 59.98 kB / 1.158 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.702e-05/0.7547, allocations: 35.94 kB / 1.159 GB, free: 3.5 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004612/0.7594, allocations: 1.539 MB / 1.16 GB, free: 1.953 MB / 0.9044 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.009586/0.769, allocations: 7.596 MB / 1.167 GB, free: 9.953 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004178/0.7732, allocations: 1.199 MB / 1.169 GB, free: 8.746 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001291/0.7745, allocations: 1.267 MB / 1.17 GB, free: 7.203 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002309/0.7768, allocations: 0.703 MB / 1.171 GB, free: 6.488 MB / 0.92 GB Notification: Performance of pre-optimization done (n=80): time 3.226e-06/0.7768, allocations: 0 / 1.171 GB, free: 6.488 MB / 0.92 GB Notification: Performance of matching and sorting (n=80): time 0.01805/0.7949, allocations: 3.226 MB / 1.174 GB, free: 3.23 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.795, allocations: 137.2 kB / 1.174 GB, free: 3.066 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001757/0.7967, allocations: 1.309 MB / 1.175 GB, free: 1.742 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.7969, allocations: 45.7 kB / 1.175 GB, free: 1.691 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005868/0.7975, allocations: 0.7231 MB / 1.176 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/0.7977, allocations: 280 kB / 1.176 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.93e-05/0.7978, allocations: 24 kB / 1.176 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.798, allocations: 341.9 kB / 1.176 GB, free: 328 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001922/0.7999, allocations: 0.525 MB / 1.177 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002111/0.802, allocations: 0.8022 MB / 1.178 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001984/0.804, allocations: 0.5846 MB / 1.178 GB, free: 14.3 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.82e-06/0.804, allocations: 0 / 1.178 GB, free: 14.3 MB / 0.9356 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.005152/0.8092, allocations: 1.675 MB / 1.18 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008067/0.81, allocations: 2.402 MB / 1.182 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.81, allocations: 8 kB / 1.182 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002034/0.8121, allocations: 0.5667 MB / 1.183 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.8135, allocations: 251.6 kB / 1.183 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/0.8155, allocations: 1.175 MB / 1.184 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/0.8175, allocations: 246.7 kB / 1.185 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.8176, allocations: 55.95 kB / 1.185 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.8177, allocations: 6.5 kB / 1.185 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004789/0.8224, allocations: 1.507 MB / 1.186 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.8225, allocations: 4.625 kB / 1.186 GB, free: 6.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001843/0.8243, allocations: 0.5711 MB / 1.187 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.8256, allocations: 247.6 kB / 1.187 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.8275, allocations: 1.173 MB / 1.188 GB, free: 4.215 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.8295, allocations: 226.9 kB / 1.188 GB, free: 3.992 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.8296, allocations: 59.94 kB / 1.188 GB, free: 3.934 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.calDat.nextTimeEvent,calDat.nextTimeEvent,$PRE.calDat.nextTimeEventScaled,calDat.nextTimeEventScaled,$PRE.heaPum.com.isOn,heaPum.com.isOn) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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 {4 25} Notification: Performance of prepare postOptimizeDAE: time 0.000782/0.8304, allocations: 472.8 kB / 1.189 GB, free: 3.461 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002436/0.8306, allocations: 150.2 kB / 1.189 GB, free: 3.312 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01282/0.8434, allocations: 2.162 MB / 1.191 GB, free: 1.129 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-05/0.8435, allocations: 12 kB / 1.191 GB, free: 1.117 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.8435, allocations: 0 / 1.191 GB, free: 1.117 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01242/0.8559, allocations: 1.998 MB / 1.193 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009126/0.8651, allocations: 3.68 MB / 1.197 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.8651, allocations: 4 kB / 1.197 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.8663, allocations: 179.9 kB / 1.197 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/0.8682, allocations: 0.555 MB / 1.197 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.715e-05/0.8683, allocations: 39.89 kB / 1.197 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.8703, allocations: 1.162 MB / 1.198 GB, free: 9.266 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/0.8704, allocations: 11.98 kB / 1.198 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005174/0.8755, allocations: 1.696 MB / 1.2 GB, free: 7.477 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008639/0.8764, allocations: 422.8 kB / 1.2 GB, free: 7.043 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002923/0.8767, allocations: 19.98 kB / 1.2 GB, free: 7.023 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001877/0.8786, allocations: 159.8 kB / 1.201 GB, free: 6.867 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.8788, allocations: 56.52 kB / 1.201 GB, free: 6.812 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.8789, allocations: 55.92 kB / 1.201 GB, free: 6.758 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00136/0.8803, allocations: 0.8985 MB / 1.202 GB, free: 5.859 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8803, allocations: 0 / 1.202 GB, free: 5.859 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002651/0.8829, allocations: 0.9665 MB / 1.203 GB, free: 4.891 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,calDat.nextTimeEvent,calDat.nextTimeEventScaled,heaPum.com.isOn) * Number of discrete states: 3 (calDat.nextTimeEvent,heaPum.com.isOn,calDat.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 49 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001967/0.8849, allocations: 0.8961 MB / 1.203 GB, free: 4.168 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006949/0.8919, allocations: 2.045 MB / 1.205 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.8919, allocations: 4.125 kB / 1.205 GB, free: 2.121 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002192/0.8941, allocations: 0.6357 MB / 1.206 GB, free: 1.484 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003502/0.8976, allocations: 0.7357 MB / 1.207 GB, free: 0.7617 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006287/0.9039, allocations: 3.221 MB / 1.21 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008991/0.9048, allocations: 1.294 MB / 1.211 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001822/0.9067, allocations: 375.7 kB / 1.212 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.9071, allocations: 147.3 kB / 1.212 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of SimCode: time 5.01e-07/0.9071, allocations: 0 / 1.212 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of Templates: time 0.05745/0.9645, allocations: 37.91 MB / 1.249 GB, free: 6.145 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Calibration_ScrollWaterToWater.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches