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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin730
RA = 343.01, Dec = 40.5232
tmin = 428544001, tmax = 428803201
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='558971', job_status='RUN', time_executed='2021-09-29 01:04:33.499748', time_epoch_executed='1632902673.5' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558971/ft1_4FGL_J2252.0+4031_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558971/ft2_4FGL_J2252.0+4031_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558971/ft1_4FGL_J2252.0+4031_daily_bin730.fits outfile=/scratch/kocevski/558971/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin730.fits ra=343.01 dec=40.5232 rad=12.0 tmin=428544001.0 tmax=428803201.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.16
user 5.92
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558971/ft1_filtered_4FGL_J2252.0+4031_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/558971/ft2_4FGL_J2252.0+4031_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/558971/ltcube_428544001_428803201_4FGL_J2252.0+4031_daily_bin730.fits outfile=/scratch/kocevski/558971/expmap_428544001_428803201_4FGL_J2252.0+4031_daily_bin730.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/558971/ltcube_428544001_428803201_4FGL_J2252.0+4031_daily_bin730.fits
.....................!
real 192.08
user 186.03
sys 5.74

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/558971/ft1_filtered_4FGL_J2252.0+4031_daily_bin730.fits scfile=/scratch/kocevski/558971/ft2_4FGL_J2252.0+4031_daily_bin730.fits outfile=/scratch/kocevski/558971/cmap_428544001_428803201_4FGL_J2252.0+4031_daily_bin730.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/558971/ft1_filtered_4FGL_J2252.0+4031_daily_bin730.fits scfile=/scratch/kocevski/558971/ft2_4FGL_J2252.0+4031_daily_bin730.fits outfile=/scratch/kocevski/558971/cmap_HighResolution_428544001_428803201_4FGL_J2252.0+4031_daily_bin730.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0106       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.632       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.980       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26181       1.0000         .10000E-03   10000.    
    13 'norm      '    25.068       1.0000         .10000E-03   10000.    
    14 'norm      '    17.239       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0322       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0541       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=   6503.568     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2066 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0100        1.3014        .13157E-01    .12763E-02
   2  Prefactor     13.215        23.908        .27532E-02   -.77407E-03
   3  Prefactor     .10001E-03    17.019        .90712E-02** at limit **
   4  Prefactor     .10000E-03    42.696        .90712E-02** at limit **
   5  Prefactor     .10000E-03    13.922        .90712E-02** at limit **
   6  Prefactor     .10000E-03    14.586        .90712E-02** at limit **
   7  norm          2.5473        5.5924        .63817E-02    .66202E-03
   8  Prefactor     29.634        28.633        .18400E-02   -.28137E-03
   9  Prefactor     .10000E-03    5.4822        .90712E-02** at limit **
  10  Prefactor     33.984        31.838        .17186E-02   -.13115E-02
  11  norm          .10000E-03    .74498        .90712E-02** at limit **
  12  Prefactor     .18748        13.036        .10256        .11267E-03
  13  norm          25.068        11.524        .20002E-02    .43834E-03
  14  norm          17.242        13.824        .24116E-02   -.23439E-04
  15  Prefactor     .10000E-03    23.144        .90712E-02** at limit **
  16  norm          .10000E-03    1.1662        .90712E-02** at limit **
  17  Prefactor     .10000E-03    17.181        .90712E-02** at limit **
  18  Prefactor     .10000E-03    65.990        .90712E-02** at limit **
  19  Normalizat    1.0323        .31892        .10971       -.92651E-06
  20  Prefactor     1.0541        .97385E-01    .39678E-01   -.58277E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01001
  Prefactor  = 13.2149
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54733
  Prefactor  = 29.6336
  Prefactor  = 0.0001
  Prefactor  = 33.9845
  norm       = 0.0001
  Prefactor  = 0.18748
  norm       = 25.068
  norm       = 17.2417
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.03226
  Prefactor  = 1.05406
 **********
 **   18 **HESSE 
 **********

 FCN=   6503.568     FROM HESSE     STATUS=OK           291 CALLS     2357 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0100        1.2646        .92693E-04   -1.5507    
   2  Prefactor     13.215        23.705        .11013E-03   -1.4981    
   3  Prefactor     .10001E-03    17.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5473        5.5445        .25527E-03   -1.5389    
   8  Prefactor     29.634        28.624        .73601E-04   -1.4619    
   9  Prefactor     .10000E-03    5.4979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.984        31.841        .68744E-04   -1.4541    
  11  norm          .10000E-03    .75303        .67931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18748        18.231        .82220E-01   -1.5621    
  13  norm          25.068        11.524        .80008E-04   -1.4706    
  14  norm          17.242        13.825        .96464E-04   -1.4877    
  15  Prefactor     .10000E-03    23.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1720        .85029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    66.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0323        .35732        .48640E-03   -.91957    
  20  Prefactor     1.0541        .10981        .15011E-03   -.90949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04646e-09
Minuit parameter uncertainties:
  1  1.26464
  2  23.7216
  3  0.000623027
  4  8.01634e-05
  5  6.91519e-05
  6  2.11138e-05
  7  5.54558
  8  28.6377
  9  9.7721e-06
  10  31.8565
  11  1.64199e-06
  12  3.69769
  13  11.5253
  14  13.8274
  15  3.79176e-06
  16  3.22359e-06
  17  0.000545561
  18  0.00021595
  19  0.358152
  20  0.109834
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  9.772e-06  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.054e+00  1.098e-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:  1.032e+00  3.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/558971/likelihoodResults_428544001_428803201_4FGL_J2252.0+4031_daily_bin730.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) = 6503.56872207
delta logL = -0.00086679683136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6503.56785522
delta logL = 4.71663952339e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0633       1.0000          .0000       10.000    
     3 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0541       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=   6503.568     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.533        .90712E-02** at limit **
   2  Index         2.0750        7.6874        .50000       -.18110E-04
   3  Normalizat    1.0323        .25498E-01    .10971       -.98747E-05
   4  Prefactor     1.0541        .79947E-02    .39678E-01   -.62516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07503
  Normalizat = 1.03226
  Prefactor  = 1.05406
 **********
 **   18 **HESSE 
 **********

 FCN=   6503.568     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    532.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0750        8.6748        .50000       -.62487    
   3  Normalizat    1.0323        .93528E-01    .48640E-03   -.91958    
   4  Prefactor     1.0541        .29425E-01    .15011E-03   -.90949    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.14842e-08
Minuit parameter uncertainties:
  1  0.000533167
  2  40.0906
  3  0.0935428
  4  0.0294259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558971': 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) = 6503.56785517
delta logL = 9.96769813355e-08

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  5.332e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.075e+00  4.009e+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:  1.054e+00  2.943e-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.032e+00  9.354e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 343.010 40.523

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/558971/cmap_HighResolution_428544001_428803201_4FGL_J2252.0+4031_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-29 01:15:32.694213', job_id='558971', GAL2='1.05', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632903332.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='9.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='730' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 558971: <4FGL_J2252.0+4031_daily_bin730> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin730 343.01 40.5232 428544001 428803201 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 :                                   658.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            908 sec.

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

