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.00111/0.00111, allocations: 103.9 kB / 16.35 MB, free: 6.289 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.00104/0.00104, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.571/2.571, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 68.16 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3095, allocations: 153 MB / 1.027 GB, free: 2.086 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.5315/0.841, allocations: 62.64 MB / 1.088 GB, free: 28.3 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01668/0.8577, allocations: 13.65 MB / 1.101 GB, free: 25.31 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002491/0.8602, allocations: 60.09 kB / 1.101 GB, free: 25.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002632/0.8629, allocations: 0.9472 MB / 1.102 GB, free: 24.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006489/0.8694, allocations: 2.392 MB / 1.105 GB, free: 23.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00423/0.8737, allocations: 1.629 MB / 1.106 GB, free: 22.42 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005792/0.8795, allocations: 4.289 MB / 1.11 GB, free: 20.34 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002351/0.8818, allocations: 1.418 MB / 1.112 GB, free: 19.66 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003939/0.8858, allocations: 1.642 MB / 1.113 GB, free: 18.88 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002437/0.8882, allocations: 1.295 MB / 1.115 GB, free: 18.28 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0005591/0.8888, allocations: 176.3 kB / 1.115 GB, free: 18.28 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004055/0.8929, allocations: 1.428 MB / 1.116 GB, free: 17.76 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0007752/0.8937, allocations: 0.5041 MB / 1.117 GB, free: 17.47 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002026/0.8957, allocations: 1.007 MB / 1.118 GB, free: 16.84 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005638/0.9014, allocations: 3.167 MB / 1.121 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.796e-06/0.9014, allocations: 4 kB / 1.121 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.355e-06/0.9014, allocations: 0 / 1.121 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.948e-05/0.9015, allocations: 1.094 kB / 1.121 GB, free: 15.65 MB / 0.8419 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.005466/0.907, allocations: 2.334 MB / 1.123 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.907, allocations: 9.781 kB / 1.123 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001518/0.9085, allocations: 319.5 kB / 1.123 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/0.9113, allocations: 1.482 MB / 1.125 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.9115, allocations: 157.4 kB / 1.125 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/0.9117, allocations: 108.4 kB / 1.125 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002917/0.9146, allocations: 1.44 MB / 1.126 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.9147, allocations: 1.344 kB / 1.126 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.9148, allocations: 47.91 kB / 1.126 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.056e-05/0.9149, allocations: 38.34 kB / 1.126 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.9179, allocations: 1.335 MB / 1.128 GB, free: 11.93 MB / 0.8419 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.008008/0.9259, allocations: 6.626 MB / 1.134 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/0.928, allocations: 1.171 MB / 1.135 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.9292, allocations: 0.5675 MB / 1.136 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005897/0.9298, allocations: 1.152 MB / 1.137 GB, free: 4.789 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.9298, allocations: 40.44 kB / 1.137 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=77): time 2.805e-06/0.9298, allocations: 0 / 1.137 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of matching and sorting (n=77): time 0.004077/0.9339, allocations: 1.594 MB / 1.139 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.934, allocations: 111 kB / 1.139 GB, free: 4.051 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001838/0.9358, allocations: 1.404 MB / 1.14 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.000135/0.936, allocations: 47.36 kB / 1.14 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004259/0.9364, allocations: 0.7154 MB / 1.141 GB, free: 2.75 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/0.9366, allocations: 268.7 kB / 1.141 GB, free: 2.516 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.9369, allocations: 174.3 kB / 1.141 GB, free: 2.414 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 5.898e-05/0.937, allocations: 343 kB / 1.142 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.9382, allocations: 0.4935 MB / 1.142 GB, free: 1.82 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/0.9395, allocations: 0.7227 MB / 1.143 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002296/0.9418, allocations: 1.129 MB / 1.144 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.9418, allocations: 1.094 kB / 1.144 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003167/0.945, allocations: 1.357 MB / 1.145 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.945, allocations: 10.69 kB / 1.145 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.945, allocations: 4.969 kB / 1.145 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.945, allocations: 9.062 kB / 1.145 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.9463, allocations: 272 kB / 1.146 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.9463, allocations: 8.312 kB / 1.146 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.9477, allocations: 162.7 kB / 1.146 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.9478, allocations: 36.38 kB / 1.146 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001826/0.9496, allocations: 0.7997 MB / 1.147 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001439/0.9511, allocations: 0.7209 MB / 1.147 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002519/0.9536, allocations: 1.122 MB / 1.148 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.999e-06/0.9536, allocations: 2.344 kB / 1.148 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003361/0.957, allocations: 1.342 MB / 1.15 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.957, allocations: 7.594 kB / 1.15 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.9571, allocations: 5.625 kB / 1.15 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.9571, allocations: 13 kB / 1.15 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.9583, allocations: 266.8 kB / 1.15 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.9583, allocations: 16.64 kB / 1.15 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.9597, allocations: 148.5 kB / 1.15 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.9598, allocations: 39.45 kB / 1.15 GB, free: 13.09 MB / 0.8575 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.0003505/0.9602, allocations: 239.2 kB / 1.15 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003452/0.9605, allocations: 146.9 kB / 1.15 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003313/0.9638, allocations: 1.471 MB / 1.152 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.9639, allocations: 11.97 kB / 1.152 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.9639, allocations: 0 / 1.152 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002442/0.9663, allocations: 1.107 MB / 1.153 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005962/0.9723, allocations: 3.109 MB / 1.156 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.9723, allocations: 12.06 kB / 1.156 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009421/0.9733, allocations: 192.6 kB / 1.156 GB, free: 9.012 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-05/0.9733, allocations: 11.31 kB / 1.156 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-05/0.9734, allocations: 21.77 kB / 1.156 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.9734, allocations: 7.719 kB / 1.156 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.9734, allocations: 12.31 kB / 1.156 GB, free: 8.988 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004427/0.9779, allocations: 2.07 MB / 1.158 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008921/0.9788, allocations: 381.2 kB / 1.159 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000267/0.9791, allocations: 21.12 kB / 1.159 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.9802, allocations: 105 kB / 1.159 GB, free: 7.332 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.9804, allocations: 85.16 kB / 1.159 GB, free: 7.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.9805, allocations: 46.75 kB / 1.159 GB, free: 7.262 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001464/0.982, allocations: 1.079 MB / 1.16 GB, free: 6.676 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.982, allocations: 0 / 1.16 GB, free: 6.676 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002116/0.9841, allocations: 0.798 MB / 1.161 GB, free: 6.516 MB / 0.8575 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.0009178/0.985, allocations: 476.4 kB / 1.161 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.004117/0.9892, allocations: 1.815 MB / 1.163 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.9892, allocations: 0 / 1.163 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.9907, allocations: 0.6407 MB / 1.164 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003591/0.9943, allocations: 0.8245 MB / 1.164 GB, free: 4.629 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004575/0.9989, allocations: 2.766 MB / 1.167 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008843/0.9998, allocations: 1.269 MB / 1.168 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001663/1.001, allocations: 412.2 kB / 1.169 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/1.002, allocations: 127.4 kB / 1.169 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of SimCode: time 7.22e-07/1.002, allocations: 4 kB / 1.169 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of Templates: time 0.05566/1.058, allocations: 33.47 MB / 1.202 GB, free: 15.46 MB / 0.9044 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 -s cvode -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