Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001714/0.001714, allocations: 108.6 kB / 15.73 MB, free: 76 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.001596/0.001596, allocations: 191.3 kB / 16.66 MB, free: 6.59 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.905/2.905, allocations: 469.8 MB / 0.7425 GB, free: 7.379 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 67.89 kB / 1.065 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.31, allocations: 159.1 MB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.6294/0.9394, allocations: 62.75 MB / 1.282 GB, free: 2.254 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01985/0.9593, allocations: 13.69 MB / 1.295 GB, free: 9.434 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002582/0.9619, allocations: 61.41 kB / 1.295 GB, free: 9.414 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.003295/0.9651, allocations: 0.9721 MB / 1.296 GB, free: 8.859 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.007552/0.9727, allocations: 2.542 MB / 1.299 GB, free: 7.352 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.005236/0.9779, allocations: 1.621 MB / 1.3 GB, free: 6.465 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.007006/0.9849, allocations: 4.304 MB / 1.305 GB, free: 4.375 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001973/0.9869, allocations: 1.182 MB / 1.306 GB, free: 3.773 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.9907, allocations: 1.676 MB / 1.307 GB, free: 2.992 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002626/0.9933, allocations: 1.295 MB / 1.309 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0004651/0.9938, allocations: 176.7 kB / 1.309 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003896/0.9977, allocations: 1.435 MB / 1.31 GB, free: 1.871 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0007817/0.9984, allocations: 0.5278 MB / 1.311 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002025/1, allocations: 1.005 MB / 1.312 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.007557/1.008, allocations: 3.189 MB / 1.315 GB, free: 15.72 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/1.008, allocations: 4 kB / 1.315 GB, free: 15.72 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.643e-06/1.008, allocations: 0 / 1.315 GB, free: 15.72 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.185e-05/1.008, allocations: 0 / 1.315 GB, free: 15.72 MB / 1.029 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.006387/1.015, allocations: 2.409 MB / 1.317 GB, free: 14.2 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/1.015, allocations: 13.38 kB / 1.317 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003377/1.018, allocations: 0.5356 MB / 1.318 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003777/1.022, allocations: 1.494 MB / 1.319 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002299/1.022, allocations: 160.9 kB / 1.319 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/1.022, allocations: 108 kB / 1.319 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003907/1.026, allocations: 1.563 MB / 1.321 GB, free: 12.35 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/1.026, allocations: 6.125 kB / 1.321 GB, free: 12.35 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001548/1.026, allocations: 44.25 kB / 1.321 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.423e-05/1.026, allocations: 33.95 kB / 1.321 GB, free: 12.31 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004346/1.031, allocations: 1.555 MB / 1.322 GB, free: 11.83 MB / 1.029 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.01149/1.042, allocations: 6.937 MB / 1.329 GB, free: 6.766 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002857/1.045, allocations: 1.235 MB / 1.33 GB, free: 6.059 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/1.047, allocations: 0.6264 MB / 1.331 GB, free: 5.852 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000915/1.048, allocations: 1.148 MB / 1.332 GB, free: 4.52 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/1.048, allocations: 52.19 kB / 1.332 GB, free: 4.469 MB / 1.029 GB Notification: Performance of pre-optimization done (n=77): time 2.395e-06/1.048, allocations: 0 / 1.332 GB, free: 4.469 MB / 1.029 GB Notification: Performance of matching and sorting (n=77): time 0.005875/1.054, allocations: 1.902 MB / 1.334 GB, free: 3.836 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.976e-05/1.054, allocations: 113.8 kB / 1.334 GB, free: 3.711 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002311/1.056, allocations: 1.401 MB / 1.336 GB, free: 3.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0002348/1.056, allocations: 48.45 kB / 1.336 GB, free: 3.113 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006207/1.057, allocations: 0.7278 MB / 1.336 GB, free: 2.531 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003236/1.057, allocations: 277.7 kB / 1.337 GB, free: 2.312 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003499/1.058, allocations: 176.2 kB / 1.337 GB, free: 2.23 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.00014/1.058, allocations: 345.4 kB / 1.337 GB, free: 1.906 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/1.059, allocations: 0.6 MB / 1.338 GB, free: 1.68 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001985/1.061, allocations: 0.835 MB / 1.338 GB, free: 1.09 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003403/1.065, allocations: 1.318 MB / 1.34 GB, free: 308 kB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/1.065, allocations: 1.312 kB / 1.34 GB, free: 308 kB / 1.029 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004365/1.069, allocations: 1.565 MB / 1.341 GB, free: 15.51 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/1.069, allocations: 7.094 kB / 1.341 GB, free: 15.51 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/1.069, allocations: 3.844 kB / 1.341 GB, free: 15.51 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/1.069, allocations: 8.906 kB / 1.341 GB, free: 15.51 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/1.071, allocations: 310.7 kB / 1.342 GB, free: 15.41 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.767e-05/1.071, allocations: 16.86 kB / 1.342 GB, free: 15.41 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/1.072, allocations: 200.3 kB / 1.342 GB, free: 15.29 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/1.073, allocations: 36.45 kB / 1.342 GB, free: 15.28 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002317/1.075, allocations: 0.9091 MB / 1.343 GB, free: 14.75 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001961/1.077, allocations: 0.8191 MB / 1.344 GB, free: 14.18 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003556/1.08, allocations: 1.312 MB / 1.345 GB, free: 13.4 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.444e-06/1.08, allocations: 1.531 kB / 1.345 GB, free: 13.4 MB / 1.045 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.004535/1.085, allocations: 1.555 MB / 1.346 GB, free: 12.61 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/1.085, allocations: 7.875 kB / 1.346 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/1.085, allocations: 5.359 kB / 1.346 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/1.085, allocations: 13.22 kB / 1.346 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/1.086, allocations: 305.1 kB / 1.347 GB, free: 12.52 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.572e-05/1.087, allocations: 13.47 kB / 1.347 GB, free: 12.51 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/1.088, allocations: 175.3 kB / 1.347 GB, free: 12.42 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/1.089, allocations: 38.95 kB / 1.347 GB, free: 12.41 MB / 1.045 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.0004628/1.089, allocations: 242.3 kB / 1.347 GB, free: 12.18 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007783/1.09, allocations: 164.6 kB / 1.347 GB, free: 12.09 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004846/1.095, allocations: 1.679 MB / 1.349 GB, free: 11.11 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.086e-05/1.095, allocations: 6.844 kB / 1.349 GB, free: 11.11 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/1.095, allocations: 5.766 kB / 1.349 GB, free: 11.1 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003544/1.098, allocations: 1.309 MB / 1.35 GB, free: 10.36 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008033/1.106, allocations: 3.401 MB / 1.354 GB, free: 8.027 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/1.106, allocations: 4.469 kB / 1.354 GB, free: 8.027 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/1.108, allocations: 229.9 kB / 1.354 GB, free: 7.953 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.559e-05/1.108, allocations: 7.5 kB / 1.354 GB, free: 7.953 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.571e-05/1.108, allocations: 25.92 kB / 1.354 GB, free: 7.938 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.209e-05/1.108, allocations: 12.23 kB / 1.354 GB, free: 7.934 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/1.108, allocations: 12.72 kB / 1.354 GB, free: 7.926 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0061/1.114, allocations: 2.415 MB / 1.356 GB, free: 6.496 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/1.115, allocations: 398 kB / 1.357 GB, free: 6.164 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005115/1.115, allocations: 29.02 kB / 1.357 GB, free: 6.148 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/1.117, allocations: 145.4 kB / 1.357 GB, free: 6.078 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/1.117, allocations: 84.81 kB / 1.357 GB, free: 6.023 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/1.118, allocations: 43.25 kB / 1.357 GB, free: 6.008 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.00192/1.119, allocations: 1.082 MB / 1.358 GB, free: 5.418 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/1.119, allocations: 0 / 1.358 GB, free: 5.418 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.002899/1.122, allocations: 0.8166 MB / 1.359 GB, free: 5.254 MB / 1.045 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.001312/1.124, allocations: 475.4 kB / 1.359 GB, free: 4.992 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.006158/1.13, allocations: 2.046 MB / 1.361 GB, free: 4.016 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/1.13, allocations: 1.219 kB / 1.361 GB, free: 4.016 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002146/1.132, allocations: 0.717 MB / 1.362 GB, free: 3.672 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004641/1.137, allocations: 0.8226 MB / 1.363 GB, free: 3.234 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005706/1.142, allocations: 2.919 MB / 1.365 GB, free: 1.402 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/1.143, allocations: 1.283 MB / 1.367 GB, free: 432 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001993/1.145, allocations: 424.4 kB / 1.367 GB, free: 224 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005117/1.146, allocations: 129.7 kB / 1.367 GB, free: 196 kB / 1.045 GB Notification: Performance of SimCode: time 1.252e-06/1.146, allocations: 0 / 1.367 GB, free: 196 kB / 1.045 GB Notification: Performance of Templates: time 0.05432/1.2, allocations: 34.48 MB / 1.401 GB, free: 14.65 MB / 1.092 GB make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches