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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin672
RA = 343.01, Dec = 40.5232
tmin = 413510401, tmax = 413769601
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='558887', job_status='RUN', time_executed='2021-09-29 01:04:12.153545', time_epoch_executed='1632902652.15' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558887/ft1_4FGL_J2252.0+4031_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558887/ft2_4FGL_J2252.0+4031_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558887/ft1_4FGL_J2252.0+4031_daily_bin672.fits outfile=/scratch/kocevski/558887/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin672.fits ra=343.01 dec=40.5232 rad=12.0 tmin=413510401.0 tmax=413769601.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.52
user 5.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/558887/ft2_4FGL_J2252.0+4031_daily_bin672.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/558887/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin672.fits evtable="EVENTS" outfile="/scratch/kocevski/558887/ft1_filtered_4FGL_J2252.0+4031_daily_bin672.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558887/ft1_filtered_4FGL_J2252.0+4031_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/558887/ft2_4FGL_J2252.0+4031_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/558887/ltcube_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.fits outfile=/scratch/kocevski/558887/expmap_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.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/558887/ltcube_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.fits
.....................!
real 190.87
user 185.03
sys 5.53

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/558887/ft1_filtered_4FGL_J2252.0+4031_daily_bin672.fits scfile=/scratch/kocevski/558887/ft2_4FGL_J2252.0+4031_daily_bin672.fits outfile=/scratch/kocevski/558887/cmap_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/558887/ft1_filtered_4FGL_J2252.0+4031_daily_bin672.fits scfile=/scratch/kocevski/558887/ft2_4FGL_J2252.0+4031_daily_bin672.fits outfile=/scratch/kocevski/558887/cmap_HighResolution_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.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/558887/ft1_filtered_4FGL_J2252.0+4031_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/558887/ft2_4FGL_J2252.0+4031_daily_bin672.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/558887/Model_4FGL_J2252.0+4031_daily_bin672.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/558887/ft1_filtered_4FGL_J2252.0+4031_daily_bin672.fits.....................!
real 91.61
user 90.28
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/558887/ft1_filtered_4FGL_J2252.0+4031_daily_bin672.fits', '/scratch/kocevski/558887/ft2_4FGL_J2252.0+4031_daily_bin672.fits', expMap='/scratch/kocevski/558887/expmap_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.fits', expCube='/scratch/kocevski/558887/ltcube_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/558887/Model_4FGL_J2252.0+4031_daily_bin672.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/558887/ft1_filtered_4FGL_J2252.0+4031_daily_bin672.fits
Spacecraft file(s): /scratch/kocevski/558887/ft2_4FGL_J2252.0+4031_daily_bin672.fits
Exposure map: /scratch/kocevski/558887/expmap_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.fits
Exposure cube: /scratch/kocevski/558887/ltcube_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/558887/Model_4FGL_J2252.0+4031_daily_bin672.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) = 7047.86678104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.048       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.591       1.0000         .10000E-03   10000.    
     7 'norm      '    7.2431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3777       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3852       1.0000         .10000E-03   10000.    
    14 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96713       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95052       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=   7047.860     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2006 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1248        1.3192       -.56792E-07    .39195E-03
   2  Prefactor     .10000E-03    20.792       -.17967E-04** at limit **
   3  Prefactor     16.483        18.110        .84364E-06    .14765E-03
   4  Prefactor     57.055        67.491        .84806E-05    .28367E-05
   5  Prefactor     .10000E-03    14.069       -.29468E-05** at limit **
   6  Prefactor     15.591        19.840        .17650E-07   -.16319E-05
   7  norm          7.2443        4.7339        .20569E-06    .14836E-03
   8  Prefactor     29.382        26.835       -.34233E-05   -.11019E-04
   9  Prefactor     7.8415        7.1636       -.18992E-07   -.63521E-04
  10  Prefactor     .10000E-03    14.078        .68682E-06** at limit **
  11  norm          2.3779        1.8290       -.59119E-07   -.38544E-03
  12  Prefactor     .10000E-03    24.376        .10149E-04** at limit **
  13  norm          1.3847        3.7715       -.68378E-06   -.77166E-03
  14  norm          .10000E-03    12.331        .11877E-04** at limit **
  15  Prefactor     .10000E-03    11.492       -.63853E-05** at limit **
  16  norm          2.8555        2.8815       -.24854E-06   -.71910E-03
  17  Prefactor     .10000E-03    42.734       -.28900E-04** at limit **
  18  Prefactor     .10000E-03    30.963        .30230E-04** at limit **
  19  Normalizat    .96717        .26546        .13183E-05   -.60297E-04
  20  Prefactor     .95049        .86809E-01   -.27446E-06    .96754E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12477
  Prefactor  = 0.0001
  Prefactor  = 16.4828
  Prefactor  = 57.0554
  Prefactor  = 0.0001
  Prefactor  = 15.5914
  norm       = 7.24434
  Prefactor  = 29.3815
  Prefactor  = 7.84152
  Prefactor  = 0.0001
  norm       = 2.37792
  Prefactor  = 0.0001
  norm       = 1.38471
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.967169
  Prefactor  = 0.950491
 **********
 **   18 **HESSE 
 **********

 FCN=   7047.860     FROM HESSE     STATUS=OK           295 CALLS     2301 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1248        1.3184        .58226E-04   -1.5354    
   2  Prefactor     .10000E-03    20.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.483        18.100        .98655E-04   -1.4896    
   4  Prefactor     57.055        67.498        .26556E-03   -1.4196    
   5  Prefactor     .10000E-03    14.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.591        19.839        .10143E-03   -1.4918    
   7  norm          7.2443        4.7122        .14101E-03   -1.5170    
   8  Prefactor     29.382        26.832        .73909E-04   -1.4623    
   9  Prefactor     7.8415        7.1575        .14319E-03   -1.5148    
  10  Prefactor     .10000E-03    14.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3779        1.8206        .94739E-04   -1.5400    
  12  Prefactor     .10000E-03    25.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3847        3.7254        .26156E-03   -1.5473    
  14  norm          .10000E-03    12.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8555        2.8748        .13864E-03   -1.5370    
  17  Prefactor     .10000E-03    42.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96717        .29112        .44050E-03   -.94139    
  20  Prefactor     .95049        .96121E-01    .14633E-03   -.94398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35911e-10
Minuit parameter uncertainties:
  1  1.31838
  2  2.93959e-06
  3  18.106
  4  67.5891
  5  8.52836e-06
  6  19.8476
  7  4.71248
  8  26.8435
  9  7.15828
  10  1.06117e-06
  11  1.82069
  12  0.000168409
  13  3.72607
  14  8.07809e-05
  15  1.04583e-05
  16  2.8749
  17  0.000176244
  18  1.86265e-05
  19  0.291599
  20  0.0961387
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  7.842e+00  7.158e+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.505e-01  9.614e-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:  9.672e-01  2.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 343.010 40.523
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 2.32e-05

TS (Fixed Index): 2.73
Ra Dec: 343.010 40.523
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/558887/likelihoodResults_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.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) = 7047.84857894
delta logL = 0.0116515655327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7047.84385354
delta logL = 0.0163769666906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6669       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9344       1.0000          .0000       10.000    
     3 'Normalizat'    .97250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94980       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=   7047.844     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      227 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6669        266.23        .34040E-02    .10419E-02
   2  Index         1.9344        5.7220        .15884        .18646E-03
   3  Normalizat    .97256        .18096        .99181E-01   -.73648E-04
   4  Prefactor     .94981        .39241E-01    .33129E-01   -.31080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.66694
  Index      = 1.9344
  Normalizat = 0.972565
  Prefactor  = 0.949811
 **********
 **   18 **HESSE 
 **********

 FCN=   7047.844     FROM HESSE     STATUS=OK            29 CALLS      256 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6669        9.1276        .13616E-03   -1.5119    
   2  Index         1.9344        .66209        .90377E-02   -.66000    
   3  Normalizat    .97256        .28700        .43944E-03   -.93955    
   4  Prefactor     .94981        .94960E-01    .14639E-03   -.94422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39792e-10
Minuit parameter uncertainties:
  1  9.12908
  2  0.665232
  3  0.287458
  4  0.0949761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558887': 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) = 7047.84385332
delta logL = 0.0163771890229

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  8.667e+00  9.129e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.934e+00  6.652e-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.498e-01  9.498e-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:  9.726e-01  2.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 343.010 40.523
Photon Index (Free Index): 1.93 +/- 0.67
Photon Flux (Free Index): 3.60e-08 +/- 4.45e-08
Energy Flux (Free Index): 2.94e-05 +/- 3.86e-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/558887/cmap_HighResolution_413510401_413769601_4FGL_J2252.0+4031_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='2.94e-05', photon_flux_error='3.80e-08', dlogl='1.64e-02', energy_flux='2.54e-05', photon_flux2='3.60e-08', job_status='DONE', time_completed='2021-09-29 01:15:49.824085', photon_index_error2='0.67', photon_index2='1.93', ts='2.73', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='3.86e-05', EG='0.97', time_epoch_completed='1632903349.82', return_code='0', job_id='558887', GAL2='0.95', EG2='0.97', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='4.45e-08', ts2='2.77', photon_index='2.05' WHERE bin_id='672' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:15:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 558887: <4FGL_J2252.0+4031_daily_bin672> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin672 343.01 40.5232 413510401 413769601 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 :                                   697.07 sec.
    Max Memory :                                 1244 MB
    Average Memory :                             269.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

