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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1365
RA = 351.436, Dec = 18.3654
tmin = 593136001, tmax = 593395201
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='887300', job_status='RUN', time_executed='2021-09-29 18:38:42.788218', time_epoch_executed='1632965922.79' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887300/ft1_4FGL_J2325.7+1821_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887300/ft2_4FGL_J2325.7+1821_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887300/ft1_4FGL_J2325.7+1821_daily_bin1365.fits outfile=/scratch/kocevski/887300/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1365.fits ra=351.436 dec=18.3654 rad=12.0 tmin=593136001.0 tmax=593395201.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 5.19
user 4.89
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887300/ft2_4FGL_J2325.7+1821_daily_bin1365.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/887300/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1365.fits evtable="EVENTS" outfile="/scratch/kocevski/887300/ft1_filtered_4FGL_J2325.7+1821_daily_bin1365.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/887300/ft1_filtered_4FGL_J2325.7+1821_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/887300/ft2_4FGL_J2325.7+1821_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/887300/ltcube_593136001_593395201_4FGL_J2325.7+1821_daily_bin1365.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/887300/ft2_4FGL_J2325.7+1821_daily_bin1365.fits
.....................!
real 11.64
user 11.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887300/ft1_filtered_4FGL_J2325.7+1821_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/887300/ft2_4FGL_J2325.7+1821_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/887300/ltcube_593136001_593395201_4FGL_J2325.7+1821_daily_bin1365.fits outfile=/scratch/kocevski/887300/expmap_593136001_593395201_4FGL_J2325.7+1821_daily_bin1365.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/887300/ltcube_593136001_593395201_4FGL_J2325.7+1821_daily_bin1365.fits
.....................!
real 190.80
user 185.21
sys 5.16

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/887300/ft1_filtered_4FGL_J2325.7+1821_daily_bin1365.fits scfile=/scratch/kocevski/887300/ft2_4FGL_J2325.7+1821_daily_bin1365.fits outfile=/scratch/kocevski/887300/cmap_593136001_593395201_4FGL_J2325.7+1821_daily_bin1365.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887300/ft1_filtered_4FGL_J2325.7+1821_daily_bin1365.fits scfile=/scratch/kocevski/887300/ft2_4FGL_J2325.7+1821_daily_bin1365.fits outfile=/scratch/kocevski/887300/cmap_HighResolution_593136001_593395201_4FGL_J2325.7+1821_daily_bin1365.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887300/ft1_filtered_4FGL_J2325.7+1821_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/887300/ft2_4FGL_J2325.7+1821_daily_bin1365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887300/Model_4FGL_J2325.7+1821_daily_bin1365.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/887300/ft1_filtered_4FGL_J2325.7+1821_daily_bin1365.fits....................!
real 74.62
user 73.22
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9598       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11227E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    134.60       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.727       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .67097       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42459       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7089       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0285       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.0208       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1126       1.0000         .10000E-03   10000.    
    20 'norm      '    26.981       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0779       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86238       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=   6555.469     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2581 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9605        3.2074        .10175E-06   -.25371E-04
   2  Prefactor     11.484        12.338        .18965E-06   -.28118E-04
   3  Prefactor     .10000E-03    27.669        .16374E-05** at limit **
   4  norm          .10000E-03    1.6279       -.52101E-07** at limit **
   5  Prefactor     19.349        29.485       -.31714E-08   -.18776E-05
   6  Prefactor     134.58        24.717       -.14797E-06   -.22327E-04
   7  Prefactor     28.724        23.617       -.15029E-06   -.11395E-04
   8  Prefactor     .67094        .21038        .20167E-08   -.20091E-03
   9  Prefactor     .10000E-03    3.1297       -.25409E-08** at limit **
  10  Prefactor     .10000E-03    8.2208        .19004E-06** at limit **
  11  Prefactor     .45210        7.3344        .46353E-06   -.49588E-04
  12  Prefactor     20.536        28.050       -.17779E-06   -.20814E-04
  13  Prefactor     .10000E-03    56.122        .35912E-05** at limit **
  14  Prefactor     3.7127        9.0477        .28772E-06    .27637E-04
  15  Prefactor     8.0031        16.664        .81902E-06    .20629E-04
  16  Prefactor     .10000E-03    33.828       -.23432E-05** at limit **
  17  norm          7.0514        19.423       -.36138E-05   -.18348E-04
  18  Prefactor     4.4305        11.323        .16863E-05    .61278E-04
  19  Prefactor     2.0544        125.70       -.33029E-05   -.45138E-05
  20  norm          26.984        20.262       -.98065E-07   -.18901E-05
  21  Prefactor     .10000E-03    3.8575        .88081E-07** at limit **
  22  Normalizat    1.0781        .24592       -.56517E-06   -.39951E-04
  23  Prefactor     .86235        .13200       -.14651E-07   -.78094E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.96053
  Prefactor  = 11.4843
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.3486
  Prefactor  = 134.583
  Prefactor  = 28.7243
  Prefactor  = 0.670938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.452097
  Prefactor  = 20.5359
  Prefactor  = 0.0001
  Prefactor  = 3.71268
  Prefactor  = 8.00313
  Prefactor  = 0.0001
  norm       = 7.05135
  Prefactor  = 4.43053
  Prefactor  = 2.05439
  norm       = 26.9842
  Prefactor  = 0.0001
  Normalizat = 1.07805
  Prefactor  = 0.862353
 **********
 **   18 **HESSE 
 **********

 FCN=   6555.469     FROM HESSE     STATUS=OK           380 CALLS     2961 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9605        3.1996        .14147E-03   -1.5364    
   2  Prefactor     11.484        12.303        .11824E-03   -1.5030    
   3  Prefactor     .10000E-03    28.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6888        .20131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.349        29.530        .91053E-04   -1.4828    
   6  Prefactor     134.58        24.667        .17356E-03   -1.3383    
   7  Prefactor     28.724        23.654        .74749E-04   -1.4636    
   8  Prefactor     .67094        .21022        .19247E-04   -1.5544    
   9  Prefactor     .10000E-03    3.1318        .13989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .45210        53.305        .41738E-02   -1.5574    
  12  Prefactor     20.536        28.100        .88364E-04   -1.4801    
  13  Prefactor     .10000E-03    56.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7127        9.0522        .20969E-03   -1.5323    
  15  Prefactor     8.0031        16.319        .14150E-03   -1.5142    
  16  Prefactor     .10000E-03    34.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.0514        19.334        .15140E-03   -1.5177    
  18  Prefactor     4.4305        11.201        .19084E-03   -1.5287    
  19  Prefactor     2.0544        126.98        .28382E-03   -1.5421    
  20  norm          26.984        20.262        .77124E-04   -1.4669    
  21  Prefactor     .10000E-03    3.8750        .15528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0781        .29209        .33695E-03   -.90460    
  23  Prefactor     .86235        .15681        .21206E-03   -.97469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76437e-08
Minuit parameter uncertainties:
  1  3.19976
  2  12.3054
  3  1.916e-05
  4  2.57699e-06
  5  29.5521
  6  24.6688
  7  23.6619
  8  0.210223
  9  7.24251e-07
  10  6.45363e-06
  11  9.82603
  12  28.1181
  13  0.000174415
  14  9.05556
  15  16.3276
  16  8.4122e-05
  17  19.3508
  18  11.2068
  19  32.3736
  20  20.2667
  21  1.26096e-06
  22  0.29253
  23  0.156889
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  8.412e-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:  8.624e-01  1.569e-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:  1.078e+00  2.925e-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: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887300/likelihoodResults_593136001_593395201_4FGL_J2325.7+1821_daily_bin1365.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) = 6555.46871655
delta logL = -0.000140017612466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6555.46857669
delta logL = -1.57533577294e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4398       1.0000          .0000       10.000    
     3 'Normalizat'    1.0781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86235       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=   6555.469     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      239 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8259.1        .18142E-02** at limit **
   2  Index         2.4728        7.6105        .50000       -.93927E-05
   3  Normalizat    1.0780        .25085        .33695E-03   -.12177E-03
   4  Prefactor     .86235        .14355        .21206E-03   -.10218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.47284
  Normalizat = 1.07805
  Prefactor  = 0.862354
 **********
 **   18 **HESSE 
 **********

 FCN=   6555.469     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4728        6.2360        .50000       -.52988    
   3  Normalizat    1.0780        .26800        .13478E-04   -.90460    
   4  Prefactor     .86235        .15378        .84825E-05   -.97469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84824e-10
Minuit parameter uncertainties:
  1  0.000689928
  2  4.41416
  3  0.268342
  4  0.153862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887300': 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) = 6555.46857645
delta logL = 8.39354470372e-08

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  6.899e-04  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.473e+00  4.414e+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:  8.624e-01  1.539e-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:  1.078e+00  2.683e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/887300/cmap_HighResolution_593136001_593395201_4FGL_J2325.7+1821_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-29 18:50:04.236125', job_id='887300', GAL2='0.86', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632966604.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='8.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1365' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:50:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 887300: <4FGL_J2325.7+1821_daily_bin1365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1365 351.436 18.3654 593136001 593395201 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 :                                   674.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            842 sec.

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

