/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 211 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 = 7349
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0253.9+5103_daily_bin1250
RA = 43.4933, Dec = 51.0633
tmin = 563328001, tmax = 563587201
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='952406', job_status='RUN', time_executed='2021-08-17 04:09:52.173827', time_epoch_executed='1629198592.17' WHERE source_name='4FGL J0253.9+5103' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952406/ft1_4FGL_J0253.9+5103_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952406/ft1_4FGL_J0253.9+5103_daily_bin1250.fits outfile=/scratch/kocevski/952406/ft1_filteredMKT_4FGL_J0253.9+5103_daily_bin1250.fits ra=43.4933 dec=51.0633 rad=12.0 tmin=563328001.0 tmax=563587201.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 5.34
user 2.80
sys 2.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.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/952406/ft1_filteredMKT_4FGL_J0253.9+5103_daily_bin1250.fits evtable="EVENTS" outfile="/scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.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 2.71
user 0.35
sys 2.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/952406/ltcube_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.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/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits
.....................!
real 16.87
user 14.04
sys 2.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/952406/ltcube_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.fits outfile=/scratch/kocevski/952406/expmap_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.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/952406/ltcube_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.fits
.....................!
real 196.59
user 188.34
sys 7.25

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 180 point sources and 4 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 J0253.9+5103 @ 43.4933 51.0633

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.fits scfile=/scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits outfile=/scratch/kocevski/952406/cmap_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.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=43.4933 yref=51.0633 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 2.87
user 0.38
sys 2.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.fits scfile=/scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits outfile=/scratch/kocevski/952406/cmap_HighResolution_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.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=43.4933 yref=51.0633 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 2.80
user 0.39
sys 2.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952406/Model_4FGL_J0253.9+5103_daily_bin1250.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.fits.....................!
real 62.14
user 56.83
sys 4.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.fits', '/scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits', expMap='/scratch/kocevski/952406/expmap_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.fits', expCube='/scratch/kocevski/952406/ltcube_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/952406/Model_4FGL_J0253.9+5103_daily_bin1250.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.9+5103'

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/952406/ft1_filtered_4FGL_J0253.9+5103_daily_bin1250.fits
Spacecraft file(s): /scratch/kocevski/952406/ft2_4FGL_J0253.9+5103_daily_bin1250.fits
Exposure map: /scratch/kocevski/952406/expmap_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.fits
Exposure cube: /scratch/kocevski/952406/ltcube_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/952406/Model_4FGL_J0253.9+5103_daily_bin1250.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) = 2338.86309379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24355E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4837       1.0000         .10000E-03   10000.    
     5 'norm      '    8.0052       1.0000         .10000E-03   10000.    
     6 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'norm      '    9999.9       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10421E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18157E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.048       1.0000         .10000E-03   10000.    
    16 'norm      '    28.235       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    .50800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2338.305     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1779 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.017        .46980E-06** at limit **
   2  norm          .10000E-03    9.8132        .29784E-06** at limit **
   3  Prefactor     .19420E-01    10.791       -.19816E-06    .11389E-02
   4  norm          1.4241        23.957       -.29914E-06    .19361E-02
   5  norm          8.0022        3.4351        .10022E-06   -.47443E-03
   6  norm         10000.0        38.943        .40935E-06** at limit **
   7  Prefactor    10000.0        147.46        .28705E-05** at limit **
   8  norm          9999.9        2.6717        .95849E-07   -.51085E-03
   9  Prefactor    10000.0        .31466        .11203E-07** at limit **
  10  Prefactor     .99067E-02    .46130       -.30982E-07    .18837E-03
  11  norm          .10001E-03    46.601        .42686E-06** at limit **
  12  Prefactor     .12086E-03    152.69       -.11578E-05** at limit **
  13  norm          .11660E-03    154.47       -.11433E-05** at limit **
  14  Prefactor     .10000E-03    38.607        .10981E-05** at limit **
  15  Prefactor     23.043        1.1043       -.21262E-08   -.14462E-02
  16  norm          28.277        7.5628        .15613E-06   -.33596E-02
  17  Normalizat    .10000E-01    .74101E-01   -.39383E-06** at limit **
  18  Prefactor     .50798        .53033E-01   -.73802E-07    .27519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0194203
  norm       = 1.42411
  norm       = 8.00221
  norm       = 10000
  Prefactor  = 10000
  norm       = 9999.87
  Prefactor  = 10000
  Prefactor  = 0.00990669
  norm       = 0.000100009
  Prefactor  = 0.00012086
  norm       = 0.000116605
  Prefactor  = 0.0001
  Prefactor  = 23.0426
  norm       = 28.2766
  Normalizat = 0.01
  Prefactor  = 0.507981
 **********
 **   18 **HESSE 
 **********

 FCN=   2338.305     FROM HESSE     STATUS=OK           270 CALLS     2049 TOTAL
                     EDM=   .54E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.8135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .19420E-01    7471.8        .91442E-02   -1.5680    
   4  norm          1.4241        9851.3        .88058E-02   -1.5469    
   5  norm          8.0022        3.4355        .35428E-02   -1.5142    
   6  norm         10000.0        656.53        .10013E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        160.55        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9999.9        9494.4        .96977E-02    1.5635    
   9  Prefactor    10000.0        9744.1        .10604E-01    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .99067E-02    9987.8        .90751E-02   -1.5688    
  11  norm          .10001E-03    46.618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12086E-03    325.17        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11660E-03    330.82        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.043        21.889        .20859E-02   -1.4748    
  16  norm          28.277        26.151        .18849E-02   -1.4644    
  17  Normalizat    .10000E-01    .73989E-01    .18428       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .50798        .54954E-01    .25379E-01   -1.1161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37597e-05
Minuit parameter uncertainties:
  1  0.000205395
  2  6.56762e-05
  3  21.7155
  4  418.976
  5  3.43553
  6  0.444441
  7  0.0264625
  8  138.173
  9  4.77047
  10  32.1106
  11  0.00128087
  12  0.165622
  13  0.149062
  14  5.45408e-05
  15  21.897
  16  26.1616
  17  2.38371e-07
  18  0.05496
Done.

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

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.000e+04  2.646e-02  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  5.080e-01  5.496e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.000e-02  2.384e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 89.52
Ra Dec: 43.493 51.063
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.18e-04 +/- 5.76e-10
Energy Flux (Fixed Index): 6.56e-02 +/- 1.74e-07

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) = 2262.4486015
delta logL = 75.8560720108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2262.44808431
delta logL = 75.8565892052

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2262.448     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      217 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        748.36        .90733E-02** at limit **
   2  Index         3.8142        .65161E-01    .13990E-01   -.78982E-04
   3  Normalizat    .10000E-01    .52802E-01    .15299    ** at limit **
   4  Prefactor     .37499        .45425E-01    .24938E-01   -.66192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 3.81421
  Normalizat = 0.01
  Prefactor  = 0.374991
 **********
 **   18 **HESSE 
 **********

 FCN=   2262.448     FROM HESSE     STATUS=OK            27 CALLS      244 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        748.35        .18147E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8142        .65234E-01    .61898E-04   -.23944    
   3  Normalizat    .10000E-01    .52817E-01    .33765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .37499        .45390E-01    .11022E-03   -1.1810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56159e-10
Minuit parameter uncertainties:
  1  0.00814901
  2  0.0652359
  3  1.58262e-06
  4  0.0453942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952406': 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) = 2262.44807811
delta logL = 75.8565954012

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.000e+04  8.149e-03  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  3.814e+00  6.524e-02  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  3.750e-01  4.539e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.000e-02  1.583e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 242.95
Ra Dec: 43.493 51.063
Photon Index (Free Index): 3.81 +/- 0.07
Photon Flux (Free Index): 2.65e-03 +/- 3.41e-04
Energy Flux (Free Index): 4.10e-01 +/- 4.77e-02

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/952406/cmap_HighResolution_563328001_563587201_4FGL_J0253.9+5103_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-04', energy_flux2='4.10e-01', photon_flux_error='5.76e-10', dlogl='7.59e+01', energy_flux='6.56e-02', photon_flux2='2.65e-03', job_status='DONE', time_completed='2021-08-17 04:17:50.456821', photon_index_error2='0.07', photon_index2='3.81', ts='89.52', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='4.77e-02', EG='0.01', time_epoch_completed='1629199070.46', return_code='0', job_id='952406', GAL2='0.37', EG2='0.01', return_code2='0', energy_flux_error='1.74e-07', photon_flux_error2='3.41e-04', ts2='242.95', photon_index='2.47' WHERE bin_id='1250' AND source_name='4FGL J0253.9+5103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:17:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 952406: <4FGL_J0253.9+5103_daily_bin1250> in cluster <slac> Done

Job <4FGL_J0253.9+5103_daily_bin1250> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 04:05:34 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 04:05:37 2021
Terminated at Tue Aug 17 04:17:51 2021
Results reported at Tue Aug 17 04:17:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.9+5103_daily_bin1250 43.4933 51.0633 563328001 563587201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0253.9+5103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   504.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             250.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

