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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin104
RA = 358.013, Dec = 17.8394
tmin = 266284801, tmax = 266544001
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='162961', job_status='RUN', time_executed='2021-09-30 07:20:55.390633', time_epoch_executed='1633011655.39' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162961/ft1_4FGL_J2352.0+1750_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162961/ft2_4FGL_J2352.0+1750_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162961/ft1_4FGL_J2352.0+1750_daily_bin104.fits outfile=/scratch/kocevski/162961/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin104.fits ra=358.013 dec=17.8394 rad=12.0 tmin=266284801.0 tmax=266544001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.40
user 1.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162961/ft1_filtered_4FGL_J2352.0+1750_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/162961/ft2_4FGL_J2352.0+1750_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/162961/ltcube_266284801_266544001_4FGL_J2352.0+1750_daily_bin104.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/162961/ft2_4FGL_J2352.0+1750_daily_bin104.fits
.....................!
real 13.50
user 13.11
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162961/ft1_filtered_4FGL_J2352.0+1750_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/162961/ft2_4FGL_J2352.0+1750_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/162961/ltcube_266284801_266544001_4FGL_J2352.0+1750_daily_bin104.fits outfile=/scratch/kocevski/162961/expmap_266284801_266544001_4FGL_J2352.0+1750_daily_bin104.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/162961/ltcube_266284801_266544001_4FGL_J2352.0+1750_daily_bin104.fits
.....................!
real 192.73
user 186.75
sys 5.61

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/162961/ft1_filtered_4FGL_J2352.0+1750_daily_bin104.fits scfile=/scratch/kocevski/162961/ft2_4FGL_J2352.0+1750_daily_bin104.fits outfile=/scratch/kocevski/162961/cmap_266284801_266544001_4FGL_J2352.0+1750_daily_bin104.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162961/ft1_filtered_4FGL_J2352.0+1750_daily_bin104.fits scfile=/scratch/kocevski/162961/ft2_4FGL_J2352.0+1750_daily_bin104.fits outfile=/scratch/kocevski/162961/cmap_HighResolution_266284801_266544001_4FGL_J2352.0+1750_daily_bin104.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99487E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.317       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75438       1.0000         .10000E-03   10000.    
     6 'norm      '    9.0013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2619       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1962       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.424       1.0000         .10000E-03   10000.    
    12 'norm      '    14.491       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2035       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .71190       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1112       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=   7710.006     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1769 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.1321        .13741E-06** at limit **
   2  Prefactor     .10000E-03    6.7390        .54263E-07** at limit **
   3  Prefactor     .10000E-03    23.156        .16673E-05** at limit **
   4  Prefactor     20.318        29.756       -.10504E-06   -.17051E-04
   5  Prefactor     .75455        3.2767        .25449E-05   -.11851E-03
   6  norm          9.0014        6.6138       -.47716E-07   -.38170E-04
   7  Prefactor     .10000E-03    14.315       -.16717E-06** at limit **
   8  Prefactor     9.2616        5.1188        .17810E-08   -.20391E-04
   9  Prefactor     .10000E-03    1.5839       -.17873E-07** at limit **
  10  Prefactor     6.1961        9.0924        .92198E-07    .32589E-05
  11  Prefactor     20.421        16.250        .48789E-07   -.51336E-04
  12  norm          14.487        8.3485       -.70712E-07   -.13964E-03
  13  Prefactor     .10005E-03    3.0962        .53075E-06** at limit **
  14  Prefactor     .10000E-03    33.480       -.97986E-06** at limit **
  15  norm          .10000E-03    17.497       -.80894E-06** at limit **
  16  Prefactor     3.2037        5.2105        .57877E-06    .59398E-04
  17  Normalizat    .71189        .18021       -.90909E-06   -.24357E-03
  18  Prefactor     1.1112        .11356       -.24607E-07   -.38759E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.3179
  Prefactor  = 0.754553
  norm       = 9.00142
  Prefactor  = 0.0001
  Prefactor  = 9.26163
  Prefactor  = 0.0001
  Prefactor  = 6.19606
  Prefactor  = 20.4209
  norm       = 14.487
  Prefactor  = 0.000100051
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 3.20368
  Normalizat = 0.711885
  Prefactor  = 1.11124
 **********
 **   18 **HESSE 
 **********

 FCN=   7710.006     FROM HESSE     STATUS=OK           250 CALLS     2019 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    18.295        .17351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.318        29.752        .88860E-04   -1.4806    
   5  Prefactor     .75455        3.2980        .29508E-03   -1.5534    
   6  norm          9.0014        6.6152        .13359E-03   -1.5108    
   7  Prefactor     .10000E-03    14.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2616        5.1191        .13169E-03   -1.5099    
   9  Prefactor     .10000E-03    1.5886        .10788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1961        9.0769        .16127E-03   -1.5210    
  11  Prefactor     20.421        16.243        .88627E-04   -1.4804    
  12  norm          14.487        8.0574        .10522E-03   -1.4947    
  13  Prefactor     .10005E-03    36.192        .27939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    17.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2037        5.2029        .22637E-03   -1.5350    
  17  Normalizat    .71189        .19875        .33168E-03   -1.0343    
  18  Prefactor     1.1112        .12890        .17907E-03   -.89108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30739e-09
Minuit parameter uncertainties:
  1  0.00103722
  2  1.12004e-05
  3  0.000341742
  4  29.7739
  5  3.15509
  6  6.61576
  7  6.82195e-06
  8  5.11932
  9  3.68715e-07
  10  9.07892
  11  16.2463
  12  8.05803
  13  0.00272291
  14  0.000371919
  15  0.000249946
  16  5.20362
  17  0.198955
  18  0.128938
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  3.204e+00  5.204e+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.111e+00  1.289e-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:  7.119e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/162961/likelihoodResults_266284801_266544001_4FGL_J2352.0+1750_daily_bin104.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) = 7708.04240416
delta logL = 1.96347400382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7707.82767809
delta logL = 2.17820007926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14111E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.0572       1.0000          .0000       10.000    
     3 'Normalizat'    .54910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1815       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=   7707.828     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      305 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14018E-01    .96149E-01    .90934E-03   -.27980E-01
   2  Index         5.0596        1.6479        .69698E-01   -.28266E-03
   3  Normalizat    .54903        .54694E-01    .84587E-01   -.11494E-03
   4  Prefactor     1.1815        .35841E-01    .35085E-01   -.20519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0140178
  Index      = 5.05963
  Normalizat = 0.549029
  Prefactor  = 1.18153
 **********
 **   18 **HESSE 
 **********

 FCN=   7707.828     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      336 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14018E-01    .17702        .51299E-05   -1.5684    
   2  Index         5.0596        2.4709        .27759E-02    .11927E-01
   3  Normalizat    .54903        .18083        .37468E-03   -1.1019    
   4  Prefactor     1.1815        .11670        .17427E-03   -.86902    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.56118e-10
Minuit parameter uncertainties:
  1  0.0992731
  2  2.58445
  3  0.181023
  4  0.116722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162961': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7707.82767735
delta logL = 2.17820081662

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.402e-02  9.927e-02  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  5.060e+00  2.584e+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.182e+00  1.167e-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.490e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 358.013 17.839
Photon Index (Free Index): 5.06 +/- 2.58
Photon Flux (Free Index): 1.21e-07 +/- 6.24e-08
Energy Flux (Free Index): 1.60e-05 +/- 8.96e-06

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/162961/cmap_HighResolution_266284801_266544001_4FGL_J2352.0+1750_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='2.18e+00', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-30 07:31:07.527879', photon_index_error2='2.58', photon_index2='5.06', ts='0.52', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.32e-08', energy_flux_error2='8.96e-06', EG='0.71', time_epoch_completed='1633012267.53', return_code='0', job_id='162961', GAL2='1.18', EG2='0.55', return_code2='102', photon_flux_error2='6.24e-08', ts2='5.82', photon_index='2.07' WHERE bin_id='104' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 162961: <4FGL_J2352.0+1750_daily_bin104> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin104 358.013 17.8394 266284801 266544001 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 :                                   611.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            631 sec.

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

