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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin650
RA = 343.01, Dec = 40.5232
tmin = 407808001, tmax = 408067201
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='558853', job_status='RUN', time_executed='2021-09-29 01:02:33.582747', time_epoch_executed='1632902553.58' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558853/ft1_4FGL_J2252.0+4031_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558853/ft2_4FGL_J2252.0+4031_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558853/ft1_4FGL_J2252.0+4031_daily_bin650.fits outfile=/scratch/kocevski/558853/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin650.fits ra=343.01 dec=40.5232 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.12
user 3.89
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/558853/ft2_4FGL_J2252.0+4031_daily_bin650.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/558853/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/558853/ft1_filtered_4FGL_J2252.0+4031_daily_bin650.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/558853/ft1_filtered_4FGL_J2252.0+4031_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/558853/ft2_4FGL_J2252.0+4031_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/558853/ltcube_407808001_408067201_4FGL_J2252.0+4031_daily_bin650.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/558853/ft2_4FGL_J2252.0+4031_daily_bin650.fits
.....................!
real 12.08
user 11.67
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558853/ft1_filtered_4FGL_J2252.0+4031_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/558853/ft2_4FGL_J2252.0+4031_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/558853/ltcube_407808001_408067201_4FGL_J2252.0+4031_daily_bin650.fits outfile=/scratch/kocevski/558853/expmap_407808001_408067201_4FGL_J2252.0+4031_daily_bin650.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/558853/ltcube_407808001_408067201_4FGL_J2252.0+4031_daily_bin650.fits
.....................!
real 191.96
user 185.80
sys 5.84

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/558853/ft1_filtered_4FGL_J2252.0+4031_daily_bin650.fits scfile=/scratch/kocevski/558853/ft2_4FGL_J2252.0+4031_daily_bin650.fits outfile=/scratch/kocevski/558853/cmap_407808001_408067201_4FGL_J2252.0+4031_daily_bin650.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/558853/ft1_filtered_4FGL_J2252.0+4031_daily_bin650.fits scfile=/scratch/kocevski/558853/ft2_4FGL_J2252.0+4031_daily_bin650.fits outfile=/scratch/kocevski/558853/cmap_HighResolution_407808001_408067201_4FGL_J2252.0+4031_daily_bin650.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/558853/ft1_filtered_4FGL_J2252.0+4031_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/558853/ft2_4FGL_J2252.0+4031_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/558853/Model_4FGL_J2252.0+4031_daily_bin650.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/558853/ft1_filtered_4FGL_J2252.0+4031_daily_bin650.fits.....................!
real 107.54
user 106.07
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9220       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.738       1.0000         .10000E-03   10000.    
     4 'Prefactor '    122.81       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.7973       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.367       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.647       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5801       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9326       1.0000         .10000E-03   10000.    
    13 'norm      '    14.409       1.0000         .10000E-03   10000.    
    14 'norm      '    .34022E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10444E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.722       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97896       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83735       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=   8302.344     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2038 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9223        1.4025        .32028E-07   -.92962E-04
   2  Prefactor     .10000E-03    20.965        .72108E-06** at limit **
   3  Prefactor     47.746        23.783       -.12203E-06   -.30306E-04
   4  Prefactor     122.76        93.374       -.45218E-04   -.12717E-04
   5  Prefactor     1.8643        19.054        .84101E-05   -.37938E-03
   6  Prefactor     .10000E-03    8.3902        .11783E-06** at limit **
   7  norm          6.7811        7.2222       -.28038E-05   -.68216E-03
   8  Prefactor     18.368        23.195        .11702E-05   -.37015E-04
   9  Prefactor     7.3733        9.4209        .26298E-05   -.25063E-03
  10  Prefactor     13.646        34.698        .34993E-05   -.40147E-04
  11  norm          6.5793        2.5410       -.62919E-06   -.47896E-02
  12  Prefactor     3.8776        16.141        .28298E-04   -.25095E-04
  13  norm          14.410        7.3382       -.18290E-05   -.24722E-04
  14  norm          .10007E-03    9.4868       -.34857E-05** at limit **
  15  Prefactor     .10000E-03    9.6208        .20339E-07** at limit **
  16  norm          .10000E-03    1.8793       -.41771E-06** at limit **
  17  Prefactor     35.723        34.677        .13112E-06   -.20577E-05
  18  Prefactor     .10000E-03    104.47       -.15869E-04** at limit **
  19  Normalizat    .97936        .27186       -.47555E-05    .96666E-05
  20  Prefactor     .83717        .78799E-01    .92446E-06   -.20248E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.92231
  Prefactor  = 0.0001
  Prefactor  = 47.7461
  Prefactor  = 122.756
  Prefactor  = 1.86426
  Prefactor  = 0.0001
  norm       = 6.78106
  Prefactor  = 18.3681
  Prefactor  = 7.37334
  Prefactor  = 13.646
  norm       = 6.57929
  Prefactor  = 3.87759
  norm       = 14.4096
  norm       = 0.000100066
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.7228
  Prefactor  = 0.0001
  Normalizat = 0.979364
  Prefactor  = 0.837174
 **********
 **   18 **HESSE 
 **********

 FCN=   8302.344     FROM HESSE     STATUS=OK           297 CALLS     2335 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9223        1.4058        .40696E-04   -1.5145    
   2  Prefactor     .10000E-03    21.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.746        23.794        .58035E-04   -1.4325    
   4  Prefactor     122.76        93.314        .18159E-03   -1.3488    
   5  Prefactor     1.8643        16.208        .30735E-03   -1.5435    
   6  Prefactor     .10000E-03    8.3967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.7811        6.7015        .15390E-03   -1.5187    
   8  Prefactor     18.368        23.178        .93454E-04   -1.4851    
   9  Prefactor     7.3733        9.3810        .14768E-03   -1.5165    
  10  Prefactor     13.646        34.653        .10843E-03   -1.4969    
  11  norm          6.5793        2.5690        .42551E-03   -1.5195    
  12  Prefactor     3.8776        16.003        .20343E-03   -1.5314    
  13  norm          14.410        7.3324        .52759E-03   -1.4949    
  14  norm          .10007E-03    38.632        .54314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9088        .12193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.723        34.675        .67052E-04   -1.4512    
  18  Prefactor     .10000E-03    104.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97936        .30137        .47420E-03   -.93725    
  20  Prefactor     .83717        .88601E-01    .15508E-03   -.98372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87749e-09
Minuit parameter uncertainties:
  1  1.40581
  2  6.45614e-06
  3  23.7989
  4  93.4265
  5  10.9976
  6  9.07708e-06
  7  6.70228
  8  23.1895
  9  9.38287
  10  34.7041
  11  2.569
  12  15.7619
  13  7.33284
  14  0.00318816
  15  3.58119e-05
  16  5.91223e-05
  17  34.6943
  18  8.40879e-05
  19  0.301897
  20  0.088616
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  7.373e+00  9.383e+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:  8.372e-01  8.862e-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.794e-01  3.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/558853/likelihoodResults_407808001_408067201_4FGL_J2252.0+4031_daily_bin650.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) = 8302.08207441
delta logL = 0.262410738644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8302.0649822
delta logL = 0.279502948308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4383       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5222       1.0000          .0000       10.000    
     3 'Normalizat'    .95290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84012       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=   8302.065     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      248 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4368        112.08        .47786E-02    .60419E-03
   2  Index         2.5236        3.0795        .10740        .14710E-03
   3  Normalizat    .95306        .10330        .10822       -.33287E-03
   4  Prefactor     .83998        .28418E-01    .44237E-01   -.14016E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43684
  Index      = 2.52363
  Normalizat = 0.953064
  Prefactor  = 0.839979
 **********
 **   18 **HESSE 
 **********

 FCN=   8302.065     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4368        8.6974        .17306E-03   -1.5287    
   2  Index         2.5236        .82047        .64090E-02   -.51815    
   3  Normalizat    .95306        .28552        .47975E-03   -.94620    
   4  Prefactor     .83998        .86775E-01    .15478E-03   -.98271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19791e-08
Minuit parameter uncertainties:
  1  8.69988
  2  0.825427
  3  0.285974
  4  0.086789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558853': 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) = 8302.06497529
delta logL = 0.279509859802

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  4.437e+00  8.700e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.524e+00  8.254e-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:  8.400e-01  8.679e-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.531e-01  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 343.010 40.523
Photon Index (Free Index): 2.52 +/- 0.83
Photon Flux (Free Index): 6.97e-08 +/- 6.90e-08
Energy Flux (Free Index): 1.97e-05 +/- 2.20e-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/558853/cmap_HighResolution_407808001_408067201_4FGL_J2252.0+4031_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='2.80e-01', photon_flux2='6.97e-08', job_status='DONE', time_completed='2021-09-29 01:15:14.931439', photon_index_error2='0.83', photon_index2='2.52', ts='0.87', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='2.20e-05', EG='0.98', time_epoch_completed='1632903314.93', return_code='0', job_id='558853', GAL2='0.84', EG2='0.95', return_code2='0', photon_flux_error2='6.90e-08', ts2='1.44', photon_index='2.05' WHERE bin_id='650' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:15:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 558853: <4FGL_J2252.0+4031_daily_bin650> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin650> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:00:19 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:00:20 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:20 2021
Terminated at Wed Sep 29 01:15:15 2021
Results reported at Wed Sep 29 01:15:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin650 343.01 40.5232 407808001 408067201 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            896 sec.

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

