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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001541/0.001541, allocations: 108 kB / 15.6 MB, free: 132 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.001813/0.001813, allocations: 198.1 kB / 16.54 MB, free: 6.672 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.406/1.406, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.84/2.84, allocations: 472.6 MB / 0.7451 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 61.53 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3485, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.07025/0.4188, allocations: 62.64 MB / 1.129 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02054/0.4394, allocations: 13.67 MB / 1.143 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002544/0.4419, allocations: 63.69 kB / 1.143 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003407/0.4454, allocations: 0.9394 MB / 1.144 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006902/0.4523, allocations: 2.394 MB / 1.146 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004567/0.4569, allocations: 1.619 MB / 1.148 GB, free: 8.867 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.005836/0.4628, allocations: 4.292 MB / 1.152 GB, free: 4.57 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002598/0.4654, allocations: 1.41 MB / 1.153 GB, free: 3.121 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004362/0.4698, allocations: 1.637 MB / 1.155 GB, free: 1.484 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002885/0.4727, allocations: 1.288 MB / 1.156 GB, free: 196 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0007442/0.4734, allocations: 176 kB / 1.156 GB, free: 20 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004256/0.4777, allocations: 1.427 MB / 1.158 GB, free: 14.59 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0009422/0.4787, allocations: 0.5062 MB / 1.158 GB, free: 14.08 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002204/0.4809, allocations: 1.007 MB / 1.159 GB, free: 13.07 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006222/0.4871, allocations: 3.128 MB / 1.162 GB, free: 9.934 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4872, allocations: 3.984 kB / 1.162 GB, free: 9.93 MB / 0.92 GB Notification: Performance of FrontEnd: time 9.41e-07/0.4872, allocations: 4 kB / 1.162 GB, free: 9.926 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.213e-05/0.4872, allocations: 0 / 1.162 GB, free: 9.926 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.004919/0.4922, allocations: 2.333 MB / 1.164 GB, free: 7.535 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.4922, allocations: 8.031 kB / 1.164 GB, free: 7.527 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001464/0.4937, allocations: 322.4 kB / 1.165 GB, free: 7.211 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.4961, allocations: 1.42 MB / 1.166 GB, free: 5.738 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.4963, allocations: 153.5 kB / 1.166 GB, free: 5.574 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/0.4965, allocations: 108 kB / 1.166 GB, free: 5.469 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00284/0.4993, allocations: 1.434 MB / 1.168 GB, free: 3.945 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.4994, allocations: 3.938 kB / 1.168 GB, free: 3.941 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.4995, allocations: 55.97 kB / 1.168 GB, free: 3.887 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-05/0.4996, allocations: 36 kB / 1.168 GB, free: 3.852 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003108/0.5027, allocations: 1.331 MB / 1.169 GB, free: 2.52 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.009033/0.5117, allocations: 6.674 MB / 1.176 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.5141, allocations: 1.182 MB / 1.177 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.5154, allocations: 0.5581 MB / 1.177 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009973/0.5165, allocations: 1.149 MB / 1.178 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/0.5165, allocations: 43.22 kB / 1.178 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=77): time 2.715e-06/0.5165, allocations: 4 kB / 1.179 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of matching and sorting (n=77): time 0.004537/0.5211, allocations: 1.589 MB / 1.18 GB, free: 6.516 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.187e-05/0.5212, allocations: 111.5 kB / 1.18 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.5231, allocations: 1.408 MB / 1.182 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.5232, allocations: 45.7 kB / 1.182 GB, free: 4.914 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005882/0.5238, allocations: 0.7124 MB / 1.182 GB, free: 4.191 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002789/0.5241, allocations: 268.1 kB / 1.183 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002881/0.5244, allocations: 182.4 kB / 1.183 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.5245, allocations: 342 kB / 1.183 GB, free: 3.402 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.5258, allocations: 0.4927 MB / 1.184 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.5273, allocations: 0.7229 MB / 1.184 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002602/0.5299, allocations: 1.125 MB / 1.185 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.5299, allocations: 0 / 1.185 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003306/0.5332, allocations: 1.347 MB / 1.187 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.5333, allocations: 8 kB / 1.187 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.5333, allocations: 12 kB / 1.187 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.5333, allocations: 8 kB / 1.187 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.5346, allocations: 271.6 kB / 1.187 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.936e-05/0.5346, allocations: 15.94 kB / 1.187 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.5359, allocations: 158.9 kB / 1.187 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.725e-05/0.536, allocations: 39.97 kB / 1.187 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001772/0.5377, allocations: 0.8024 MB / 1.188 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0014/0.5391, allocations: 0.7191 MB / 1.189 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002517/0.5417, allocations: 1.125 MB / 1.19 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.296e-06/0.5417, allocations: 0 / 1.19 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003248/0.5449, allocations: 1.35 MB / 1.191 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.545, allocations: 8 kB / 1.191 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.545, allocations: 4 kB / 1.191 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.545, allocations: 8 kB / 1.191 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.5462, allocations: 280 kB / 1.191 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.5462, allocations: 8 kB / 1.191 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.5474, allocations: 147.2 kB / 1.191 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.927e-05/0.5475, allocations: 39.94 kB / 1.191 GB, free: 10.39 MB / 0.9512 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.0004053/0.5479, allocations: 228.1 kB / 1.192 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/0.5482, allocations: 150.1 kB / 1.192 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003347/0.5516, allocations: 1.482 MB / 1.193 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.5516, allocations: 12 kB / 1.193 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.5516, allocations: 3.938 kB / 1.193 GB, free: 8.477 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002686/0.5543, allocations: 1.109 MB / 1.194 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005813/0.5601, allocations: 3.094 MB / 1.197 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.5601, allocations: 4 kB / 1.197 GB, free: 4.125 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.5612, allocations: 187.7 kB / 1.198 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.354e-05/0.5612, allocations: 11.98 kB / 1.198 GB, free: 3.93 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.5612, allocations: 20 kB / 1.198 GB, free: 3.91 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-05/0.5613, allocations: 20.14 kB / 1.198 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/0.5613, allocations: 7.938 kB / 1.198 GB, free: 3.883 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004561/0.5658, allocations: 2.06 MB / 1.2 GB, free: 1.746 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007362/0.5666, allocations: 382.7 kB / 1.2 GB, free: 1.352 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000231/0.5668, allocations: 31.92 kB / 1.2 GB, free: 1.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.568, allocations: 103.9 kB / 1.2 GB, free: 1.219 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.5682, allocations: 84.34 kB / 1.2 GB, free: 1.137 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.089e-05/0.5683, allocations: 51.91 kB / 1.2 GB, free: 1.086 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001522/0.5698, allocations: 1.079 MB / 1.201 GB, free: 12 kB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5698, allocations: 0 / 1.201 GB, free: 12 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001953/0.5718, allocations: 0.7917 MB / 1.202 GB, free: 15.22 MB / 0.9669 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.0008753/0.5727, allocations: 464.6 kB / 1.203 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004721/0.5774, allocations: 1.876 MB / 1.204 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.5774, allocations: 4 kB / 1.204 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.579, allocations: 0.6405 MB / 1.205 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003674/0.5827, allocations: 0.8325 MB / 1.206 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004416/0.5871, allocations: 2.805 MB / 1.209 GB, free: 8.547 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008847/0.588, allocations: 1.281 MB / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.00157/0.5896, allocations: 396.2 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003645/0.59, allocations: 131.4 kB / 1.21 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of SimCode: time 8.62e-07/0.59, allocations: 0 / 1.21 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of Templates: time 0.05274/0.6427, allocations: 33.5 MB / 1.243 GB, free: 5.594 MB / 0.9981 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