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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin748
RA = 343.01, Dec = 40.5232
tmin = 433209601, tmax = 433468801
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='558997', job_status='RUN', time_executed='2021-09-29 01:04:22.911078', time_epoch_executed='1632902662.91' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558997/ft1_4FGL_J2252.0+4031_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558997/ft2_4FGL_J2252.0+4031_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558997/ft1_4FGL_J2252.0+4031_daily_bin748.fits outfile=/scratch/kocevski/558997/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin748.fits ra=343.01 dec=40.5232 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.00
user 5.68
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/558997/ft1_filtered_4FGL_J2252.0+4031_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/558997/ft2_4FGL_J2252.0+4031_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/558997/ltcube_433209601_433468801_4FGL_J2252.0+4031_daily_bin748.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/558997/ft2_4FGL_J2252.0+4031_daily_bin748.fits
.....................!
real 12.22
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558997/ft1_filtered_4FGL_J2252.0+4031_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/558997/ft2_4FGL_J2252.0+4031_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/558997/ltcube_433209601_433468801_4FGL_J2252.0+4031_daily_bin748.fits outfile=/scratch/kocevski/558997/expmap_433209601_433468801_4FGL_J2252.0+4031_daily_bin748.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/558997/ltcube_433209601_433468801_4FGL_J2252.0+4031_daily_bin748.fits
.....................!
real 190.26
user 185.69
sys 4.26

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/558997/ft1_filtered_4FGL_J2252.0+4031_daily_bin748.fits scfile=/scratch/kocevski/558997/ft2_4FGL_J2252.0+4031_daily_bin748.fits outfile=/scratch/kocevski/558997/cmap_433209601_433468801_4FGL_J2252.0+4031_daily_bin748.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.58
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/558997/ft1_filtered_4FGL_J2252.0+4031_daily_bin748.fits scfile=/scratch/kocevski/558997/ft2_4FGL_J2252.0+4031_daily_bin748.fits outfile=/scratch/kocevski/558997/cmap_HighResolution_433209601_433468801_4FGL_J2252.0+4031_daily_bin748.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    147.43       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.900       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.047       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3483       1.0000         .10000E-03   10000.    
    10 'Prefactor '    88.499       1.0000         .10000E-03   10000.    
    11 'norm      '    6.3843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1743       1.0000         .10000E-03   10000.    
    14 'norm      '    38.389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5554       1.0000         .10000E-03   10000.    
    16 'norm      '    .16396E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.767       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.751       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .36220       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0303       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5955.837     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     2387 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9719        1.3472        .49933E-04   -.93052E-03
   2  Prefactor     .10000E-03    16.203        .18142E-02** at limit **
   3  Prefactor     .10000E-03    7.8016        .18142E-02** at limit **
   4  Prefactor     147.19        144.99        .16595E-03   -.59520E-04
   5  Prefactor     .74210        12.717        .24457E-02   -.74957E-04
   6  Prefactor     22.903        37.535        .83703E-04   -.37215E-04
   7  norm          .10000E-03    2.6563        .12245E-02** at limit **
   8  Prefactor     19.055        30.729        .91771E-04   -.85478E-04
   9  Prefactor     1.3443        24.532        .37695E-03   -.98441E-04
  10  Prefactor     88.511        55.058        .21355E-03   -.71125E-04
  11  norm          6.3836        2.8219        .80397E-04   -.55064E-03
  12  Prefactor     .10000E-03    7.3600        .18142E-02** at limit **
  13  norm          4.1705        10.594        .19726E-03   -.59741E-03
  14  norm          38.395        21.650        .64688E-04   -.12460E-03
  15  Prefactor     7.4903        55.307        .14590E-03    .23221E-04
  16  norm          .10000E-03    4.6871        .22139E-02** at limit **
  17  Prefactor     34.756        33.101        .33982E-03   -.46529E-04
  18  Prefactor     42.755        59.945        .61312E-04   -.23549E-04
  19  Normalizat    .36265        .35701        .71536E-03   -.54351E-04
  20  Prefactor     1.0302        .10968        .13924E-03   -.35889E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.97192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 147.192
  Prefactor  = 0.742103
  Prefactor  = 22.9028
  norm       = 0.0001
  Prefactor  = 19.0548
  Prefactor  = 1.34426
  Prefactor  = 88.5112
  norm       = 6.38363
  Prefactor  = 0.0001
  norm       = 4.1705
  norm       = 38.3952
  Prefactor  = 7.49031
  norm       = 0.0001
  Prefactor  = 34.7559
  Prefactor  = 42.7545
  Normalizat = 0.362648
  Prefactor  = 1.03023
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.837     FROM HESSE     STATUS=OK           273 CALLS     2660 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9719        1.3472        .19973E-05   -1.5309    
   2  Prefactor     .10000E-03    16.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     147.19        144.98        .33189E-04   -1.3276    
   5  Prefactor     .74210        12.641        .97827E-04   -1.5536    
   6  Prefactor     22.903        37.540        .33481E-05   -1.4750    
   7  norm          .10000E-03    2.6564        .24491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.055        30.721        .36708E-05   -1.4835    
   9  Prefactor     1.3443        24.396        .15078E-04   -1.5476    
  10  Prefactor     88.511        55.056        .85420E-05   -1.3824    
  11  norm          6.3836        2.8217        .32159E-05   -1.5203    
  12  Prefactor     .10000E-03    7.3606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1705        10.582        .78906E-05   -1.5300    
  14  norm          38.395        21.649        .12938E-04   -1.4468    
  15  Prefactor     7.4903        55.190        .58360E-05   -1.5161    
  16  norm          .10000E-03    4.7095        .44277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.756        33.101        .67964E-04   -1.4528    
  18  Prefactor     42.755        59.946        .12262E-04   -1.4399    
  19  Normalizat    .36265        .35647        .28614E-04   -1.1928    
  20  Prefactor     1.0302        .10957        .27848E-04   -.91729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41002e-09
Minuit parameter uncertainties:
  1  1.34719
  2  2.00331e-05
  3  2.41465e-06
  4  145.335
  5  6.12669
  6  37.5788
  7  2.37695e-05
  8  30.7464
  9  11.4583
  10  55.0879
  11  2.8218
  12  4.69791e-06
  13  10.5865
  14  21.6533
  15  40.7164
  16  4.85131e-05
  17  33.1181
  18  60.0303
  19  0.358734
  20  0.109592
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.344e+00  1.146e+01  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:  1.030e+00  1.096e-01  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:  3.626e-01  3.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/558997/likelihoodResults_433209601_433468801_4FGL_J2252.0+4031_daily_bin748.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): 102
logL (Free Index) = 5955.44099317
delta logL = 0.396244089445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5955.39848971
delta logL = 0.43874754362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0040       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1345       1.0000          .0000       10.000    
     3 'Normalizat'    .29090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0396       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=   5955.398     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99885        23.304        .13531E-01    .16144E-02
   2  Index         3.1364        2.6411        .94453E-01    .27832E-03
   3  Normalizat    .29161        .72159E-01    .18001        .30553E-05
   4  Prefactor     1.0394        .23302E-01    .40562E-01   -.85794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.998851
  Index      = 3.13638
  Normalizat = 0.291607
  Prefactor  = 1.03941
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.398     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      257 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99885        64.291        .86225E-04   -1.5508    
   2  Index         3.1364        6.5569        .54055E-02   -.38194    
   3  Normalizat    .29161        .31096        .79154E-03   -1.2334    
   4  Prefactor     1.0394        .10137        .13861E-03   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3575e-09
Minuit parameter uncertainties:
  1  16.0444
  2  5.95767
  3  0.312822
  4  0.101393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558997': 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): 102
logL (Free Index) = 5955.39848614
delta logL = 0.438751117236

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  9.989e-01  1.604e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.136e+00  5.958e+00  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:  1.039e+00  1.014e-01  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:  2.916e-01  3.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 343.010 40.523

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/558997/cmap_HighResolution_433209601_433468801_4FGL_J2252.0+4031_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-29 01:15:05.119346', job_id='558997', GAL2='1.04', fit_tolerance='1e-08', EG2='0.29', EG='0.36', time_epoch_completed='1632903305.12', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.39e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='748' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:15:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 558997: <4FGL_J2252.0+4031_daily_bin748> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin748 343.01 40.5232 433209601 433468801 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 :                                   640.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             242.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

