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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin1408
RA = 358.013, Dec = 17.8394
tmin = 604281601, tmax = 604540801
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='167622', job_status='RUN', time_executed='2021-09-30 07:36:34.314458', time_epoch_executed='1633012594.31' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/167622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/167622/ft1_4FGL_J2352.0+1750_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/167622/ft2_4FGL_J2352.0+1750_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/167622/ft1_4FGL_J2352.0+1750_daily_bin1408.fits outfile=/scratch/kocevski/167622/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1408.fits ra=358.013 dec=17.8394 rad=12.0 tmin=604281601.0 tmax=604540801.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 3.61
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/167622/ft2_4FGL_J2352.0+1750_daily_bin1408.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/167622/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1408.fits evtable="EVENTS" outfile="/scratch/kocevski/167622/ft1_filtered_4FGL_J2352.0+1750_daily_bin1408.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/167622/ft1_filtered_4FGL_J2352.0+1750_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/167622/ft2_4FGL_J2352.0+1750_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/167622/ltcube_604281601_604540801_4FGL_J2352.0+1750_daily_bin1408.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/167622/ft2_4FGL_J2352.0+1750_daily_bin1408.fits
.....................!
real 12.58
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/167622/ft1_filtered_4FGL_J2352.0+1750_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/167622/ft2_4FGL_J2352.0+1750_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/167622/ltcube_604281601_604540801_4FGL_J2352.0+1750_daily_bin1408.fits outfile=/scratch/kocevski/167622/expmap_604281601_604540801_4FGL_J2352.0+1750_daily_bin1408.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/167622/ltcube_604281601_604540801_4FGL_J2352.0+1750_daily_bin1408.fits
.....................!
real 191.45
user 186.95
sys 4.17

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/167622/ft1_filtered_4FGL_J2352.0+1750_daily_bin1408.fits scfile=/scratch/kocevski/167622/ft2_4FGL_J2352.0+1750_daily_bin1408.fits outfile=/scratch/kocevski/167622/cmap_604281601_604540801_4FGL_J2352.0+1750_daily_bin1408.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/167622/ft1_filtered_4FGL_J2352.0+1750_daily_bin1408.fits scfile=/scratch/kocevski/167622/ft2_4FGL_J2352.0+1750_daily_bin1408.fits outfile=/scratch/kocevski/167622/cmap_HighResolution_604281601_604540801_4FGL_J2352.0+1750_daily_bin1408.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/167622/ft1_filtered_4FGL_J2352.0+1750_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/167622/ft2_4FGL_J2352.0+1750_daily_bin1408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/167622/Model_4FGL_J2352.0+1750_daily_bin1408.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/167622/ft1_filtered_4FGL_J2352.0+1750_daily_bin1408.fits.....................!
real 92.10
user 90.78
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0481       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.058       1.0000         .10000E-03   10000.    
     6 'norm      '    7.2796       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13980E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5357       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.591       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.025       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.774       1.0000         .10000E-03   10000.    
    15 'norm      '    8.3693       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5446       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1464       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1488       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=   7924.556     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1724 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0476        3.8199       -.13640E-06   -.10742E-03
   2  Prefactor     .10000E-03    4.3268       -.24870E-07** at limit **
   3  Prefactor     .10000E-03    2.6192        .12949E-07** at limit **
   4  Prefactor     .10000E-03    15.762       -.95608E-07** at limit **
   5  Prefactor     13.056        4.3814       -.75379E-07   -.32556E-03
   6  norm          7.2793        6.9798       -.82015E-07   -.21352E-04
   7  Prefactor     .10003E-03    13.116        .11023E-05** at limit **
   8  Prefactor     2.5356        4.4247        .18836E-06   -.93727E-04
   9  Prefactor     .10000E-03    2.0452        .52876E-07** at limit **
  10  Prefactor     12.155        19.148       -.29675E-05   -.36470E-03
  11  Prefactor     .10000E-03    6.2783       -.27577E-07** at limit **
  12  norm          21.597        14.096        .15583E-05    .31770E-03
  13  Prefactor     10.026        10.678       -.35265E-07   -.19515E-05
  14  Prefactor     22.766        37.863       -.31969E-05   -.21265E-03
  15  norm          8.3591        21.602       -.42208E-05   -.25405E-03
  16  Prefactor     5.5437        8.0037        .33741E-05   -.97539E-03
  17  Normalizat    1.1463        .22177       -.21494E-06   -.28036E-04
  18  Prefactor     1.1489        .13803        .65708E-07   -.38065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.04763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0563
  norm       = 7.27927
  Prefactor  = 0.000100026
  Prefactor  = 2.53562
  Prefactor  = 0.0001
  Prefactor  = 12.1554
  Prefactor  = 0.0001
  norm       = 21.5971
  Prefactor  = 10.0257
  Prefactor  = 22.7659
  norm       = 8.35913
  Prefactor  = 5.54375
  Normalizat = 1.1463
  Prefactor  = 1.14887
 **********
 **   18 **HESSE 
 **********

 FCN=   7924.556     FROM HESSE     STATUS=OK           250 CALLS     1974 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0476        3.8357        .11174E-03   -1.5141    
   2  Prefactor     .10000E-03    4.3348        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6229        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.056        4.3751        .10365E-03   -1.4985    
   6  norm          7.2793        6.9836        .14866E-03   -1.5168    
   7  Prefactor     .10003E-03    52.607        .61977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5356        4.4133        .24085E-03   -1.5389    
   9  Prefactor     .10000E-03    2.0566        .12431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.155        19.636        .11483E-03   -1.5011    
  11  Prefactor     .10000E-03    6.2876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.597        14.392        .86201E-04   -1.4778    
  13  Prefactor     10.026        10.656        .12656E-03   -1.5075    
  14  Prefactor     22.766        38.393        .83934E-04   -1.4753    
  15  norm          8.3591        22.214        .13857E-03   -1.5130    
  16  Prefactor     5.5437        8.9436        .85311E-03   -1.5237    
  17  Normalizat    1.1463        .25731        .33219E-03   -.88279    
  18  Prefactor     1.1489        .16013        .21315E-03   -.87920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08753e-09
Minuit parameter uncertainties:
  1  3.83577
  2  3.16938e-06
  3  7.48259e-08
  4  1.7862e-05
  5  4.37517
  6  6.98437
  7  0.00232891
  8  4.41384
  9  1.09691e-06
  10  19.6464
  11  2.32195e-06
  12  14.394
  13  10.6583
  14  38.4346
  15  22.2356
  16  8.94575
  17  0.257594
  18  0.160194
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  5.544e+00  8.946e+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.149e+00  1.602e-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.146e+00  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/167622/likelihoodResults_604281601_604540801_4FGL_J2352.0+1750_daily_bin1408.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) = 7923.98561944
delta logL = 0.570145430817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7923.9685892
delta logL = 0.587175671169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8210       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0068       1.0000          .0000       10.000    
     3 'Normalizat'    1.0810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1739       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7923.969     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      281 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8212        62.448        .97669E-04    .16654E-02
   2  Index         3.0068        6.4921        .52600E-02    .28591E-03
   3  Normalizat    1.0810        .26747        .34074E-03    .23616E-03
   4  Prefactor     1.1739        .17022        .21112E-03    .35997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82121
  Index      = 3.0068
  Normalizat = 1.08098
  Prefactor  = 1.17391
 **********
 **   18 **HESSE 
 **********

 FCN=   7923.969     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8212        4.6594        .39068E-05   -1.5438    
   2  Index         3.0068        1.0566        .21040E-03   -.41003    
   3  Normalizat    1.0810        .25719        .13629E-04   -.90365    
   4  Prefactor     1.1739        .16177        .42224E-04   -.87138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82543e-10
Minuit parameter uncertainties:
  1  4.6603
  2  1.06618
  3  0.257491
  4  0.161836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/167622': 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) = 7923.96858918
delta logL = 0.587175691486

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.821e+00  4.660e+00  1.000e-04  1.000e+04 ( 1.000e-13)
477        Index:  3.007e+00  1.066e+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.174e+00  1.618e-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.081e+00  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 358.013 17.839
Photon Index (Free Index): 3.01 +/- 1.07
Photon Flux (Free Index): 7.02e-08 +/- 6.37e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.29e-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/167622/cmap_HighResolution_604281601_604540801_4FGL_J2352.0+1750_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.36e-03', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='5.87e-01', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-30 07:47:12.873674', photon_index_error2='1.07', photon_index2='3.01', ts='0.48', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.29e-05', EG='1.15', time_epoch_completed='1633013232.87', return_code='0', job_id='167622', GAL2='1.17', EG2='1.08', return_code2='0', photon_flux_error2='6.37e-08', ts2='1.84', photon_index='2.07' WHERE bin_id='1408' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:47:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 167622: <4FGL_J2352.0+1750_daily_bin1408> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin1408 358.013 17.8394 604281601 604540801 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 :                                   632.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            660 sec.

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

