aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 46 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7548
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0049.7+0237_daily_bin1765
RA = 12.4377, Dec = 2.6273
tmin = 696816001, tmax = 697075201
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='620790', job_status='RUN', time_executed='2023-02-03 00:10:33.429913', time_epoch_executed='1675411833.43' WHERE source_name='4FGL J0049.7+0237' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620790/ft1_4FGL_J0049.7+0237_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620790/ft1_4FGL_J0049.7+0237_daily_bin1765.fits outfile=/scratch/kocevski/620790/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1765.fits ra=12.4377 dec=2.6273 rad=12.0 tmin=696816001.0 tmax=697075201.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 3.84
user 3.48
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.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/620790/ft1_filteredMKT_4FGL_J0049.7+0237_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.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 0.56
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 668

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/620790/ltcube_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.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/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits
.....................!
real 15.83
user 15.35
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/620790/ltcube_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.fits outfile=/scratch/kocevski/620790/expmap_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.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/620790/ltcube_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.fits
.....................!
real 193.15
user 186.58
sys 5.35

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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0049.7+0237 @ 12.4377 2.6273

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.fits scfile=/scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits outfile=/scratch/kocevski/620790/cmap_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.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=12.4377 yref=2.6273 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.fits scfile=/scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits outfile=/scratch/kocevski/620790/cmap_HighResolution_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.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=12.4377 yref=2.6273 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620790/Model_4FGL_J0049.7+0237_daily_bin1765.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 GAL_V02
Working on...
/scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.fits.....................!
real 76.99
user 74.68
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.fits', '/scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits', expMap='/scratch/kocevski/620790/expmap_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.fits', expCube='/scratch/kocevski/620790/ltcube_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/620790/Model_4FGL_J0049.7+0237_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0049.7+0237'

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  1.528e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  2.211e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
199        Scale:  1.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/620790/ft1_filtered_4FGL_J0049.7+0237_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/620790/ft2_4FGL_J0049.7+0237_daily_bin1765.fits
Exposure map: /scratch/kocevski/620790/expmap_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.fits
Exposure cube: /scratch/kocevski/620790/ltcube_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/620790/Model_4FGL_J0049.7+0237_daily_bin1765.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) = 7181.47420101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33254E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .55599E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .31308E-06   1.0000          .0000       .10000E+07
     4 'norm      '    11.291       1.0000          .0000       .10000E+07
     5 'norm      '    .28435E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .27703E-01   1.0000          .0000       .10000E+07
     7 'norm      '    1.2748       1.0000          .0000       .10000E+07
     8 'Prefactor '    .70268E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.0785       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.1060       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.3384       1.0000          .0000       .10000E+07
    12 'norm      '    .10577E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    226.58       1.0000          .0000       .10000E+07
    14 'norm      '    .60000E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17773       1.0000          .0000       .10000E+07
    16 'Prefactor '    110.31       1.0000          .0000       .10000E+07
    17 'norm      '    33.381       1.0000          .0000       .10000E+07
    18 'Prefactor '    11.629       1.0000          .0000       .10000E+07
    19 'Prefactor '    .13867E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .29164       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7180.642     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1822 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12212E-08    5.0603        .24182E-07** at limit **
   2  Prefactor      .0000        5.2851        .68223E-07** at limit **
   3  norm           .0000        1.8986        .20027E-07** at limit **
   4  norm          11.221        5.3110        .70492E-08    .19699E-03
   5  norm           .0000        1.5821        .16395E-07** at limit **
   6  Prefactor      .0000        9.8556       -.11379E-07** at limit **
   7  norm          1.2169        7.6636        .54143E-07    .13314E-03
   8  Prefactor      .0000        21.468        .44799E-07** at limit **
   9  Prefactor     6.0945        6.1675        .10561E-07    .15315E-03
  10  Prefactor     6.1106        3.0096       -.96881E-09    .46018E-06
  11  Prefactor     1.4133        3.1655       -.38570E-07   -.37976E-03
  12  norm           .0000        1.7982        .35275E-07** at limit **
  13  Prefactor     220.73        52.244        .10875E-06    .39075E-03
  14  norm          .88818E-09    4.9992       -.48359E-08** at limit **
  15  Prefactor     .16664E-05    .83985       -.20126E-07** at limit **
  16  Prefactor     94.381        128.67        .84667E-06    .30168E-03
  17  norm          33.591        4.1081       -.11567E-07    .34568E-03
  18  Prefactor     11.581        9.9246       -.12253E-07   -.24244E-03
  19  Prefactor     .22204E-09    93.684       -.44192E-06** at limit **
  20  Normalizat    .29699        .22525       -.20562E-05    .69391E-05
  21  Prefactor     1.3187        .17759        .54645E-06    .41918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22125e-09
  Prefactor  = 0
  norm       = 0
  norm       = 11.2206
  norm       = 0
  Prefactor  = 0
  norm       = 1.2169
  Prefactor  = 0
  Prefactor  = 6.09445
  Prefactor  = 6.11062
  Prefactor  = 1.41332
  norm       = 0
  Prefactor  = 220.731
  norm       = 8.88178e-10
  Prefactor  = 1.66644e-06
  Prefactor  = 94.3814
  norm       = 33.5912
  Prefactor  = 11.5811
  Prefactor  = 2.22045e-10
  Normalizat = 0.296995
  Prefactor  = 1.31871
 **********
 **   18 **HESSE 
 **********

 FCN=   7180.642     FROM HESSE     STATUS=OK           361 CALLS     2183 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12212E-08    5.1027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        5.2849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.8718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.221        5.3484        .29790E-03   -1.5641    
   5  norm           .0000        1.5809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        9.4188        .16574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2169        7.7337        .98404E-03   -1.5686    
   8  Prefactor      .0000        21.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0945        6.1610        .40699E-03   -1.5659    
  10  Prefactor     6.1106        3.0286        .40606E-03   -1.5659    
  11  Prefactor     1.4133        3.2491        .94745E-03   -1.5684    
  12  norm           .0000        1.8099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     220.73        53.204        .66442E-04   -1.5411    
  14  norm          .88818E-09    5.0407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16664E-05    41.622        .12186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     94.381        129.29        .95217E-04   -1.5514    
  17  norm          33.591        4.1108        .17310E-03   -1.5592    
  18  Prefactor     11.581        10.048        .29352E-03   -1.5640    
  19  Prefactor     .22204E-09    94.723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .29699        .24177        .12103       -1.2302    
  21  Prefactor     1.3187        .18424        .48973E-01   -.82752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85165e-06
Minuit parameter uncertainties:
  1  0.000157156
  2  1.42662e-05
  3  4.88922e-06
  4  5.34844
  5  2.52997e-06
  6  4.14374e-06
  7  6.13551
  8  1.45317e-05
  9  6.16101
  10  3.02862
  11  3.24907
  12  4.61892e-06
  13  53.2039
  14  0.000132966
  15  0.0166567
  16  129.291
  17  4.11077
  18  10.0479
  19  0.000303255
  20  0.242626
  21  0.184329
Done.

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

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  6.111e+00  3.029e+00  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  2.211e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
199        Scale:  1.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.319e+00  1.843e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  2.970e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.36
Ra Dec: 12.438 2.627
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 8.46e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 3.73e-05 +/- 1.85e-05

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) = 7180.57328643
delta logL = 0.0683754710426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7180.57021482
delta logL = 0.0714470772155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5462       1.0000          .0000       .10000E+07
     2 'Index     '    2.3699       1.0000          .0000       10.000    
     3 'Normalizat'    .28320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7180.570     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      242 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5462        46.417        .42637E-03    .68381E-02
   2  Index         2.3699        3.1499        .14892        .10486E-03
   3  Normalizat    .28322        .11669        .12383        .80614E-04
   4  Prefactor     1.3252        .68775E-01    .48858E-01   -.60204E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.54618
  Index      = 2.36988
  Normalizat = 0.283224
  Prefactor  = 1.32518
 **********
 **   18 **HESSE 
 **********

 FCN=   7180.570     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5462        3.2787        .90561E-05   -1.5661    
   2  Index         2.3699        .43798        .55009E-02   -.55392    
   3  Normalizat    .28322        .21945        .54810E-03   -1.2385    
   4  Prefactor     1.3252        .17746        .21595E-03   -.82561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56353e-09
Minuit parameter uncertainties:
  1  3.2787
  2  0.438754
  3  0.220122
  4  0.177544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620790': 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) = 7180.57021482
delta logL = 0.0714470843768

Extracting fit parameters...

4FGL J0049.7+0237
   Spectrum: PowerLaw
197    Prefactor:  5.546e+00  3.279e+00  0.000e+00  1.000e+06 ( 1.000e-12)
198        Index:  2.370e+00  4.388e-01  0.000e+00  1.000e+01 (-1.000e+00)
199        Scale:  1.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.325e+00  1.775e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  2.832e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.52
Ra Dec: 12.438 2.627
Photon Index (Free Index): 2.37 +/- 0.44
Photon Flux (Free Index): 9.82e-08 +/- 5.76e-08
Energy Flux (Free Index): 3.35e-05 +/- 1.83e-05

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/620790/cmap_HighResolution_696816001_697075201_4FGL_J0049.7+0237_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-08', energy_flux2='3.35e-05', photon_flux_error='4.19e-08', dlogl='7.14e-02', energy_flux='3.73e-05', photon_flux2='9.82e-08', job_status='DONE', time_completed='2023-02-03 00:20:54.740165', photon_index_error2='0.44', photon_index2='2.37', ts='9.36', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='0.30', time_epoch_completed='1675412454.74', return_code='0', job_id='620790', GAL2='1.33', EG2='0.28', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='5.76e-08', ts2='9.52', photon_index='2.21' WHERE bin_id='1765' AND source_name='4FGL J0049.7+0237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 00:20:54 PST 2023

------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 620705: <4FGL_J0049.7+0237_daily_bin1765> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1765> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Feb  3 00:05:20 2023
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:08:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:08:34 2023
Terminated at Fri Feb  3 00:19:55 2023
Results reported at Fri Feb  3 00:19:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1765 12.4377 2.6273 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0049.7+0237 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   596.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            875 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 620790: <4FGL_J0049.7+0237_daily_bin1765> in cluster <slac> Done

Job <4FGL_J0049.7+0237_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:05:25 2023
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:09:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:09:31 2023
Terminated at Fri Feb  3 00:20:55 2023
Results reported at Fri Feb  3 00:20:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0049.7+0237_daily_bin1765 12.4377 2.6273 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0049.7+0237 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   600.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            930 sec.

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

