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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1369
RA = 351.436, Dec = 18.3654
tmin = 594172801, tmax = 594432001
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='887307', job_status='RUN', time_executed='2021-09-29 18:36:16.459244', time_epoch_executed='1632965776.46' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887307

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887307/ft1_4FGL_J2325.7+1821_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887307/ft2_4FGL_J2325.7+1821_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887307/ft1_4FGL_J2325.7+1821_daily_bin1369.fits outfile=/scratch/kocevski/887307/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1369.fits ra=351.436 dec=18.3654 rad=12.0 tmin=594172801.0 tmax=594432001.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 4.15
user 3.89
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887307/ft1_filtered_4FGL_J2325.7+1821_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/887307/ft2_4FGL_J2325.7+1821_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/887307/ltcube_594172801_594432001_4FGL_J2325.7+1821_daily_bin1369.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/887307/ft2_4FGL_J2325.7+1821_daily_bin1369.fits
.....................!
real 11.74
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887307/ft1_filtered_4FGL_J2325.7+1821_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/887307/ft2_4FGL_J2325.7+1821_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/887307/ltcube_594172801_594432001_4FGL_J2325.7+1821_daily_bin1369.fits outfile=/scratch/kocevski/887307/expmap_594172801_594432001_4FGL_J2325.7+1821_daily_bin1369.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/887307/ltcube_594172801_594432001_4FGL_J2325.7+1821_daily_bin1369.fits
.....................!
real 189.44
user 185.03
sys 4.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/887307/ft1_filtered_4FGL_J2325.7+1821_daily_bin1369.fits scfile=/scratch/kocevski/887307/ft2_4FGL_J2325.7+1821_daily_bin1369.fits outfile=/scratch/kocevski/887307/cmap_594172801_594432001_4FGL_J2325.7+1821_daily_bin1369.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887307/ft1_filtered_4FGL_J2325.7+1821_daily_bin1369.fits scfile=/scratch/kocevski/887307/ft2_4FGL_J2325.7+1821_daily_bin1369.fits outfile=/scratch/kocevski/887307/cmap_HighResolution_594172801_594432001_4FGL_J2325.7+1821_daily_bin1369.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887307/ft1_filtered_4FGL_J2325.7+1821_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/887307/ft2_4FGL_J2325.7+1821_daily_bin1369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887307/Model_4FGL_J2325.7+1821_daily_bin1369.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/887307/ft1_filtered_4FGL_J2325.7+1821_daily_bin1369.fits.....................!
real 79.87
user 78.52
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.733       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.523       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41043       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9959       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2684       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11306       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26624E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0846       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19372E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .55107E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.865       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.950       1.0000         .10000E-03   10000.    
    20 'norm      '    11.316       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.887       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95615       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94797       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=   7136.401     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2988 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3187        .18265E-08** at limit **
   2  Prefactor     15.734        13.330        .45809E-06    .42190E-04
   3  Prefactor     .10000E-03    5.6056        .44481E-08** at limit **
   4  norm          3.3514        2.0034       -.19809E-06   -.68873E-04
   5  Prefactor     .10000E-03    6.5987       -.34516E-08** at limit **
   6  Prefactor     17.528        14.779        .28873E-05    .44006E-03
   7  Prefactor     .10000E-03    3.9616        .94582E-09** at limit **
   8  Prefactor     .41047        .14535       -.65352E-08   -.41816E-03
   9  Prefactor     .10000E-03    13.760        .11551E-05** at limit **
  10  Prefactor     2.9983        6.7072       -.72612E-06   -.25846E-03
  11  Prefactor     3.2696        8.7787       -.11247E-06   -.97442E-04
  12  Prefactor     .22185        21.377       -.29956E-06   -.28394E-04
  13  Prefactor     .10037E-03    20.043        .17714E-05** at limit **
  14  Prefactor     5.0880        4.3562        .13267E-05   -.20612E-02
  15  Prefactor     .10000E-03    5.2415        .42535E-06** at limit **
  16  Prefactor     .10000E-03    13.756       -.13613E-05** at limit **
  17  norm          .10001E-03    7.2354        .15340E-06** at limit **
  18  Prefactor     16.878        10.825        .86224E-06    .33044E-04
  19  Prefactor     19.919        25.377       -.42974E-05   -.30791E-03
  20  norm          11.318        12.086        .92566E-06    .14271E-03
  21  Prefactor     11.888        9.5400       -.72752E-06   -.24623E-03
  22  Normalizat    .95597        .21187       -.66508E-06   -.97511E-04
  23  Prefactor     .94786        .11626       -.16543E-06   -.19036E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.7342
  Prefactor  = 0.0001
  norm       = 3.35136
  Prefactor  = 0.0001
  Prefactor  = 17.5276
  Prefactor  = 0.0001
  Prefactor  = 0.410467
  Prefactor  = 0.0001
  Prefactor  = 2.99834
  Prefactor  = 3.26961
  Prefactor  = 0.221848
  Prefactor  = 0.000100372
  Prefactor  = 5.08798
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 16.8776
  Prefactor  = 19.9189
  norm       = 11.3175
  Prefactor  = 11.8882
  Normalizat = 0.955974
  Prefactor  = 0.947864
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.401     FROM HESSE     STATUS=OK           386 CALLS     3374 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3323        .94592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.734        13.333        .10098E-03   -1.4914    
   3  Prefactor     .10000E-03    5.6131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3514        2.0049        .87725E-04   -1.5342    
   5  Prefactor     .10000E-03    6.5994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.528        14.908        .95679E-04   -1.4870    
   7  Prefactor     .10000E-03    3.9623        .16421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .41047        .14443        .18310E-04   -1.5580    
   9  Prefactor     .10000E-03    13.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9983        6.7221        .23452E-03   -1.5362    
  11  Prefactor     3.2696        8.7757        .22400E-03   -1.5346    
  12  Prefactor     .22185        25.897        .10342       -1.5614    
  13  Prefactor     .10037E-03    168.38        .71358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0880        6.4318        .89155E-03   -1.5257    
  15  Prefactor     .10000E-03    21.003        .36662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    52.318        .39063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.878        9.9862        .97527E-04   -1.4886    
  19  Prefactor     19.919        25.653        .89673E-04   -1.4815    
  20  norm          11.318        12.098        .11910E-03   -1.5035    
  21  Prefactor     11.888        9.6069        .11619E-03   -1.5018    
  22  Normalizat    .95597        .24601        .33245E-03   -.94520    
  23  Prefactor     .94786        .13488        .19313E-03   -.94488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45963e-09
Minuit parameter uncertainties:
  1  9.32067e-07
  2  13.3354
  3  8.49132e-07
  4  2.00491
  5  6.90098e-07
  6  14.9114
  7  4.07215e-07
  8  0.144428
  9  3.29608e-05
  10  6.72382
  11  8.77913
  12  4.79491
  13  0.0158826
  14  6.43268
  15  0.000317039
  16  9.7944e-05
  17  0.00110711
  18  9.98716
  19  25.6667
  20  12.1004
  21  9.60813
  22  0.246298
  23  0.134924
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  9.794e-05  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.479e-01  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:  9.560e-01  2.463e-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: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887307/likelihoodResults_594172801_594432001_4FGL_J2325.7+1821_daily_bin1369.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) = 7136.40179864
delta logL = -0.000344621129443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7136.40145399
delta logL = 2.70538293989e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4037       1.0000          .0000       10.000    
     3 'Normalizat'    .95589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94792       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=   7136.401     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10230E-03    125.61        .18142E-02** at limit **
   2  Index         2.3344        6.5446        .50000        .14422E-04
   3  Normalizat    .95597        .15177E-01    .33245E-03    .45926E-04
   4  Prefactor     .94786        .88431E-02    .19313E-03    .67436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102299
  Index      = 2.33436
  Normalizat = 0.955975
  Prefactor  = 0.947865
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.401     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10230E-03    521.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3344        7.4120        .50000       -.56229    
   3  Normalizat    .95597        .32054E-01    .13298E-04   -.94520    
   4  Prefactor     .94786        .18677E-01    .38626E-04   -.94488    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27477e-08
Minuit parameter uncertainties:
  1  0.0698625
  2  677.273
  3  0.0320546
  4  0.0186769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887307': 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) = 7136.40145373
delta logL = 2.89111994789e-07

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.023e-04  6.986e-02  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.334e+00  6.773e+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.479e-01  1.868e-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.560e-01  3.205e-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/887307/cmap_HighResolution_594172801_594432001_4FGL_J2325.7+1821_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-29 18:48:33.560378', job_id='887307', GAL2='0.95', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632966513.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1369' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:48:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 887307: <4FGL_J2325.7+1821_daily_bin1369> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1369> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:36:04 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:36: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:36:06 2021
Terminated at Wed Sep 29 18:48:33 2021
Results reported at Wed Sep 29 18:48:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1369 351.436 18.3654 594172801 594432001 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

