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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1464
RA = 351.436, Dec = 18.3654
tmin = 618796801, tmax = 619056001
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='888384', job_status='RUN', time_executed='2021-09-29 18:44:29.672344', time_epoch_executed='1632966269.67' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888384/ft1_4FGL_J2325.7+1821_daily_bin1464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888384/ft2_4FGL_J2325.7+1821_daily_bin1464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888384/ft1_4FGL_J2325.7+1821_daily_bin1464.fits outfile=/scratch/kocevski/888384/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1464.fits ra=351.436 dec=18.3654 rad=12.0 tmin=618796801.0 tmax=619056001.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.67
user 3.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/888384/ft2_4FGL_J2325.7+1821_daily_bin1464.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/888384/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1464.fits evtable="EVENTS" outfile="/scratch/kocevski/888384/ft1_filtered_4FGL_J2325.7+1821_daily_bin1464.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888384/ft1_filtered_4FGL_J2325.7+1821_daily_bin1464.fits" evtable="EVENTS" scfile=/scratch/kocevski/888384/ft2_4FGL_J2325.7+1821_daily_bin1464.fits sctable="SC_DATA" outfile=/scratch/kocevski/888384/ltcube_618796801_619056001_4FGL_J2325.7+1821_daily_bin1464.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/888384/ft2_4FGL_J2325.7+1821_daily_bin1464.fits
.....................!
real 11.90
user 11.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888384/ft1_filtered_4FGL_J2325.7+1821_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/888384/ft2_4FGL_J2325.7+1821_daily_bin1464.fits sctable="SC_DATA" expcube=/scratch/kocevski/888384/ltcube_618796801_619056001_4FGL_J2325.7+1821_daily_bin1464.fits outfile=/scratch/kocevski/888384/expmap_618796801_619056001_4FGL_J2325.7+1821_daily_bin1464.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/888384/ltcube_618796801_619056001_4FGL_J2325.7+1821_daily_bin1464.fits
.....................!
real 192.58
user 186.75
sys 5.46

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/888384/ft1_filtered_4FGL_J2325.7+1821_daily_bin1464.fits scfile=/scratch/kocevski/888384/ft2_4FGL_J2325.7+1821_daily_bin1464.fits outfile=/scratch/kocevski/888384/cmap_618796801_619056001_4FGL_J2325.7+1821_daily_bin1464.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888384/ft1_filtered_4FGL_J2325.7+1821_daily_bin1464.fits scfile=/scratch/kocevski/888384/ft2_4FGL_J2325.7+1821_daily_bin1464.fits outfile=/scratch/kocevski/888384/cmap_HighResolution_618796801_619056001_4FGL_J2325.7+1821_daily_bin1464.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.61
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888384/ft1_filtered_4FGL_J2325.7+1821_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/888384/ft2_4FGL_J2325.7+1821_daily_bin1464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888384/Model_4FGL_J2325.7+1821_daily_bin1464.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/888384/ft1_filtered_4FGL_J2325.7+1821_daily_bin1464.fits.....................!
real 71.06
user 69.67
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1261       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.740       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6549       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18191E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7925       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10866E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7533       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.940       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95777       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98267       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=   6486.004     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2171 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1269        2.2704        .55209E-07   -.19055E-03
   2  Prefactor     .10000E-03    3.8959        .14161E-07** at limit **
   3  Prefactor     .10000E-03    8.7590       -.45325E-06** at limit **
   4  norm          .10000E-03    .62235       -.24693E-07** at limit **
   5  Prefactor     .10000E-03    15.444       -.48080E-05** at limit **
   6  Prefactor     30.740        13.372       -.31875E-07   -.75521E-04
   7  Prefactor     3.6540        6.9158        .60261E-06   -.48541E-03
   8  Prefactor     .49638        .15483       -.20101E-08    .24828E-03
   9  Prefactor     .10002E-03    5.4181        .10884E-05** at limit **
  10  Prefactor     1.7923        4.9695        .11389E-06   -.14492E-03
  11  Prefactor     .10000E-03    2.4018       -.94473E-08** at limit **
  12  Prefactor     .10000E-03    6.2413        .12804E-06** at limit **
  13  Prefactor     .10000E-03    13.832       -.11060E-05** at limit **
  14  Prefactor     1.4645        6.2316       -.14360E-06   -.18576E-03
  15  Prefactor     .10000E-03    5.1748       -.30695E-07** at limit **
  16  Prefactor     .10000E-03    36.658       -.13621E-05** at limit **
  17  norm          6.7512        9.1428       -.51161E-07   -.61744E-04
  18  Prefactor     2.5167        6.9591        .50078E-07   -.12480E-03
  19  Prefactor     .10000E-03    12.612        .33160E-05** at limit **
  20  norm          10.939        16.023       -.26632E-06   -.17450E-04
  21  Prefactor     .10000E-03    2.0701        .17462E-07** at limit **
  22  Normalizat    .95766        .20207       -.10665E-07   -.62098E-04
  23  Prefactor     .98270        .11878       -.58024E-07   -.10131E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.7402
  Prefactor  = 3.65403
  Prefactor  = 0.496383
  Prefactor  = 0.000100022
  Prefactor  = 1.79233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.75117
  Prefactor  = 2.51668
  Prefactor  = 0.0001
  norm       = 10.9391
  Prefactor  = 0.0001
  Normalizat = 0.957658
  Prefactor  = 0.9827
 **********
 **   18 **HESSE 
 **********

 FCN=   6486.004     FROM HESSE     STATUS=OK           368 CALLS     2539 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1269        2.2597        .16530E-03   -1.5496    
   2  Prefactor     .10000E-03    3.9067        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .63209        .61991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.740        13.347        .72266E-04   -1.4599    
   7  Prefactor     3.6540        11.871        .10565E-02   -1.5326    
   8  Prefactor     .49638        .15511        .16869E-04   -1.5567    
   9  Prefactor     .10002E-03    19.796        .34798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7923        4.9833        .29013E-03   -1.5440    
  11  Prefactor     .10000E-03    2.4027        .12189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4645        6.6771        .35453E-03   -1.5466    
  15  Prefactor     .10000E-03    5.1960        .17874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7512        8.9633        .15440E-03   -1.5188    
  18  Prefactor     2.5167        6.8643        .25757E-03   -1.5391    
  19  Prefactor     .10000E-03    12.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.939        16.022        .12113E-03   -1.5046    
  21  Prefactor     .10000E-03    2.0757        .11315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .95766        .23587        .30636E-03   -.94463    
  23  Prefactor     .98270        .13942        .18570E-03   -.93308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20472e-09
Minuit parameter uncertainties:
  1  2.25988
  2  3.7326e-07
  3  1.36799e-05
  4  1.65918e-07
  5  0.000211037
  6  13.3478
  7  11.8782
  8  0.155112
  9  0.0013103
  10  4.98445
  11  1.34888e-07
  12  3.01307e-06
  13  4.46894e-05
  14  6.25501
  15  7.21084e-07
  16  3.99646e-05
  17  8.9651
  18  6.86641
  19  0.0001316
  20  16.0278
  21  3.74515e-07
  22  0.236129
  23  0.139471
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  3.996e-05  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.827e-01  1.395e-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:  9.577e-01  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888384/likelihoodResults_618796801_619056001_4FGL_J2325.7+1821_daily_bin1464.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): 102
logL (Free Index) = 6486.00378824
delta logL = -0.000129069354443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6486.00365986
delta logL = -6.97706127539e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3615       1.0000          .0000       10.000    
     3 'Normalizat'    .95766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98270       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=   6486.004     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      287 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    7491.9        .36285E-03** at limit **
   2  Index         2.4733        8.7531        .50000       -.51034E-04
   3  Normalizat    .95766        .62778E-01    .30636E-03    .45978E-04
   4  Prefactor     .98270        .38761E-01    .18570E-03    .72242E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100217
  Index      = 2.47331
  Normalizat = 0.957658
  Prefactor  = 0.982699
 **********
 **   18 **HESSE 
 **********

 FCN=   6486.004     FROM HESSE     STATUS=OK            29 CALLS      316 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    181.14        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4733        5.5189        .50000       -.52977    
   3  Normalizat    .95766        .22328        .12254E-04   -.94463    
   4  Prefactor     .98270        .13795        .74279E-05   -.93308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7777e-09
Minuit parameter uncertainties:
  1  0.0125836
  2  7.84481
  3  0.2235
  4  0.137999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888384': 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) = 6486.0036587
delta logL = 4.63658579974e-07

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.002e-04  1.258e-02  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.473e+00  7.845e+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.827e-01  1.380e-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:  9.577e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.436 18.365

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/888384/cmap_HighResolution_618796801_619056001_4FGL_J2325.7+1821_daily_bin1464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.54e-08', time_completed='2021-09-29 18:55:32.724268', job_id='888384', GAL2='0.98', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632966932.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1464' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:55:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 888384: <4FGL_J2325.7+1821_daily_bin1464> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1464> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:18 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40:20 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:40:20 2021
Terminated at Wed Sep 29 18:55:33 2021
Results reported at Wed Sep 29 18:55:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1464 351.436 18.3654 618796801 619056001 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 :                                   650.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

