/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 134 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.7+1821_daily_bin65
RA = 351.436, Dec = 18.3654
tmin = 256176001, tmax = 256435201
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='880484', job_status='RUN', time_executed='2021-09-29 18:18:04.743963', time_epoch_executed='1632964684.74' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880484/ft1_4FGL_J2325.7+1821_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880484/ft2_4FGL_J2325.7+1821_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880484/ft1_4FGL_J2325.7+1821_daily_bin65.fits outfile=/scratch/kocevski/880484/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin65.fits ra=351.436 dec=18.3654 rad=12.0 tmin=256176001.0 tmax=256435201.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 1.48
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880484/ft1_filtered_4FGL_J2325.7+1821_daily_bin65.fits" evtable="EVENTS" scfile=/scratch/kocevski/880484/ft2_4FGL_J2325.7+1821_daily_bin65.fits sctable="SC_DATA" outfile=/scratch/kocevski/880484/ltcube_256176001_256435201_4FGL_J2325.7+1821_daily_bin65.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/880484/ft2_4FGL_J2325.7+1821_daily_bin65.fits
.....................!
real 12.27
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880484/ft1_filtered_4FGL_J2325.7+1821_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/880484/ft2_4FGL_J2325.7+1821_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/880484/ltcube_256176001_256435201_4FGL_J2325.7+1821_daily_bin65.fits outfile=/scratch/kocevski/880484/expmap_256176001_256435201_4FGL_J2325.7+1821_daily_bin65.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/880484/ltcube_256176001_256435201_4FGL_J2325.7+1821_daily_bin65.fits
.....................!
real 189.97
user 185.42
sys 4.20

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/880484/ft1_filtered_4FGL_J2325.7+1821_daily_bin65.fits scfile=/scratch/kocevski/880484/ft2_4FGL_J2325.7+1821_daily_bin65.fits outfile=/scratch/kocevski/880484/cmap_256176001_256435201_4FGL_J2325.7+1821_daily_bin65.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880484/ft1_filtered_4FGL_J2325.7+1821_daily_bin65.fits scfile=/scratch/kocevski/880484/ft2_4FGL_J2325.7+1821_daily_bin65.fits outfile=/scratch/kocevski/880484/cmap_HighResolution_256176001_256435201_4FGL_J2325.7+1821_daily_bin65.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.436 yref=18.3654 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880484/ft1_filtered_4FGL_J2325.7+1821_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/880484/ft2_4FGL_J2325.7+1821_daily_bin65.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880484/Model_4FGL_J2325.7+1821_daily_bin65.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/880484/ft1_filtered_4FGL_J2325.7+1821_daily_bin65.fits.....................!
real 75.11
user 73.15
sys 1.55

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94307       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14297E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5725       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .80333       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    60.947       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98553       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91529       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=   6619.500     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2223 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94334        2.1808        .12963E-01    .10699E-02
   2  Prefactor     7.5443        10.061        .36503E-02    .38996E-03
   3  Prefactor     .10000E-03    7.4647        .90712E-02** at limit **
   4  norm          3.9051        2.1341        .51037E-02    .20620E-04
   5  Prefactor     .10002E-03    27.579        .90712E-02** at limit **
   6  Prefactor     .10017E-03    8.1507        .10254    ** at limit **
   7  Prefactor     .10000E-03    9.8737        .90712E-02** at limit **
   8  Prefactor     .29101        .13749        .44355E-02    .64112E-03
   9  Prefactor     9.4225        11.225        .32633E-02   -.14748E-03
  10  Prefactor     5.1131        6.2293        .44456E-02    .24953E-03
  11  Prefactor     4.5736        8.9733        .47062E-02    .41836E-03
  12  Prefactor     .10001E-03    67.551        .90712E-02** at limit **
  13  Prefactor     24.286        24.377        .20321E-02   -.93178E-04
  14  Prefactor     10.341        7.3318        .31149E-02    .61338E-03
  15  Prefactor     .81221        9.5804        .80007E-01    .10335E-02
  16  Prefactor     .10001E-03    26.505        .90712E-02** at limit **
  17  norm          60.944        15.057        .12849E-02    .12126E-02
  18  Prefactor     .10000E-03    9.5372        .90712E-02** at limit **
  19  Prefactor     .10000E-03    40.854        .90712E-02** at limit **
  20  norm          .10000E-03    6.8631        .90712E-02** at limit **
  21  Prefactor     .10000E-03    2.5142        .90712E-02** at limit **
  22  Normalizat    .98565        .21856        .71733E-01    .27661E-04
  23  Prefactor     .91516        .12561        .45200E-01    .17797E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.943339
  Prefactor  = 7.54427
  Prefactor  = 0.0001
  norm       = 3.90507
  Prefactor  = 0.000100016
  Prefactor  = 0.000100172
  Prefactor  = 0.000100003
  Prefactor  = 0.291008
  Prefactor  = 9.42248
  Prefactor  = 5.1131
  Prefactor  = 4.57355
  Prefactor  = 0.000100007
  Prefactor  = 24.2864
  Prefactor  = 10.3412
  Prefactor  = 0.812214
  Prefactor  = 0.000100012
  norm       = 60.9437
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985647
  Prefactor  = 0.915158
 **********
 **   18 **HESSE 
 **********

 FCN=   6619.500     FROM HESSE     STATUS=OK           374 CALLS     2597 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94334        2.1012        .17018E-03   -1.5514    
   2  Prefactor     7.5443        9.9790        .14601E-03   -1.5159    
   3  Prefactor     .10000E-03    7.5373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9051        2.0924        .83582E-04   -1.5313    
   5  Prefactor     .10002E-03    27.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10017E-03    61.611        .43079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .29101        .13618        .19706E-04   -1.5600    
   9  Prefactor     9.4225        11.183        .13053E-03   -1.5094    
  10  Prefactor     5.1131        6.2195        .17782E-03   -1.5256    
  11  Prefactor     4.5736        8.9611        .18825E-03   -1.5280    
  12  Prefactor     .10001E-03    69.281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.286        24.377        .81283E-04   -1.4722    
  14  Prefactor     10.341        7.3501        .12460E-03   -1.5065    
  15  Prefactor     .81221        27.048        .44162E-02   -1.5528    
  16  Prefactor     .10001E-03    27.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          60.944        14.453        .51396E-04   -1.4145    
  18  Prefactor     .10000E-03    9.7430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.8792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5245        .12597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .98565        .25576        .31737E-03   -.93513    
  23  Prefactor     .91516        .14930        .19652E-03   -.95613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41469e-09
Minuit parameter uncertainties:
  1  2.10138
  2  9.98125
  3  5.72774e-06
  4  2.0924
  5  0.00131237
  6  0.00651106
  7  0.000361284
  8  0.136183
  9  11.1857
  10  6.22025
  11  8.96375
  12  0.00141011
  13  24.3872
  14  7.35076
  15  9.37819
  16  0.00112124
  17  14.4537
  18  0.000336911
  19  0.000469196
  20  4.37982e-06
  21  1.06609e-06
  22  0.256078
  23  0.149367
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  1.121e-03  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.152e-01  1.494e-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.856e-01  2.561e-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: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/880484/likelihoodResults_256176001_256435201_4FGL_J2325.7+1821_daily_bin65.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) = 6619.49986629
delta logL = -0.000175265632606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6619.49969227
delta logL = -1.24837606563e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6191       1.0000          .0000       10.000    
     3 'Normalizat'    .98565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91516       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=   6619.500     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      291 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10598E-03    55.408        .36285E-02** at limit **
   2  Index         2.5083        5.7542        .50000        .24587E-04
   3  Normalizat    .98565        .82844E-02    .31737E-03    .12000E-04
   4  Prefactor     .91516        .49938E-02    .19652E-03    .12264E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105977
  Index      = 2.50834
  Normalizat = 0.985647
  Prefactor  = 0.915158
 **********
 **   18 **HESSE 
 **********

 FCN=   6619.500     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10598E-03    251.67        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5083        7.8445        .50000       -.52167    
   3  Normalizat    .98565        .17836E-01    .12695E-04   -.93513    
   4  Prefactor     .91516        .10752E-01    .78607E-05   -.95613    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.39832e-09
Minuit parameter uncertainties:
  1  0.0778972
  2  294.34
  3  0.0178365
  4  0.0107518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880484': 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) = 6619.49969151
delta logL = -4.89360900247e-07

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.060e-04  7.790e-02  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.508e+00  2.943e+02  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.152e-01  1.075e-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:  9.856e-01  1.784e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/880484/cmap_HighResolution_256176001_256435201_4FGL_J2325.7+1821_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-29 18:28:47.066843', job_id='880484', GAL2='0.92', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632965327.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-4.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='65' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:28:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 880484: <4FGL_J2325.7+1821_daily_bin65> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin65> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:15:36 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:15:37 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:15:37 2021
Terminated at Wed Sep 29 18:28:47 2021
Results reported at Wed Sep 29 18:28:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin65 351.436 18.3654 256176001 256435201 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 :                                   642.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            791 sec.

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

