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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin645
RA = 358.013, Dec = 17.8394
tmin = 406512001, tmax = 406771201
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='164707', job_status='RUN', time_executed='2021-09-30 07:26:00.709149', time_epoch_executed='1633011960.71' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164707

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164707/ft1_4FGL_J2352.0+1750_daily_bin645.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164707/ft1_4FGL_J2352.0+1750_daily_bin645.fits outfile=/scratch/kocevski/164707/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin645.fits ra=358.013 dec=17.8394 rad=12.0 tmin=406512001.0 tmax=406771201.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 3.50
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164707/ft1_filtered_4FGL_J2352.0+1750_daily_bin645.fits" evtable="EVENTS" scfile=/scratch/kocevski/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits sctable="SC_DATA" outfile=/scratch/kocevski/164707/ltcube_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.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/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits
.....................!
real 11.94
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164707/ft1_filtered_4FGL_J2352.0+1750_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits sctable="SC_DATA" expcube=/scratch/kocevski/164707/ltcube_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.fits outfile=/scratch/kocevski/164707/expmap_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.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/164707/ltcube_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.fits
.....................!
real 191.41
user 185.80
sys 5.23

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/164707/ft1_filtered_4FGL_J2352.0+1750_daily_bin645.fits scfile=/scratch/kocevski/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits outfile=/scratch/kocevski/164707/cmap_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164707/ft1_filtered_4FGL_J2352.0+1750_daily_bin645.fits scfile=/scratch/kocevski/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits outfile=/scratch/kocevski/164707/cmap_HighResolution_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164707/ft1_filtered_4FGL_J2352.0+1750_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164707/Model_4FGL_J2352.0+1750_daily_bin645.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/164707/ft1_filtered_4FGL_J2352.0+1750_daily_bin645.fits.....................!
real 82.53
user 81.11
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164707/ft1_filtered_4FGL_J2352.0+1750_daily_bin645.fits', '/scratch/kocevski/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits', expMap='/scratch/kocevski/164707/expmap_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.fits', expCube='/scratch/kocevski/164707/ltcube_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164707/Model_4FGL_J2352.0+1750_daily_bin645.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/164707/ft1_filtered_4FGL_J2352.0+1750_daily_bin645.fits
Spacecraft file(s): /scratch/kocevski/164707/ft2_4FGL_J2352.0+1750_daily_bin645.fits
Exposure map: /scratch/kocevski/164707/expmap_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.fits
Exposure cube: /scratch/kocevski/164707/ltcube_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164707/Model_4FGL_J2352.0+1750_daily_bin645.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) = 7447.7274367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.615       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7241       1.0000         .10000E-03   10000.    
     6 'norm      '    .48618       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18124E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.899       1.0000         .10000E-03   10000.    
    12 'norm      '    .20638E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13669E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .59062       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2676       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=   7447.725     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1764 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5102        .26020E-06** at limit **
   2  Prefactor     .10000E-03    3.4525       -.46138E-06** at limit **
   3  Prefactor     4.3399        5.2547        .78026E-07   -.69505E-06
   4  Prefactor     43.688        60.100       -.38142E-06   -.16426E-04
   5  Prefactor     8.7266        4.2927       -.69937E-07    .68078E-04
   6  norm          .45300        59.548       -.11973E-04    .55958E-04
   7  Prefactor     .10000E-03    15.795        .28733E-06** at limit **
   8  Prefactor     .10000E-03    4.1859        .70830E-06** at limit **
   9  Prefactor     9.4464        7.4315        .22834E-07   -.90885E-05
  10  Prefactor     .10001E-03    7.5250        .30115E-05** at limit **
  11  Prefactor     25.903        24.162        .12076E-06   -.26982E-04
  12  norm          .10000E-03    6.2193        .71998E-06** at limit **
  13  Prefactor     .10000E-03    3.7604        .59743E-06** at limit **
  14  Prefactor     .10000E-03    11.929        .91467E-06** at limit **
  15  norm          .10000E-03    4.2751        .18362E-06** at limit **
  16  Prefactor     .10000E-03    5.4535        .16897E-05** at limit **
  17  Normalizat    .59042        .20867       -.13891E-05   -.11834E-03
  18  Prefactor     1.2677        .13311       -.75979E-06   -.16431E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.33995
  Prefactor  = 43.6878
  Prefactor  = 8.72657
  norm       = 0.453001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.44638
  Prefactor  = 0.000100012
  Prefactor  = 25.9033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.590424
  Prefactor  = 1.26774
 **********
 **   18 **HESSE 
 **********

 FCN=   7447.725     FROM HESSE     STATUS=OK           248 CALLS     2012 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5423        .10379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4424        .15622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3399        5.2511        .19340E-03   -1.5291    
   4  Prefactor     43.688        60.130        .60705E-04   -1.4385    
   5  Prefactor     8.7266        4.2851        .11997E-03   -1.5117    
   6  norm          .45300        65.766        .42811E-02   -1.5573    
   7  Prefactor     .10000E-03    15.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2297        .17252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4464        7.4146        .13037E-03   -1.5093    
  10  Prefactor     .10001E-03    28.811        .36150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.903        24.125        .78716E-04   -1.4690    
  12  norm          .10000E-03    6.4697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.186        .32138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2787        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .59042        .22695        .40099E-03   -1.0839    
  18  Prefactor     1.2677        .14384        .18151E-03   -.84271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82262e-10
Minuit parameter uncertainties:
  1  1.19337e-05
  2  2.19959e-05
  3  5.25162
  4  60.2141
  5  4.28525
  6  10.9274
  7  3.25577e-05
  8  2.39817e-06
  9  7.41531
  10  0.00118274
  11  24.1341
  12  1.07738e-05
  13  9.13263e-06
  14  9.61385e-06
  15  1.01052e-06
  16  1.85194e-05
  17  0.227305
  18  0.143881
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  1.852e-05  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:  1.268e+00  1.439e-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:  5.904e-01  2.273e-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: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164707/likelihoodResults_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.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) = 7447.72570419
delta logL = -0.000860323764755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7447.72484509
delta logL = -1.2227701518e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1078       1.0000          .0000       10.000    
     3 'Normalizat'    .59012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2679       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=   7447.661     FROM MIGRAD    STATUS=FAILED       188 CALLS      341 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30815        65.247        .26199E-01   -.10712E-02
   2  Index         3.2134        6.6060        .20000        .11474E-04
   3  Normalizat    .56776        .29025        .40101E-03   -.18087E-04
   4  Prefactor     1.2742        .68248E-01    .18150E-03    .31193E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7447.661     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      431 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30815        65.247        .11382E-03   -.10712E-02
   2  Index         3.2134        6.6060        .19573E-02    .11474E-04
   3  Normalizat    .56776        .29025        .38851E-03   -.18087E-04
   4  Prefactor     1.2742        .68248E-01    .41198E-04    .31193E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7447.661     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      467 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30816        1.3204        .10498E-02   -.33951E-03
   2  Index         3.2134        1.4348        .77766E-02    .28381E-03
   3  Normalizat    .56776        .22939        .16040E-04    .23105E-04
   4  Prefactor     1.2742        .14390        .72602E-05    .67960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.308161
  Index      = 3.21344
  Normalizat = 0.567765
  Prefactor  = 1.27423
 **********
 **   18 **HESSE 
 **********

 FCN=   7447.661     FROM HESSE     STATUS=OK            27 CALLS      494 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30816        1.8262        .41990E-04   -1.5819    
   2  Index         3.2134        1.6659        .15553E-02   -.36539    
   3  Normalizat    .56776        .22912        .32081E-05   -1.0937    
   4  Prefactor     1.2742        .14378        .14520E-05   -.84077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74436e-12
Minuit parameter uncertainties:
  1  1.5002
  2  1.70337
  3  0.229502
  4  0.143825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164707': 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) = 7447.66065059
delta logL = 0.0641932813023

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  3.082e-01  1.500e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  3.213e+00  1.703e+00  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:  1.274e+00  1.438e-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:  5.678e-01  2.295e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164707/cmap_HighResolution_406512001_406771201_4FGL_J2352.0+1750_daily_bin645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2021-09-30 07:36:11.711988', job_id='164707', GAL2='1.27', fit_tolerance='1e-08', EG2='0.57', EG='0.59', time_epoch_completed='1633012571.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='6.42e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='645' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 164707: <4FGL_J2352.0+1750_daily_bin645> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin645> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 07:25:51 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:25:52 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:25:52 2021
Terminated at Thu Sep 30 07:36:12 2021
Results reported at Thu Sep 30 07:36:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin645 358.013 17.8394 406512001 406771201 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 :                                   604.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             406.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            621 sec.

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

