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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1629
RA = 351.436, Dec = 18.3654
tmin = 661564801, tmax = 661824001
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='447594', job_status='RUN', time_executed='2021-12-22 02:50:23.608205', time_epoch_executed='1640170223.61' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447594/ft1_4FGL_J2325.7+1821_daily_bin1629.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447594/ft2_4FGL_J2325.7+1821_daily_bin1629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447594/ft1_4FGL_J2325.7+1821_daily_bin1629.fits outfile=/scratch/kocevski/447594/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1629.fits ra=351.436 dec=18.3654 rad=12.0 tmin=661564801.0 tmax=661824001.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.54
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447594/ft1_filtered_4FGL_J2325.7+1821_daily_bin1629.fits" evtable="EVENTS" scfile=/scratch/kocevski/447594/ft2_4FGL_J2325.7+1821_daily_bin1629.fits sctable="SC_DATA" outfile=/scratch/kocevski/447594/ltcube_661564801_661824001_4FGL_J2325.7+1821_daily_bin1629.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/447594/ft2_4FGL_J2325.7+1821_daily_bin1629.fits
.....................!
real 13.41
user 13.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447594/ft1_filtered_4FGL_J2325.7+1821_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447594/ft2_4FGL_J2325.7+1821_daily_bin1629.fits sctable="SC_DATA" expcube=/scratch/kocevski/447594/ltcube_661564801_661824001_4FGL_J2325.7+1821_daily_bin1629.fits outfile=/scratch/kocevski/447594/expmap_661564801_661824001_4FGL_J2325.7+1821_daily_bin1629.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/447594/ltcube_661564801_661824001_4FGL_J2325.7+1821_daily_bin1629.fits
.....................!
real 190.59
user 185.58
sys 4.65

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/447594/ft1_filtered_4FGL_J2325.7+1821_daily_bin1629.fits scfile=/scratch/kocevski/447594/ft2_4FGL_J2325.7+1821_daily_bin1629.fits outfile=/scratch/kocevski/447594/cmap_661564801_661824001_4FGL_J2325.7+1821_daily_bin1629.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447594/ft1_filtered_4FGL_J2325.7+1821_daily_bin1629.fits scfile=/scratch/kocevski/447594/ft2_4FGL_J2325.7+1821_daily_bin1629.fits outfile=/scratch/kocevski/447594/cmap_HighResolution_661564801_661824001_4FGL_J2325.7+1821_daily_bin1629.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447594/ft1_filtered_4FGL_J2325.7+1821_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447594/ft2_4FGL_J2325.7+1821_daily_bin1629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447594/Model_4FGL_J2325.7+1821_daily_bin1629.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/447594/ft1_filtered_4FGL_J2325.7+1821_daily_bin1629.fits.....................!
real 86.63
user 85.29
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3240       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2513       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .77786       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7207       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18492E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3685       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11822E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0533       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0307       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=   7900.722     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2164 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6426        3.3033        .93597E-07    .54385E-04
   2  Prefactor     .10000E-03    3.0450       -.26988E-07** at limit **
   3  Prefactor     2.3234        6.8775        .39969E-07   -.50772E-04
   4  norm          1.2514        1.1577        .12695E-07   -.20935E-04
   5  Prefactor     .10000E-03    31.347       -.78227E-05** at limit **
   6  Prefactor     .10000E-03    5.0557        .13446E-05** at limit **
   7  Prefactor     .10000E-03    12.521        .62205E-06** at limit **
   8  Prefactor     .77785        .18152        .77985E-08    .44479E-03
   9  Prefactor     19.533        13.527       -.84186E-07   -.43929E-04
  10  Prefactor     .10000E-03    2.6584       -.43081E-08** at limit **
  11  Prefactor     1.7214        27.429        .14920E-06    .77213E-05
  12  Prefactor     .10000E-03    27.608        .93682E-05** at limit **
  13  Prefactor     .10000E-03    7.2420        .98353E-06** at limit **
  14  Prefactor     .10000E-03    3.6800        .58410E-07** at limit **
  15  Prefactor     .10000E-03    4.7099       -.81951E-06** at limit **
  16  Prefactor     .10000E-03    6.1762       -.16326E-05** at limit **
  17  norm          1.0822        1.1694       -.16120E-07   -.22682E-03
  18  Prefactor     .10000E-03    4.9903        .11517E-05** at limit **
  19  Prefactor     5.3769        18.294        .73998E-05    .33848E-04
  20  norm          .10000E-03    4.8010       -.18097E-05** at limit **
  21  Prefactor     .10001E-03    3.3395       -.31670E-06** at limit **
  22  Normalizat    1.0534        .20467       -.48964E-06    .36889E-04
  23  Prefactor     1.0307        .11649       -.54118E-07    .50110E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.64263
  Prefactor  = 0.0001
  Prefactor  = 2.32339
  norm       = 1.25137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.777847
  Prefactor  = 19.5328
  Prefactor  = 0.0001
  Prefactor  = 1.72138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0822
  Prefactor  = 0.0001
  Prefactor  = 5.37688
  norm       = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 1.05337
  Prefactor  = 1.03075
 **********
 **   18 **HESSE 
 **********

 FCN=   7900.722     FROM HESSE     STATUS=OK           368 CALLS     2532 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6426        3.2836        .16921E-03   -1.5383    
   2  Prefactor     .10000E-03    3.0464        .15146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3234        6.9988        .13452E-02   -1.5403    
   4  norm          1.2514        1.1672        .89655E-04   -1.5484    
   5  Prefactor     .10000E-03    31.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .77785        .18125        .17477E-04   -1.5532    
   9  Prefactor     19.533        13.526        .90619E-04   -1.4824    
  10  Prefactor     .10000E-03    2.6667        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7214        27.464        .32025E-03   -1.5446    
  12  Prefactor     .10000E-03    27.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7169        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.942        .36873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0822        6.6976        .22015E-02   -1.5500    
  18  Prefactor     .10000E-03    5.0545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3769        18.325        .17345E-03   -1.5244    
  20  norm          .10000E-03    4.8026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    16.988        .30982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0534        .23610        .33031E-03   -.91263    
  23  Prefactor     1.0307        .13577        .19551E-03   -.91712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4464e-10
Minuit parameter uncertainties:
  1  3.28378
  2  3.23235e-07
  3  7.00131
  4  1.16723
  5  5.39366e-05
  6  6.80474e-07
  7  5.57976e-07
  8  0.181254
  9  13.5281
  10  7.54624e-07
  11  13.7587
  12  2.48497e-05
  13  1.27296e-07
  14  3.18337e-06
  15  0.000190467
  16  2.23609e-06
  17  5.3851
  18  1.01763e-05
  19  18.3446
  20  7.98224e-07
  21  0.000705848
  22  0.236333
  23  0.135813
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  2.236e-06  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.031e+00  1.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.053e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447594/likelihoodResults_661564801_661824001_4FGL_J2325.7+1821_daily_bin1629.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) = 7900.7226879
delta logL = -0.000770045557147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7900.72191786
delta logL = -1.68893166119e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4226       1.0000          .0000       10.000    
     3 'Normalizat'    1.0534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0307       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7900.722     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    111.34        .18142E-02** at limit **
   2  Index         2.4134        8.7865        .50000        .12758E-04
   3  Normalizat    1.0534        .22817        .33031E-03    .34074E-05
   4  Prefactor     1.0307        .13475        .19551E-03    .55822E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.41343
  Normalizat = 1.05337
  Prefactor  = 1.03075
 **********
 **   18 **HESSE 
 **********

 FCN=   7900.722     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4134        6.2067        .50000       -.54371    
   3  Normalizat    1.0534        .22836        .13212E-04   -.91263    
   4  Prefactor     1.0307        .13487        .78205E-05   -.91712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72295e-10
Minuit parameter uncertainties:
  1  0.00016267
  2  4.36688
  3  0.228577
  4  0.134913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447594': 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) = 7900.7219178
delta logL = 5.49034666619e-08

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  1.627e-04  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.413e+00  4.367e+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.031e+00  1.349e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.053e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.436 18.365

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/447594/cmap_HighResolution_661564801_661824001_4FGL_J2325.7+1821_daily_bin1629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-12-22 03:01:59.804610', job_id='447594', GAL2='1.03', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1640170919.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1629' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 22 03:01:59 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 447594: <4FGL_J2325.7+1821_daily_bin1629> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1629> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec 22 02:45:28 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 02:46:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 02:46:36 2021
Terminated at Wed Dec 22 03:02:00 2021
Results reported at Wed Dec 22 03:02:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1629 351.436 18.3654 661564801 661824001 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 :                                   699.00 sec.
    Max Memory :                                 1010 MB
    Average Memory :                             278.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            992 sec.

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

