Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007844/0.0007844, allocations: 91.84 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.004974/0.004974, allocations: 170 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.35/1.35, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.689/2.689, allocations: 462.7 MB / 0.7364 GB, free: 300 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.000353, allocations: 9.156 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3005, allocations: 159.6 MB / 1.059 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06169/0.3622, allocations: 61.11 MB / 1.118 GB, free: 8.164 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01821/0.3804, allocations: 13.55 MB / 1.132 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002068/0.3825, allocations: 55.69 kB / 1.132 GB, free: 10.53 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002314/0.3849, allocations: 0.8043 MB / 1.132 GB, free: 9.723 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006134/0.391, allocations: 2.209 MB / 1.135 GB, free: 7.504 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003861/0.3949, allocations: 1.478 MB / 1.136 GB, free: 6.043 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.006591/0.4015, allocations: 5.464 MB / 1.141 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001953/0.4035, allocations: 1.173 MB / 1.142 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002961/0.4064, allocations: 1.377 MB / 1.144 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001832/0.4083, allocations: 1.237 MB / 1.145 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000198/0.4085, allocations: 72 kB / 1.145 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002999/0.4115, allocations: 1.306 MB / 1.146 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0005183/0.4121, allocations: 398.4 kB / 1.147 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.4134, allocations: 0.9148 MB / 1.148 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004461/0.4179, allocations: 3.014 MB / 1.151 GB, free: 7.008 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4179, allocations: 0 / 1.151 GB, free: 7.008 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4179, allocations: 0 / 1.151 GB, free: 7.008 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.206e-05/0.418, allocations: 0 / 1.151 GB, free: 7.008 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.004129/0.4221, allocations: 2.023 MB / 1.153 GB, free: 4.93 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.4222, allocations: 12.03 kB / 1.153 GB, free: 4.918 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/0.4236, allocations: 354.3 kB / 1.153 GB, free: 4.57 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002367/0.426, allocations: 1.447 MB / 1.154 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002214/0.4262, allocations: 157.5 kB / 1.154 GB, free: 2.902 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.4264, allocations: 112 kB / 1.155 GB, free: 2.793 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003007/0.4294, allocations: 1.484 MB / 1.156 GB, free: 1.219 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.4295, allocations: 4 kB / 1.156 GB, free: 1.215 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.4296, allocations: 51.98 kB / 1.156 GB, free: 1.164 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.336e-05/0.4297, allocations: 35.98 kB / 1.156 GB, free: 1.129 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003448/0.4331, allocations: 1.436 MB / 1.158 GB, free: 15.69 MB / 0.92 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.008745/0.4419, allocations: 6.671 MB / 1.164 GB, free: 8.574 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002296/0.4442, allocations: 1.217 MB / 1.165 GB, free: 7.27 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.4456, allocations: 0.6123 MB / 1.166 GB, free: 6.652 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008614/0.4465, allocations: 1.145 MB / 1.167 GB, free: 5.25 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.4465, allocations: 47.2 kB / 1.167 GB, free: 5.195 MB / 0.92 GB Notification: Performance of pre-optimization done (n=77): time 2.786e-06/0.4465, allocations: 0 / 1.167 GB, free: 5.195 MB / 0.92 GB Notification: Performance of matching and sorting (n=77): time 0.004578/0.4511, allocations: 1.75 MB / 1.169 GB, free: 3.438 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.4512, allocations: 111.5 kB / 1.169 GB, free: 3.305 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.4531, allocations: 1.389 MB / 1.17 GB, free: 1.906 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.4532, allocations: 41.7 kB / 1.17 GB, free: 1.859 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005993/0.4538, allocations: 0.7124 MB / 1.171 GB, free: 1.137 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/0.4541, allocations: 264.1 kB / 1.171 GB, free: 0.875 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.4542, allocations: 81.67 kB / 1.171 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.4544, allocations: 341.9 kB / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.4558, allocations: 0.5368 MB / 1.172 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.4573, allocations: 0.7776 MB / 1.173 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002806/0.4601, allocations: 1.23 MB / 1.174 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.4601, allocations: 3.938 kB / 1.174 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003532/0.4637, allocations: 1.452 MB / 1.175 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.4638, allocations: 236.9 kB / 1.176 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.4638, allocations: 4 kB / 1.176 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.4639, allocations: 15.88 kB / 1.176 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.4652, allocations: 295.6 kB / 1.176 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.4652, allocations: 11.94 kB / 1.176 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.4666, allocations: 226.9 kB / 1.176 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-05/0.4668, allocations: 43.97 kB / 1.176 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.594e-06/0.4668, allocations: 4 kB / 1.176 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003035/0.4698, allocations: 1.284 MB / 1.178 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.4698, allocations: 4.562 kB / 1.178 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.4698, allocations: 12 kB / 1.178 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.4711, allocations: 295.5 kB / 1.178 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.4711, allocations: 12 kB / 1.178 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.4725, allocations: 211.1 kB / 1.178 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.137e-05/0.4726, allocations: 35.98 kB / 1.178 GB, free: 9.555 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 2 (intGreThr.y,reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007731/0.4734, allocations: 468.7 kB / 1.179 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002556/0.4737, allocations: 150.1 kB / 1.179 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.4772, allocations: 1.572 MB / 1.18 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.4772, allocations: 12 kB / 1.18 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4772, allocations: 0 / 1.18 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002769/0.48, allocations: 1.207 MB / 1.181 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006431/0.4864, allocations: 3.184 MB / 1.184 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.4865, allocations: 8.125 kB / 1.185 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.4875, allocations: 223.7 kB / 1.185 GB, free: 2.559 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.716e-05/0.4876, allocations: 8 kB / 1.185 GB, free: 2.551 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.991e-05/0.4877, allocations: 19.98 kB / 1.185 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.487e-05/0.4877, allocations: 19.86 kB / 1.185 GB, free: 2.512 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.4877, allocations: 4 kB / 1.185 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00503/0.4927, allocations: 2.228 MB / 1.187 GB, free: 212 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009108/0.4936, allocations: 406.7 kB / 1.187 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004067/0.4941, allocations: 23.94 kB / 1.187 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001599/0.4957, allocations: 171.7 kB / 1.188 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.4959, allocations: 84.33 kB / 1.188 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.496, allocations: 43.97 kB / 1.188 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002056/0.4981, allocations: 1.064 MB / 1.189 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4981, allocations: 4 kB / 1.189 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002747/0.5009, allocations: 0.7916 MB / 1.189 GB, free: 13.61 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (reaToInt.y,intGreThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001087/0.502, allocations: 465.2 kB / 1.19 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004951/0.5069, allocations: 1.955 MB / 1.192 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.5069, allocations: 0 / 1.192 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001676/0.5086, allocations: 0.6952 MB / 1.192 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005503/0.5141, allocations: 0.8124 MB / 1.193 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005518/0.5197, allocations: 3.394 MB / 1.197 GB, free: 6.227 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.5207, allocations: 1.274 MB / 1.198 GB, free: 4.926 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.00193/0.5227, allocations: 410 kB / 1.198 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005108/0.5232, allocations: 135.4 kB / 1.198 GB, free: 4.387 MB / 0.9512 GB Notification: Performance of SimCode: time 1.133e-06/0.5232, allocations: 0 / 1.198 GB, free: 4.387 MB / 0.9512 GB Notification: Performance of Templates: time 0.05988/0.5831, allocations: 33.22 MB / 1.231 GB, free: 3.52 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches