/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 11 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7479
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1627.7+0251_daily_bin519
RA = 246.942, Dec = 2.8584
tmin = 373852801, tmax = 374112001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='514695', job_status='RUN', time_executed='2021-09-14 13:37:05.736951', time_epoch_executed='1631651825.74' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514695

Creating custom pfile directory:
/scratch/kocevski/514695/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=373852801.0 && nMetStart<374112001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=373852801.0 && nMetStart<374112001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514695/ft1_4FGL_J1627.7+0251_daily_bin519.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=373852801.0 && nMetStart<374112001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514695/ft1_4FGL_J1627.7+0251_daily_bin519.fits outfile=/scratch/kocevski/514695/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin519.fits ra=246.942 dec=2.8584 rad=12.0 tmin=373852801.0 tmax=374112001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.97
user 4.26
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/514695/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin519.fits evtable="EVENTS" outfile="/scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.05
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/514695/ltcube_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits
.....................!
real 14.79
user 13.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/514695/ltcube_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits outfile=/scratch/kocevski/514695/expmap_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/514695/ltcube_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits
.....................!
real 192.82
user 187.95
sys 4.02

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 164 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1627.7+0251 @ 246.942 2.8584

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits scfile=/scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits outfile=/scratch/kocevski/514695/cmap_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=246.942 yref=2.8584 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits scfile=/scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits outfile=/scratch/kocevski/514695/cmap_HighResolution_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=246.942 yref=2.8584 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514695/Model_4FGL_J1627.7+0251_daily_bin519.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits.....................!
real 84.77
user 83.29
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits', '/scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits', expMap='/scratch/kocevski/514695/expmap_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits', expCube='/scratch/kocevski/514695/ltcube_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514695/Model_4FGL_J1627.7+0251_daily_bin519.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1627.7+0251'

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.087e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/514695/ft1_filtered_4FGL_J1627.7+0251_daily_bin519.fits
Spacecraft file(s): /scratch/kocevski/514695/ft2_4FGL_J1627.7+0251_daily_bin519.fits
Exposure map: /scratch/kocevski/514695/expmap_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits
Exposure cube: /scratch/kocevski/514695/ltcube_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514695/Model_4FGL_J1627.7+0251_daily_bin519.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9612.96601844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9612.94715704

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3177       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5731       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13064E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7472       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0483       1.0000         .10000E-03   10000.    
     7 'norm      '    44.027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.165       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15437E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21651E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.360       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3405       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97896       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9612.947     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2190 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3136        13.901        .17157E-05   -.13568E-04
   2  Prefactor     3.5726        3.9654        .19827E-06   -.63364E-03
   3  norm          3.7038        3.2221        .11749E-06   -.24352E-03
   4  Prefactor     .10000E-03    107.43       -.15915E-05** at limit **
   5  norm          3.7472        1.9847       -.44782E-07   -.14373E-03
   6  norm          2.0228        25.186        .20220E-04   -.13611E-03
   7  norm          43.999        70.812       -.34153E-04   -.74400E-05
   8  Prefactor     7.9514        214.69       -.28188E-04   -.11152E-04
   9  Prefactor     55.165        46.065        .69479E-06   -.65632E-04
  10  Prefactor     .10000E-03    8.3414        .66051E-06** at limit **
  11  Prefactor     .10000E-03    7.4903        .49146E-07** at limit **
  12  Prefactor     .10000E-03    11.602       -.22686E-06** at limit **
  13  Prefactor     30.302        29.870       -.27056E-05   -.31084E-04
  14  Prefactor     .10004E-03    3.4880        .11342E-05** at limit **
  15  Prefactor     .10010E-03    2.7840       -.22917E-06** at limit **
  16  Prefactor     .10000E-03    6.4703        .20078E-06** at limit **
  17  Prefactor     18.612        370.95        .56665E-03    .27196E-04
  18  Normalizat    1.3406        .28516        .32294E-06   -.46256E-03
  19  Prefactor     .97895        .78708E-01   -.38422E-05    .28545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.3136
  Prefactor  = 3.57256
  norm       = 3.70381
  Prefactor  = 0.0001
  norm       = 3.7472
  norm       = 2.02282
  norm       = 43.9992
  Prefactor  = 7.95135
  Prefactor  = 55.1649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3017
  Prefactor  = 0.000100045
  Prefactor  = 0.000100104
  Prefactor  = 0.0001
  Prefactor  = 18.6119
  Normalizat = 1.34056
  Prefactor  = 0.978953
 **********
 **   18 **HESSE 
 **********

 FCN=   9612.947     FROM HESSE     STATUS=OK           268 CALLS     2458 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3136        13.896        .13129E-03   -1.5098    
   2  Prefactor     3.5726        3.9565        .19739E-03   -1.5330    
   3  norm          3.7038        3.2177        .15915E-03   -1.5323    
   4  Prefactor     .10000E-03    107.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7472        1.9848        .97741E-04   -1.5321    
   6  norm          2.0228        25.198        .28887E-03   -1.5424    
   7  norm          43.999        70.815        .30211E-03   -1.4380    
   8  Prefactor     7.9514        215.04        .14211E-03   -1.5144    
   9  Prefactor     55.165        46.199        .54007E-04   -1.4221    
  10  Prefactor     .10000E-03    8.3773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.302        29.896        .72776E-04   -1.4606    
  14  Prefactor     .10004E-03    18.687        .34896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10010E-03    21.681        .31232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.612        368.19        .93473E-04   -1.4845    
  18  Normalizat    1.3406        .31831        .45968E-03   -.82364    
  19  Prefactor     .97895        .89672E-01    .15305E-03   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52945e-09
Minuit parameter uncertainties:
  1  13.9004
  2  3.95679
  3  3.21785
  4  0.000121867
  5  1.98486
  6  14.2859
  7  70.9506
  8  83.0325
  9  46.2286
  10  3.68445e-05
  11  6.16597e-05
  12  0.000120441
  13  29.9105
  14  0.00183077
  15  0.0030005
  16  2.21762e-05
  17  166.754
  18  0.318774
  19  0.0896859
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9612.94714978

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.951e+00  8.303e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.790e-01  8.969e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.341e+00  3.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514695/likelihoodResults_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9612.9471321
delta logL = 1.7674814444e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9612.94707411
delta logL = 7.56654844736e-05

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9515       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1537       1.0000          .0000       10.000    
     3 'Normalizat'    1.3409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9612.947     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      234 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3214        1061.2        .35548E-02   -.21491E-05
   2  Index         2.1504        .74144        .50000        .98149E-06
   3  Normalizat    1.3408        .16654E-01    .10372        .21837E-04
   4  Prefactor     .97891        .48502E-02    .34638E-01   -.10019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32142
  Index      = 2.15038
  Normalizat = 1.34077
  Prefactor  = 0.978913
 **********
 **   18 **HESSE 
 **********

 FCN=   9612.947     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3214        247.03        .14219E-03   -1.5131    
   2  Index         2.1504        2.6513        .76448E-02   -.60641    
   3  Normalizat    1.3408        .29970        .45965E-03   -.82357    
   4  Prefactor     .97891        .87315E-01    .15305E-03   -.93436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40317e-12
Minuit parameter uncertainties:
  1  91.093
  2  2.88194
  3  0.300087
  4  0.0873274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514695': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9612.9470654
delta logL = 8.43742873258e-05

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  8.321e+00  9.109e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.150e+00  2.882e+00  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.789e-01  8.733e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.341e+00  3.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 246.942 2.858

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/514695/cmap_HighResolution_373852801_374112001_4FGL_J1627.7+0251_daily_bin519.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/514695

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-14 13:49:38.828607', job_id='514695', GAL2='0.98', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1631652578.83', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.44e-05', ts2='0.01', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='519' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 514695: <4FGL_J1627.7+0251_daily_bin519> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin519> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 14 13:36:05 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:36:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 13:36:23 2021
Terminated at Tue Sep 14 13:49:39 2021
Results reported at Tue Sep 14 13:49:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin519 246.942 2.8584 373852801 374112001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1627.7+0251 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            814 sec.

The output (if any) is above this job summary.

