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.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.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.001656/0.001656, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001963/0.001963, allocations: 198.4 kB / 16.79 MB, free: 6.809 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.365/1.365, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.643/2.643, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 65.11 kB / 0.899 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3291, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.0713/0.4004, allocations: 62.24 MB / 1.114 GB, free: 9.867 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01909/0.4195, allocations: 13.71 MB / 1.127 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002921/0.4225, allocations: 55.69 kB / 1.127 GB, free: 12.06 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003101/0.4256, allocations: 0.8004 MB / 1.128 GB, free: 11.26 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007004/0.4327, allocations: 2.215 MB / 1.13 GB, free: 9.035 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004415/0.4372, allocations: 1.47 MB / 1.131 GB, free: 7.578 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007097/0.4443, allocations: 5.479 MB / 1.137 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002273/0.4466, allocations: 1.21 MB / 1.138 GB, free: 0.832 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003456/0.4501, allocations: 1.419 MB / 1.139 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002552/0.4526, allocations: 1.284 MB / 1.141 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004736/0.4531, allocations: 88 kB / 1.141 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003547/0.4567, allocations: 1.317 MB / 1.142 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006451/0.4574, allocations: 434.3 kB / 1.142 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001556/0.4589, allocations: 0.921 MB / 1.143 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003458/0.4624, allocations: 2.432 MB / 1.146 GB, free: 8.922 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.4624, allocations: 4 kB / 1.146 GB, free: 8.918 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.552e-06/0.4625, allocations: 0 / 1.146 GB, free: 8.918 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.148e-05/0.4625, allocations: 0 / 1.146 GB, free: 8.918 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.005595/0.4681, allocations: 2.337 MB / 1.148 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.4682, allocations: 12.03 kB / 1.148 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001516/0.4697, allocations: 314.4 kB / 1.148 GB, free: 6.199 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002643/0.4724, allocations: 1.451 MB / 1.15 GB, free: 4.695 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.4726, allocations: 157.5 kB / 1.15 GB, free: 4.527 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/0.4728, allocations: 111.9 kB / 1.15 GB, free: 4.418 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/0.4759, allocations: 1.438 MB / 1.151 GB, free: 2.891 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.476, allocations: 0 / 1.151 GB, free: 2.891 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.4761, allocations: 44 kB / 1.151 GB, free: 2.848 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.967e-05/0.4761, allocations: 39.92 kB / 1.151 GB, free: 2.809 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003214/0.4794, allocations: 1.335 MB / 1.153 GB, free: 1.473 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.009135/0.4885, allocations: 6.627 MB / 1.159 GB, free: 10.4 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002224/0.4908, allocations: 1.167 MB / 1.16 GB, free: 9.148 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/0.4921, allocations: 0.5649 MB / 1.161 GB, free: 8.578 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008806/0.4929, allocations: 1.141 MB / 1.162 GB, free: 7.18 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.493, allocations: 51.7 kB / 1.162 GB, free: 7.121 MB / 0.92 GB Notification: Performance of pre-optimization done (n=77): time 2.745e-06/0.493, allocations: 0 / 1.162 GB, free: 7.121 MB / 0.92 GB Notification: Performance of matching and sorting (n=77): time 0.004296/0.4973, allocations: 1.589 MB / 1.164 GB, free: 5.523 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.4974, allocations: 115.5 kB / 1.164 GB, free: 5.387 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002107/0.4995, allocations: 1.393 MB / 1.165 GB, free: 3.984 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001595/0.4997, allocations: 45.7 kB / 1.165 GB, free: 3.934 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006026/0.5003, allocations: 0.7086 MB / 1.166 GB, free: 3.215 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000295/0.5006, allocations: 268.1 kB / 1.166 GB, free: 2.949 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003151/0.5009, allocations: 182.5 kB / 1.166 GB, free: 2.762 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.5011, allocations: 337.9 kB / 1.166 GB, free: 2.426 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/0.5024, allocations: 0.4927 MB / 1.167 GB, free: 1.93 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/0.5039, allocations: 0.723 MB / 1.168 GB, free: 1.117 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002637/0.5065, allocations: 1.133 MB / 1.169 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-06/0.5065, allocations: 0 / 1.169 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003576/0.5101, allocations: 1.354 MB / 1.17 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/0.5102, allocations: 8 kB / 1.17 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.5102, allocations: 4 kB / 1.17 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.845e-05/0.5102, allocations: 8.562 kB / 1.17 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.5115, allocations: 271.6 kB / 1.17 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.567e-05/0.5115, allocations: 11.98 kB / 1.17 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/0.5131, allocations: 202.8 kB / 1.171 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.5133, allocations: 39.98 kB / 1.171 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001934/0.5152, allocations: 0.7985 MB / 1.171 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001473/0.5167, allocations: 0.7191 MB / 1.172 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002654/0.5194, allocations: 1.125 MB / 1.173 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.216e-06/0.5194, allocations: 4 kB / 1.173 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003544/0.5229, allocations: 1.351 MB / 1.175 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.523, allocations: 9.094 kB / 1.175 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.523, allocations: 4 kB / 1.175 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.523, allocations: 8 kB / 1.175 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.5243, allocations: 271.9 kB / 1.175 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/0.5243, allocations: 11.94 kB / 1.175 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.5259, allocations: 179.2 kB / 1.175 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.526, allocations: 47.91 kB / 1.175 GB, free: 9.336 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.0004029/0.5264, allocations: 232.1 kB / 1.175 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005866/0.527, allocations: 146.2 kB / 1.175 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003578/0.5306, allocations: 1.478 MB / 1.177 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/0.5306, allocations: 8 kB / 1.177 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.5306, allocations: 0 / 1.177 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002505/0.5331, allocations: 1.113 MB / 1.178 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006982/0.5401, allocations: 3.079 MB / 1.181 GB, free: 3.109 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.5402, allocations: 4 kB / 1.181 GB, free: 3.105 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009906/0.5412, allocations: 191.7 kB / 1.181 GB, free: 2.918 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.737e-05/0.5412, allocations: 8 kB / 1.181 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.138e-05/0.5413, allocations: 24.23 kB / 1.181 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.295e-05/0.5413, allocations: 8 kB / 1.181 GB, free: 2.879 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/0.5413, allocations: 19.81 kB / 1.181 GB, free: 2.859 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004734/0.5461, allocations: 2.068 MB / 1.183 GB, free: 0.7109 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00096/0.5471, allocations: 386.7 kB / 1.184 GB, free: 320 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005048/0.5476, allocations: 16 kB / 1.184 GB, free: 304 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/0.5492, allocations: 143.7 kB / 1.184 GB, free: 160 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.5495, allocations: 80.34 kB / 1.184 GB, free: 80 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/0.5496, allocations: 51.89 kB / 1.184 GB, free: 28 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002122/0.5518, allocations: 1.064 MB / 1.185 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.41e-07/0.5518, allocations: 0 / 1.185 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002902/0.5547, allocations: 0.7877 MB / 1.186 GB, free: 14.18 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.00133/0.556, allocations: 472.2 kB / 1.186 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004875/0.5609, allocations: 1.802 MB / 1.188 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/0.561, allocations: 8 kB / 1.188 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001735/0.5627, allocations: 0.621 MB / 1.188 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004943/0.5677, allocations: 0.7773 MB / 1.189 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006321/0.574, allocations: 3.356 MB / 1.193 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001218/0.5753, allocations: 1.277 MB / 1.194 GB, free: 5.758 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007872/0.5761, allocations: 139.3 kB / 1.194 GB, free: 5.621 MB / 0.9512 GB Notification: Performance of SimCode: time 1.363e-06/0.5761, allocations: 0 / 1.194 GB, free: 5.621 MB / 0.9512 GB Notification: Performance of Templates: time 0.04675/0.6228, allocations: 28.51 MB / 1.222 GB, free: 9.301 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches