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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1164
RA = 351.436, Dec = 18.3654
tmin = 541036801, tmax = 541296001
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='886975', job_status='RUN', time_executed='2021-09-29 18:39:07.326075', time_epoch_executed='1632965947.33' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886975/ft1_4FGL_J2325.7+1821_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886975/ft2_4FGL_J2325.7+1821_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886975/ft1_4FGL_J2325.7+1821_daily_bin1164.fits outfile=/scratch/kocevski/886975/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1164.fits ra=351.436 dec=18.3654 rad=12.0 tmin=541036801.0 tmax=541296001.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.74
user 3.37
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886975/ft1_filtered_4FGL_J2325.7+1821_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/886975/ft2_4FGL_J2325.7+1821_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/886975/ltcube_541036801_541296001_4FGL_J2325.7+1821_daily_bin1164.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/886975/ft2_4FGL_J2325.7+1821_daily_bin1164.fits
.....................!
real 12.08
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886975/ft1_filtered_4FGL_J2325.7+1821_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/886975/ft2_4FGL_J2325.7+1821_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/886975/ltcube_541036801_541296001_4FGL_J2325.7+1821_daily_bin1164.fits outfile=/scratch/kocevski/886975/expmap_541036801_541296001_4FGL_J2325.7+1821_daily_bin1164.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/886975/ltcube_541036801_541296001_4FGL_J2325.7+1821_daily_bin1164.fits
.....................!
real 191.18
user 186.35
sys 4.51

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/886975/ft1_filtered_4FGL_J2325.7+1821_daily_bin1164.fits scfile=/scratch/kocevski/886975/ft2_4FGL_J2325.7+1821_daily_bin1164.fits outfile=/scratch/kocevski/886975/cmap_541036801_541296001_4FGL_J2325.7+1821_daily_bin1164.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.436 yref=18.3654 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886975/ft1_filtered_4FGL_J2325.7+1821_daily_bin1164.fits scfile=/scratch/kocevski/886975/ft2_4FGL_J2325.7+1821_daily_bin1164.fits outfile=/scratch/kocevski/886975/cmap_HighResolution_541036801_541296001_4FGL_J2325.7+1821_daily_bin1164.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/886975/ft1_filtered_4FGL_J2325.7+1821_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/886975/ft2_4FGL_J2325.7+1821_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/886975/Model_4FGL_J2325.7+1821_daily_bin1164.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/886975/ft1_filtered_4FGL_J2325.7+1821_daily_bin1164.fits.....................!
real 87.20
user 85.92
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6960       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.129       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6937       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7522       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.808       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6645       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4863       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1173       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.3254       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8415       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93852       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1192       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=   7887.865     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2186 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6960        2.0460       -.24759E-08    .19194E-03
   2  Prefactor     15.132        11.942        .92382E-08   -.45598E-03
   3  Prefactor     7.6922        11.403       -.77058E-08    .46814E-05
   4  norm          2.4879        1.5097       -.15557E-09    .88026E-04
   5  Prefactor     .10000E-03    44.254        .54309E-09** at limit **
   6  Prefactor     .10000E-03    8.4225       -.57679E-08** at limit **
   7  Prefactor     .10000E-03    6.8596       -.41504E-08** at limit **
   8  Prefactor     1.7523        .23856       -.17688E-09    .16633E-02
   9  Prefactor     10.809        9.2900        .64680E-08   -.58247E-03
  10  Prefactor     7.6646        7.7656       -.24302E-09    .44852E-04
  11  Prefactor     3.4851        9.2566       -.37360E-07    .51734E-03
  12  Prefactor     .10000E-03    69.132       -.38805E-08** at limit **
  13  Prefactor     .10000E-03    10.183       -.82592E-09** at limit **
  14  Prefactor     1.1707        6.8123       -.29730E-07   -.26783E-04
  15  Prefactor     .10000E-03    3.3833       -.12715E-08** at limit **
  16  Prefactor     5.1296        18.335       -.13578E-06   -.52971E-04
  17  norm          .10000E-03    2.2563        .34520E-08** at limit **
  18  Prefactor     2.0037        5.7016       -.31404E-07    .82306E-04
  19  Prefactor     .10000E-03    7.9231        .27177E-08** at limit **
  20  norm          8.3247        8.5880       -.57567E-08    .41495E-03
  21  Prefactor     4.8415        3.0946       -.73862E-07   -.18575E-03
  22  Normalizat    .93820        .20873        .33221E-07    .36878E-03
  23  Prefactor     1.1194        .12556        .32008E-08    .49151E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69603
  Prefactor  = 15.132
  Prefactor  = 7.69222
  norm       = 2.48793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75226
  Prefactor  = 10.8088
  Prefactor  = 7.66458
  Prefactor  = 3.48509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.17075
  Prefactor  = 0.0001
  Prefactor  = 5.12962
  norm       = 0.0001
  Prefactor  = 2.00369
  Prefactor  = 0.0001
  norm       = 8.32473
  Prefactor  = 4.84149
  Normalizat = 0.938204
  Prefactor  = 1.1194
 **********
 **   18 **HESSE 
 **********

 FCN=   7887.865     FROM HESSE     STATUS=OK           372 CALLS     2558 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6960        2.0283        .13248E-03   -1.5447    
   2  Prefactor     15.132        11.904        .10297E-03   -1.4930    
   3  Prefactor     7.6922        11.383        .14457E-03   -1.5153    
   4  norm          2.4879        1.5137        .82856E-04   -1.5392    
   5  Prefactor     .10000E-03    45.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7523        .23887        .15220E-04   -1.5443    
   9  Prefactor     10.809        9.2972        .12187E-03   -1.5050    
  10  Prefactor     7.6646        7.7605        .14485E-03   -1.5154    
  11  Prefactor     3.4851        9.2540        .21656E-03   -1.5335    
  12  Prefactor     .10000E-03    71.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1707        6.3747        .39465E-03   -1.5492    
  15  Prefactor     .10000E-03    3.3908        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1296        19.329        .88864E-03   -1.5255    
  17  norm          .10000E-03    2.2603        .13024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0037        5.8007        .29277E-03   -1.5425    
  19  Prefactor     .10000E-03    7.9290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.3247        8.5900        .13894E-03   -1.5131    
  21  Prefactor     4.8415        5.2112        .91412E-03   -1.5268    
  22  Normalizat    .93820        .24065        .35080E-03   -.95130    
  23  Prefactor     1.1194        .14359        .19990E-03   -.88849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6609e-09
Minuit parameter uncertainties:
  1  2.02837
  2  11.9055
  3  11.3866
  4  1.51373
  5  3.61981e-05
  6  6.83054e-05
  7  5.11044e-05
  8  0.238873
  9  9.2984
  10  7.76151
  11  9.25784
  12  8.51403e-05
  13  5.20954e-06
  14  5.46441
  15  1.18837e-05
  16  19.3523
  17  2.13282e-05
  18  5.80234
  19  3.51654e-05
  20  8.59125
  21  5.21166
  22  0.240925
  23  0.143643
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  5.130e+00  1.935e+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.119e+00  1.436e-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.382e-01  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/886975/likelihoodResults_541036801_541296001_4FGL_J2325.7+1821_daily_bin1164.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) = 7887.4081092
delta logL = 0.456933092184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7887.3144641
delta logL = 0.550578200375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13560E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.2494       1.0000          .0000       10.000    
     3 'Normalizat'    .86756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1498       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=   7887.314     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      419 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13200E-02    .19730E-01    .76155E-03** at limit **
   2  Index         7.2613        2.4610        .13470        .19417E-03
   3  Normalizat    .86747        .40816E-01    .82106E-01    .29301E-04
   4  Prefactor     1.1499        .25282E-01    .35942E-01    .10103E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00132005
  Index      = 7.26126
  Normalizat = 0.867475
  Prefactor  = 1.14987
 **********
 **   18 **HESSE 
 **********

 FCN=   7887.314     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      454 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13200E-02    .68790E-01    .33335E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.2613        8.1439        .69368E-02    .46929    
   3  Normalizat    .86747        .16224        .36351E-03   -.97613    
   4  Prefactor     1.1499        .98965E-01    .19759E-03   -.87888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.17352e-11
Minuit parameter uncertainties:
  1  0.0183223
  2  6.26779
  3  0.162334
  4  0.0989805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886975': 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) = 7887.31446171
delta logL = 0.550580586938

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.320e-03  1.832e-02  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  7.261e+00  6.268e+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.150e+00  9.898e-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.675e-01  1.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 351.436 18.365
Photon Index (Free Index): 7.26 +/- 6.27
Photon Flux (Free Index): 5.46e-08 +/- 4.99e-08
Energy Flux (Free Index): 6.47e-06 +/- 6.23e-06

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/886975/cmap_HighResolution_541036801_541296001_4FGL_J2325.7+1821_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', comment='SUCCESS', energy_flux2='6.47e-06', dlogl='5.51e-01', photon_flux2='5.46e-08', job_status='DONE', time_completed='2021-09-29 18:51:41.749434', photon_index_error2='6.27', photon_index2='7.26', ts='0.09', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='6.23e-06', EG='0.94', time_epoch_completed='1632966701.75', return_code='0', job_id='886975', GAL2='1.15', EG2='0.87', return_code2='102', photon_flux_error2='4.99e-08', ts2='1.30', photon_index='2.43' WHERE bin_id='1164' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 886975: <4FGL_J2325.7+1821_daily_bin1164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1164 351.436 18.3654 541036801 541296001 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 :                                   739.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

