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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin26
RA = 358.013, Dec = 17.8394
tmin = 246067201, tmax = 246326401
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='162850', job_status='RUN', time_executed='2021-09-30 07:22:29.316452', time_epoch_executed='1633011749.32' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162850/ft1_4FGL_J2352.0+1750_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162850/ft2_4FGL_J2352.0+1750_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162850/ft1_4FGL_J2352.0+1750_daily_bin26.fits outfile=/scratch/kocevski/162850/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin26.fits ra=358.013 dec=17.8394 rad=12.0 tmin=246067201.0 tmax=246326401.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.47
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162850/ft1_filtered_4FGL_J2352.0+1750_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/162850/ft2_4FGL_J2352.0+1750_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/162850/ltcube_246067201_246326401_4FGL_J2352.0+1750_daily_bin26.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/162850/ft2_4FGL_J2352.0+1750_daily_bin26.fits
.....................!
real 12.18
user 11.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162850/ft1_filtered_4FGL_J2352.0+1750_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/162850/ft2_4FGL_J2352.0+1750_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/162850/ltcube_246067201_246326401_4FGL_J2352.0+1750_daily_bin26.fits outfile=/scratch/kocevski/162850/expmap_246067201_246326401_4FGL_J2352.0+1750_daily_bin26.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/162850/ltcube_246067201_246326401_4FGL_J2352.0+1750_daily_bin26.fits
.....................!
real 191.04
user 185.27
sys 5.46

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/162850/ft1_filtered_4FGL_J2352.0+1750_daily_bin26.fits scfile=/scratch/kocevski/162850/ft2_4FGL_J2352.0+1750_daily_bin26.fits outfile=/scratch/kocevski/162850/cmap_246067201_246326401_4FGL_J2352.0+1750_daily_bin26.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162850/ft1_filtered_4FGL_J2352.0+1750_daily_bin26.fits scfile=/scratch/kocevski/162850/ft2_4FGL_J2352.0+1750_daily_bin26.fits outfile=/scratch/kocevski/162850/cmap_HighResolution_246067201_246326401_4FGL_J2352.0+1750_daily_bin26.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.51
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .57871       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6828       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4144       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3417       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10207E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6250       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.952       1.0000         .10000E-03   10000.    
    12 'norm      '    39.050       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.373       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .36598E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1939       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .95093       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95458       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=   8358.497     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1575 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0056        .19039E-06** at limit **
   2  Prefactor     .10000E-03    2.7751        .14744E-06** at limit **
   3  Prefactor     .59198        12.020        .42762E-06   -.46087E-04
   4  Prefactor     6.6569        31.860        .34606E-05    .27375E-04
   5  Prefactor     4.4118        3.9226        .60701E-06    .24065E-03
   6  norm          1.3419        4.1600        .13437E-05   -.32837E-03
   7  Prefactor     .10001E-03    28.269       -.38684E-05** at limit **
   8  Prefactor     5.6253        5.9350        .28174E-07   -.63191E-04
   9  Prefactor     1.2205        4.7011       -.46894E-06   -.54829E-04
  10  Prefactor     .10000E-03    6.5128       -.20120E-06** at limit **
  11  Prefactor     16.956        19.353        .58705E-06    .45568E-04
  12  norm          39.051        11.394        .87477E-07    .63134E-04
  13  Prefactor     13.372        7.4673       -.65420E-08    .45165E-04
  14  Prefactor     .10000E-03    44.622       -.49290E-06** at limit **
  15  norm          .10000E-03    28.299        .32221E-05** at limit **
  16  Prefactor     7.1913        7.8781        .64474E-06    .74266E-04
  17  Normalizat    .95116        .19423       -.11545E-05    .26647E-03
  18  Prefactor     .95444        .11783        .11433E-05    .78700E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.591979
  Prefactor  = 6.65685
  Prefactor  = 4.41182
  norm       = 1.34185
  Prefactor  = 0.000100006
  Prefactor  = 5.62533
  Prefactor  = 1.22051
  Prefactor  = 0.0001
  Prefactor  = 16.9557
  norm       = 39.0507
  Prefactor  = 13.3719
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 7.19128
  Normalizat = 0.951162
  Prefactor  = 0.954443
 **********
 **   18 **HESSE 
 **********

 FCN=   8358.497     FROM HESSE     STATUS=OK           258 CALLS     1833 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0308        .17833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7771        .14861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .59198        12.420        .46352E-02   -1.5554    
   4  Prefactor     6.6569        32.086        .15522E-03   -1.5192    
   5  Prefactor     4.4118        3.8759        .15858E-03   -1.5288    
   6  norm          1.3419        6.2916        .18917E-02   -1.5476    
   7  Prefactor     .10001E-03    91.987        .66068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6253        5.9537        .84690E-03   -1.5234    
   9  Prefactor     1.2205        4.6297        .35428E-03   -1.5487    
  10  Prefactor     .10000E-03    6.5389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.956        19.078        .97276E-04   -1.4884    
  12  norm          39.051        11.380        .64141E-04   -1.4457    
  13  Prefactor     13.372        7.4611        .10953E-03   -1.4976    
  14  Prefactor     .10000E-03    45.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    57.874        .52120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1913        7.8576        .14955E-03   -1.5172    
  17  Normalizat    .95116        .21643        .31394E-03   -.94685    
  18  Prefactor     .95444        .13021        .19760E-03   -.94264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23839e-07
Minuit parameter uncertainties:
  1  2.9297e-06
  2  3.30579e-06
  3  5.42388
  4  29.2545
  5  3.87608
  6  5.81196
  7  0.00146041
  8  5.95436
  9  4.63104
  10  7.05521e-06
  11  19.0846
  12  11.3809
  13  7.46158
  14  6.04832e-05
  15  0.00105017
  16  7.85875
  17  0.21663
  18  0.130253
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  7.191e+00  7.859e+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.544e-01  1.303e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.512e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 358.013 17.839
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 2.04e-05

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

Saving results to:
/scratch/kocevski/162850/likelihoodResults_246067201_246326401_4FGL_J2352.0+1750_daily_bin26.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) = 8355.0482897
delta logL = 3.44834156808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8355.04785151
delta logL = 3.44877976417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66538       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6892       1.0000          .0000       10.000    
     3 'Normalizat'    .78651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0188       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=   8355.048     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      285 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66568        3.3350        .67070E-02    .96160E-03
   2  Index         3.6892        1.5423        .65470E-01    .29986E-03
   3  Normalizat    .78652        .61042E-01    .77147E-01    .30100E-04
   4  Prefactor     1.0188        .38023E-01    .42264E-01   -.62642E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.665682
  Index      = 3.68919
  Normalizat = 0.786517
  Prefactor  = 1.01878
 **********
 **   18 **HESSE 
 **********

 FCN=   8355.048     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      318 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66568        5.6233        .30072E-04   -1.5545    
   2  Index         3.6892        2.1775        .26757E-02   -.26526    
   3  Normalizat    .78652        .20530        .34150E-03   -1.0057    
   4  Prefactor     1.0188        .12774        .19179E-03   -.92106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.18256e-07
Minuit parameter uncertainties:
  1  3.86974
  2  2.25911
  3  0.205502
  4  0.127777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162850': 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) = 8355.04785109
delta logL = 3.4487801845

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  6.657e-01  3.870e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  3.689e+00  2.259e+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.019e+00  1.278e-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.865e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.77
Ra Dec: 358.013 17.839
Photon Index (Free Index): 3.69 +/- 2.26
Photon Flux (Free Index): 1.46e-07 +/- 6.39e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.38e-05

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/162850/cmap_HighResolution_246067201_246326401_4FGL_J2352.0+1750_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='2.32e-05', photon_flux_error='3.45e-08', dlogl='3.45e+00', energy_flux='1.87e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-30 07:32:58.610527', photon_index_error2='2.26', photon_index2='3.69', ts='1.10', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.38e-05', EG='0.95', time_epoch_completed='1633012378.61', return_code='0', job_id='162850', GAL2='1.02', EG2='0.79', return_code2='102', energy_flux_error='2.04e-05', photon_flux_error2='6.39e-08', ts2='8.77', photon_index='2.07' WHERE bin_id='26' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:32:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 162850: <4FGL_J2352.0+1750_daily_bin26> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin26 358.013 17.8394 246067201 246326401 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

