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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1223
RA = 351.436, Dec = 18.3654
tmin = 556329601, tmax = 556588801
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='887080', job_status='RUN', time_executed='2021-09-29 18:39:52.657639', time_epoch_executed='1632965992.66' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887080/ft1_4FGL_J2325.7+1821_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887080/ft2_4FGL_J2325.7+1821_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887080/ft1_4FGL_J2325.7+1821_daily_bin1223.fits outfile=/scratch/kocevski/887080/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1223.fits ra=351.436 dec=18.3654 rad=12.0 tmin=556329601.0 tmax=556588801.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.52
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887080/ft1_filtered_4FGL_J2325.7+1821_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/887080/ft2_4FGL_J2325.7+1821_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/887080/ltcube_556329601_556588801_4FGL_J2325.7+1821_daily_bin1223.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/887080/ft2_4FGL_J2325.7+1821_daily_bin1223.fits
.....................!
real 11.75
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887080/ft1_filtered_4FGL_J2325.7+1821_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/887080/ft2_4FGL_J2325.7+1821_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/887080/ltcube_556329601_556588801_4FGL_J2325.7+1821_daily_bin1223.fits outfile=/scratch/kocevski/887080/expmap_556329601_556588801_4FGL_J2325.7+1821_daily_bin1223.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/887080/ltcube_556329601_556588801_4FGL_J2325.7+1821_daily_bin1223.fits
.....................!
real 191.47
user 185.43
sys 5.66

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/887080/ft1_filtered_4FGL_J2325.7+1821_daily_bin1223.fits scfile=/scratch/kocevski/887080/ft2_4FGL_J2325.7+1821_daily_bin1223.fits outfile=/scratch/kocevski/887080/cmap_556329601_556588801_4FGL_J2325.7+1821_daily_bin1223.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887080/ft1_filtered_4FGL_J2325.7+1821_daily_bin1223.fits scfile=/scratch/kocevski/887080/ft2_4FGL_J2325.7+1821_daily_bin1223.fits outfile=/scratch/kocevski/887080/cmap_HighResolution_556329601_556588801_4FGL_J2325.7+1821_daily_bin1223.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887080/ft1_filtered_4FGL_J2325.7+1821_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/887080/ft2_4FGL_J2325.7+1821_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887080/Model_4FGL_J2325.7+1821_daily_bin1223.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/887080/ft1_filtered_4FGL_J2325.7+1821_daily_bin1223.fits.....................!
real 62.42
user 60.94
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9958       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.929       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.230       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .67393       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5478       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.947       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1050       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.193       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .84519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5146       1.0000         .10000E-03   10000.    
    20 'norm      '    22.845       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99935       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69930       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=   5279.946     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     3115 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9952        4.1071        .12251E-05    .40266E-03
   2  Prefactor     5.3476        10.132        .39081E-06    .17768E-04
   3  Prefactor     21.928        14.213       -.28531E-06   -.37404E-04
   4  norm          .10000E-03    1.4322       -.75620E-07** at limit **
   5  Prefactor     .10000E-03    11.693        .21364E-06** at limit **
   6  Prefactor     15.231        13.550       -.39002E-07   -.99526E-07
   7  Prefactor     .10000E-03    6.7266       -.53712E-07** at limit **
   8  Prefactor     .67390        .19757       -.37631E-08   -.48624E-03
   9  Prefactor     4.5484        28.508        .70910E-06   -.16997E-05
  10  Prefactor     2.7652        7.2044       -.51143E-07   -.16874E-03
  11  Prefactor     5.5725        6.5415        .28065E-07   -.25694E-04
  12  Prefactor     28.955        38.488        .75866E-05    .18750E-03
  13  Prefactor     .10000E-03    16.205        .12493E-06** at limit **
  14  Prefactor     9.1199        14.657        .65346E-05    .28645E-03
  15  Prefactor     9.3353        8.9585        .10151E-06   -.57258E-04
  16  Prefactor     34.187        47.976       -.79833E-05   -.10859E-03
  17  norm          3.6909        4.4309        .12696E-05   -.28218E-02
  18  Prefactor     .83398        4.5942       -.31938E-07   -.20651E-03
  19  Prefactor     3.5138        9.9022        .12046E-05   -.93819E-03
  20  norm          22.842        17.299       -.13186E-05   -.21987E-03
  21  Prefactor     .10000E-03    2.6691       -.24010E-07** at limit **
  22  Normalizat    .99967        .23311       -.35611E-06   -.13752E-03
  23  Prefactor     .69911        .12423       -.10532E-05   -.82085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.99517
  Prefactor  = 5.34758
  Prefactor  = 21.9279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2306
  Prefactor  = 0.0001
  Prefactor  = 0.673905
  Prefactor  = 4.5484
  Prefactor  = 2.76515
  Prefactor  = 5.57251
  Prefactor  = 28.9546
  Prefactor  = 0.0001
  Prefactor  = 9.11992
  Prefactor  = 9.33531
  Prefactor  = 34.1867
  norm       = 3.69088
  Prefactor  = 0.833978
  Prefactor  = 3.51384
  norm       = 22.8424
  Prefactor  = 0.0001
  Normalizat = 0.999666
  Prefactor  = 0.699108
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.946     FROM HESSE     STATUS=OK           378 CALLS     3493 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9952        4.1156        .12262E-03   -1.5261    
   2  Prefactor     5.3476        10.097        .17379E-03   -1.5245    
   3  Prefactor     21.928        14.214        .85534E-04   -1.4771    
   4  norm          .10000E-03    1.5006        .16977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.231        13.539        .10263E-03   -1.4927    
   7  Prefactor     .10000E-03    6.7304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .67390        .19758        .16701E-04   -1.5544    
   9  Prefactor     4.5484        28.424        .18877E-03   -1.5281    
  10  Prefactor     2.7652        7.1998        .24475E-03   -1.5375    
  11  Prefactor     5.5725        6.5388        .17019E-03   -1.5236    
  12  Prefactor     28.955        38.565        .74465E-04   -1.4631    
  13  Prefactor     .10000E-03    16.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1199        14.740        .13282E-03   -1.5104    
  15  Prefactor     9.3353        9.0717        .13116E-03   -1.5097    
  16  Prefactor     34.187        48.557        .68531E-04   -1.4538    
  17  norm          3.6909        6.1672        .10046E-02   -1.5324    
  18  Prefactor     .83398        14.176        .26281E-02   -1.5525    
  19  Prefactor     3.5138        10.868        .10782E-02   -1.5333    
  20  norm          22.842        17.321        .83804E-04   -1.4752    
  21  Prefactor     .10000E-03    2.6746        .11591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99967        .26927        .29700E-03   -.93042    
  23  Prefactor     .69911        .14405        .20101E-03   -1.0356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08507e-08
Minuit parameter uncertainties:
  1  4.11583
  2  10.1003
  3  14.2162
  4  5.9049e-07
  5  1.06681e-05
  6  13.5414
  7  2.29881e-07
  8  0.197583
  9  22.7565
  10  7.20201
  11  6.5396
  12  38.5978
  13  7.78581e-06
  14  14.7458
  15  9.073
  16  48.6129
  17  6.16829
  18  6.87815
  19  10.8738
  20  17.3252
  21  6.1094e-07
  22  0.269641
  23  0.144124
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.419e+01  4.861e+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:  6.991e-01  1.441e-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.997e-01  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/887080/likelihoodResults_556329601_556588801_4FGL_J2325.7+1821_daily_bin1223.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) = 5277.37804233
delta logL = 2.56805072247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5277.35948347
delta logL = 2.58660958032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5182       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3039       1.0000          .0000       10.000    
     3 'Normalizat'    .80511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77304       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=   5277.359     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      273 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5136        23.998        .53882E-02    .13407E-03
   2  Index         4.3045        2.2932        .67937E-01    .13346E-03
   3  Normalizat    .80516        .90263E-01    .73641E-01    .91836E-05
   4  Prefactor     .77303        .51860E-01    .43365E-01    .66369E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.51364
  Index      = 4.30452
  Normalizat = 0.805164
  Prefactor  = 0.773026
 **********
 **   18 **HESSE 
 **********

 FCN=   5277.359     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5136        33.198        .57813E-04   -1.5333    
   2  Index         4.3045        2.7943        .28375E-02   -.13955    
   3  Normalizat    .80516        .24746        .32592E-03   -.99877    
   4  Prefactor     .77303        .13883        .19185E-03   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.57307e-07
Minuit parameter uncertainties:
  1  21.6158
  2  2.96907
  3  0.247803
  4  0.138893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887080': 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) = 5277.35948324
delta logL = 2.58660980929

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.514e+00  2.162e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  4.305e+00  2.969e+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:  7.730e-01  1.389e-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.052e-01  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.02
Ra Dec: 351.436 18.365
Photon Index (Free Index): 4.30 +/- 2.97
Photon Flux (Free Index): 2.62e-07 +/- 1.24e-07
Energy Flux (Free Index): 3.75e-05 +/- 2.44e-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/887080/cmap_HighResolution_556329601_556588801_4FGL_J2325.7+1821_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', comment='SUCCESS', energy_flux2='3.75e-05', dlogl='2.59e+00', photon_flux2='2.62e-07', job_status='DONE', time_completed='2021-09-29 18:50:14.219393', photon_index_error2='2.97', photon_index2='4.30', ts='1.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='2.24e-07', energy_flux_error2='2.44e-05', EG='1.00', time_epoch_completed='1632966614.22', return_code='0', job_id='887080', GAL2='0.77', EG2='0.81', return_code2='102', photon_flux_error2='1.24e-07', ts2='7.02', photon_index='2.43' WHERE bin_id='1223' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:50:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 887080: <4FGL_J2325.7+1821_daily_bin1223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1223 351.436 18.3654 556329601 556588801 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 :                                   618.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             221.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

