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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1279
RA = 351.436, Dec = 18.3654
tmin = 570844801, tmax = 571104001
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='887168', job_status='RUN', time_executed='2021-09-29 18:38:39.934170', time_epoch_executed='1632965919.93' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887168

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887168/ft1_4FGL_J2325.7+1821_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887168/ft2_4FGL_J2325.7+1821_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887168/ft1_4FGL_J2325.7+1821_daily_bin1279.fits outfile=/scratch/kocevski/887168/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1279.fits ra=351.436 dec=18.3654 rad=12.0 tmin=570844801.0 tmax=571104001.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.10
user 2.84
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887168/ft1_filtered_4FGL_J2325.7+1821_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/887168/ft2_4FGL_J2325.7+1821_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/887168/ltcube_570844801_571104001_4FGL_J2325.7+1821_daily_bin1279.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/887168/ft2_4FGL_J2325.7+1821_daily_bin1279.fits
.....................!
real 12.22
user 11.87
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887168/ft1_filtered_4FGL_J2325.7+1821_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/887168/ft2_4FGL_J2325.7+1821_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/887168/ltcube_570844801_571104001_4FGL_J2325.7+1821_daily_bin1279.fits outfile=/scratch/kocevski/887168/expmap_570844801_571104001_4FGL_J2325.7+1821_daily_bin1279.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/887168/ltcube_570844801_571104001_4FGL_J2325.7+1821_daily_bin1279.fits
.....................!
real 189.79
user 185.17
sys 4.28

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/887168/ft1_filtered_4FGL_J2325.7+1821_daily_bin1279.fits scfile=/scratch/kocevski/887168/ft2_4FGL_J2325.7+1821_daily_bin1279.fits outfile=/scratch/kocevski/887168/cmap_570844801_571104001_4FGL_J2325.7+1821_daily_bin1279.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887168/ft1_filtered_4FGL_J2325.7+1821_daily_bin1279.fits scfile=/scratch/kocevski/887168/ft2_4FGL_J2325.7+1821_daily_bin1279.fits outfile=/scratch/kocevski/887168/cmap_HighResolution_570844801_571104001_4FGL_J2325.7+1821_daily_bin1279.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/887168/ft1_filtered_4FGL_J2325.7+1821_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/887168/ft2_4FGL_J2325.7+1821_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887168/Model_4FGL_J2325.7+1821_daily_bin1279.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/887168/ft1_filtered_4FGL_J2325.7+1821_daily_bin1279.fits.....................!
real 100.21
user 98.85
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3968       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1282       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.213       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92815       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.713       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.898       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7765       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8600       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4757       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.420       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11267E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .26493E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8666       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70145       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0208       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=   9306.106     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2537 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3894        2.7784        .20600E-07    .37639E-05
   2  Prefactor     .10000E-03    11.911       -.13597E-05** at limit **
   3  Prefactor     .10000E-03    3.3643       -.14976E-06** at limit **
   4  norm          1.1282        1.0457       -.39263E-07    .34887E-04
   5  Prefactor     .10000E-03    12.440        .97752E-06** at limit **
   6  Prefactor     3.2005        4.3758        .15632E-05   -.20874E-02
   7  Prefactor     10.201        25.408       -.92175E-05   -.24129E-03
   8  Prefactor     .92814        .20531        .61409E-07   -.17977E-02
   9  Prefactor     16.715        11.053       -.92057E-06   -.18788E-03
  10  Prefactor     3.8954        8.7896        .12848E-05    .33837E-05
  11  Prefactor     .10000E-03    4.9008       -.80717E-07** at limit **
  12  Prefactor     23.914        18.293        .24247E-05    .28068E-03
  13  Prefactor     .10000E-03    3.6540        .97604E-07** at limit **
  14  Prefactor     8.7854        7.0920       -.55380E-06   -.27117E-03
  15  Prefactor     .10000E-03    3.1120       -.43376E-07** at limit **
  16  Prefactor     6.8616        18.096        .48658E-06   -.36503E-04
  17  norm          4.4641        6.5925        .14682E-05    .18316E-03
  18  Prefactor     12.424        8.2494       -.20995E-06   -.12368E-03
  19  Prefactor     .10000E-03    10.382        .55759E-07** at limit **
  20  norm          .10018E-03    8.0580        .11805E-05** at limit **
  21  Prefactor     2.8675        3.1978        .31646E-06   -.13696E-02
  22  Normalizat    .70117        .18882       -.74756E-06   -.54959E-04
  23  Prefactor     1.0208        .10508        .14096E-06   -.13367E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.38945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12821
  Prefactor  = 0.0001
  Prefactor  = 3.20047
  Prefactor  = 10.2012
  Prefactor  = 0.928138
  Prefactor  = 16.7154
  Prefactor  = 3.89543
  Prefactor  = 0.0001
  Prefactor  = 23.9139
  Prefactor  = 0.0001
  Prefactor  = 8.78542
  Prefactor  = 0.0001
  Prefactor  = 6.86157
  norm       = 4.46409
  Prefactor  = 12.4243
  Prefactor  = 0.0001
  norm       = 0.000100177
  Prefactor  = 2.86748
  Normalizat = 0.70117
  Prefactor  = 1.02084
 **********
 **   18 **HESSE 
 **********

 FCN=   9306.106     FROM HESSE     STATUS=OK           376 CALLS     2913 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3894        2.7793        .99392E-04   -1.5202    
   2  Prefactor     .10000E-03    12.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3724        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1282        1.0590        .92226E-04   -1.5496    
   5  Prefactor     .10000E-03    12.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2005        6.2953        .11322E-02   -1.5350    
   7  Prefactor     10.201        26.027        .12538E-03   -1.5069    
   8  Prefactor     .92814        .20560        .18309E-04   -1.5515    
   9  Prefactor     16.715        11.060        .97970E-04   -1.4890    
  10  Prefactor     3.8954        8.7653        .20430E-03   -1.5313    
  11  Prefactor     .10000E-03    4.9109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.914        18.363        .81939E-04   -1.4730    
  13  Prefactor     .10000E-03    3.6549        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.7854        7.0687        .13530E-03   -1.5115    
  15  Prefactor     .10000E-03    3.1206        .16618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8616        17.986        .15318E-03   -1.5184    
  17  norm          4.4641        6.5709        .19032E-03   -1.5285    
  18  Prefactor     12.424        8.2202        .11366E-03   -1.5003    
  19  Prefactor     .10000E-03    10.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10018E-03    62.743        .52284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8675        3.3107        .91604E-03   -1.5369    
  22  Normalizat    .70117        .21267        .36829E-03   -1.0385    
  23  Prefactor     1.0208        .12003        .18426E-03   -.92038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28641e-09
Minuit parameter uncertainties:
  1  2.77932
  2  6.6711e-05
  3  3.53535e-06
  4  1.05902
  5  6.84873e-05
  6  6.29657
  7  26.0558
  8  0.205597
  9  11.0609
  10  8.7682
  11  2.3374e-06
  12  18.3671
  13  5.79174e-07
  14  7.0694
  15  7.15481e-06
  16  18.0004
  17  6.572
  18  8.22096
  19  6.55325e-06
  20  0.00667398
  21  3.31091
  22  0.212921
  23  0.120066
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  6.862e+00  1.800e+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.021e+00  1.201e-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:  7.012e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/887168/likelihoodResults_570844801_571104001_4FGL_J2325.7+1821_daily_bin1279.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) = 9306.05367558
delta logL = 0.0525102889351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9306.03564899
delta logL = 0.0705368731524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1256       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0576       1.0000          .0000       10.000    
     3 'Normalizat'    .68494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0268       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9306.036     FROM MIGRAD    STATUS=FAILED        98 CALLS      259 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1084        626.72        .99230E-03   -.89318E-04
   2  Index         3.0603        6.5414        .10306E-01    .34000E-03
   3  Normalizat    .68514        .22874        .37229E-03   -.56860E-04
   4  Prefactor     1.0268        .13947        .18377E-03   -.62110E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9306.036     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      349 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1084        626.72        .25367E-03   -.89318E-04
   2  Index         3.0603        6.5414        .14247E-02    .34000E-03
   3  Normalizat    .68514        .22874        .27477E-03   -.56860E-04
   4  Prefactor     1.0268        .13947        .13642E-03   -.62110E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9306.036     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      381 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1084        15.098        .39692E-04   -.11915E-03
   2  Index         3.0603        1.9548        .20612E-02   -.19989E-04
   3  Normalizat    .68514        .20650        .14892E-04   -.57104E-04
   4  Prefactor     1.0268        .12043        .36755E-04   -.62852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1084
  Index      = 3.06027
  Normalizat = 0.685137
  Prefactor  = 1.02677
 **********
 **   18 **HESSE 
 **********

 FCN=   9306.036     FROM HESSE     STATUS=OK            23 CALLS      404 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1084        13.966        .15877E-05   -1.5303    
   2  Index         3.0603        1.8155        .82448E-04   -.39840    
   3  Normalizat    .68514        .20617        .29783E-05   -1.0448    
   4  Prefactor     1.0268        .12024        .73509E-05   -.91842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13568e-11
Minuit parameter uncertainties:
  1  13.9769
  2  1.86612
  3  0.206399
  4  0.120268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887168': 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) = 9306.03564707
delta logL = 0.0705387902981

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  4.108e+00  1.398e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  3.060e+00  1.866e+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:  1.027e+00  1.203e-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:  6.851e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/887168/cmap_HighResolution_570844801_571104001_4FGL_J2325.7+1821_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2021-09-29 18:52:25.300803', job_id='887168', GAL2='1.03', fit_tolerance='1e-08', EG2='0.69', EG='0.70', time_epoch_completed='1632966745.3', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.05e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1279' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:52:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 887168: <4FGL_J2325.7+1821_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1279 351.436 18.3654 570844801 571104001 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 :                                   817.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

