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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1010
RA = 351.436, Dec = 18.3654
tmin = 501120001, tmax = 501379201
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='885732', job_status='RUN', time_executed='2021-09-29 18:34:30.079213', time_epoch_executed='1632965670.08' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885732/ft1_4FGL_J2325.7+1821_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885732/ft2_4FGL_J2325.7+1821_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885732/ft1_4FGL_J2325.7+1821_daily_bin1010.fits outfile=/scratch/kocevski/885732/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1010.fits ra=351.436 dec=18.3654 rad=12.0 tmin=501120001.0 tmax=501379201.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.49
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885732/ft1_filtered_4FGL_J2325.7+1821_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/885732/ft2_4FGL_J2325.7+1821_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/885732/ltcube_501120001_501379201_4FGL_J2325.7+1821_daily_bin1010.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/885732/ft2_4FGL_J2325.7+1821_daily_bin1010.fits
.....................!
real 12.15
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885732/ft1_filtered_4FGL_J2325.7+1821_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/885732/ft2_4FGL_J2325.7+1821_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/885732/ltcube_501120001_501379201_4FGL_J2325.7+1821_daily_bin1010.fits outfile=/scratch/kocevski/885732/expmap_501120001_501379201_4FGL_J2325.7+1821_daily_bin1010.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/885732/ltcube_501120001_501379201_4FGL_J2325.7+1821_daily_bin1010.fits
.....................!
real 190.07
user 184.94
sys 4.79

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/885732/ft1_filtered_4FGL_J2325.7+1821_daily_bin1010.fits scfile=/scratch/kocevski/885732/ft2_4FGL_J2325.7+1821_daily_bin1010.fits outfile=/scratch/kocevski/885732/cmap_501120001_501379201_4FGL_J2325.7+1821_daily_bin1010.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.52
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/885732/ft1_filtered_4FGL_J2325.7+1821_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/885732/ft2_4FGL_J2325.7+1821_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/885732/Model_4FGL_J2325.7+1821_daily_bin1010.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/885732/ft1_filtered_4FGL_J2325.7+1821_daily_bin1010.fits.....................!
real 88.03
user 86.53
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.259       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26079       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8529       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5997       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38906E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1813       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.626       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9822       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6663       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8524       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.860       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2456       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82602       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0079       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=   7734.529     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2555 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.267        5.7024       -.87523E-07   -.25425E-03
   2  Prefactor     .10000E-03    7.2916       -.10962E-05** at limit **
   3  Prefactor     .10126        7.1530       -.91276E-07    .27389E-04
   4  norm          1.8528        1.2763       -.18669E-07   -.94558E-05
   5  Prefactor     26.576        40.776       -.14000E-05   -.15041E-03
   6  Prefactor     .10000E-03    5.4560       -.13951E-06** at limit **
   7  Prefactor     .10000E-03    16.793       -.11836E-06** at limit **
   8  Prefactor     1.8809        .27525        .13745E-07   -.40610E-02
   9  Prefactor     5.5969        12.121        .11182E-05    .15787E-03
  10  Prefactor     .10037E-03    7.0513        .22033E-05** at limit **
  11  Prefactor     2.1790        9.3786        .99161E-06   -.44477E-04
  12  Prefactor     .10000E-03    34.447       -.23820E-05** at limit **
  13  Prefactor     11.617        22.013       -.68880E-06   -.12221E-03
  14  Prefactor     3.9785        6.4144        .37195E-06   -.11184E-03
  15  Prefactor     .10000E-03    6.9993        .73843E-06** at limit **
  16  Prefactor     .10000E-03    5.4118        .15832E-06** at limit **
  17  norm          2.6659        7.0387       -.75481E-06   -.44105E-03
  18  Prefactor     1.8516        5.1016        .10816E-05   -.10867E-04
  19  Prefactor     .10000E-03    8.0630        .78314E-07** at limit **
  20  norm          16.858        14.985        .32937E-07   -.10056E-04
  21  Prefactor     1.2460        7.7414        .29010E-05    .22084E-04
  22  Normalizat    .82631        .21984       -.67768E-06   -.22316E-03
  23  Prefactor     1.0078        .12387       -.24549E-06   -.37141E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.2672
  Prefactor  = 0.000100001
  Prefactor  = 0.101264
  norm       = 1.85281
  Prefactor  = 26.5764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8809
  Prefactor  = 5.59686
  Prefactor  = 0.000100368
  Prefactor  = 2.17902
  Prefactor  = 0.000100004
  Prefactor  = 11.6167
  Prefactor  = 3.97846
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.66585
  Prefactor  = 1.85156
  Prefactor  = 0.0001
  norm       = 16.8575
  Prefactor  = 1.24599
  Normalizat = 0.826312
  Prefactor  = 1.00781
 **********
 **   18 **HESSE 
 **********

 FCN=   7734.529     FROM HESSE     STATUS=OK           382 CALLS     2937 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.267        5.7061        .76731E-04   -1.4663    
   2  Prefactor     .10000E-03    7.4561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10126        9.8636        .78663E-01   -1.5644    
   4  norm          1.8528        1.2873        .80402E-04   -1.5436    
   5  Prefactor     26.576        41.356        .77702E-04   -1.4676    
   6  Prefactor     .10000E-03    5.4808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8809        .27481        .15942E-04   -1.5434    
   9  Prefactor     5.5969        12.179        .16977E-03   -1.5235    
  10  Prefactor     .10037E-03    41.161        .37430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1790        9.3875        .27874E-03   -1.5413    
  12  Prefactor     .10000E-03    35.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.617        22.155        .11749E-03   -1.5026    
  14  Prefactor     3.9785        6.4350        .20211E-03   -1.5309    
  15  Prefactor     .10000E-03    7.2606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6659        7.3339        .24960E-03   -1.5381    
  18  Prefactor     1.8516        5.0566        .30421E-03   -1.5436    
  19  Prefactor     .10000E-03    8.0740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.858        14.986        .97542E-04   -1.4887    
  21  Prefactor     1.2460        8.4122        .40124E-03   -1.5485    
  22  Normalizat    .82631        .25105        .37636E-03   -.99100    
  23  Prefactor     1.0078        .14264        .20203E-03   -.92470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61521e-09
Minuit parameter uncertainties:
  1  5.7062
  2  0.000163978
  3  1.99818
  4  1.28728
  5  41.4006
  6  2.25645e-05
  7  2.94333e-05
  8  0.274814
  9  12.1845
  10  0.00778719
  11  9.04776
  12  0.000762679
  13  22.1707
  14  6.4361
  15  0.000145881
  16  2.03999e-05
  17  7.33638
  18  5.05774
  19  2.00171e-05
  20  14.9888
  21  6.47609
  22  0.251405
  23  0.142689
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  2.040e-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:  1.008e+00  1.427e-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.263e-01  2.514e-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: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/885732/likelihoodResults_501120001_501379201_4FGL_J2325.7+1821_daily_bin1010.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) = 7734.52963605
delta logL = -0.000876496676028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7734.52876158
delta logL = -2.0292809495e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4122       1.0000          .0000       10.000    
     3 'Normalizat'    .82634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0076       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=   7734.529     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10243E-03    5.4931        .18142E-01** at limit **
   2  Index         2.3249        5.2713        .50000        .24826E-04
   3  Normalizat    .82631        .51882E-02    .37636E-03    .16131E-04
   4  Prefactor     1.0078        .30708E-02    .20203E-03   -.11817E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102435
  Index      = 2.32487
  Normalizat = 0.826313
  Prefactor  = 1.00781
 **********
 **   18 **HESSE 
 **********

 FCN=   7734.529     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10243E-03    64.127        .20756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3249        8.6288        .50000       -.56454    
   3  Normalizat    .82631        .17891E-01    .15054E-04   -.99100    
   4  Prefactor     1.0078        .10589E-01    .80812E-05   -.92470    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.39135e-09
Minuit parameter uncertainties:
  1  0.0250169
  2  364.297
  3  0.0178914
  4  0.0105895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885732': 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): 102
logL (Free Index) = 7734.52875906
delta logL = 4.87536453875e-07

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.024e-04  2.502e-02  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.325e+00  3.643e+02  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.008e+00  1.059e-02  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.263e-01  1.789e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/885732/cmap_HighResolution_501120001_501379201_4FGL_J2325.7+1821_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-29 18:46:45.096911', job_id='885732', GAL2='1.01', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632966405.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1010' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:46:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 885732: <4FGL_J2325.7+1821_daily_bin1010> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1010> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:30:51 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:30:52 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:30:52 2021
Terminated at Wed Sep 29 18:46:45 2021
Results reported at Wed Sep 29 18:46:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1010 351.436 18.3654 501120001 501379201 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            954 sec.

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

