/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 3 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.7+1821_daily_bin405
RA = 351.436, Dec = 18.3654
tmin = 344304001, tmax = 344563201
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='883159', job_status='RUN', time_executed='2021-09-29 18:20:47.901758', time_epoch_executed='1632964847.9' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883159/ft1_4FGL_J2325.7+1821_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883159/ft2_4FGL_J2325.7+1821_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883159/ft1_4FGL_J2325.7+1821_daily_bin405.fits outfile=/scratch/kocevski/883159/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin405.fits ra=351.436 dec=18.3654 rad=12.0 tmin=344304001.0 tmax=344563201.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.39
user 3.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883159/ft1_filtered_4FGL_J2325.7+1821_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/883159/ft2_4FGL_J2325.7+1821_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/883159/ltcube_344304001_344563201_4FGL_J2325.7+1821_daily_bin405.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/883159/ft2_4FGL_J2325.7+1821_daily_bin405.fits
.....................!
real 11.70
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883159/ft1_filtered_4FGL_J2325.7+1821_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/883159/ft2_4FGL_J2325.7+1821_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/883159/ltcube_344304001_344563201_4FGL_J2325.7+1821_daily_bin405.fits outfile=/scratch/kocevski/883159/expmap_344304001_344563201_4FGL_J2325.7+1821_daily_bin405.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/883159/ltcube_344304001_344563201_4FGL_J2325.7+1821_daily_bin405.fits
.....................!
real 190.08
user 185.10
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/883159/ft1_filtered_4FGL_J2325.7+1821_daily_bin405.fits scfile=/scratch/kocevski/883159/ft2_4FGL_J2325.7+1821_daily_bin405.fits outfile=/scratch/kocevski/883159/cmap_344304001_344563201_4FGL_J2325.7+1821_daily_bin405.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883159/ft1_filtered_4FGL_J2325.7+1821_daily_bin405.fits scfile=/scratch/kocevski/883159/ft2_4FGL_J2325.7+1821_daily_bin405.fits outfile=/scratch/kocevski/883159/cmap_HighResolution_344304001_344563201_4FGL_J2325.7+1821_daily_bin405.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/883159/ft1_filtered_4FGL_J2325.7+1821_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/883159/ft2_4FGL_J2325.7+1821_daily_bin405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883159/Model_4FGL_J2325.7+1821_daily_bin405.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/883159/ft1_filtered_4FGL_J2325.7+1821_daily_bin405.fits.....................!
real 71.73
user 70.42
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7143       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7451       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2467       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53163E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.946       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0797       1.0000         .10000E-03   10000.    
    17 'norm      '    .36938E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4507       1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.648       1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61634       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1059       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=   6628.965     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2614 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1384        .35345E-07** at limit **
   2  Prefactor     1.7083        5.7055       -.32128E-05   -.44633E-03
   3  Prefactor     3.7403        8.2160       -.43245E-06   -.95479E-04
   4  norm          3.2465        1.6040        .13816E-07    .14020E-03
   5  Prefactor     .10000E-03    11.731       -.34124E-07** at limit **
   6  Prefactor     .10000E-03    3.8629       -.31911E-07** at limit **
   7  Prefactor     .10000E-03    6.3608        .38495E-07** at limit **
   8  Prefactor     .51200E-02    .46402E-01   -.52856E-07   -.33782E-03
   9  Prefactor     12.625        9.0934       -.41497E-06    .95795E-04
  10  Prefactor     13.685        7.0599       -.30637E-07    .13109E-03
  11  Prefactor     15.084        11.956       -.25839E-05    .47152E-03
  12  Prefactor     19.949        21.847       -.26218E-05    .15386E-03
  13  Prefactor     .10000E-03    22.886       -.28345E-06** at limit **
  14  Prefactor     4.1307        6.4129       -.16594E-05   -.53250E-03
  15  Prefactor     8.6346        8.8009        .93843E-06    .12176E-03
  16  Prefactor     2.0769        43.162        .12556E-04   -.18444E-03
  17  norm          .10002E-03    7.9019       -.16078E-05** at limit **
  18  Prefactor     4.4397        9.8128        .42377E-06    .17715E-03
  19  Prefactor     58.683        35.055        .32862E-05   -.75978E-05
  20  norm          .10000E-03    7.8548       -.61499E-07** at limit **
  21  Prefactor     .10000E-03    2.6666        .64170E-08** at limit **
  22  Normalizat    .61634        .20159        .41914E-06    .14276E-03
  23  Prefactor     1.1059        .12046        .13050E-06    .26439E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.70832
  Prefactor  = 3.74027
  norm       = 3.2465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00512002
  Prefactor  = 12.6246
  Prefactor  = 13.6847
  Prefactor  = 15.0844
  Prefactor  = 19.9492
  Prefactor  = 0.0001
  Prefactor  = 4.13068
  Prefactor  = 8.63455
  Prefactor  = 2.07694
  norm       = 0.000100017
  Prefactor  = 4.43968
  Prefactor  = 58.6831
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.616338
  Prefactor  = 1.10591
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.965     FROM HESSE     STATUS=OK           384 CALLS     2998 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1596        .84712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7083        5.9944        .32097E-03   -1.5447    
   3  Prefactor     3.7403        8.1863        .20864E-03   -1.5321    
   4  norm          3.2465        1.6054        .70611E-04   -1.5348    
   5  Prefactor     .10000E-03    11.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8819        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .51200E-02    .28285        .33590E-03   -1.5694    
   9  Prefactor     12.625        9.0930        .11273E-03   -1.4997    
  10  Prefactor     13.685        7.0505        .10827E-03   -1.4968    
  11  Prefactor     15.084        11.803        .10315E-03   -1.4931    
  12  Prefactor     19.949        21.823        .89682E-04   -1.4814    
  13  Prefactor     .10000E-03    23.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1307        6.3941        .19834E-03   -1.5301    
  15  Prefactor     8.6346        8.9396        .13637E-03   -1.5120    
  16  Prefactor     2.0769        39.343        .28636E-03   -1.5420    
  17  norm          .10002E-03    21.905        .55435E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4397        10.192        .19087E-03   -1.5287    
  19  Prefactor     58.683        35.309        .52387E-04   -1.4174    
  20  norm          .10000E-03    7.8767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6844        .12982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .61634        .22327        .35590E-03   -1.0729    
  23  Prefactor     1.1059        .13589        .17143E-03   -.89278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14016e-08
Minuit parameter uncertainties:
  1  4.62976e-06
  2  5.9965
  3  8.1888
  4  1.60546
  5  4.40275e-06
  6  2.17132e-06
  7  1.74745e-06
  8  0.0753637
  9  9.09401
  10  7.0509
  11  11.805
  12  21.8319
  13  4.99455e-05
  14  6.39519
  15  8.94096
  16  18.0923
  17  0.00120374
  18  10.1957
  19  35.3216
  20  5.77297e-06
  21  2.04293e-06
  22  0.223598
  23  0.135937
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  2.077e+00  1.809e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.106e+00  1.359e-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:  6.163e-01  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/883159/likelihoodResults_344304001_344563201_4FGL_J2325.7+1821_daily_bin405.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) = 6628.94834492
delta logL = 0.0168983650465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6628.92368784
delta logL = 0.041555443685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2763       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9447       1.0000          .0000       10.000    
     3 'Normalizat'    .61793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1031       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=   6628.924     FROM MIGRAD    STATUS=FAILED        85 CALLS      301 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2880        24.880        .14870E-03   -.95460E-03
   2  Index         1.9460        1.2016        .11687E-01   -.57131E-03
   3  Normalizat    .61811        .21044        .35540E-03    .14205E-02
   4  Prefactor     1.1029        .13394        .17162E-03    .34385E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6628.924     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      369 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2880        24.880        .57824E-03   -1.5168    
   2  Index         1.9460        1.2016        .15014E-02   -.65707    
   3  Normalizat    .61811        .21044        .63700E-03   -1.0722    
   4  Prefactor     1.1029        .13394        .27802E-03   -.89372    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6628.924     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      397 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2896        24.583        .29739E-04   -.13762E-03
   2  Index         1.9462        1.1880        .46749E-03   -.16712E-04
   3  Normalizat    .61811        .21052        .71080E-04   -.13115E-04
   4  Prefactor     1.1029        .13397        .34325E-04   -.18415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.28963
  Index      = 1.9462
  Normalizat = 0.618113
  Prefactor  = 1.10294
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.924     FROM HESSE     STATUS=OK            23 CALLS      420 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2896        24.571        .59478E-05   -1.5168    
   2  Index         1.9462        1.1876        .93497E-04   -.65702    
   3  Normalizat    .61811        .21046        .28432E-05   -1.0722    
   4  Prefactor     1.1029        .13394        .68650E-05   -.89373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65922e-10
Minuit parameter uncertainties:
  1  24.605
  2  1.20621
  3  0.210733
  4  0.133982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883159': 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) = 6628.92368632
delta logL = 0.0415569649031

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  7.290e+00  2.460e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  1.946e+00  1.206e+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.103e+00  1.340e-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:  6.181e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/883159/cmap_HighResolution_344304001_344563201_4FGL_J2325.7+1821_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-29 18:32:31.898120', job_id='883159', GAL2='1.10', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632965551.9', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.16e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='405' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:32:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 883159: <4FGL_J2325.7+1821_daily_bin405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin405 351.436 18.3654 344304001 344563201 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 :                                   689.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            718 sec.

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

