/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 127 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2352.0+1750_daily_bin64
RA = 358.013, Dec = 17.8394
tmin = 255916801, tmax = 256176001
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='162904', job_status='RUN', time_executed='2021-09-30 07:22:51.044766', time_epoch_executed='1633011771.04' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162904/ft1_4FGL_J2352.0+1750_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162904/ft1_4FGL_J2352.0+1750_daily_bin64.fits outfile=/scratch/kocevski/162904/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin64.fits ra=358.013 dec=17.8394 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.48
user 1.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.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/162904/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin64.fits evtable="EVENTS" outfile="/scratch/kocevski/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/162904/ltcube_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.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/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits
.....................!
real 12.81
user 12.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/162904/ltcube_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.fits outfile=/scratch/kocevski/162904/expmap_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.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/162904/ltcube_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.fits
.....................!
real 192.16
user 187.06
sys 4.69

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
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2352.0+1750 @ 358.013 17.8394

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.fits scfile=/scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits outfile=/scratch/kocevski/162904/cmap_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.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=358.013 yref=17.8394 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/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.fits scfile=/scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits outfile=/scratch/kocevski/162904/cmap_HighResolution_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.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=358.013 yref=17.8394 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/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/162904/Model_4FGL_J2352.0+1750_daily_bin64.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.fits.....................!
real 72.02
user 70.63
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.fits', '/scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits', expMap='/scratch/kocevski/162904/expmap_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.fits', expCube='/scratch/kocevski/162904/ltcube_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/162904/Model_4FGL_J2352.0+1750_daily_bin64.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2352.0+1750'

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.218e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.066e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/162904/ft1_filtered_4FGL_J2352.0+1750_daily_bin64.fits
Spacecraft file(s): /scratch/kocevski/162904/ft2_4FGL_J2352.0+1750_daily_bin64.fits
Exposure map: /scratch/kocevski/162904/expmap_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.fits
Exposure cube: /scratch/kocevski/162904/ltcube_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/162904/Model_4FGL_J2352.0+1750_daily_bin64.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) = 6206.36566756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4335       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32421E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.466       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7163       1.0000         .10000E-03   10000.    
     6 'norm      '    .10790E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4871       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9540       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.245       1.0000         .10000E-03   10000.    
    12 'norm      '    27.200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.094       1.0000         .10000E-03   10000.    
    15 'norm      '    .24520E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10947E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .88290       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6206.363     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1759 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3463        2.7198        .94482E-07   -.10447E-03
   2  Prefactor     4.4416        7.7157       -.41686E-06   -.78664E-04
   3  Prefactor     .10000E-03    8.1229       -.22047E-08** at limit **
   4  Prefactor     78.448        51.850       -.63725E-05   -.20722E-03
   5  Prefactor     8.7152        4.9262        .53031E-06   -.11705E-02
   6  norm          .10000E-03    12.296       -.16673E-07** at limit **
   7  Prefactor     4.6596        37.468       -.55163E-05   -.48243E-04
   8  Prefactor     .10000E-03    1.4086        .11947E-08** at limit **
   9  Prefactor     .10000E-03    3.1160        .12561E-07** at limit **
  10  Prefactor     2.9503        5.4592        .14033E-05   -.13650E-02
  11  Prefactor     18.335        17.218        .20625E-06    .15258E-04
  12  norm          27.275        11.725       -.46218E-06    .32128E-04
  13  Prefactor     4.9226        6.9921        .58900E-06    .21370E-04
  14  Prefactor     56.174        27.725        .33065E-05    .28166E-03
  15  norm          .10000E-03    3.7463       -.82855E-09** at limit **
  16  Prefactor     .10000E-03    2.2272        .55609E-09** at limit **
  17  Normalizat    .88243        .20190        .38932E-06   -.15022E-04
  18  Prefactor     .96904        .12511       -.15067E-06    .25648E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34631
  Prefactor  = 4.44161
  Prefactor  = 0.0001
  Prefactor  = 78.4482
  Prefactor  = 8.71517
  norm       = 0.0001
  Prefactor  = 4.65963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95025
  Prefactor  = 18.3345
  norm       = 27.2749
  Prefactor  = 4.92263
  Prefactor  = 56.1744
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.882425
  Prefactor  = 0.969039
 **********
 **   18 **HESSE 
 **********

 FCN=   6206.363     FROM HESSE     STATUS=OK           248 CALLS     2007 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3463        2.7020        .13156E-03   -1.5402    
   2  Prefactor     4.4416        7.6873        .19125E-03   -1.5286    
   3  Prefactor     .10000E-03    8.2901        .21357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     78.448        52.246        .45335E-04   -1.3934    
   5  Prefactor     8.7152        5.0295        .61861E-03   -1.5117    
   6  norm          .10000E-03    12.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6596        37.290        .19008E-03   -1.5276    
   8  Prefactor     .10000E-03    1.4096        .91314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8746        .26685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9503        8.9352        .11814E-02   -1.5364    
  11  Prefactor     18.335        17.042        .93768E-04   -1.4851    
  12  norm          27.275        11.791        .76814E-04   -1.4663    
  13  Prefactor     4.9226        6.9569        .18112E-03   -1.5264    
  14  Prefactor     56.174        28.046        .53560E-04   -1.4208    
  15  norm          .10000E-03    3.7474        .14892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2374        .11481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .88243        .23406        .31405E-03   -.97080    
  18  Prefactor     .96904        .14548        .19268E-03   -.93769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71516e-09
Minuit parameter uncertainties:
  1  2.70214
  2  7.68905
  3  8.37877e-06
  4  52.2765
  5  5.02975
  6  5.65966e-06
  7  26.3857
  8  2.14894e-07
  9  4.67328e-05
  10  8.93921
  11  17.0469
  12  11.7923
  13  6.95804
  14  28.0528
  15  9.94852e-07
  16  4.83324e-07
  17  0.234332
  18  0.145538
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  4.833e-07  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.066e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.690e-01  1.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  8.824e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.013 17.839
Photon Flux Upper Limit: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162904/likelihoodResults_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.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) = 6206.36516339
delta logL = -0.00211866942846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6206.36304394
delta logL = 7.82069037086e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0359       1.0000          .0000       10.000    
     3 'Normalizat'    .88242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96904       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6206.363     FROM MIGRAD    STATUS=FAILED        88 CALLS      241 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10115E-03    22.063        .11884E-02** at limit **
   2  Index         1.9833        5.9612        .50000        .86500E-04
   3  Normalizat    .88243        .15530E-01    .31405E-03   -.24291E-04
   4  Prefactor     .96904        .10009E-01    .19268E-03    .43661E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6206.363     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      361 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10115E-03    22.063        .24598E-03** at limit **
   2  Index         1.9833        5.9612        .51393E-03    .86500E-04
   3  Normalizat    .88243        .15530E-01    .32721E-05   -.24291E-04
   4  Prefactor     .96904        .10009E-01    .24553E-05    .43661E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6206.363     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      411 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.748        .23767E-02** at limit **
   2  Index         1.5767        9.0557        .50000        .77330E-07
   3  Normalizat    .88243        .15323E-01    .12562E-04    .35893E-03
   4  Prefactor     .96904        .98752E-02    .77074E-05    .52128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.57668
  Normalizat = 0.882428
  Prefactor  = 0.969039
 **********
 **   18 **HESSE 
 **********

 FCN=   6206.363     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      440 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    125.57        .47535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5767        9.0846        .50000       -.75414    
   3  Normalizat    .88243        .34514E-01    .25124E-05   -.97080    
   4  Prefactor     .96904        .22244E-01    .15415E-05   -.93769    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.98239e-11
Minuit parameter uncertainties:
  1  8.68523e-05
  2  381.956
  3  0.0345146
  4  0.0222437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162904': 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) = 6206.36303871
delta logL = 6.00591192779e-06

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  8.685e-05  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  1.577e+00  3.820e+02  0.000e+00  1.000e+01 (-1.000e+00)
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.690e-01  2.224e-02  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  8.824e-01  3.451e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 358.013 17.839

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/162904/cmap_HighResolution_255916801_256176001_4FGL_J2352.0+1750_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-30 07:32:14.479270', job_id='162904', GAL2='0.97', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1633012334.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='64' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 162904: <4FGL_J2352.0+1750_daily_bin64> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin64> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 07:20:31 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:20:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:20:33 2021
Terminated at Thu Sep 30 07:32:14 2021
Results reported at Thu Sep 30 07:32:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin64 358.013 17.8394 255916801 256176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2352.0+1750 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   562.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

