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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001191/0.001191, allocations: 106.4 kB / 16.41 MB, free: 6.469 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.001165/0.001165, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.614/2.614, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 68.03 kB / 1.055 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8737/0.8751, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06408/0.9392, allocations: 62.64 MB / 1.27 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01962/0.9589, allocations: 13.66 MB / 1.283 GB, free: 1.07 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003098/0.962, allocations: 59.69 kB / 1.283 GB, free: 1.012 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00338/0.9654, allocations: 0.9471 MB / 1.284 GB, free: 60 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007265/0.9728, allocations: 2.386 MB / 1.286 GB, free: 13.66 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.005141/0.9779, allocations: 1.626 MB / 1.288 GB, free: 12.04 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.006628/0.9846, allocations: 4.303 MB / 1.292 GB, free: 7.738 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002781/0.9874, allocations: 1.417 MB / 1.293 GB, free: 6.285 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004355/0.9918, allocations: 1.672 MB / 1.295 GB, free: 4.613 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002547/0.9943, allocations: 1.295 MB / 1.296 GB, free: 3.312 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0006598/0.995, allocations: 176 kB / 1.296 GB, free: 3.141 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003933/0.999, allocations: 1.431 MB / 1.298 GB, free: 1.707 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0008704/0.9999, allocations: 0.4984 MB / 1.298 GB, free: 1.207 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001945/1.002, allocations: 1.003 MB / 1.299 GB, free: 204 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.005092/1.007, allocations: 3.168 MB / 1.302 GB, free: 13.02 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/1.007, allocations: 0 / 1.302 GB, free: 13.02 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.833e-06/1.007, allocations: 0 / 1.302 GB, free: 13.02 MB / 1.029 GB Notification: Performance of Transformations before backend: time 3.367e-05/1.007, allocations: 4 kB / 1.302 GB, free: 13.02 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.0046/1.012, allocations: 2.341 MB / 1.305 GB, free: 10.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/1.012, allocations: 8.031 kB / 1.305 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/1.013, allocations: 318.4 kB / 1.305 GB, free: 10.3 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002412/1.016, allocations: 1.482 MB / 1.306 GB, free: 8.766 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/1.016, allocations: 157.5 kB / 1.307 GB, free: 8.598 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/1.016, allocations: 108 kB / 1.307 GB, free: 8.492 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002853/1.019, allocations: 1.438 MB / 1.308 GB, free: 6.965 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/1.019, allocations: 4 kB / 1.308 GB, free: 6.961 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/1.019, allocations: 51.92 kB / 1.308 GB, free: 6.91 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.585e-05/1.019, allocations: 39.92 kB / 1.308 GB, free: 6.871 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003074/1.022, allocations: 1.335 MB / 1.31 GB, free: 5.535 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.00854/1.031, allocations: 6.624 MB / 1.316 GB, free: 14.46 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002147/1.033, allocations: 1.175 MB / 1.317 GB, free: 13.21 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/1.034, allocations: 0.5582 MB / 1.318 GB, free: 12.65 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008335/1.035, allocations: 1.152 MB / 1.319 GB, free: 11.24 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/1.035, allocations: 43.88 kB / 1.319 GB, free: 11.19 MB / 1.045 GB Notification: Performance of pre-optimization done (n=77): time 4.779e-06/1.035, allocations: 0 / 1.319 GB, free: 11.19 MB / 1.045 GB Notification: Performance of matching and sorting (n=77): time 0.004306/1.039, allocations: 1.589 MB / 1.32 GB, free: 9.594 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.271e-05/1.039, allocations: 115.5 kB / 1.321 GB, free: 9.453 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/1.041, allocations: 1.404 MB / 1.322 GB, free: 8.039 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.000136/1.042, allocations: 45.7 kB / 1.322 GB, free: 7.988 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005798/1.042, allocations: 0.7164 MB / 1.323 GB, free: 7.262 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/1.042, allocations: 260.2 kB / 1.323 GB, free: 7.004 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003016/1.043, allocations: 178.5 kB / 1.323 GB, free: 6.824 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001398/1.043, allocations: 341.9 kB / 1.323 GB, free: 6.484 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/1.044, allocations: 0.4927 MB / 1.324 GB, free: 5.988 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/1.046, allocations: 0.7269 MB / 1.325 GB, free: 5.172 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002595/1.048, allocations: 1.133 MB / 1.326 GB, free: 3.977 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/1.048, allocations: 4 kB / 1.326 GB, free: 3.973 MB / 1.045 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003405/1.052, allocations: 1.343 MB / 1.327 GB, free: 2.621 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/1.052, allocations: 8 kB / 1.327 GB, free: 2.613 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/1.052, allocations: 4 kB / 1.327 GB, free: 2.609 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/1.052, allocations: 8.562 kB / 1.327 GB, free: 2.602 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/1.053, allocations: 275.6 kB / 1.327 GB, free: 2.332 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/1.053, allocations: 12 kB / 1.327 GB, free: 2.32 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/1.054, allocations: 158.9 kB / 1.327 GB, free: 2.164 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.115e-05/1.055, allocations: 35.98 kB / 1.327 GB, free: 2.129 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001931/1.056, allocations: 0.8024 MB / 1.328 GB, free: 1.32 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001423/1.058, allocations: 0.7152 MB / 1.329 GB, free: 0.5156 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002496/1.06, allocations: 1.125 MB / 1.33 GB, free: 15.32 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.017e-06/1.06, allocations: 0 / 1.33 GB, free: 15.32 MB / 1.061 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003355/1.064, allocations: 1.355 MB / 1.331 GB, free: 13.96 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/1.064, allocations: 8 kB / 1.331 GB, free: 13.95 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/1.064, allocations: 4 kB / 1.331 GB, free: 13.95 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/1.064, allocations: 12 kB / 1.331 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/1.065, allocations: 271.7 kB / 1.332 GB, free: 13.67 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/1.065, allocations: 15.94 kB / 1.332 GB, free: 13.65 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/1.066, allocations: 139.2 kB / 1.332 GB, free: 13.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.43e-05/1.067, allocations: 43.92 kB / 1.332 GB, free: 13.47 MB / 1.061 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.0003571/1.067, allocations: 240 kB / 1.332 GB, free: 13.23 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003167/1.067, allocations: 150.1 kB / 1.332 GB, free: 13.08 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003413/1.071, allocations: 1.474 MB / 1.334 GB, free: 11.57 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.347e-05/1.071, allocations: 11.98 kB / 1.334 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/1.071, allocations: 0 / 1.334 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002576/1.073, allocations: 1.113 MB / 1.335 GB, free: 10.42 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006748/1.08, allocations: 3.09 MB / 1.338 GB, free: 7.211 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.08, allocations: 8 kB / 1.338 GB, free: 7.203 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009897/1.081, allocations: 192.3 kB / 1.338 GB, free: 7.016 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.05e-05/1.081, allocations: 8 kB / 1.338 GB, free: 7.008 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.652e-05/1.081, allocations: 27.98 kB / 1.338 GB, free: 6.98 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-05/1.081, allocations: 8 kB / 1.338 GB, free: 6.973 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.677e-06/1.081, allocations: 11.88 kB / 1.338 GB, free: 6.961 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004774/1.086, allocations: 2.068 MB / 1.34 GB, free: 4.82 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008933/1.087, allocations: 382.7 kB / 1.34 GB, free: 4.426 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004461/1.087, allocations: 20 kB / 1.34 GB, free: 4.406 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/1.089, allocations: 99.86 kB / 1.341 GB, free: 4.309 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/1.089, allocations: 88.39 kB / 1.341 GB, free: 4.223 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/1.089, allocations: 47.89 kB / 1.341 GB, free: 4.176 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001778/1.091, allocations: 1.083 MB / 1.342 GB, free: 3.098 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.3e-07/1.091, allocations: 0 / 1.342 GB, free: 3.098 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002587/1.094, allocations: 0.7955 MB / 1.342 GB, free: 2.301 MB / 1.061 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.001242/1.095, allocations: 478.6 kB / 1.343 GB, free: 1.836 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.004574/1.099, allocations: 1.814 MB / 1.345 GB, free: 28 kB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/1.1, allocations: 4 kB / 1.345 GB, free: 24 kB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001571/1.101, allocations: 0.6132 MB / 1.345 GB, free: 15.41 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004193/1.105, allocations: 0.8239 MB / 1.346 GB, free: 14.59 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004811/1.11, allocations: 2.819 MB / 1.349 GB, free: 11.68 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008678/1.111, allocations: 1.273 MB / 1.35 GB, free: 10.38 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007168/1.112, allocations: 135.4 kB / 1.35 GB, free: 10.25 MB / 1.076 GB Notification: Performance of SimCode: time 1.082e-06/1.112, allocations: 4 kB / 1.35 GB, free: 10.24 MB / 1.076 GB Notification: Performance of Templates: time 0.04519/1.157, allocations: 28.9 MB / 1.378 GB, free: 13.52 MB / 1.107 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