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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin688
RA = 358.013, Dec = 17.8394
tmin = 417657601, tmax = 417916801
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='165528', job_status='RUN', time_executed='2021-09-30 07:30:38.189370', time_epoch_executed='1633012238.19' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165528

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165528/ft1_4FGL_J2352.0+1750_daily_bin688.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165528/ft2_4FGL_J2352.0+1750_daily_bin688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165528/ft1_4FGL_J2352.0+1750_daily_bin688.fits outfile=/scratch/kocevski/165528/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin688.fits ra=358.013 dec=17.8394 rad=12.0 tmin=417657601.0 tmax=417916801.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 5.96
user 5.69
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165528/ft2_4FGL_J2352.0+1750_daily_bin688.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/165528/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin688.fits evtable="EVENTS" outfile="/scratch/kocevski/165528/ft1_filtered_4FGL_J2352.0+1750_daily_bin688.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165528/ft1_filtered_4FGL_J2352.0+1750_daily_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/165528/ft2_4FGL_J2352.0+1750_daily_bin688.fits sctable="SC_DATA" expcube=/scratch/kocevski/165528/ltcube_417657601_417916801_4FGL_J2352.0+1750_daily_bin688.fits outfile=/scratch/kocevski/165528/expmap_417657601_417916801_4FGL_J2352.0+1750_daily_bin688.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/165528/ltcube_417657601_417916801_4FGL_J2352.0+1750_daily_bin688.fits
.....................!
real 190.46
user 185.20
sys 4.85

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/165528/ft1_filtered_4FGL_J2352.0+1750_daily_bin688.fits scfile=/scratch/kocevski/165528/ft2_4FGL_J2352.0+1750_daily_bin688.fits outfile=/scratch/kocevski/165528/cmap_417657601_417916801_4FGL_J2352.0+1750_daily_bin688.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165528/ft1_filtered_4FGL_J2352.0+1750_daily_bin688.fits scfile=/scratch/kocevski/165528/ft2_4FGL_J2352.0+1750_daily_bin688.fits outfile=/scratch/kocevski/165528/cmap_HighResolution_417657601_417916801_4FGL_J2352.0+1750_daily_bin688.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.624       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2913       1.0000         .10000E-03   10000.    
     6 'norm      '    15.787       1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11734E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.926       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12648E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58719       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.427       1.0000         .10000E-03   10000.    
    15 'norm      '    27.851       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4355       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1660       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .70617       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=   2372.593     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1788 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68701        7.0781       -.29658E-05    .39747E-04
   2  Prefactor     23.643        23.490        .26648E-05    .45410E-03
   3  Prefactor     .10000E-03    7.8049       -.34169E-06** at limit **
   4  Prefactor     53.497        56.240        .20152E-06    .19011E-04
   5  Prefactor     1.2974        9.1310        .88712E-06    .95064E-04
   6  norm          15.788        14.881        .42596E-07   -.31416E-05
   7  Prefactor     83.153        58.639        .72802E-07    .93445E-04
   8  Prefactor     .10000E-03    19.321        .86818E-05** at limit **
   9  Prefactor     10.926        13.534        .61741E-07    .13925E-04
  10  Prefactor     .10000E-03    24.151        .20577E-05** at limit **
  11  Prefactor     .10000E-03    21.473       -.31544E-06** at limit **
  12  norm          .10000E-03    31.621        .28374E-05** at limit **
  13  Prefactor     .57828        65.661        .21612E-04   -.38801E-04
  14  Prefactor     11.357        36.495       -.12460E-05    .69770E-04
  15  norm          27.847        29.189       -.50912E-06   -.56158E-05
  16  Prefactor     9.4372        10.001        .32569E-06    .12476E-03
  17  Normalizat    1.1658        .33334       -.12080E-05    .29795E-03
  18  Prefactor     .70622        .19021       -.32866E-06   -.59678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.687006
  Prefactor  = 23.6434
  Prefactor  = 0.0001
  Prefactor  = 53.4972
  Prefactor  = 1.29743
  norm       = 15.7878
  Prefactor  = 83.1531
  Prefactor  = 0.0001
  Prefactor  = 10.9261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.578277
  Prefactor  = 11.3569
  norm       = 27.8474
  Prefactor  = 9.43716
  Normalizat = 1.1658
  Prefactor  = 0.706223
 **********
 **   18 **HESSE 
 **********

 FCN=   2372.593     FROM HESSE     STATUS=OK           250 CALLS     2038 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68701        7.1319        .23022E-03   -1.5542    
   2  Prefactor     23.643        23.650        .82414E-04   -1.4735    
   3  Prefactor     .10000E-03    7.8197        .13293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     53.497        56.279        .54837E-04   -1.4244    
   5  Prefactor     1.2974        8.7043        .25354E-03   -1.5480    
   6  norm          15.788        14.883        .10080E-03   -1.4913    
   7  Prefactor     83.153        57.734        .22019E-03   -1.3882    
   8  Prefactor     .10000E-03    63.008        .31713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.926        13.566        .12120E-03   -1.5047    
  10  Prefactor     .10000E-03    24.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    31.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57828        78.680        .30848E-02   -1.5556    
  14  Prefactor     11.357        36.574        .11851E-03   -1.5034    
  15  norm          27.847        29.177        .75913E-04   -1.4652    
  16  Prefactor     9.4372        10.011        .13047E-03   -1.5093    
  17  Normalizat    1.1658        .38420        .27035E-03   -.87666    
  18  Prefactor     .70622        .21975        .21206E-03   -1.0328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89228e-09
Minuit parameter uncertainties:
  1  4.4274
  2  23.659
  3  2.24762e-05
  4  56.3347
  5  6.72222
  6  14.8866
  7  57.7732
  8  0.000314549
  9  13.5696
  10  9.25275e-05
  11  4.55672e-05
  12  0.000317296
  13  13.5075
  14  36.6461
  15  29.1915
  16  10.0127
  17  0.385129
  18  0.220018
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  9.437e+00  1.001e+01  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:  7.062e-01  2.200e-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:  1.166e+00  3.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.22
Ra Dec: 358.013 17.839
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 2.61e-05

TS (Fixed Index): 2.22
Ra Dec: 358.013 17.839
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165528/likelihoodResults_417657601_417916801_4FGL_J2352.0+1750_daily_bin688.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) = 2371.48439666
delta logL = 1.10851029699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2371.47528582
delta logL = 1.11762113972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.001       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0867       1.0000          .0000       10.000    
     3 'Normalizat'    1.1924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69942       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=   2371.475     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.007        14.616        .40615E-05   -.19806E-04
   2  Index         1.0870        .64036        .37694E-04    .10920E-05
   3  Normalizat    1.1924        .29906       -.35900E-06   -.75350E-04
   4  Prefactor     .69946        .18828       -.17856E-06   -.65130E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0069
  Index      = 1.08699
  Normalizat = 1.1924
  Prefactor  = 0.699456
 **********
 **   18 **HESSE 
 **********

 FCN=   2371.475     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.007        14.331        .12079E-03   -1.5044    
   2  Index         1.0870        .62699        .74519E-02   -.89884    
   3  Normalizat    1.1924        .34177        .26742E-03   -.86838    
   4  Prefactor     .69946        .21529        .21286E-03   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90012e-10
Minuit parameter uncertainties:
  1  14.3356
  2  0.631307
  3  0.342413
  4  0.215546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165528': 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) = 2371.47528571
delta logL = 1.11762124571

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.101e+01  1.434e+01  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  1.087e+00  6.313e-01  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:  6.995e-01  2.155e-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:  1.192e+00  3.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 358.013 17.839
Photon Index (Free Index): 1.09 +/- 0.63
Photon Flux (Free Index): 1.45e-08 +/- 1.82e-08
Energy Flux (Free Index): 1.68e-04 +/- 2.42e-04

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/165528/cmap_HighResolution_417657601_417916801_4FGL_J2352.0+1750_daily_bin688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='1.68e-04', photon_flux_error='4.40e-08', dlogl='1.12e+00', energy_flux='2.46e-05', photon_flux2='1.45e-08', job_status='DONE', time_completed='2021-09-30 07:37:39.763743', photon_index_error2='0.63', photon_index2='1.09', ts='2.22', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='2.42e-04', EG='1.17', time_epoch_completed='1633012659.76', return_code='0', job_id='165528', GAL2='0.70', EG2='1.19', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='1.82e-08', ts2='4.42', photon_index='2.07' WHERE bin_id='688' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:37:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 165528: <4FGL_J2352.0+1750_daily_bin688> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin688> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 07:30:27 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:30:29 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:30:29 2021
Terminated at Thu Sep 30 07:37:40 2021
Results reported at Thu Sep 30 07:37:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin688 358.013 17.8394 417657601 417916801 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 :                                   419.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             369.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   431 sec.
    Turnaround time :                            433 sec.

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

