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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin752
RA = 351.436, Dec = 18.3654
tmin = 434246401, tmax = 434505601
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='884789', job_status='RUN', time_executed='2021-09-29 18:26:47.051613', time_epoch_executed='1632965207.05' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884789/ft1_4FGL_J2325.7+1821_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884789/ft1_4FGL_J2325.7+1821_daily_bin752.fits outfile=/scratch/kocevski/884789/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin752.fits ra=351.436 dec=18.3654 rad=12.0 tmin=434246401.0 tmax=434505601.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.99
user 5.76
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.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/884789/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin752.fits evtable="EVENTS" outfile="/scratch/kocevski/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/884789/ltcube_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.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/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits
.....................!
real 12.21
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/884789/ltcube_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.fits outfile=/scratch/kocevski/884789/expmap_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.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/884789/ltcube_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.fits
.....................!
real 191.83
user 185.88
sys 5.58

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2325.7+1821 @ 351.436 18.3654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.fits scfile=/scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits outfile=/scratch/kocevski/884789/cmap_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.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=351.436 yref=18.3654 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.fits scfile=/scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits outfile=/scratch/kocevski/884789/cmap_HighResolution_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.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=351.436 yref=18.3654 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884789/Model_4FGL_J2325.7+1821_daily_bin752.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/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.fits.....................!
real 60.70
user 59.19
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.fits', '/scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits', expMap='/scratch/kocevski/884789/expmap_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.fits', expCube='/scratch/kocevski/884789/ltcube_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/884789/Model_4FGL_J2325.7+1821_daily_bin752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.7+1821'

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/884789/ft1_filtered_4FGL_J2325.7+1821_daily_bin752.fits
Spacecraft file(s): /scratch/kocevski/884789/ft2_4FGL_J2325.7+1821_daily_bin752.fits
Exposure map: /scratch/kocevski/884789/expmap_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.fits
Exposure cube: /scratch/kocevski/884789/ltcube_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/884789/Model_4FGL_J2325.7+1821_daily_bin752.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) = 4751.89640718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38534E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3815       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.978       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.959       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6154       1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.480       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.224       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76015       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4751.825     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2866 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.015        5.6945        .11348E-05    .24109E-02
   2  Prefactor     .10000E-03    257.11       -.13241E-03** at limit **
   3  Prefactor     .10000E-03    8.3709        .19801E-05** at limit **
   4  norm          3.4579        3.1262       -.38133E-07   -.11220E-03
   5  Prefactor     .10000E-03    26.971       -.57061E-05** at limit **
   6  Prefactor     .10000E-03    15.176        .19807E-05** at limit **
   7  Prefactor     .10000E-03    32.158        .24952E-05** at limit **
   8  Prefactor     3.6902        .49040        .53807E-07    .15475E-03
   9  Prefactor     .10000E-03    10.238       -.13823E-05** at limit **
  10  Prefactor     2.3809        16.117       -.32862E-05    .14742E-03
  11  Prefactor     .10000E-03    11.049       -.19087E-05** at limit **
  12  Prefactor     33.964        41.243        .72669E-05    .27590E-04
  13  Prefactor     .10000E-03    14.454        .21180E-05** at limit **
  14  Prefactor     10.958        10.929       -.39181E-05    .73822E-03
  15  Prefactor     .10000E-03    5.7223        .30114E-06** at limit **
  16  Prefactor     4.6131        16.759        .11818E-05    .84882E-04
  17  norm          .10000E-03    7.2090       -.55932E-06** at limit **
  18  Prefactor     16.480        14.189       -.15581E-05    .88685E-04
  19  Prefactor     31.203        44.780        .11235E-04    .55580E-04
  20  norm          .10000E-03    11.334       -.17472E-05** at limit **
  21  Prefactor     .10000E-03    3.4995       -.45003E-06** at limit **
  22  Normalizat    .76044        .32855        .59999E-06    .38455E-03
  23  Prefactor     1.1399        .18358        .20846E-06    .82657E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.69015
  Prefactor  = 0.0001
  Prefactor  = 2.38086
  Prefactor  = 0.0001
  Prefactor  = 33.9636
  Prefactor  = 0.0001
  Prefactor  = 10.9577
  Prefactor  = 0.0001
  Prefactor  = 4.61312
  norm       = 0.000100001
  Prefactor  = 16.4797
  Prefactor  = 31.2025
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.760436
  Prefactor  = 1.1399
 **********
 **   18 **HESSE 
 **********

 FCN=   4751.825     FROM HESSE     STATUS=OK           372 CALLS     3238 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.015        5.8215        .11033E-03   -1.5075    
   2  Prefactor     .10000E-03    26.940        .79215E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4579        3.1253        .11252E-03   -1.5336    
   5  Prefactor     .10000E-03    27.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6902        .49024        .16493E-04   -1.5324    
   9  Prefactor     .10000E-03    10.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3809        16.150        .26544E-03   -1.5399    
  11  Prefactor     .10000E-03    11.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.964        41.391        .68746E-04   -1.4542    
  13  Prefactor     .10000E-03    14.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.958        11.059        .60513E-03   -1.5046    
  15  Prefactor     .10000E-03    5.7285        .16100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6131        16.731        .18735E-03   -1.5278    
  17  norm          .10000E-03    7.2337        .18075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.480        14.219        .98660E-04   -1.4896    
  19  Prefactor     31.203        45.184        .71705E-04   -1.4590    
  20  norm          .10000E-03    11.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5083        .12595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .76044        .36466        .43471E-03   -1.0155    
  23  Prefactor     1.1399        .20548        .21295E-03   -.88201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92139e-09
Minuit parameter uncertainties:
  1  5.8218
  2  0.000163175
  3  1.40571e-05
  4  3.1254
  5  7.449e-05
  6  1.50635e-05
  7  1.12562e-05
  8  0.490236
  9  7.7863e-05
  10  12.4063
  11  2.9994e-05
  12  41.4259
  13  8.50568e-05
  14  11.0609
  15  8.042e-05
  16  16.748
  17  0.000137608
  18  14.222
  19  45.234
  20  2.92359e-05
  21  5.36021e-06
  22  0.365831
  23  0.205625
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  4.613e+00  1.675e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.140e+00  2.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  7.604e-01  3.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884789/likelihoodResults_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.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) = 4751.2777425
delta logL = 0.547754083554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4751.0920238
delta logL = 0.733472784338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.490       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3131       1.0000          .0000       10.000    
     3 'Normalizat'    .77214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1309       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4751.092     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.517        17.212        .27264E-02   -.10174E-04
   2  Index         1.3136        .52009        .26962       -.40430E-04
   3  Normalizat    .77171        .30440        .97369E-01    .58067E-05
   4  Prefactor     1.1311        .18014        .36515E-01   -.63754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5169
  Index      = 1.31357
  Normalizat = 0.771708
  Prefactor  = 1.13109
 **********
 **   18 **HESSE 
 **********

 FCN=   4751.092     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.517        19.646        .10906E-03   -1.4972    
   2  Index         1.3136        .68697        .10288E-01   -.82904    
   3  Normalizat    .77171        .33849        .43151E-03   -1.0113    
   4  Prefactor     1.1311        .20107        .21342E-03   -.88479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13611e-09
Minuit parameter uncertainties:
  1  19.6551
  2  0.691798
  3  0.33942
  4  0.201201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884789': 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) = 4751.09202206
delta logL = 0.733474521045

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.352e+01  1.966e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  1.314e+00  6.918e-01  0.000e+00  1.000e+01 (-1.000e+00)
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.131e+00  2.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  7.717e-01  3.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 351.436 18.365
Photon Index (Free Index): 1.31 +/- 0.69
Photon Flux (Free Index): 8.35e-09 +/- 1.23e-08
Energy Flux (Free Index): 4.89e-05 +/- 9.44e-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/884789/cmap_HighResolution_434246401_434505601_4FGL_J2325.7+1821_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='4.89e-05', dlogl='7.33e-01', photon_flux2='8.35e-09', job_status='DONE', time_completed='2021-09-29 18:36:59.223711', photon_index_error2='0.69', photon_index2='1.31', ts='0.09', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='9.44e-05', EG='0.76', time_epoch_completed='1632965819.22', return_code='0', job_id='884789', GAL2='1.13', EG2='0.77', return_code2='0', photon_flux_error2='1.23e-08', ts2='1.56', photon_index='2.43' WHERE bin_id='752' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:36:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 884789: <4FGL_J2325.7+1821_daily_bin752> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:26:32 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:26:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:26:33 2021
Terminated at Wed Sep 29 18:36:59 2021
Results reported at Wed Sep 29 18:36:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin752 351.436 18.3654 434246401 434505601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.7+1821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            627 sec.

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

