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


Performing analysis on: 4FGL_J0253.9+5103_daily_bin1425
RA = 43.4933, Dec = 51.0633
tmin = 608688001, tmax = 608947201
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='953863', job_status='RUN', time_executed='2021-08-17 04:13:42.635777', time_epoch_executed='1629198822.64' WHERE source_name='4FGL J0253.9+5103' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953863/ft1_4FGL_J0253.9+5103_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953863/ft1_4FGL_J0253.9+5103_daily_bin1425.fits outfile=/scratch/kocevski/953863/ft1_filteredMKT_4FGL_J0253.9+5103_daily_bin1425.fits ra=43.4933 dec=51.0633 rad=12.0 tmin=608688001.0 tmax=608947201.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.60
user 2.86
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.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/953863/ft1_filteredMKT_4FGL_J0253.9+5103_daily_bin1425.fits evtable="EVENTS" outfile="/scratch/kocevski/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.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.28
user 0.32
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/953863/ltcube_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.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/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits
.....................!
real 13.59
user 12.63
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/953863/ltcube_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.fits outfile=/scratch/kocevski/953863/expmap_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.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/953863/ltcube_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.fits
.....................!
real 192.94
user 185.29
sys 5.61

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/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.fits scfile=/scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits outfile=/scratch/kocevski/953863/cmap_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.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 0.86
user 0.38
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.fits scfile=/scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits outfile=/scratch/kocevski/953863/cmap_HighResolution_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.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 0.96
user 0.39
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953863/Model_4FGL_J0253.9+5103_daily_bin1425.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/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.fits.....................!
real 98.51
user 94.29
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.fits', '/scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits', expMap='/scratch/kocevski/953863/expmap_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.fits', expCube='/scratch/kocevski/953863/ltcube_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953863/Model_4FGL_J0253.9+5103_daily_bin1425.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/953863/ft1_filtered_4FGL_J0253.9+5103_daily_bin1425.fits
Spacecraft file(s): /scratch/kocevski/953863/ft2_4FGL_J0253.9+5103_daily_bin1425.fits
Exposure map: /scratch/kocevski/953863/expmap_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.fits
Exposure cube: /scratch/kocevski/953863/ltcube_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953863/Model_4FGL_J0253.9+5103_daily_bin1425.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) = 4226.53449026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.917       1.0000         .10000E-03   10000.    
     2 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13545E-03   1.0000         .10000E-03   10000.    
     4 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3317       1.0000         .10000E-03   10000.    
     6 'norm      '    .11220E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7125.0       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13656E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14514E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3068       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    25.866       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4307       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    24.228       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    .60149       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4225.012     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     1971 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.911        25.188       -.13208E-04   -.26945E-04
   2  norm          .10000E-03    4.3646       -.14590E-06** at limit **
   3  Prefactor     .10000E-03    93.119       -.36771E-04** at limit **
   4  norm         10000.0        7554.2        .67775E-03** at limit **
   5  norm          6.3313        1.0703       -.66872E-06    .26811E-03
   6  norm          .10000E-03    16.691       -.50030E-06** at limit **
   7  Prefactor     7126.3        914.82        .27193E-03    .36862E-04
   8  norm          .10000E-03    56.087        .67524E-05** at limit **
   9  Prefactor     .10000E-03    27.491       -.52754E-06** at limit **
  10  Prefactor     .10000E-03    241.93        .22028E-03** at limit **
  11  norm          6.3086        3.0357       -.28594E-06   -.33559E-03
  12  Prefactor     .10000E-03    20.267        .44448E-06** at limit **
  13  norm          25.861        126.07       -.11665E-04    .55001E-06
  14  Prefactor     8.1496        158.51       -.55443E-03    .10134E-03
  15  Prefactor     .10000E-03    2.9047       -.24906E-06** at limit **
  16  norm          24.216        16.926       -.32506E-05    .31834E-04
  17  Normalizat    .10000E-01    .57828E-01   -.60429E-05** at limit **
  18  Prefactor     .60157        .55430E-01   -.81867E-06    .93811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9114
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 6.3313
  norm       = 0.0001
  Prefactor  = 7126.28
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.30858
  Prefactor  = 0.0001
  norm       = 25.8608
  Prefactor  = 8.14962
  Prefactor  = 0.0001
  norm       = 24.2164
  Normalizat = 0.01
  Prefactor  = 0.601574
 **********
 **   18 **HESSE 
 **********

 FCN=   4225.012     FROM HESSE     STATUS=OK           234 CALLS     2205 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.911        25.217        .11604E-03   -1.5018    
   2  norm          .10000E-03    4.3650        .13263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    93.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        7555.7        .20453E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3313        1.0732        .15952E-04   -1.5205    
   6  norm          .10000E-03    16.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7126.3        917.89        .44190E-04    .43925    
   8  norm          .10000E-03    56.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    242.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3086        3.0358        .76652E-04   -1.5206    
  12  Prefactor     .10000E-03    20.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          25.861        126.10        .78765E-04   -1.4690    
  14  Prefactor     8.1496        160.95        .13806E-03   -1.5137    
  15  Prefactor     .10000E-03    2.9098        .10807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.216        16.961        .81381E-04   -1.4723    
  17  Normalizat    .10000E-01    .57978E-01    .48036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .60157        .55829E-01    .12967E-03   -1.0752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20489e-09
Minuit parameter uncertainties:
  1  25.2393
  2  2.45049e-05
  3  0.000140567
  4  0.0151838
  5  1.07318
  6  4.18845e-05
  7  924.308
  8  0.000132765
  9  4.15979e-05
  10  0.00010474
  11  3.03586
  12  0.000138899
  13  114.604
  14  72.6584
  15  3.45328e-05
  16  16.9641
  17  4.38613e-06
  18  0.0558342
Done.

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

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  7.126e+03  9.243e+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:  6.016e-01  5.583e-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  4.386e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 161.34
Ra Dec: 43.493 51.063
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.55e-04 +/- 2.01e-05
Energy Flux (Fixed Index): 4.68e-02 +/- 6.06e-03

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) = 4202.18498977
delta logL = 22.8267173175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4202.16435043
delta logL = 22.847356662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1133.9       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6867       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59999       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4202.164     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      299 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1134.5        497.56        .63078E-04   -.83628E-05
   2  Index         3.6865        .22991        .79319E-04   -.20353E-04
   3  Normalizat    .10000E-01    .51032E-01    .45044E-02** at limit **
   4  Prefactor     .60004        .49766E-01    .12733E-03    .12116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1134.52
  Index      = 3.68646
  Normalizat = 0.01
  Prefactor  = 0.600039
 **********
 **   18 **HESSE 
 **********

 FCN=   4202.164     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1134.5        493.49        .12616E-04   -.88371    
   2  Index         3.6865        .22802        .31727E-05   -.26583    
   3  Normalizat    .10000E-01    .51032E-01    .90088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .60004        .49756E-01    .25466E-04   -1.0758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05475e-12
Minuit parameter uncertainties:
  1  495.502
  2  0.2281
  3  1.3403e-07
  4  0.0497595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953863': 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) = 4202.16434883
delta logL = 22.8473582619

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.135e+03  4.955e+02  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  3.686e+00  2.281e-01  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:  6.000e-01  4.976e-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.340e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 204.58
Ra Dec: 43.493 51.063
Photon Index (Free Index): 3.69 +/- 0.23
Photon Flux (Free Index): 2.33e-04 +/- 2.83e-05
Energy Flux (Free Index): 3.71e-02 +/- 4.47e-03

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/953863/cmap_HighResolution_608688001_608947201_4FGL_J0253.9+5103_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.55e-04', energy_flux2='3.71e-02', photon_flux_error='2.01e-05', dlogl='2.28e+01', energy_flux='4.68e-02', photon_flux2='2.33e-04', job_status='DONE', time_completed='2021-08-17 04:23:34.344613', photon_index_error2='0.23', photon_index2='3.69', ts='161.34', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='4.47e-03', EG='0.01', time_epoch_completed='1629199414.34', return_code='0', job_id='953863', GAL2='0.60', EG2='0.01', return_code2='0', energy_flux_error='6.06e-03', photon_flux_error2='2.83e-05', ts2='204.58', photon_index='2.47' WHERE bin_id='1425' AND source_name='4FGL J0253.9+5103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:23:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 953863: <4FGL_J0253.9+5103_daily_bin1425> in cluster <slac> Done

Job <4FGL_J0253.9+5103_daily_bin1425> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 04:10:39 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:11:45 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:11:45 2021
Terminated at Tue Aug 17 04:23:35 2021
Results reported at Tue Aug 17 04:23:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.9+5103_daily_bin1425 43.4933 51.0633 608688001 608947201 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 :                                   561.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            776 sec.

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

