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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1240
RA = 351.436, Dec = 18.3654
tmin = 560736001, tmax = 560995201
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='887106', job_status='RUN', time_executed='2021-09-29 18:36:02.009860', time_epoch_executed='1632965762.01' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887106/ft1_4FGL_J2325.7+1821_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887106/ft2_4FGL_J2325.7+1821_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887106/ft1_4FGL_J2325.7+1821_daily_bin1240.fits outfile=/scratch/kocevski/887106/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1240.fits ra=351.436 dec=18.3654 rad=12.0 tmin=560736001.0 tmax=560995201.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.76
user 3.53
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887106/ft2_4FGL_J2325.7+1821_daily_bin1240.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/887106/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/887106/ft1_filtered_4FGL_J2325.7+1821_daily_bin1240.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/887106/ft1_filtered_4FGL_J2325.7+1821_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/887106/ft2_4FGL_J2325.7+1821_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/887106/ltcube_560736001_560995201_4FGL_J2325.7+1821_daily_bin1240.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/887106/ft2_4FGL_J2325.7+1821_daily_bin1240.fits
.....................!
real 11.83
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887106/ft1_filtered_4FGL_J2325.7+1821_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/887106/ft2_4FGL_J2325.7+1821_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/887106/ltcube_560736001_560995201_4FGL_J2325.7+1821_daily_bin1240.fits outfile=/scratch/kocevski/887106/expmap_560736001_560995201_4FGL_J2325.7+1821_daily_bin1240.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/887106/ltcube_560736001_560995201_4FGL_J2325.7+1821_daily_bin1240.fits
.....................!
real 190.51
user 185.68
sys 4.50

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/887106/ft1_filtered_4FGL_J2325.7+1821_daily_bin1240.fits scfile=/scratch/kocevski/887106/ft2_4FGL_J2325.7+1821_daily_bin1240.fits outfile=/scratch/kocevski/887106/cmap_560736001_560995201_4FGL_J2325.7+1821_daily_bin1240.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887106/ft1_filtered_4FGL_J2325.7+1821_daily_bin1240.fits scfile=/scratch/kocevski/887106/ft2_4FGL_J2325.7+1821_daily_bin1240.fits outfile=/scratch/kocevski/887106/cmap_HighResolution_560736001_560995201_4FGL_J2325.7+1821_daily_bin1240.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887106/ft1_filtered_4FGL_J2325.7+1821_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/887106/ft2_4FGL_J2325.7+1821_daily_bin1240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887106/Model_4FGL_J2325.7+1821_daily_bin1240.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/887106/ft1_filtered_4FGL_J2325.7+1821_daily_bin1240.fits.....................!
real 66.59
user 65.31
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.200       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14551E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0418       1.0000         .10000E-03   10000.    
    13 'Prefactor '    127.56       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.602       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.246       1.0000         .10000E-03   10000.    
    17 'norm      '    4.9072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14991E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.062       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0671       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .47290       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1761       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=   5454.082     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2584 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.059        6.5275        .27285E-06    .21884E-05
   2  Prefactor     .10000E-03    12.614       -.14627E-06** at limit **
   3  Prefactor     23.199        20.891        .16355E-07   -.29317E-05
   4  norm          5.1056        5.4051       -.48323E-06    .24388E-04
   5  Prefactor     .10000E-03    29.562        .19611E-05** at limit **
   6  Prefactor     .10000E-03    32.119       -.15441E-05** at limit **
   7  Prefactor     .10000E-03    137.62        .12306E-07** at limit **
   8  Prefactor     6.7248        .63226        .17314E-08   -.89806E-04
   9  Prefactor     .10000E-03    15.811       -.59866E-07** at limit **
  10  Prefactor     .10000E-03    3.4675       -.41444E-08** at limit **
  11  Prefactor     4.2295        11.109        .22214E-05   -.30630E-05
  12  Prefactor     6.0687        158.23       -.94551E-05   -.35329E-05
  13  Prefactor     127.57        109.86        .19428E-07    .35980E-05
  14  Prefactor     10.593        20.166        .15082E-05    .14093E-04
  15  Prefactor     .10000E-03    4.1466        .75315E-07** at limit **
  16  Prefactor     18.265        44.328       -.35639E-05   -.12316E-04
  17  norm          4.9109        8.6870        .17098E-05   -.40836E-04
  18  Prefactor     .10000E-03    12.221        .33291E-06** at limit **
  19  Prefactor     14.067        17.889        .94984E-07   -.77748E-05
  20  norm          .10000E-03    6.1642       -.13555E-07** at limit **
  21  Prefactor     7.0670        10.421        .13271E-06   -.63438E-05
  22  Normalizat    .47298        .34850        .65391E-06    .63002E-05
  23  Prefactor     1.1760        .19834       -.65556E-06   -.20253E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0591
  Prefactor  = 0.0001
  Prefactor  = 23.1992
  norm       = 5.10555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.72478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.22946
  Prefactor  = 6.06866
  Prefactor  = 127.568
  Prefactor  = 10.5932
  Prefactor  = 0.0001
  Prefactor  = 18.265
  norm       = 4.91085
  Prefactor  = 0.0001
  Prefactor  = 14.0669
  norm       = 0.0001
  Prefactor  = 7.06703
  Normalizat = 0.472978
  Prefactor  = 1.17603
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.082     FROM HESSE     STATUS=OK           374 CALLS     2958 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.059        6.4963        .11085E-03   -1.4985    
   2  Prefactor     .10000E-03    12.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.199        20.836        .83162E-04   -1.4744    
   4  norm          5.1056        5.3873        .17024E-03   -1.5256    
   5  Prefactor     .10000E-03    29.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    140.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7248        .63135        .17147E-04   -1.5189    
   9  Prefactor     .10000E-03    15.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4737        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2295        11.071        .97973E-03   -1.5297    
  12  Prefactor     6.0687        158.11        .16335E-03   -1.5215    
  13  Prefactor     127.57        109.69        .17822E-03   -1.3444    
  14  Prefactor     10.593        20.000        .12305E-03   -1.5057    
  15  Prefactor     .10000E-03    4.1673        .14685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.265        44.191        .93764E-04   -1.4853    
  17  norm          4.9109        8.6845        .90785E-03   -1.5265    
  18  Prefactor     .10000E-03    12.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.067        17.872        .10681E-03   -1.4958    
  20  norm          .10000E-03    6.1676        .17908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.0670        10.379        .15090E-03   -1.5176    
  22  Normalizat    .47298        .34696        .55461E-03   -1.1368    
  23  Prefactor     1.1760        .20301        .21933E-03   -.87072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69046e-11
Minuit parameter uncertainties:
  1  6.49661
  2  2.15262e-05
  3  20.8429
  4  5.38785
  5  1.01101e-05
  6  0.000103178
  7  7.92554e-05
  8  0.631349
  9  1.34533e-05
  10  1.05794e-06
  11  11.0759
  12  62.1354
  13  109.864
  14  20.0124
  15  3.15772e-06
  16  44.2699
  17  8.68674
  18  4.30056e-05
  19  17.879
  20  1.25222e-07
  21  10.3813
  22  0.348563
  23  0.203144
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.827e+01  4.427e+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.176e+00  2.031e-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:  4.730e-01  3.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/887106/likelihoodResults_560736001_560995201_4FGL_J2325.7+1821_daily_bin1240.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) = 5453.64422856
delta logL = 0.437920921311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5453.6190881
delta logL = 0.463061387764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7363       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5876       1.0000          .0000       10.000    
     3 'Normalizat'    .40807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1987       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=   5453.619     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      275 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7363        193.77        .38650E-02    .25488E-03
   2  Index         3.5876        3.9441        .12107        .12470E-03
   3  Normalizat    .40773        .10095        .13391        .42433E-04
   4  Prefactor     1.1989        .58232E-01    .34662E-01   -.24617E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.73629
  Index      = 3.58764
  Normalizat = 0.407732
  Prefactor  = 1.1989
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.619     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7363        6403.0        .15460E-03   -1.5189    
   2  Index         3.5876        7.9054        .63832E-02   -.28637    
   3  Normalizat    .40773        .46949        .59411E-03   -1.1690    
   4  Prefactor     1.1989        .35003        .21724E-03   -.86365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93136e-06
Minuit parameter uncertainties:
  1  303.551
  2  23.6059
  3  0.474128
  4  0.35071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887106': 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) = 5453.61908758
delta logL = 0.46306190664

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  6.736e+00  3.036e+02  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  3.588e+00  2.361e+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.199e+00  3.507e-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:  4.077e-01  4.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 351.436 18.365
Photon Index (Free Index): 3.59 +/- 23.61
Photon Flux (Free Index): 1.19e-07 +/- 1.95e-07
Energy Flux (Free Index): 1.94e-05 +/- 8.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/887106/cmap_HighResolution_560736001_560995201_4FGL_J2325.7+1821_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', comment='SUCCESS', energy_flux2='1.94e-05', dlogl='4.63e-01', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-29 18:46:22.344168', photon_index_error2='23.61', photon_index2='3.59', ts='0.30', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='2.16e-07', energy_flux_error2='8.90e-05', EG='0.47', time_epoch_completed='1632966382.34', return_code='0', job_id='887106', GAL2='1.20', EG2='0.41', return_code2='0', photon_flux_error2='1.95e-07', ts2='1.29', photon_index='2.43' WHERE bin_id='1240' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:46:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 887106: <4FGL_J2325.7+1821_daily_bin1240> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1240 351.436 18.3654 560736001 560995201 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            636 sec.

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

