/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 5 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2252.0+4031_daily_bin398
RA = 343.01, Dec = 40.5232
tmin = 342489601, tmax = 342748801
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='557157', job_status='RUN', time_executed='2021-09-29 00:55:31.392379', time_epoch_executed='1632902131.39' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/557157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/557157/ft1_4FGL_J2252.0+4031_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/557157/ft1_4FGL_J2252.0+4031_daily_bin398.fits outfile=/scratch/kocevski/557157/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin398.fits ra=343.01 dec=40.5232 rad=12.0 tmin=342489601.0 tmax=342748801.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.43
user 3.22
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.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/557157/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin398.fits evtable="EVENTS" outfile="/scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/557157/ltcube_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.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/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits
.....................!
real 11.89
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/557157/ltcube_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.fits outfile=/scratch/kocevski/557157/expmap_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.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/557157/ltcube_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.fits
.....................!
real 189.54
user 185.31
sys 3.91

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 J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 173 point sources and 2 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 J2252.0+4031 @ 343.01 40.5232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.fits scfile=/scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits outfile=/scratch/kocevski/557157/cmap_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.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=343.01 yref=40.5232 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.fits scfile=/scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits outfile=/scratch/kocevski/557157/cmap_HighResolution_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.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=343.01 yref=40.5232 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/557157/Model_4FGL_J2252.0+4031_daily_bin398.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.fits.....................!
real 154.09
user 152.64
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.fits', '/scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits', expMap='/scratch/kocevski/557157/expmap_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.fits', expCube='/scratch/kocevski/557157/ltcube_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/557157/Model_4FGL_J2252.0+4031_daily_bin398.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2252.0+4031'

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  2.093e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/557157/ft1_filtered_4FGL_J2252.0+4031_daily_bin398.fits
Spacecraft file(s): /scratch/kocevski/557157/ft2_4FGL_J2252.0+4031_daily_bin398.fits
Exposure map: /scratch/kocevski/557157/expmap_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.fits
Exposure cube: /scratch/kocevski/557157/ltcube_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/557157/Model_4FGL_J2252.0+4031_daily_bin398.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) = 12804.1006221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.929       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4537       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .85268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3385       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9593       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.369       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9183       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1474       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12804.08     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     2005 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4068        1.2698       -.37101E-07   -.48003E-04
   2  Prefactor     .10000E-03    7.8998        .68439E-06** at limit **
   3  Prefactor     18.715        16.676       -.15307E-05   -.59336E-03
   4  Prefactor     29.924        40.834       -.85108E-05    .53688E-05
   5  Prefactor     .10000E-03    6.0755       -.21606E-05** at limit **
   6  Prefactor     .10000E-03    5.9329        .25354E-05** at limit **
   7  norm          .10000E-03    1.5172       -.23664E-07** at limit **
   8  Prefactor     14.030        12.455        .32012E-06    .26262E-04
   9  Prefactor     8.4543        5.9416       -.12841E-05   -.23881E-02
  10  Prefactor     .10000E-03    13.023        .17507E-06** at limit **
  11  norm          .85287        1.2003       -.38091E-06   -.18457E-03
  12  Prefactor     4.3397        10.563       -.47460E-06   -.12301E-03
  13  norm          .10000E-03    1.8646       -.22145E-07** at limit **
  14  norm          .10000E-03    5.9942        .88136E-06** at limit **
  15  Prefactor     .10000E-03    6.2511       -.24526E-05** at limit **
  16  norm          3.9593        2.8299       -.21008E-06   -.41890E-03
  17  Prefactor     21.370        19.788        .49228E-06    .12345E-04
  18  Prefactor     8.8696        64.766       -.15154E-03    .18074E-04
  19  Normalizat    1.1472        .21699        .62470E-05    .82884E-06
  20  Prefactor     .94292        .66609E-01    .12224E-06    .44579E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.40683
  Prefactor  = 0.0001
  Prefactor  = 18.7149
  Prefactor  = 29.9238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.03
  Prefactor  = 8.45433
  Prefactor  = 0.0001
  norm       = 0.852866
  Prefactor  = 4.33969
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95926
  Prefactor  = 21.3698
  Prefactor  = 8.86964
  Normalizat = 1.14724
  Prefactor  = 0.942923
 **********
 **   18 **HESSE 
 **********

 FCN=   12804.08     FROM HESSE     STATUS=OK           291 CALLS     2296 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4068        1.2722        .45148E-04   -1.5128    
   2  Prefactor     .10000E-03    7.9012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.715        16.718        .46290E-03   -1.4842    
   4  Prefactor     29.924        40.833        .73236E-04   -1.4613    
   5  Prefactor     .10000E-03    6.2567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9017        .26741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.030        12.455        .10694E-03   -1.4959    
   9  Prefactor     8.4543        5.9059        .68937E-03   -1.5126    
  10  Prefactor     .10000E-03    13.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .85287        1.2021        .50539E-04   -1.5523    
  12  Prefactor     4.3397        10.545        .19339E-03   -1.5291    
  13  norm          .10000E-03    1.8816        .15087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.0306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9593        2.8213        .15347E-03   -1.5310    
  17  Prefactor     21.370        19.797        .86646E-04   -1.4783    
  18  Prefactor     8.8696        64.729        .13421E-03   -1.5112    
  19  Normalizat    1.1472        .24730        .45240E-03   -.88249    
  20  Prefactor     .94292        .76503E-01    .15536E-03   -.94657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16476e-09
Minuit parameter uncertainties:
  1  1.27221
  2  7.10609e-06
  3  16.7226
  4  40.8713
  5  1.20941e-05
  6  8.50743e-06
  7  1.7027e-05
  8  12.4573
  9  5.90631
  10  2.1769e-05
  11  1.20217
  12  10.5493
  13  6.87807e-06
  14  4.08632e-06
  15  1.50252e-05
  16  2.82137
  17  19.8029
  18  47.9945
  19  0.247552
  20  0.076512
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  8.454e+00  5.906e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.429e-01  7.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.147e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.89
Ra Dec: 343.010 40.523
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.91e-05

TS (Fixed Index): 3.89
Ra Dec: 343.010 40.523
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/557157/likelihoodResults_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.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) = 12803.7424365
delta logL = 0.340065599152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12803.7392457
delta logL = 0.343256374035

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12803.74     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      254 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7003        55.812        .46470E-02    .47417E-03
   2  Index         2.5070        2.5105        .10679        .32096E-03
   3  Normalizat    1.1185        .96589E-01    .10317        .39672E-04
   4  Prefactor     .94730        .25952E-01    .35075E-01   -.56981E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70031
  Index      = 2.50696
  Normalizat = 1.1185
  Prefactor  = 0.947301
 **********
 **   18 **HESSE 
 **********

 FCN=   12803.74     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7003        7.5395        .14560E-03   -1.5274    
   2  Index         2.5070        .76917        .59902E-02   -.52199    
   3  Normalizat    1.1185        .24340        .45725E-03   -.89160    
   4  Prefactor     .94730        .76060E-01    .15499E-03   -.94507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32164e-11
Minuit parameter uncertainties:
  1  7.54101
  2  0.773263
  3  0.243648
  4  0.0760686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/557157': 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) = 12803.7392427
delta logL = 0.343259418574

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  4.700e+00  7.541e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.507e+00  7.733e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.473e-01  7.607e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.119e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.59
Ra Dec: 343.010 40.523
Photon Index (Free Index): 2.51 +/- 0.77
Photon Flux (Free Index): 7.09e-08 +/- 5.18e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.57e-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/557157/cmap_HighResolution_342489601_342748801_4FGL_J2252.0+4031_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.68e-03', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='2.04e-05', photon_flux_error='3.13e-08', dlogl='3.43e-01', energy_flux='2.74e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-29 01:11:54.113946', photon_index_error2='0.77', photon_index2='2.51', ts='3.89', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.57e-05', EG='1.15', time_epoch_completed='1632903114.11', return_code='0', job_id='557157', GAL2='0.95', EG2='1.12', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='5.18e-08', ts2='4.59', photon_index='2.05' WHERE bin_id='398' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:11:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 557157: <4FGL_J2252.0+4031_daily_bin398> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin398> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:55:16 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:55:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:55:18 2021
Terminated at Wed Sep 29 01:11:54 2021
Results reported at Wed Sep 29 01:11:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin398 343.01 40.5232 342489601 342748801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2252.0+4031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   976.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

