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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1403
RA = 351.436, Dec = 18.3654
tmin = 602985601, tmax = 603244801
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='887358', job_status='RUN', time_executed='2021-09-29 18:40:03.423650', time_epoch_executed='1632966003.42' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887358

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887358/ft1_4FGL_J2325.7+1821_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887358/ft2_4FGL_J2325.7+1821_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887358/ft1_4FGL_J2325.7+1821_daily_bin1403.fits outfile=/scratch/kocevski/887358/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1403.fits ra=351.436 dec=18.3654 rad=12.0 tmin=602985601.0 tmax=603244801.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.02
user 2.84
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887358/ft2_4FGL_J2325.7+1821_daily_bin1403.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/887358/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/887358/ft1_filtered_4FGL_J2325.7+1821_daily_bin1403.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/887358/ft1_filtered_4FGL_J2325.7+1821_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/887358/ft2_4FGL_J2325.7+1821_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/887358/ltcube_602985601_603244801_4FGL_J2325.7+1821_daily_bin1403.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/887358/ft2_4FGL_J2325.7+1821_daily_bin1403.fits
.....................!
real 12.40
user 12.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887358/ft1_filtered_4FGL_J2325.7+1821_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/887358/ft2_4FGL_J2325.7+1821_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/887358/ltcube_602985601_603244801_4FGL_J2325.7+1821_daily_bin1403.fits outfile=/scratch/kocevski/887358/expmap_602985601_603244801_4FGL_J2325.7+1821_daily_bin1403.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/887358/ltcube_602985601_603244801_4FGL_J2325.7+1821_daily_bin1403.fits
.....................!
real 191.07
user 185.46
sys 5.27

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/887358/ft1_filtered_4FGL_J2325.7+1821_daily_bin1403.fits scfile=/scratch/kocevski/887358/ft2_4FGL_J2325.7+1821_daily_bin1403.fits outfile=/scratch/kocevski/887358/cmap_602985601_603244801_4FGL_J2325.7+1821_daily_bin1403.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.56
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887358/ft1_filtered_4FGL_J2325.7+1821_daily_bin1403.fits scfile=/scratch/kocevski/887358/ft2_4FGL_J2325.7+1821_daily_bin1403.fits outfile=/scratch/kocevski/887358/cmap_HighResolution_602985601_603244801_4FGL_J2325.7+1821_daily_bin1403.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887358/ft1_filtered_4FGL_J2325.7+1821_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/887358/ft2_4FGL_J2325.7+1821_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887358/Model_4FGL_J2325.7+1821_daily_bin1403.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/887358/ft1_filtered_4FGL_J2325.7+1821_daily_bin1403.fits.....................!
real 101.45
user 100.02
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1593       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .92325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.690       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36519E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9635       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45860E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.049       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50627       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.455       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1530       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.402       1.0000         .10000E-03   10000.    
    20 'norm      '    7.7207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78719       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1611       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=   9490.670     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2607 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1586        2.6094       -.29739E-06   -.63947E-03
   2  Prefactor     .10000E-03    2.5763       -.35886E-07** at limit **
   3  Prefactor     .10000E-03    3.4641        .10448E-06** at limit **
   4  norm          .92321        1.3571        .17382E-06   -.60968E-03
   5  Prefactor     .10000E-03    17.381       -.85554E-07** at limit **
   6  Prefactor     31.694        12.201       -.29902E-05    .21454E-03
   7  Prefactor     .10000E-03    8.3813        .88536E-07** at limit **
   8  Prefactor     .17661        .13224        .36612E-07    .89868E-03
   9  Prefactor     .11014E-03    4.4340       -.64058E-06** at limit **
  10  Prefactor     9.4121        7.7938       -.10190E-05    .39542E-03
  11  Prefactor     7.9673        10.984       -.15750E-04   -.49696E-05
  12  Prefactor     .10137E-03    12.781        .40560E-05** at limit **
  13  Prefactor     22.037        17.024       -.73934E-05   -.15150E-03
  14  Prefactor     .49706        2.9447       -.50351E-05    .95857E-03
  15  Prefactor     .10000E-03    4.6903       -.13453E-06** at limit **
  16  Prefactor     27.479        17.830        .14865E-04    .95736E-03
  17  norm          5.1672        12.835       -.32797E-05   -.24633E-03
  18  Prefactor     3.7229        12.070        .69866E-05   -.34485E-04
  19  Prefactor     13.404        29.388        .40795E-06   -.92636E-05
  20  norm          7.7187        8.4606       -.91114E-06    .50904E-04
  21  Prefactor     .10000E-03    2.0792        .13380E-06** at limit **
  22  Normalizat    .78715        .20150       -.14723E-05    .51439E-03
  23  Prefactor     1.1612        .11301        .14968E-05    .56979E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.15862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.923211
  Prefactor  = 0.0001
  Prefactor  = 31.6944
  Prefactor  = 0.0001
  Prefactor  = 0.176611
  Prefactor  = 0.000110144
  Prefactor  = 9.41212
  Prefactor  = 7.96727
  Prefactor  = 0.000101367
  Prefactor  = 22.0374
  Prefactor  = 0.497059
  Prefactor  = 0.0001
  Prefactor  = 27.4789
  norm       = 5.16716
  Prefactor  = 3.72288
  Prefactor  = 13.4039
  norm       = 7.71874
  Prefactor  = 0.0001
  Normalizat = 0.787153
  Prefactor  = 1.16117
 **********
 **   18 **HESSE 
 **********

 FCN=   9490.670     FROM HESSE     STATUS=OK           388 CALLS     2995 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1586        2.6030        .13329E-03   -1.5353    
   2  Prefactor     .10000E-03    2.5813        .15267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4865        .17706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .92321        1.1224        .13089E-02   -1.5516    
   5  Prefactor     .10000E-03    17.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.694        12.073        .71178E-04   -1.4581    
   7  Prefactor     .10000E-03    8.3912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17661        .12617        .28985E-03   -1.5624    
   9  Prefactor     .11014E-03    6.6973        .66746E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4121        7.7645        .13063E-03   -1.5094    
  11  Prefactor     7.9673        10.950        .14208E-03   -1.5143    
  12  Prefactor     .10137E-03    130.41        .65053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.037        16.976        .85301E-04   -1.4769    
  14  Prefactor     .49706        16.342        .29743E-02   -1.5567    
  15  Prefactor     .10000E-03    4.7038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.479        18.058        .76457E-04   -1.4659    
  17  norm          5.1672        12.194        .17710E-03   -1.5253    
  18  Prefactor     3.7229        11.453        .20875E-03   -1.5322    
  19  Prefactor     13.404        29.266        .10941E-03   -1.4976    
  20  norm          7.7187        8.4578        .14432E-03   -1.5152    
  21  Prefactor     .10000E-03    2.0946        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .78715        .22289        .37009E-03   -1.0055    
  23  Prefactor     1.1612        .12865        .18658E-03   -.87535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71056e-08
Minuit parameter uncertainties:
  1  2.6031
  2  6.45869e-07
  3  1.28121e-06
  4  1.12239
  5  4.18295e-06
  6  12.0736
  7  9.82569e-06
  8  0.126174
  9  0.016487
  10  7.7653
  11  10.9525
  12  0.026764
  13  16.9796
  14  5.70127
  15  7.76115e-06
  16  18.0613
  17  12.2003
  18  11.4593
  19  29.297
  20  8.45915
  21  5.54648e-06
  22  0.223152
  23  0.128684
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  2.748e+01  1.806e+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.161e+00  1.287e-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.872e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 351.436 18.365
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.20e-05

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) = 9490.46217769
delta logL = 0.207854667255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9490.46153752
delta logL = 0.208494836732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.562       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1162       1.0000          .0000       10.000    
     3 'Normalizat'    .80430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1548       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=   9490.462     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      284 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.573        23.137        .68164E-04    .28353E-04
   2  Index         2.1162        .47538        .87107E-02    .29215E-03
   3  Normalizat    .80430        .21082        .36644E-03    .53424E-04
   4  Prefactor     1.1548        .12656        .18701E-03   -.78691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5726
  Index      = 2.11621
  Normalizat = 0.804302
  Prefactor  = 1.15482
 **********
 **   18 **HESSE 
 **********

 FCN=   9490.462     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.573        22.901        .27266E-05   -1.4531    
   2  Index         2.1162        .47034        .17421E-02   -.61475    
   3  Normalizat    .80430        .21088        .14658E-04   -.99909    
   4  Prefactor     1.1548        .12661        .37401E-04   -.87733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16362e-11
Minuit parameter uncertainties:
  1  22.9068
  2  0.471382
  3  0.211092
  4  0.126647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887358': 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) = 9490.46153742
delta logL = 0.20849493807

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.457e+01  2.291e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.116e+00  4.714e-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.155e+00  1.266e-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:  8.043e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 351.436 18.365
Photon Index (Free Index): 2.12 +/- 0.47
Photon Flux (Free Index): 4.46e-08 +/- 3.64e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.89e-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/887358/cmap_HighResolution_602985601_603244801_4FGL_J2325.7+1821_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='2.37e-05', photon_flux_error='3.81e-08', dlogl='2.08e-01', energy_flux='1.83e-05', photon_flux2='4.46e-08', job_status='DONE', time_completed='2021-09-29 18:52:26.646482', photon_index_error2='0.47', photon_index2='2.12', ts='4.17', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='0.79', time_epoch_completed='1632966746.65', return_code='0', job_id='887358', GAL2='1.15', EG2='0.80', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.64e-08', ts2='4.57', photon_index='2.43' WHERE bin_id='1403' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:52:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 887358: <4FGL_J2325.7+1821_daily_bin1403> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1403> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:36:08 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:36:09 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:36:09 2021
Terminated at Wed Sep 29 18:52:27 2021
Results reported at Wed Sep 29 18:52:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1403 351.436 18.3654 602985601 603244801 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 :                                   739.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

