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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin81
RA = 358.013, Dec = 17.8394
tmin = 260323201, tmax = 260582401
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='162930', job_status='RUN', time_executed='2021-09-30 07:23:26.434446', time_epoch_executed='1633011806.43' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162930/ft1_4FGL_J2352.0+1750_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162930/ft2_4FGL_J2352.0+1750_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162930/ft1_4FGL_J2352.0+1750_daily_bin81.fits outfile=/scratch/kocevski/162930/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin81.fits ra=358.013 dec=17.8394 rad=12.0 tmin=260323201.0 tmax=260582401.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.53
user 1.35
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162930/ft1_filtered_4FGL_J2352.0+1750_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/162930/ft2_4FGL_J2352.0+1750_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/162930/ltcube_260323201_260582401_4FGL_J2352.0+1750_daily_bin81.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/162930/ft2_4FGL_J2352.0+1750_daily_bin81.fits
.....................!
real 12.57
user 12.22
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162930/ft1_filtered_4FGL_J2352.0+1750_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/162930/ft2_4FGL_J2352.0+1750_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/162930/ltcube_260323201_260582401_4FGL_J2352.0+1750_daily_bin81.fits outfile=/scratch/kocevski/162930/expmap_260323201_260582401_4FGL_J2352.0+1750_daily_bin81.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/162930/ltcube_260323201_260582401_4FGL_J2352.0+1750_daily_bin81.fits
.....................!
real 193.48
user 187.54
sys 5.51

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/162930/ft1_filtered_4FGL_J2352.0+1750_daily_bin81.fits scfile=/scratch/kocevski/162930/ft2_4FGL_J2352.0+1750_daily_bin81.fits outfile=/scratch/kocevski/162930/cmap_260323201_260582401_4FGL_J2352.0+1750_daily_bin81.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.55
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .81392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11694E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    10.661       1.0000         .10000E-03   10000.    
     7 'Prefactor '    88.697       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24536E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13270E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.415       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.251       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .55288       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6775.193     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     1505 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .97576       -.59564E-06** at limit **
   2  Prefactor     .77208        20.402       -.12740E-04   -.71776E-04
   3  Prefactor     5.7821        2.8560        .84200E-06    .44565E-03
   4  Prefactor     7.5401        22.994       -.73092E-04   -.69257E-03
   5  Prefactor     .10000E-03    26.512        .34021E-04** at limit **
   6  norm          10.661        1.1280        .15947E-05    .65873E-03
   7  Prefactor     88.640        24.348       -.22875E-04    .28103E-02
   8  Prefactor     4.7012        3.5485       -.50948E-06   -.32111E-03
   9  Prefactor     .10000E-03    2.7873        .91690E-07** at limit **
  10  Prefactor     .10000E-03    29.483       -.25341E-04** at limit **
  11  Prefactor     .10001E-03    48.054        .34516E-04** at limit **
  12  norm          22.420        3.1970       -.28690E-05   -.67005E-03
  13  Prefactor     10.341        6.1936       -.67109E-05    .26773E-03
  14  Prefactor     27.258        2.2104        .28728E-05    .11989E-02
  15  norm          .10000E-03    8.0593        .87537E-06** at limit **
  16  Prefactor     .10000E-03    2.3917        .11340E-05** at limit **
  17  Normalizat    .55268        .21061        .13767E-04    .14738E-03
  18  Prefactor     1.1883        .13816       -.10298E-05    .30461E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.772076
  Prefactor  = 5.78208
  Prefactor  = 7.54014
  Prefactor  = 0.0001
  norm       = 10.6608
  Prefactor  = 88.6396
  Prefactor  = 4.70124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 22.4201
  Prefactor  = 10.3415
  Prefactor  = 27.2579
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.552675
  Prefactor  = 1.18829
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.193     FROM HESSE     STATUS=OK           300 CALLS     1805 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .95934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .77208        9.1393        .76464E-01   -1.5532    
   3  Prefactor     5.7821        11.380        .41744E-02   -1.5227    
   4  Prefactor     7.5401        34.175        .36374E-02   -1.5159    
   5  Prefactor     .10000E-03    1.9704        .69722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.661        8.9929        .30678E-02   -1.5055    
   7  Prefactor     88.640        36.408        .10666E-02   -1.3822    
   8  Prefactor     4.7012        3.5473        .46397E-02   -1.5274    
   9  Prefactor     .10000E-03    2.7486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8981        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    46.290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.420        11.492        .21151E-02   -1.4761    
  13  Prefactor     10.341        8.0902        .31149E-02   -1.5065    
  14  Prefactor     27.258        26.481        .19186E-02   -1.4663    
  15  norm          .10000E-03    8.0335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .55268        .19780        .85443E-01   -1.1003    
  18  Prefactor     1.1883        .12633        .34916E-01   -.86692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40518e-08
Minuit parameter uncertainties:
  1  1.84345e-07
  2  5.31337
  3  11.3844
  4  32.1355
  5  3.67518e-05
  6  8.99409
  7  36.4174
  8  3.54742
  9  1.74524e-05
  10  0.000105302
  11  0.00114861
  12  11.4933
  13  8.09107
  14  26.4926
  15  3.67512e-05
  16  4.94307e-05
  17  0.19805
  18  0.126366
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  4.943e-05  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.066e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.188e+00  1.264e-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.527e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/162930/likelihoodResults_260323201_260582401_4FGL_J2352.0+1750_daily_bin81.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) = 6775.19493764
delta logL = -0.00198013104182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6775.19295748
delta logL = 2.74712874671e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0572       1.0000          .0000       10.000    
     3 'Normalizat'    .55266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1883       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=   6775.193     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.930        .90712E-02** at limit **
   2  Index         2.0487        7.8603        .50000        .28666E-04
   3  Normalizat    .55267        .14886E-01    .85443E-01    .43257E-04
   4  Prefactor     1.1883        .99488E-02    .34913E-01   -.63713E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04874
  Normalizat = 0.552675
  Prefactor  = 1.18829
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.193     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2961        .12439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0487        5.8295        .50000       -.63137    
   3  Normalizat    .55267        .20481        .37851E-03   -1.1003    
   4  Prefactor     1.1883        .13743        .17686E-03   -.86692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42544e-09
Minuit parameter uncertainties:
  1  4.16625e-06
  2  5.39591
  3  0.205092
  4  0.137471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162930': 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) = 6775.19295739
delta logL = 1.24653524836e-07

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.000e-04  4.166e-06  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  2.049e+00  5.396e+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.188e+00  1.375e-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.527e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 358.013 17.839

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/162930/cmap_HighResolution_260323201_260582401_4FGL_J2352.0+1750_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-03', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-30 07:32:44.728483', job_id='162930', GAL2='1.19', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1633012364.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='81' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:32:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 162930: <4FGL_J2352.0+1750_daily_bin81> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin81 358.013 17.8394 260323201 260582401 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 :                                 1094 MB
    Average Memory :                             270.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

