/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 20 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 = 7447
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2352.0+1750_daily_bin1430
RA = 358.013, Dec = 17.8394
tmin = 609984001, tmax = 610243201
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='167655', job_status='RUN', time_executed='2021-09-30 07:36:54.728926', time_epoch_executed='1633012614.73' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/167655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/167655/ft1_4FGL_J2352.0+1750_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/167655/ft2_4FGL_J2352.0+1750_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/167655/ft1_4FGL_J2352.0+1750_daily_bin1430.fits outfile=/scratch/kocevski/167655/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1430.fits ra=358.013 dec=17.8394 rad=12.0 tmin=609984001.0 tmax=610243201.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.16
user 4.88
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/167655/ft2_4FGL_J2352.0+1750_daily_bin1430.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/167655/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1430.fits evtable="EVENTS" outfile="/scratch/kocevski/167655/ft1_filtered_4FGL_J2352.0+1750_daily_bin1430.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/167655/ft1_filtered_4FGL_J2352.0+1750_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/167655/ft2_4FGL_J2352.0+1750_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/167655/ltcube_609984001_610243201_4FGL_J2352.0+1750_daily_bin1430.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/167655/ft2_4FGL_J2352.0+1750_daily_bin1430.fits
.....................!
real 11.62
user 11.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/167655/ft1_filtered_4FGL_J2352.0+1750_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/167655/ft2_4FGL_J2352.0+1750_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/167655/ltcube_609984001_610243201_4FGL_J2352.0+1750_daily_bin1430.fits outfile=/scratch/kocevski/167655/expmap_609984001_610243201_4FGL_J2352.0+1750_daily_bin1430.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/167655/ltcube_609984001_610243201_4FGL_J2352.0+1750_daily_bin1430.fits
.....................!
real 189.64
user 185.08
sys 4.15

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/167655/ft1_filtered_4FGL_J2352.0+1750_daily_bin1430.fits scfile=/scratch/kocevski/167655/ft2_4FGL_J2352.0+1750_daily_bin1430.fits outfile=/scratch/kocevski/167655/cmap_609984001_610243201_4FGL_J2352.0+1750_daily_bin1430.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=358.013 yref=17.8394 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/167655/ft1_filtered_4FGL_J2352.0+1750_daily_bin1430.fits scfile=/scratch/kocevski/167655/ft2_4FGL_J2352.0+1750_daily_bin1430.fits outfile=/scratch/kocevski/167655/cmap_HighResolution_609984001_610243201_4FGL_J2352.0+1750_daily_bin1430.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10803       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8384       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15869E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6405       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .87527       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0795       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94942       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=   6523.343     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1554 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10892        2.6947        .41684E-05   -.32824E-03
   2  Prefactor     .10000E-03    14.693        .40027E-06** at limit **
   3  Prefactor     8.9203        10.523        .46541E-06    .32558E-03
   4  Prefactor     .10000E-03    56.704       -.32430E-06** at limit **
   5  Prefactor     2.8383        3.3845        .13160E-05    .21987E-02
   6  norm          .10000E-03    3.4529        .13459E-07** at limit **
   7  Prefactor     .10000E-03    12.746       -.11578E-06** at limit **
   8  Prefactor     .10000E-03    1.9555        .17914E-07** at limit **
   9  Prefactor     .10000E-03    1.6964        .27097E-07** at limit **
  10  Prefactor     .10028E-03    15.349       -.57077E-05** at limit **
  11  Prefactor     .10000E-03    12.168        .11620E-06** at limit **
  12  norm          .10000E-03    20.120       -.13126E-04** at limit **
  13  Prefactor     .10000E-03    7.1799        .39146E-07** at limit **
  14  Prefactor     .10001E-03    37.964       -.31215E-07** at limit **
  15  norm          8.6409        11.945        .31075E-06    .76266E-04
  16  Prefactor     .88726        4.3046        .13621E-05   -.10979E-03
  17  Normalizat    1.0794        .19625       -.19071E-05   -.43034E-03
  18  Prefactor     .94946        .12032       -.13067E-06   -.64228E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.108922
  Prefactor  = 0.000100001
  Prefactor  = 8.92029
  Prefactor  = 0.000100004
  Prefactor  = 2.83833
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100283
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 8.64093
  Prefactor  = 0.88726
  Normalizat = 1.07938
  Prefactor  = 0.949456
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.343     FROM HESSE     STATUS=OK           244 CALLS     1798 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10892        7.3450        .16570E-02   -1.5642    
   2  Prefactor     .10000E-03    15.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9203        10.513        .13418E-03   -1.5111    
   4  Prefactor     .10000E-03    57.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8383        3.5273        .16164E-03   -1.5371    
   6  norm          .10000E-03    3.4556        .14658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9621        .11030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7020        .10273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10028E-03    76.736        .49717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    26.448        .35657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    38.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6409        11.949        .13637E-03   -1.5120    
  16  Prefactor     .88726        16.512        .30724E-02   -1.5520    
  17  Normalizat    1.0794        .22939        .28311E-03   -.90417    
  18  Prefactor     .94946        .14242        .19212E-03   -.94434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26166e-08
Minuit parameter uncertainties:
  1  1.78829
  2  0.000185687
  3  10.5149
  4  0.00094644
  5  3.52759
  6  1.87784e-06
  7  8.15304e-07
  8  2.69375e-06
  9  3.46015e-06
  10  0.00933986
  11  3.28632e-05
  12  0.000265175
  13  8.19775e-05
  14  0.00132702
  15  11.9524
  16  7.65724
  17  0.229602
  18  0.142474
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  8.873e-01  7.657e+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.495e-01  1.425e-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.079e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/167655/likelihoodResults_609984001_610243201_4FGL_J2352.0+1750_daily_bin1430.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) = 6521.95936759
delta logL = 1.38359071523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6521.94673585
delta logL = 1.39622245421

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80445E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.3033       1.0000          .0000       10.000    
     3 'Normalizat'    .95326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99926       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=   6521.947     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      305 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79917E-01    .74764        .33251E-02    .28810E-02
   2  Index         4.3057        1.8119        .87424E-01    .21740E-03
   3  Normalizat    .95337        .50284E-01    .67575E-01    .17341E-04
   4  Prefactor     .99918        .32230E-01    .46258E-01    .10365E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.079917
  Index      = 4.30566
  Normalizat = 0.953374
  Prefactor  = 0.999183
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.947     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      340 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79917E-01    1.7640        .15060E-03   -1.5651    
   2  Index         4.3057        3.2170        .32613E-02   -.13932    
   3  Normalizat    .95337        .18261        .29893E-03   -.94609    
   4  Prefactor     .99918        .11520        .18778E-03   -.92757    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.6077e-08
Minuit parameter uncertainties:
  1  0.750486
  2  3.50171
  3  0.182733
  4  0.115232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/167655': 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) = 6521.94673437
delta logL = 1.39622393867

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.992e-01  1.152e-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.534e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 358.013 17.839
Photon Index (Free Index): 4.31 +/- 3.50
Photon Flux (Free Index): 8.96e-08 +/- 5.89e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.03e-05

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/167655/cmap_HighResolution_609984001_610243201_4FGL_J2352.0+1750_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='1.40e+00', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-09-30 07:46:27.405421', photon_index_error2='3.50', photon_index2='4.31', ts='0.02', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.38e-08', energy_flux_error2='1.03e-05', EG='1.08', time_epoch_completed='1633013187.41', return_code='0', job_id='167655', GAL2='1.00', EG2='0.95', return_code2='102', photon_flux_error2='5.89e-08', ts2='3.27', photon_index='2.07' WHERE bin_id='1430' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 167655: <4FGL_J2352.0+1750_daily_bin1430> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin1430> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:36:15 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:36:17 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:36:17 2021
Terminated at Thu Sep 30 07:46:28 2021
Results reported at Thu Sep 30 07:46:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin1430 358.013 17.8394 609984001 610243201 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 :                                   563.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            613 sec.

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

