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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin646
RA = 358.013, Dec = 17.8394
tmin = 406771201, tmax = 407030401
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='164709', job_status='RUN', time_executed='2021-09-30 07:26:09.189321', time_epoch_executed='1633011969.19' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164709/ft1_4FGL_J2352.0+1750_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164709/ft2_4FGL_J2352.0+1750_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164709/ft1_4FGL_J2352.0+1750_daily_bin646.fits outfile=/scratch/kocevski/164709/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin646.fits ra=358.013 dec=17.8394 rad=12.0 tmin=406771201.0 tmax=407030401.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.48
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164709/ft2_4FGL_J2352.0+1750_daily_bin646.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/164709/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin646.fits evtable="EVENTS" outfile="/scratch/kocevski/164709/ft1_filtered_4FGL_J2352.0+1750_daily_bin646.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164709/ft1_filtered_4FGL_J2352.0+1750_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/164709/ft2_4FGL_J2352.0+1750_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/164709/ltcube_406771201_407030401_4FGL_J2352.0+1750_daily_bin646.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/164709/ft2_4FGL_J2352.0+1750_daily_bin646.fits
.....................!
real 11.68
user 11.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164709/ft1_filtered_4FGL_J2352.0+1750_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/164709/ft2_4FGL_J2352.0+1750_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/164709/ltcube_406771201_407030401_4FGL_J2352.0+1750_daily_bin646.fits outfile=/scratch/kocevski/164709/expmap_406771201_407030401_4FGL_J2352.0+1750_daily_bin646.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/164709/ltcube_406771201_407030401_4FGL_J2352.0+1750_daily_bin646.fits
.....................!
real 190.35
user 185.18
sys 4.80

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/164709/ft1_filtered_4FGL_J2352.0+1750_daily_bin646.fits scfile=/scratch/kocevski/164709/ft2_4FGL_J2352.0+1750_daily_bin646.fits outfile=/scratch/kocevski/164709/cmap_406771201_407030401_4FGL_J2352.0+1750_daily_bin646.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164709/ft1_filtered_4FGL_J2352.0+1750_daily_bin646.fits scfile=/scratch/kocevski/164709/ft2_4FGL_J2352.0+1750_daily_bin646.fits outfile=/scratch/kocevski/164709/cmap_HighResolution_406771201_407030401_4FGL_J2352.0+1750_daily_bin646.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7105       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6618       1.0000         .10000E-03   10000.    
    12 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.097       1.0000         .10000E-03   10000.    
    15 'norm      '    8.8022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7749       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .86921       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95683       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=   6502.634     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1750 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28735        1.7585       -.56425E-06    .83131E-03
   2  Prefactor     .10000E-03    6.9641        .64051E-07** at limit **
   3  Prefactor     5.5653        6.6294        .95380E-07    .21628E-03
   4  Prefactor     .10000E-03    15.628        .33093E-07** at limit **
   5  Prefactor     .10000E-03    2.2476       -.73774E-07** at limit **
   6  norm          .10000E-03    3.6872        .46596E-08** at limit **
   7  Prefactor     8.0772        23.966       -.98862E-07   -.51810E-04
   8  Prefactor     .10000E-03    2.4919        .21904E-07** at limit **
   9  Prefactor     .10000E-03    7.4783        .56205E-06** at limit **
  10  Prefactor     6.7128        12.779        .35183E-05   -.10813E-03
  11  Prefactor     1.6397        49.860        .33870E-05    .22676E-04
  12  norm          .10000E-03    7.4968       -.89445E-06** at limit **
  13  Prefactor     .10000E-03    2.1788       -.15420E-06** at limit **
  14  Prefactor     17.076        27.337       -.21487E-05   -.24688E-03
  15  norm          8.8017        9.9003        .32643E-07    .22141E-04
  16  Prefactor     1.7750        4.5691        .71809E-06   -.11389E-03
  17  Normalizat    .86930        .19035       -.18053E-06    .94741E-04
  18  Prefactor     .95690        .11389       -.26742E-06    .13255E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.287345
  Prefactor  = 0.0001
  Prefactor  = 5.56531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.07723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71284
  Prefactor  = 1.63971
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0758
  norm       = 8.80171
  Prefactor  = 1.77496
  Normalizat = 0.869301
  Prefactor  = 0.956897
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.634     FROM HESSE     STATUS=OK           244 CALLS     1994 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28735        9.6977        .18694E-02   -1.5601    
   2  Prefactor     .10000E-03    6.9922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5653        6.6317        .17034E-03   -1.5236    
   4  Prefactor     .10000E-03    15.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3066        .23555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.6955        .15123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0772        24.053        .14102E-03   -1.5139    
   8  Prefactor     .10000E-03    2.5066        .12431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7128        12.961        .77449E-03   -1.5190    
  11  Prefactor     1.6397        49.685        .32724E-03   -1.5452    
  12  norm          .10000E-03    7.6883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1869        .11622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.076        28.081        .96863E-04   -1.4881    
  15  norm          8.8017        9.9007        .13510E-03   -1.5115    
  16  Prefactor     1.7750        4.5592        .26873E-03   -1.5442    
  17  Normalizat    .86930        .22143        .30492E-03   -.97547    
  18  Prefactor     .95690        .13310        .18271E-03   -.94180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24726e-09
Minuit parameter uncertainties:
  1  3.33863
  2  1.12318e-05
  3  6.63255
  4  5.97895e-06
  5  4.4351e-06
  6  1.67332e-06
  7  24.0823
  8  2.98443e-08
  9  7.05289e-06
  10  12.9666
  11  18.0679
  12  5.70768e-05
  13  8.54926e-07
  14  28.1022
  15  9.90254
  16  4.56013
  17  0.221662
  18  0.133148
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.775e+00  4.560e+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:  9.569e-01  1.331e-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.693e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/164709/likelihoodResults_406771201_407030401_4FGL_J2352.0+1750_daily_bin646.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) = 6502.62377265
delta logL = 0.0100725629027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6502.62187085
delta logL = 0.0119743577807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5105       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2589       1.0000          .0000       10.000    
     3 'Normalizat'    .86704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95755       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=   6502.622     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5064        115.31        .87005E-02    .48158E-03
   2  Index         2.2607        6.1292        .24485       -.10008E-04
   3  Normalizat    .86698        .39618E-01    .69003E-01   -.54921E-03
   4  Prefactor     .95757        .23621E-01    .45734E-01   -.10539E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50636
  Index      = 2.26074
  Normalizat = 0.866985
  Prefactor  = 0.957567
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.622     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5064        4.8204        .23388E-03   -1.5462    
   2  Index         2.2607        1.3925        .11100E-01   -.57979    
   3  Normalizat    .86698        .21149        .30530E-03   -.97630    
   4  Prefactor     .95757        .13285        .18265E-03   -.94158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95726e-10
Minuit parameter uncertainties:
  1  4.82165
  2  1.4196
  3  0.211688
  4  0.132894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164709': 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) = 6502.62186981
delta logL = 0.0119753973258

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.506e+00  4.822e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.261e+00  1.420e+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:  9.576e-01  1.329e-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.670e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/164709/cmap_HighResolution_406771201_407030401_4FGL_J2352.0+1750_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='6.86e-08', time_completed='2021-09-30 07:35:24.259902', job_id='164709', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1633012524.26', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.20e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='646' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:35:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 164709: <4FGL_J2352.0+1750_daily_bin646> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin646> 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) <bullet0218>, 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:35:25 2021
Results reported at Thu Sep 30 07:35:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin646 358.013 17.8394 406771201 407030401 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 :                                   551.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             393.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            574 sec.

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

