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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin533
RA = 351.436, Dec = 18.3654
tmin = 377481601, tmax = 377740801
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='884569', job_status='RUN', time_executed='2021-09-29 18:26:16.828762', time_epoch_executed='1632965176.83' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884569

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884569/ft1_4FGL_J2325.7+1821_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884569/ft2_4FGL_J2325.7+1821_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884569/ft1_4FGL_J2325.7+1821_daily_bin533.fits outfile=/scratch/kocevski/884569/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin533.fits ra=351.436 dec=18.3654 rad=12.0 tmin=377481601.0 tmax=377740801.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.22
user 2.98
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884569/ft1_filtered_4FGL_J2325.7+1821_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/884569/ft2_4FGL_J2325.7+1821_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/884569/ltcube_377481601_377740801_4FGL_J2325.7+1821_daily_bin533.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/884569/ft2_4FGL_J2325.7+1821_daily_bin533.fits
.....................!
real 10.24
user 9.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884569/ft1_filtered_4FGL_J2325.7+1821_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/884569/ft2_4FGL_J2325.7+1821_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/884569/ltcube_377481601_377740801_4FGL_J2325.7+1821_daily_bin533.fits outfile=/scratch/kocevski/884569/expmap_377481601_377740801_4FGL_J2325.7+1821_daily_bin533.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/884569/ltcube_377481601_377740801_4FGL_J2325.7+1821_daily_bin533.fits
.....................!
real 190.67
user 185.15
sys 5.05

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/884569/ft1_filtered_4FGL_J2325.7+1821_daily_bin533.fits scfile=/scratch/kocevski/884569/ft2_4FGL_J2325.7+1821_daily_bin533.fits outfile=/scratch/kocevski/884569/cmap_377481601_377740801_4FGL_J2325.7+1821_daily_bin533.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/884569/ft1_filtered_4FGL_J2325.7+1821_daily_bin533.fits scfile=/scratch/kocevski/884569/ft2_4FGL_J2325.7+1821_daily_bin533.fits outfile=/scratch/kocevski/884569/cmap_HighResolution_377481601_377740801_4FGL_J2325.7+1821_daily_bin533.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884569/ft1_filtered_4FGL_J2325.7+1821_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/884569/ft2_4FGL_J2325.7+1821_daily_bin533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884569/Model_4FGL_J2325.7+1821_daily_bin533.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/884569/ft1_filtered_4FGL_J2325.7+1821_daily_bin533.fits.....................!
real 67.81
user 66.42
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4935       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72146       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.607       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7259       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.960       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2696       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68616       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95331       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90241       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=   5791.587     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2534 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5004        2.8066        .87348E-02    .65054E-03
   2  Prefactor     .10000E-03    3.8238        .90712E-02** at limit **
   3  Prefactor     .10000E-03    5.9213        .90712E-02** at limit **
   4  norm          3.4932        1.9329        .54081E-02   -.10189E-03
   5  Prefactor     .10000E-03    13.350        .90712E-02** at limit **
   6  Prefactor     .10000E-03    2.7779        .90712E-02** at limit **
   7  Prefactor     .10000E-03    9.5614        .90712E-02** at limit **
   8  Prefactor     .72145        .18964        .36603E-02    .20752E-03
   9  Prefactor     11.611        11.348        .29397E-02    .14014E-02
  10  Prefactor     4.7798        7.6162        .46005E-02    .24994E-03
  11  Prefactor     .10000E-03    3.4234        .90712E-02** at limit **
  12  Prefactor     24.184        24.604        .20362E-02    .34412E-03
  13  Prefactor     .10000E-03    7.9892        .90712E-02** at limit **
  14  Prefactor     .10000E-03    16.008        .90712E-02** at limit **
  15  Prefactor     1.7309        9.2746        .79912E-02    .47467E-03
  16  Prefactor     17.973        29.634        .23627E-02    .25625E-03
  17  norm          .10000E-03    3.3749        .90712E-02** at limit **
  18  Prefactor     3.2729        7.3303        .55988E-02    .39371E-03
  19  Prefactor     .62951        25.800        .12009        .17109E-03
  20  norm          .10000E-03    9.5978        .90712E-02** at limit **
  21  Prefactor     .10000E-03    3.0784        .90712E-02** at limit **
  22  Normalizat    .95336        .21959        .70472E-01    .36635E-04
  23  Prefactor     .90244        .12383        .45036E-01    .18269E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.721449
  Prefactor  = 11.6109
  Prefactor  = 4.77978
  Prefactor  = 0.0001
  Prefactor  = 24.1836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.73092
  Prefactor  = 17.9726
  norm       = 0.0001
  Prefactor  = 3.27289
  Prefactor  = 0.629508
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.953364
  Prefactor  = 0.902437
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.587     FROM HESSE     STATUS=OK           366 CALLS     2900 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5004        2.7824        .16473E-03   -1.5463    
   2  Prefactor     .10000E-03    3.8270        .14532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9333        .18085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4932        1.9339        .76596E-04   -1.5334    
   5  Prefactor     .10000E-03    13.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7801        .12387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72145        .18941        .16205E-04   -1.5538    
   9  Prefactor     11.611        11.351        .11759E-03   -1.5026    
  10  Prefactor     4.7798        7.6099        .18402E-03   -1.5271    
  11  Prefactor     .10000E-03    3.4268        .13751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.184        24.626        .81450E-04   -1.4724    
  13  Prefactor     .10000E-03    7.9940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7309        9.2543        .31965E-03   -1.5445    
  16  Prefactor     17.973        29.699        .94508E-04   -1.4860    
  17  norm          .10000E-03    3.3825        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2729        7.3020        .22395E-03   -1.5346    
  19  Prefactor     .62951        278.78        .71768E-02   -1.5549    
  20  norm          .10000E-03    9.6211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0871        .13038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .95336        .25621        .31179E-03   -.94610    
  23  Prefactor     .90244        .14540        .18828E-03   -.96056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98426e-09
Minuit parameter uncertainties:
  1  2.78259
  2  5.7602e-06
  3  7.32173e-06
  4  1.93392
  5  7.97444e-05
  6  1.466e-06
  7  5.08988e-05
  8  0.189412
  9  11.3533
  10  7.61142
  11  1.15031e-05
  12  24.6366
  13  2.43028e-05
  14  5.03262e-05
  15  8.00632
  16  29.7229
  17  2.07289e-06
  18  7.30399
  19  26.6181
  20  1.3178e-05
  21  3.44149e-06
  22  0.256538
  23  0.145465
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.797e+01  2.972e+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:  9.024e-01  1.455e-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.534e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/884569/likelihoodResults_377481601_377740801_4FGL_J2325.7+1821_daily_bin533.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) = 5791.48088559
delta logL = 0.106053379333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5791.46331067
delta logL = 0.123628300894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0164       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1636       1.0000          .0000       10.000    
     3 'Normalizat'    .91703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91744       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5791.463     FROM MIGRAD    STATUS=FAILED        99 CALLS      327 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0016        334.92        .14161E-03   -.68801E-04
   2  Index         3.1648        6.4632        .63322E-02    .32456E-03
   3  Normalizat    .91756        .28546        .31725E-03    .28180E-03
   4  Prefactor     .91710        .17148        .18693E-03   -.51137E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5791.463     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      420 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0016        334.92        .24890E-03   -1.5142    
   2  Index         3.1648        6.4632        .13179E-02   -.37582    
   3  Normalizat    .91756        .28546        .40685E-03   -.95846    
   4  Prefactor     .91710        .17148        .15827E-03   -.95546    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5791.463     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      453 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0015        26.525        .56644E-05   -.13246E-04
   2  Index         3.1649        1.7368        .12664E-02   -.27559E-05
   3  Normalizat    .91755        .25863        .12690E-04   -.17917E-05
   4  Prefactor     .91711        .14734        .37386E-04   -.30409E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.00152
  Index      = 3.16486
  Normalizat = 0.917547
  Prefactor  = 0.91711
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.463     FROM HESSE     STATUS=OK            23 CALLS      476 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0015        24.205        .11329E-05   -1.5142    
   2  Index         3.1649        1.5908        .50658E-04   -.37581    
   3  Normalizat    .91755        .25837        .25380E-05   -.95846    
   4  Prefactor     .91711        .14705        .74772E-05   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14047e-13
Minuit parameter uncertainties:
  1  24.2351
  2  1.62361
  3  0.258724
  4  0.14711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884569': 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) = 5791.46330716
delta logL = 0.123631808035

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  8.002e+00  2.424e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  3.165e+00  1.624e+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:  9.171e-01  1.471e-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.175e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
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/884569/cmap_HighResolution_377481601_377740801_4FGL_J2325.7+1821_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-29 18:36:42.937425', job_id='884569', GAL2='0.92', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1632965802.94', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.24e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='533' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:36:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 884569: <4FGL_J2325.7+1821_daily_bin533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin533 351.436 18.3654 377481601 377740801 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 :                                   624.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            638 sec.

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

