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.001518/0.001518, allocations: 105.6 kB / 15.98 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.001555/0.001556, allocations: 197.9 kB / 16.91 MB, free: 6.148 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.442/1.442, allocations: 222.9 MB / 240.6 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.796/2.796, allocations: 482.2 MB / 0.7548 GB, free: 7.297 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 64.23 kB / 0.9238 GB, free: 0.5273 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9184/0.9205, allocations: 162.2 MB / 1.082 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.07334/0.9939, allocations: 62.21 MB / 1.143 GB, free: 5.102 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0219/1.016, allocations: 13.58 MB / 1.156 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003175/1.019, allocations: 54.84 kB / 1.156 GB, free: 10.41 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003413/1.022, allocations: 0.8261 MB / 1.157 GB, free: 9.746 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007909/1.03, allocations: 2.256 MB / 1.159 GB, free: 7.973 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004644/1.035, allocations: 1.468 MB / 1.161 GB, free: 6.891 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007467/1.043, allocations: 4.325 MB / 1.165 GB, free: 4.352 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002622/1.045, allocations: 1.413 MB / 1.166 GB, free: 3.414 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005081/1.05, allocations: 1.795 MB / 1.168 GB, free: 2.34 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002607/1.053, allocations: 1.327 MB / 1.169 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0004559/1.053, allocations: 176.3 kB / 1.169 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003992/1.057, allocations: 1.442 MB / 1.171 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0006671/1.058, allocations: 0.5028 MB / 1.171 GB, free: 372 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001764/1.06, allocations: 1.023 MB / 1.172 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004106/1.064, allocations: 2.461 MB / 1.175 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/1.064, allocations: 0 / 1.175 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.098e-06/1.064, allocations: 0 / 1.175 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.067e-05/1.064, allocations: 4.844 kB / 1.175 GB, free: 13.98 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.005715/1.07, allocations: 2.338 MB / 1.177 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/1.07, allocations: 9.062 kB / 1.177 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003284/1.073, allocations: 0.5327 MB / 1.178 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003001/1.076, allocations: 1.463 MB / 1.179 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/1.076, allocations: 164.6 kB / 1.179 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002231/1.077, allocations: 108.4 kB / 1.179 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003805/1.08, allocations: 1.562 MB / 1.181 GB, free: 9.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/1.081, allocations: 2.219 kB / 1.181 GB, free: 9.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/1.081, allocations: 43.84 kB / 1.181 GB, free: 9.699 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.279e-05/1.081, allocations: 32.09 kB / 1.181 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004442/1.085, allocations: 1.563 MB / 1.182 GB, free: 8.285 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.01111/1.096, allocations: 6.916 MB / 1.189 GB, free: 0.918 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002905/1.099, allocations: 1.272 MB / 1.19 GB, free: 15.56 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001911/1.101, allocations: 0.6749 MB / 1.191 GB, free: 14.88 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001047/1.102, allocations: 1.152 MB / 1.192 GB, free: 13.47 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.162e-05/1.102, allocations: 43.22 kB / 1.192 GB, free: 13.42 MB / 0.92 GB Notification: Performance of pre-optimization done (n=77): time 5.33e-06/1.102, allocations: 0 / 1.192 GB, free: 13.42 MB / 0.92 GB Notification: Performance of matching and sorting (n=77): time 0.006161/1.108, allocations: 1.906 MB / 1.194 GB, free: 11.51 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.928e-05/1.109, allocations: 115.5 kB / 1.194 GB, free: 11.37 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002171/1.111, allocations: 1.389 MB / 1.196 GB, free: 9.973 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001908/1.111, allocations: 41.7 kB / 1.196 GB, free: 9.926 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007122/1.112, allocations: 0.7085 MB / 1.196 GB, free: 9.207 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003316/1.112, allocations: 268.2 kB / 1.197 GB, free: 8.941 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003653/1.112, allocations: 182.5 kB / 1.197 GB, free: 8.758 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001699/1.113, allocations: 341.9 kB / 1.197 GB, free: 8.418 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001845/1.114, allocations: 0.5941 MB / 1.198 GB, free: 7.82 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002068/1.116, allocations: 0.8283 MB / 1.198 GB, free: 6.902 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003558/1.12, allocations: 1.328 MB / 1.2 GB, free: 5.508 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/1.12, allocations: 0 / 1.2 GB, free: 5.508 MB / 0.92 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004566/1.125, allocations: 1.554 MB / 1.201 GB, free: 3.949 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/1.125, allocations: 8 kB / 1.201 GB, free: 3.941 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/1.125, allocations: 4 kB / 1.201 GB, free: 3.938 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/1.125, allocations: 12 kB / 1.201 GB, free: 3.926 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/1.126, allocations: 303.6 kB / 1.202 GB, free: 3.629 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.43e-05/1.126, allocations: 8 kB / 1.202 GB, free: 3.621 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/1.128, allocations: 238.8 kB / 1.202 GB, free: 3.387 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/1.129, allocations: 39.98 kB / 1.202 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002412/1.131, allocations: 0.9 MB / 1.203 GB, free: 2.441 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002044/1.133, allocations: 0.8249 MB / 1.204 GB, free: 1.523 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003538/1.137, allocations: 1.308 MB / 1.205 GB, free: 152 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.939e-06/1.137, allocations: 8 kB / 1.205 GB, free: 144 kB / 0.92 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.004575/1.141, allocations: 1.549 MB / 1.206 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/1.141, allocations: 10.19 kB / 1.206 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/1.141, allocations: 4.562 kB / 1.206 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/1.141, allocations: 15.94 kB / 1.206 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/1.143, allocations: 307.5 kB / 1.207 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.17e-05/1.143, allocations: 8 kB / 1.207 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/1.145, allocations: 215.1 kB / 1.207 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/1.145, allocations: 43.92 kB / 1.207 GB, free: 13.99 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.0004851/1.146, allocations: 246.2 kB / 1.207 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005883/1.146, allocations: 150.1 kB / 1.207 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004796/1.151, allocations: 1.689 MB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/1.151, allocations: 8 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/1.151, allocations: 3.984 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003702/1.155, allocations: 1.312 MB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008306/1.163, allocations: 3.392 MB / 1.214 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/1.163, allocations: 7.938 kB / 1.214 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/1.164, allocations: 227.8 kB / 1.214 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.751e-05/1.165, allocations: 4 kB / 1.214 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/1.165, allocations: 27.98 kB / 1.214 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-05/1.165, allocations: 8 kB / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/1.165, allocations: 11.88 kB / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006448/1.171, allocations: 2.411 MB / 1.216 GB, free: 4.25 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/1.172, allocations: 390.8 kB / 1.217 GB, free: 3.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006433/1.173, allocations: 20 kB / 1.217 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/1.175, allocations: 179.7 kB / 1.217 GB, free: 3.652 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002329/1.175, allocations: 84.34 kB / 1.217 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/1.175, allocations: 47.91 kB / 1.217 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001817/1.177, allocations: 1.064 MB / 1.218 GB, free: 2.465 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/1.177, allocations: 0 / 1.218 GB, free: 2.465 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002687/1.18, allocations: 0.8072 MB / 1.219 GB, free: 1.656 MB / 0.9356 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.001219/1.181, allocations: 464 kB / 1.219 GB, free: 1.195 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.006418/1.188, allocations: 2.193 MB / 1.221 GB, free: 15 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.188, allocations: 0 / 1.221 GB, free: 15 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002134/1.19, allocations: 0.7341 MB / 1.222 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004284/1.194, allocations: 0.8233 MB / 1.223 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006064/1.2, allocations: 3.471 MB / 1.226 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/1.201, allocations: 1.273 MB / 1.227 GB, free: 8.598 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007039/1.202, allocations: 139.4 kB / 1.228 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of SimCode: time 8.52e-07/1.202, allocations: 0 / 1.228 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of Templates: time 0.04681/1.249, allocations: 29.19 MB / 1.256 GB, free: 11.45 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