Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_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.ReciprocatingWaterToWater_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.ReciprocatingWaterToWater_Dynamic") translateModel(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_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.ReciprocatingWaterToWater_Dynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 100 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.001379/0.001379, 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.318/1.318, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.547/2.547, allocations: 436.5 MB / 0.7104 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003474/0.0003476, allocations: 16 kB / 0.8707 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6051/0.6055, allocations: 153.7 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic): time 0.1032/0.7087, allocations: 109.4 MB / 1.128 GB, free: 3.48 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02932/0.7381, allocations: 21.45 MB / 1.149 GB, free: 14 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004058/0.7422, allocations: 115.2 kB / 1.149 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.005632/0.7478, allocations: 1.453 MB / 1.15 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01344/0.7613, allocations: 4.198 MB / 1.154 GB, free: 8.215 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.008987/0.7703, allocations: 3.129 MB / 1.157 GB, free: 5.141 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.009207/0.7795, allocations: 5.137 MB / 1.162 GB, free: 15.99 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003745/0.7833, allocations: 2.301 MB / 1.164 GB, free: 13.64 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005412/0.7887, allocations: 2.433 MB / 1.167 GB, free: 11.2 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003071/0.7918, allocations: 1.583 MB / 1.168 GB, free: 9.613 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0006241/0.7925, allocations: 132 kB / 1.169 GB, free: 9.484 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00508/0.7976, allocations: 1.74 MB / 1.17 GB, free: 7.742 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0007522/0.7983, allocations: 0.5759 MB / 1.171 GB, free: 7.164 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.7996, allocations: 0.7421 MB / 1.172 GB, free: 6.414 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006193/0.8058, allocations: 4.568 MB / 1.176 GB, free: 1.836 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.8058, allocations: 0 / 1.176 GB, free: 1.836 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.855e-06/0.8058, allocations: 0 / 1.176 GB, free: 1.836 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001068/0.806, allocations: 0 / 1.176 GB, free: 1.836 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: 583 * Number of variables: 583 Notification: Performance of Generate backend data structure: time 0.006765/0.8127, allocations: 3.37 MB / 1.179 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.8128, allocations: 11.98 kB / 1.179 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/0.823, allocations: 1.366 MB / 1.181 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005242/0.8283, allocations: 2.721 MB / 1.183 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002479/0.8285, allocations: 263.9 kB / 1.184 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004542/0.829, allocations: 232 kB / 1.184 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00755/0.8366, allocations: 3.175 MB / 1.187 GB, free: 6.32 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.9e-05/0.8366, allocations: 7.938 kB / 1.187 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003114/0.8369, allocations: 96 kB / 1.187 GB, free: 6.219 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.368e-05/0.837, allocations: 75.98 kB / 1.187 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008921/0.846, allocations: 2.807 MB / 1.19 GB, free: 3.32 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.02045/0.8664, allocations: 13.69 MB / 1.203 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004174/0.8706, allocations: 1.438 MB / 1.205 GB, free: 3.531 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001647/0.8723, allocations: 1.785 MB / 1.206 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0034/0.8757, allocations: 1.15 MB / 1.207 GB, free: 152 kB / 0.9512 GB Notification: Performance of pre-optimization done (n=126): time 4.638e-06/0.8757, allocations: 3.938 kB / 1.207 GB, free: 148 kB / 0.9512 GB Notification: Performance of matching and sorting (n=130): time 0.0319/0.9076, allocations: 9.723 MB / 1.217 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002158/0.9079, allocations: 0.5844 MB / 1.217 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004067/0.912, allocations: 2.694 MB / 1.22 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.000296/0.9123, allocations: 61.7 kB / 1.22 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001111/0.9134, allocations: 1.339 MB / 1.221 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004672/0.9139, allocations: 457.5 kB / 1.222 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.914, allocations: 32 kB / 1.222 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.9141, allocations: 381.9 kB / 1.222 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003587/0.9177, allocations: 0.9369 MB / 1.223 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003999/0.9217, allocations: 1.538 MB / 1.225 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003774/0.9255, allocations: 1.085 MB / 1.226 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.9256, allocations: 4 kB / 1.226 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.01061/0.9362, allocations: 3.081 MB / 1.229 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.002005/0.9382, allocations: 5.247 MB / 1.234 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/0.9383, allocations: 12 kB / 1.234 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002945/0.9412, allocations: 0.93 MB / 1.235 GB, free: 3.023 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002682/0.9439, allocations: 475.5 kB / 1.235 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003224/0.9471, allocations: 2.203 MB / 1.237 GB, free: 312 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005764/0.9529, allocations: 404 kB / 1.238 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003498/0.9533, allocations: 107.9 kB / 1.238 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.9533, allocations: 4 kB / 1.238 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009615/0.9629, allocations: 2.806 MB / 1.241 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.742e-05/0.963, allocations: 12.16 kB / 1.241 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002974/0.966, allocations: 0.929 MB / 1.242 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002652/0.9687, allocations: 475.2 kB / 1.242 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003095/0.9718, allocations: 2.186 MB / 1.244 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/0.9761, allocations: 363.6 kB / 1.245 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003069/0.9764, allocations: 103.9 kB / 1.245 GB, free: 8.883 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 (168): * Single equations (assignments): 165 * 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 23,4 25} Notification: Performance of prepare postOptimizeDAE: time 0.001646/0.9781, allocations: 0.6976 MB / 1.245 GB, free: 8.176 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007603/0.9788, allocations: 280.6 kB / 1.246 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008957/0.9878, allocations: 2.37 MB / 1.248 GB, free: 5.512 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-05/0.9879, allocations: 19.95 kB / 1.248 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.9879, allocations: 4 kB / 1.248 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007572/0.9955, allocations: 1.986 MB / 1.25 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5022/1.498, allocations: 6.239 MB / 1.256 GB, free: 219.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/1.498, allocations: 8.203 kB / 1.256 GB, free: 219.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/1.5, allocations: 283.3 kB / 1.256 GB, free: 219.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002927/1.503, allocations: 0.7915 MB / 1.257 GB, free: 219.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001682/1.503, allocations: 53.06 kB / 1.257 GB, free: 219.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002663/1.505, allocations: 1.957 MB / 1.259 GB, free: 217.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.315e-05/1.505, allocations: 11.91 kB / 1.259 GB, free: 217.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/1.519, allocations: 4.341 MB / 1.263 GB, free: 215.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002096/1.522, allocations: 0.6719 MB / 1.264 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005757/1.522, allocations: 43 kB / 1.264 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003279/1.525, allocations: 285.6 kB / 1.264 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002737/1.526, allocations: 118 kB / 1.264 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001999/1.526, allocations: 73.25 kB / 1.264 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004074/1.53, allocations: 1.897 MB / 1.266 GB, free: 214.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3e-07/1.53, allocations: 0 / 1.266 GB, free: 214.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00469/1.535, allocations: 1.503 MB / 1.268 GB, free: 214.2 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 (84): * Single equations (assignments): 78 * 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 17,4 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.001581/1.536, allocations: 0.8261 MB / 1.268 GB, free: 214.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01216/1.549, allocations: 3.65 MB / 1.272 GB, free: 213 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.637e-05/1.549, allocations: 7.75 kB / 1.272 GB, free: 213 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003651/1.552, allocations: 1.058 MB / 1.273 GB, free: 212.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007356/1.56, allocations: 1.477 MB / 1.275 GB, free: 212.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/1.571, allocations: 6.009 MB / 1.28 GB, free: 209.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009149/1.572, allocations: 1.776 MB / 1.282 GB, free: 208.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003367/1.575, allocations: 0.6644 MB / 1.283 GB, free: 208.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005311/1.576, allocations: 235.6 kB / 1.283 GB, free: 208.2 MB / 0.9981 GB Notification: Performance of SimCode: time 7.32e-07/1.576, allocations: 0 / 1.283 GB, free: 208.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.08639/1.662, allocations: 70.15 MB / 1.352 GB, free: 145.1 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches