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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin565
RA = 358.013, Dec = 17.8394
tmin = 385776001, tmax = 386035201
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='164588', job_status='RUN', time_executed='2021-09-30 07:25:54.188465', time_epoch_executed='1633011954.19' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164588/ft1_4FGL_J2352.0+1750_daily_bin565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164588/ft2_4FGL_J2352.0+1750_daily_bin565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164588/ft1_4FGL_J2352.0+1750_daily_bin565.fits outfile=/scratch/kocevski/164588/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin565.fits ra=358.013 dec=17.8394 rad=12.0 tmin=385776001.0 tmax=386035201.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.88
user 3.61
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164588/ft2_4FGL_J2352.0+1750_daily_bin565.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/164588/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin565.fits evtable="EVENTS" outfile="/scratch/kocevski/164588/ft1_filtered_4FGL_J2352.0+1750_daily_bin565.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/164588/ft1_filtered_4FGL_J2352.0+1750_daily_bin565.fits" evtable="EVENTS" scfile=/scratch/kocevski/164588/ft2_4FGL_J2352.0+1750_daily_bin565.fits sctable="SC_DATA" outfile=/scratch/kocevski/164588/ltcube_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.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/164588/ft2_4FGL_J2352.0+1750_daily_bin565.fits
.....................!
real 12.43
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164588/ft1_filtered_4FGL_J2352.0+1750_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/164588/ft2_4FGL_J2352.0+1750_daily_bin565.fits sctable="SC_DATA" expcube=/scratch/kocevski/164588/ltcube_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.fits outfile=/scratch/kocevski/164588/expmap_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.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/164588/ltcube_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.fits
.....................!
real 192.13
user 186.76
sys 4.98

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/164588/ft1_filtered_4FGL_J2352.0+1750_daily_bin565.fits scfile=/scratch/kocevski/164588/ft2_4FGL_J2352.0+1750_daily_bin565.fits outfile=/scratch/kocevski/164588/cmap_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.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/164588/ft1_filtered_4FGL_J2352.0+1750_daily_bin565.fits scfile=/scratch/kocevski/164588/ft2_4FGL_J2352.0+1750_daily_bin565.fits outfile=/scratch/kocevski/164588/cmap_HighResolution_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164588/ft1_filtered_4FGL_J2352.0+1750_daily_bin565.fits', '/scratch/kocevski/164588/ft2_4FGL_J2352.0+1750_daily_bin565.fits', expMap='/scratch/kocevski/164588/expmap_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.fits', expCube='/scratch/kocevski/164588/ltcube_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164588/Model_4FGL_J2352.0+1750_daily_bin565.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/164588/ft1_filtered_4FGL_J2352.0+1750_daily_bin565.fits
Spacecraft file(s): /scratch/kocevski/164588/ft2_4FGL_J2352.0+1750_daily_bin565.fits
Exposure map: /scratch/kocevski/164588/expmap_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.fits
Exposure cube: /scratch/kocevski/164588/ltcube_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164588/Model_4FGL_J2352.0+1750_daily_bin565.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6398.13897444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17490       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30425E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4550       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8784       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9179       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .99345       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0088       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=   6397.631     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1524 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16585        1.6406        .23091E-06   -.20014E-03
   2  Prefactor     .10002E-03    13.399       -.10601E-06** at limit **
   3  Prefactor     .10000E-03    10.149       -.39929E-06** at limit **
   4  Prefactor     .10000E-03    24.692       -.24812E-06** at limit **
   5  Prefactor     2.4542        3.2875        .33844E-06   -.10671E-02
   6  norm          .10000E-03    3.2826       -.12955E-07** at limit **
   7  Prefactor     .10000E-03    18.725        .23778E-06** at limit **
   8  Prefactor     .10000E-03    9.3299        .17712E-06** at limit **
   9  Prefactor     .10000E-03    2.7193        .37029E-07** at limit **
  10  Prefactor     .10000E-03    3.6214       -.10188E-06** at limit **
  11  Prefactor     .10000E-03    4.9112       -.18383E-07** at limit **
  12  norm          2.0731        3.5447       -.29709E-06   -.99323E-03
  13  Prefactor     .10000E-03    7.4876       -.18389E-06** at limit **
  14  Prefactor     7.8698        20.416        .14253E-04    .87610E-05
  15  norm          .10000E-03    9.5632        .13384E-06** at limit **
  16  Prefactor     9.9184        7.8056       -.36284E-06   -.42211E-04
  17  Normalizat    .99365        .19477       -.51561E-07   -.78622E-04
  18  Prefactor     1.0088        .12275       -.61867E-06   -.17881E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.165847
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.45417
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07305
  Prefactor  = 0.0001
  Prefactor  = 7.86975
  norm       = 0.0001
  Prefactor  = 9.91836
  Normalizat = 0.993648
  Prefactor  = 1.00876
 **********
 **   18 **HESSE 
 **********

 FCN=   6397.631     FROM HESSE     STATUS=OK           252 CALLS     1776 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16585        15.874        .17588E-02   -1.5627    
   2  Prefactor     .10002E-03    22.629        .69892E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4542        3.9838        .95473E-03   -1.5395    
   6  norm          .10000E-03    3.2840        .14153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.6201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7607        .12878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6243        .14867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9167        .17312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0731        6.0733        .14352E-02   -1.5420    
  13  Prefactor     .10000E-03    7.7433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8698        20.482        .14285E-03   -1.5147    
  15  norm          .10000E-03    9.6171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9184        7.8161        .12724E-03   -1.5078    
  17  Normalizat    .99365        .22975        .29275E-03   -.93244    
  18  Prefactor     1.0088        .14332        .18962E-03   -.92438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59589e-09
Minuit parameter uncertainties:
  1  3.24502
  2  0.0012502
  3  5.98264e-06
  4  4.48293e-06
  5  3.98423
  6  4.64454e-07
  7  4.03254e-06
  8  1.03305e-05
  9  2.46561e-06
  10  1.25577e-05
  11  1.55807e-06
  12  6.07511
  13  4.46006e-05
  14  20.5003
  15  3.16177e-06
  16  7.81688
  17  0.22998
  18  0.143376
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  9.918e+00  7.817e+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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.009e+00  1.434e-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:  9.936e-01  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.78
Ra Dec: 358.013 17.839
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 4.36e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 2.03e-05

TS (Fixed Index): 2.78
Ra Dec: 358.013 17.839
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164588/likelihoodResults_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.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) = 6396.57908307
delta logL = 1.05208045522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6396.56296836
delta logL = 1.06819516694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0359       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9500       1.0000          .0000       10.000    
     3 'Normalizat'    .91585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0378       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.

 FCN=   6396.563     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      254 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0329        26.791        .58220E-02    .42779E-03
   2  Index         2.9504        2.1425        .89147E-01    .20713E-03
   3  Normalizat    .91582        .76096E-01    .68574E-01    .10851E-04
   4  Prefactor     1.0378        .45064E-01    .40681E-01   -.21501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03295
  Index      = 2.95041
  Normalizat = 0.915822
  Prefactor  = 1.03782
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.563     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0329        7.5265        .72424E-04   -1.5360    
   2  Index         2.9504        1.0912        .34081E-02   -.42236    
   3  Normalizat    .91582        .23066        .30337E-03   -.95906    
   4  Prefactor     1.0378        .14634        .18716E-03   -.91479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30209e-11
Minuit parameter uncertainties:
  1  7.52883
  2  1.10186
  3  0.230908
  4  0.146392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164588': 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) = 6396.56296805
delta logL = 1.06819547155

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  3.033e+00  7.529e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.950e+00  1.102e+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.038e+00  1.464e-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:  9.158e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 358.013 17.839
Photon Index (Free Index): 2.95 +/- 1.10
Photon Flux (Free Index): 1.02e-07 +/- 6.41e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.30e-05

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/164588/cmap_HighResolution_385776001_386035201_4FGL_J2352.0+1750_daily_bin565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', comment='SUCCESS', photon_flux='4.36e-08', energy_flux2='2.08e-05', photon_flux_error='3.44e-08', dlogl='1.07e+00', energy_flux='2.58e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-30 07:35:13.696851', photon_index_error2='1.10', photon_index2='2.95', ts='2.78', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.30e-05', EG='0.99', time_epoch_completed='1633012513.7', return_code='0', job_id='164588', GAL2='1.04', EG2='0.92', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='6.41e-08', ts2='5.08', photon_index='2.07' WHERE bin_id='565' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:35:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 164588: <4FGL_J2352.0+1750_daily_bin565> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin565 358.013 17.8394 385776001 386035201 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            575 sec.

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

