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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1380
RA = 351.436, Dec = 18.3654
tmin = 597024001, tmax = 597283201
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='887323', job_status='RUN', time_executed='2021-09-29 18:39:11.493857', time_epoch_executed='1632965951.49' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887323

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887323/ft1_4FGL_J2325.7+1821_daily_bin1380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887323/ft2_4FGL_J2325.7+1821_daily_bin1380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887323/ft1_4FGL_J2325.7+1821_daily_bin1380.fits outfile=/scratch/kocevski/887323/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1380.fits ra=351.436 dec=18.3654 rad=12.0 tmin=597024001.0 tmax=597283201.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.70
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887323/ft2_4FGL_J2325.7+1821_daily_bin1380.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/887323/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1380.fits evtable="EVENTS" outfile="/scratch/kocevski/887323/ft1_filtered_4FGL_J2325.7+1821_daily_bin1380.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/887323/ft1_filtered_4FGL_J2325.7+1821_daily_bin1380.fits" evtable="EVENTS" scfile=/scratch/kocevski/887323/ft2_4FGL_J2325.7+1821_daily_bin1380.fits sctable="SC_DATA" outfile=/scratch/kocevski/887323/ltcube_597024001_597283201_4FGL_J2325.7+1821_daily_bin1380.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/887323/ft2_4FGL_J2325.7+1821_daily_bin1380.fits
.....................!
real 11.94
user 11.60
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887323/ft1_filtered_4FGL_J2325.7+1821_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/887323/ft2_4FGL_J2325.7+1821_daily_bin1380.fits sctable="SC_DATA" expcube=/scratch/kocevski/887323/ltcube_597024001_597283201_4FGL_J2325.7+1821_daily_bin1380.fits outfile=/scratch/kocevski/887323/expmap_597024001_597283201_4FGL_J2325.7+1821_daily_bin1380.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/887323/ltcube_597024001_597283201_4FGL_J2325.7+1821_daily_bin1380.fits
.....................!
real 189.98
user 185.05
sys 4.43

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/887323/ft1_filtered_4FGL_J2325.7+1821_daily_bin1380.fits scfile=/scratch/kocevski/887323/ft2_4FGL_J2325.7+1821_daily_bin1380.fits outfile=/scratch/kocevski/887323/cmap_597024001_597283201_4FGL_J2325.7+1821_daily_bin1380.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887323/ft1_filtered_4FGL_J2325.7+1821_daily_bin1380.fits scfile=/scratch/kocevski/887323/ft2_4FGL_J2325.7+1821_daily_bin1380.fits outfile=/scratch/kocevski/887323/cmap_HighResolution_597024001_597283201_4FGL_J2325.7+1821_daily_bin1380.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887323/ft1_filtered_4FGL_J2325.7+1821_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/887323/ft2_4FGL_J2325.7+1821_daily_bin1380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887323/Model_4FGL_J2325.7+1821_daily_bin1380.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/887323/ft1_filtered_4FGL_J2325.7+1821_daily_bin1380.fits.....................!
real 82.18
user 80.81
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .91510       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.705       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8714       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.840       1.0000         .10000E-03   10000.    
    17 'norm      '    7.5697       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0208       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82717       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0647       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=   7412.727     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2140 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3657        3.4809       -.53084E-07   -.99142E-04
   2  Prefactor     8.8701        11.023        .27239E-07   -.17449E-04
   3  Prefactor     .10000E-03    5.8082        .28583E-06** at limit **
   4  norm          .91522        1.0236        .51988E-08    .83103E-04
   5  Prefactor     .10000E-03    9.0906        .25639E-05** at limit **
   6  Prefactor     29.704        13.387       -.46868E-07   -.43508E-05
   7  Prefactor     .10000E-03    10.214       -.35181E-05** at limit **
   8  Prefactor     .38678        .15052        .11384E-08   -.31643E-04
   9  Prefactor     .10000E-03    7.0548       -.90956E-06** at limit **
  10  Prefactor     13.792        8.0352        .11361E-06   -.39311E-03
  11  Prefactor     .10000E-03    7.4393        .29672E-05** at limit **
  12  Prefactor     .10000E-03    14.226       -.32317E-05** at limit **
  13  Prefactor     .10000E-03    17.285        .75926E-05** at limit **
  14  Prefactor     10.033        6.7195        .25679E-06   -.75044E-03
  15  Prefactor     7.8638        10.360        .32858E-06   -.47709E-03
  16  Prefactor     13.839        16.252       -.46466E-06   -.30047E-04
  17  norm          7.5712        7.9917        .36921E-06   -.85869E-03
  18  Prefactor     .10000E-03    2.6411       -.76737E-07** at limit **
  19  Prefactor     .10000E-03    24.724       -.43765E-05** at limit **
  20  norm          3.0202        5.6029        .18925E-05   -.15746E-02
  21  Prefactor     .10000E-03    6.8523       -.20957E-05** at limit **
  22  Normalizat    .82721        .20582       -.17711E-06    .26049E-04
  23  Prefactor     1.0647        .12093       -.65824E-07    .58790E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.36566
  Prefactor  = 8.8701
  Prefactor  = 0.0001
  norm       = 0.91522
  Prefactor  = 0.0001
  Prefactor  = 29.7042
  Prefactor  = 0.000100001
  Prefactor  = 0.38678
  Prefactor  = 0.0001
  Prefactor  = 13.7918
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 10.0327
  Prefactor  = 7.86378
  Prefactor  = 13.8392
  norm       = 7.57119
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.02024
  Prefactor  = 0.0001
  Normalizat = 0.827211
  Prefactor  = 1.0647
 **********
 **   18 **HESSE 
 **********

 FCN=   7412.727     FROM HESSE     STATUS=OK           370 CALLS     2510 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3657        3.4805        .11966E-03   -1.5245    
   2  Prefactor     8.8701        11.008        .13459E-03   -1.5112    
   3  Prefactor     .10000E-03    5.8302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .91522        1.0184        .89387E-04   -1.5517    
   5  Prefactor     .10000E-03    9.1492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.704        13.366        .73512E-04   -1.4617    
   7  Prefactor     .10000E-03    10.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38678        .14924        .19789E-04   -1.5584    
   9  Prefactor     .10000E-03    7.1010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.792        8.0524        .53929E-03   -1.4965    
  11  Prefactor     .10000E-03    7.5331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.033        6.8121        .63251E-03   -1.5074    
  15  Prefactor     7.8638        10.423        .71459E-03   -1.5147    
  16  Prefactor     13.839        16.242        .10767E-03   -1.4964    
  17  norm          7.5712        8.1588        .72881E-03   -1.5158    
  18  Prefactor     .10000E-03    2.6516        .13654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0202        7.7494        .11675E-02   -1.5360    
  21  Prefactor     .10000E-03    6.9910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .82721        .23427        .35187E-03   -.99067    
  23  Prefactor     1.0647        .13851        .18905E-03   -.90603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50904e-09
Minuit parameter uncertainties:
  1  3.48059
  2  11.01
  3  1.10354e-05
  4  1.01842
  5  0.000116761
  6  13.3672
  7  0.000168734
  8  0.14924
  9  3.50377e-05
  10  8.05303
  11  0.000118047
  12  0.000182659
  13  0.000457652
  14  6.81258
  15  10.4259
  16  16.2475
  17  8.16002
  18  1.82705e-06
  19  0.000305601
  20  7.75195
  21  7.17422e-05
  22  0.234557
  23  0.138561
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.384e+01  1.625e+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.065e+00  1.386e-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.272e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 351.436 18.365
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 9.20e-06 +/- 1.08e-05

TS (Fixed Index): 1.32
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887323/likelihoodResults_597024001_597283201_4FGL_J2325.7+1821_daily_bin1380.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) = 7412.23948299
delta logL = 0.487959725165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7412.2393027
delta logL = 0.488140010402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.670       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8365       1.0000          .0000       10.000    
     3 'Normalizat'    .84024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0578       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=   7412.239     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      263 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.612        1048.6        .20162E-02    .74057E-04
   2  Index         1.8349        5.4937        .25934        .89940E-04
   3  Normalizat    .84026        .13297        .78911E-01    .71832E-04
   4  Prefactor     1.0578        .68945E-01    .39474E-01   -.29227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6124
  Index      = 1.83486
  Normalizat = 0.84026
  Prefactor  = 1.05783
 **********
 **   18 **HESSE 
 **********

 FCN=   7412.239     FROM HESSE     STATUS=OK            29 CALLS      292 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.612        24.075        .80649E-04   -1.4715    
   2  Index         1.8349        .52875        .90400E-02   -.68546    
   3  Normalizat    .84026        .22693        .34932E-03   -.98592    
   4  Prefactor     1.0578        .13772        .18952E-03   -.90826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18519e-10
Minuit parameter uncertainties:
  1  24.0849
  2  0.530407
  3  0.227185
  4  0.137766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887323': 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) = 7412.23929469
delta logL = 0.488148022134

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  2.461e+01  2.408e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  1.835e+00  5.304e-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.058e+00  1.378e-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.403e-01  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 351.436 18.365
Photon Index (Free Index): 1.83 +/- 0.53
Photon Flux (Free Index): 2.19e-08 +/- 2.50e-08
Energy Flux (Free Index): 2.36e-05 +/- 3.23e-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/887323/cmap_HighResolution_597024001_597283201_4FGL_J2325.7+1821_daily_bin1380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='2.36e-05', photon_flux_error='3.43e-08', dlogl='4.88e-01', energy_flux='9.20e-06', photon_flux2='2.19e-08', job_status='DONE', time_completed='2021-09-29 18:50:29.791043', photon_index_error2='0.53', photon_index2='1.83', ts='1.32', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='3.23e-05', EG='0.83', time_epoch_completed='1632966629.79', return_code='0', job_id='887323', GAL2='1.06', EG2='0.84', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.50e-08', ts2='2.30', photon_index='2.43' WHERE bin_id='1380' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:50:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 887323: <4FGL_J2325.7+1821_daily_bin1380> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1380> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:36:05 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:36:07 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:07 2021
Terminated at Wed Sep 29 18:50:30 2021
Results reported at Wed Sep 29 18:50:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1380 351.436 18.3654 597024001 597283201 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 :                                   673.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

