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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1056
RA = 351.436, Dec = 18.3654
tmin = 513043201, tmax = 513302401
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='886807', job_status='RUN', time_executed='2021-09-29 18:37:43.111640', time_epoch_executed='1632965863.11' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886807/ft1_4FGL_J2325.7+1821_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886807/ft1_4FGL_J2325.7+1821_daily_bin1056.fits outfile=/scratch/kocevski/886807/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1056.fits ra=351.436 dec=18.3654 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.34
user 6.03
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886807/ft1_filtered_4FGL_J2325.7+1821_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/886807/ltcube_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.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/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits
.....................!
real 12.29
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886807/ft1_filtered_4FGL_J2325.7+1821_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/886807/ltcube_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.fits outfile=/scratch/kocevski/886807/expmap_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.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/886807/ltcube_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.fits
.....................!
real 189.87
user 184.89
sys 4.53

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/886807/ft1_filtered_4FGL_J2325.7+1821_daily_bin1056.fits scfile=/scratch/kocevski/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits outfile=/scratch/kocevski/886807/cmap_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886807/ft1_filtered_4FGL_J2325.7+1821_daily_bin1056.fits scfile=/scratch/kocevski/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits outfile=/scratch/kocevski/886807/cmap_HighResolution_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/886807/ft1_filtered_4FGL_J2325.7+1821_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/886807/Model_4FGL_J2325.7+1821_daily_bin1056.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/886807/ft1_filtered_4FGL_J2325.7+1821_daily_bin1056.fits.....................!
real 79.37
user 77.95
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/886807/ft1_filtered_4FGL_J2325.7+1821_daily_bin1056.fits', '/scratch/kocevski/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits', expMap='/scratch/kocevski/886807/expmap_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.fits', expCube='/scratch/kocevski/886807/ltcube_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/886807/Model_4FGL_J2325.7+1821_daily_bin1056.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/886807/ft1_filtered_4FGL_J2325.7+1821_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/886807/ft2_4FGL_J2325.7+1821_daily_bin1056.fits
Exposure map: /scratch/kocevski/886807/expmap_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.fits
Exposure cube: /scratch/kocevski/886807/ltcube_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/886807/Model_4FGL_J2325.7+1821_daily_bin1056.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) = 6711.58539108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.085       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    70.993       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6397       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .75782E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.552       1.0000         .10000E-03   10000.    
    17 'norm      '    .93352E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2518       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1440       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94522       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=   6711.576     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2514 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.087        3.9633        .17368E-06   -.26145E-03
   2  Prefactor     .10000E-03    5.3936        .20181E-05** at limit **
   3  Prefactor     .10000E-03    3.9781        .10150E-06** at limit **
   4  norm          .10000E-03    .81053       -.11081E-06** at limit **
   5  Prefactor     70.998        50.821        .48912E-05   -.29820E-04
   6  Prefactor     13.613        13.629       -.66981E-06   -.75530E-04
   7  Prefactor     .10000E-03    26.131        .10533E-04** at limit **
   8  Prefactor     3.3592        .36648       -.45513E-07   -.27878E-02
   9  Prefactor     13.661        11.477       -.25048E-06   -.57262E-04
  10  Prefactor     .10000E-03    4.5989       -.90713E-06** at limit **
  11  Prefactor     .10000E-03    13.045        .95903E-05** at limit **
  12  Prefactor     3.6394        9.9444       -.52210E-06   -.13095E-03
  13  Prefactor     .10000E-03    7.2430       -.66603E-05** at limit **
  14  Prefactor     .10012E-03    5.2975        .38988E-05** at limit **
  15  Prefactor     .10000E-03    5.4769       -.41081E-06** at limit **
  16  Prefactor     16.514        19.767       -.18614E-04   -.50350E-03
  17  norm          .10003E-03    6.0984       -.14998E-05** at limit **
  18  Prefactor     6.2504        7.4686        .13951E-07    .15712E-03
  19  Prefactor     .10000E-03    15.031       -.13534E-04** at limit **
  20  norm          .10000E-03    7.6558        .57184E-05** at limit **
  21  Prefactor     .10000E-03    1.8738       -.10041E-06** at limit **
  22  Normalizat    1.1436        .24011        .23935E-05   -.43120E-03
  23  Prefactor     .94537        .13744       -.11600E-06   -.37432E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.9978
  Prefactor  = 13.6135
  Prefactor  = 0.0001
  Prefactor  = 3.35924
  Prefactor  = 13.6612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63944
  Prefactor  = 0.0001
  Prefactor  = 0.000100118
  Prefactor  = 0.0001
  Prefactor  = 16.5145
  norm       = 0.000100033
  Prefactor  = 6.25042
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14364
  Prefactor  = 0.945372
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.576     FROM HESSE     STATUS=OK           362 CALLS     2876 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.087        3.9805        .96691E-04   -1.5073    
   2  Prefactor     .10000E-03    5.4023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9870        .15958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .81532        .71998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     70.998        50.905        .47644E-04   -1.4021    
   6  Prefactor     13.613        13.624        .10856E-03   -1.4970    
   7  Prefactor     .10000E-03    26.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3592        .36785        .15349E-04   -1.5341    
   9  Prefactor     13.661        11.475        .10837E-03   -1.4969    
  10  Prefactor     .10000E-03    4.6400        .17153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6394        9.9298        .21175E-03   -1.5326    
  13  Prefactor     .10000E-03    7.2271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    39.701        .35375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.514        19.816        .98446E-04   -1.4895    
  17  norm          .10003E-03    20.099        .37396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2504        7.1859        .16055E-03   -1.5208    
  19  Prefactor     .10000E-03    14.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.6655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.8755        .10951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1436        .28105        .33914E-03   -.88363    
  23  Prefactor     .94537        .16186        .22032E-03   -.94573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59499e-09
Minuit parameter uncertainties:
  1  3.98056
  2  1.04978e-05
  3  3.84986e-06
  4  2.35367e-07
  5  50.9367
  6  13.6275
  7  4.61609e-05
  8  0.367853
  9  11.4765
  10  5.30344e-06
  11  4.02797e-05
  12  9.9343
  13  1.38704e-06
  14  0.00432707
  15  3.11293e-06
  16  19.8243
  17  0.00164086
  18  7.18694
  19  1.10647e-05
  20  4.55032e-06
  21  8.12461e-08
  22  0.281418
  23  0.161944
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.651e+01  1.982e+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:  9.454e-01  1.619e-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:  1.144e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 351.436 18.365
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/886807/likelihoodResults_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.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) = 6711.57178509
delta logL = 0.00391843731086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6711.56914325
delta logL = 0.00656027476634

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6711.569     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.918        25.253        .10368E-03   -.40494E-03
   2  Index         2.5543        1.1747        .82031E-02   -.18431E-03
   3  Normalizat    1.1378        .27597        .33991E-03   -.75066E-03
   4  Prefactor     .94760        .16237        .22010E-03   -.11463E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9179
  Index      = 2.55433
  Normalizat = 1.13779
  Prefactor  = 0.947602
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.569     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.918        23.321        .20736E-04   -1.4935    
   2  Index         2.5543        1.0845        .32812E-03   -.51110    
   3  Normalizat    1.1378        .27542        .67982E-04   -.88547    
   4  Prefactor     .94760        .16221        .44020E-04   -.94497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99178e-09
Minuit parameter uncertainties:
  1  23.3351
  2  1.09604
  3  0.275769
  4  0.162298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886807': 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) = 6711.56914274
delta logL = 0.00656078487555

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.492e+01  2.334e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.554e+00  1.096e+00  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:  9.476e-01  1.623e-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:  1.138e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 351.436 18.365
Photon Index (Free Index): 2.55 +/- 1.10
Photon Flux (Free Index): 3.87e-08 +/- 5.58e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.28e-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/886807/cmap_HighResolution_513043201_513302401_4FGL_J2325.7+1821_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='1.06e-05', photon_flux_error='4.18e-08', dlogl='6.56e-03', energy_flux='1.10e-05', photon_flux2='3.87e-08', job_status='DONE', time_completed='2021-09-29 18:49:54.252438', photon_index_error2='1.10', photon_index2='2.55', ts='1.03', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.28e-05', EG='1.14', time_epoch_completed='1632966594.25', return_code='0', job_id='886807', GAL2='0.95', EG2='1.14', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.58e-08', ts2='1.04', photon_index='2.43' WHERE bin_id='1056' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 886807: <4FGL_J2325.7+1821_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1056> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:35:16 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:35:18 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:35:18 2021
Terminated at Wed Sep 29 18:49:54 2021
Results reported at Wed Sep 29 18:49:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1056 351.436 18.3654 513043201 513302401 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

