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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin666
RA = 351.436, Dec = 18.3654
tmin = 411955201, tmax = 412214401
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='884703', job_status='RUN', time_executed='2021-09-29 18:26:32.862596', time_epoch_executed='1632965192.86' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884703/ft1_4FGL_J2325.7+1821_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884703/ft2_4FGL_J2325.7+1821_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884703/ft1_4FGL_J2325.7+1821_daily_bin666.fits outfile=/scratch/kocevski/884703/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin666.fits ra=351.436 dec=18.3654 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.56
user 5.30
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884703/ft2_4FGL_J2325.7+1821_daily_bin666.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/884703/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/884703/ft1_filtered_4FGL_J2325.7+1821_daily_bin666.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/884703/ft1_filtered_4FGL_J2325.7+1821_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/884703/ft2_4FGL_J2325.7+1821_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/884703/ltcube_411955201_412214401_4FGL_J2325.7+1821_daily_bin666.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/884703/ft2_4FGL_J2325.7+1821_daily_bin666.fits
.....................!
real 11.90
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884703/ft1_filtered_4FGL_J2325.7+1821_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/884703/ft2_4FGL_J2325.7+1821_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/884703/ltcube_411955201_412214401_4FGL_J2325.7+1821_daily_bin666.fits outfile=/scratch/kocevski/884703/expmap_411955201_412214401_4FGL_J2325.7+1821_daily_bin666.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/884703/ltcube_411955201_412214401_4FGL_J2325.7+1821_daily_bin666.fits
.....................!
real 190.97
user 185.62
sys 5.03

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/884703/ft1_filtered_4FGL_J2325.7+1821_daily_bin666.fits scfile=/scratch/kocevski/884703/ft2_4FGL_J2325.7+1821_daily_bin666.fits outfile=/scratch/kocevski/884703/cmap_411955201_412214401_4FGL_J2325.7+1821_daily_bin666.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884703/ft1_filtered_4FGL_J2325.7+1821_daily_bin666.fits scfile=/scratch/kocevski/884703/ft2_4FGL_J2325.7+1821_daily_bin666.fits outfile=/scratch/kocevski/884703/cmap_HighResolution_411955201_412214401_4FGL_J2325.7+1821_daily_bin666.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884703/ft1_filtered_4FGL_J2325.7+1821_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/884703/ft2_4FGL_J2325.7+1821_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884703/Model_4FGL_J2325.7+1821_daily_bin666.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/884703/ft1_filtered_4FGL_J2325.7+1821_daily_bin666.fits....................!
real 46.62
user 45.37
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10715E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9217       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4686       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.223       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12706       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24473E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.831       1.0000         .10000E-03   10000.    
    20 'norm      '    .10653E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0173       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .54678       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0771       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=   3379.426     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2646 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    3.3438       -.10935E-05** at limit **
   2  Prefactor     .10000E-03    10.407        .24285E-06** at limit **
   3  Prefactor     1.9195        23.484        .11522E-04    .66293E-04
   4  norm          2.4684        2.1578       -.17692E-06   -.10022E-03
   5  Prefactor     .10000E-03    35.145       -.11664E-05** at limit **
   6  Prefactor     25.211        19.503        .22907E-05   -.93255E-04
   7  Prefactor     .10000E-03    19.190        .65117E-07** at limit **
   8  Prefactor     2.0059        .36712        .12153E-07   -.58921E-03
   9  Prefactor     4.2392        12.344       -.47687E-06   -.27977E-04
  10  Prefactor     .10000E-03    36.065        .98031E-06** at limit **
  11  Prefactor     .10000E-03    9.6117        .27986E-07** at limit **
  12  Prefactor     .10149E-03    53.582       -.10753E-05** at limit **
  13  Prefactor     .10000E-03    15.556       -.34248E-08** at limit **
  14  Prefactor     .10000E-03    8.0282        .19658E-07** at limit **
  15  Prefactor     .10000E-03    10.557       -.59164E-07** at limit **
  16  Prefactor     .10058E-03    51.905        .80906E-05** at limit **
  17  norm          .10000E-03    14.138        .53590E-07** at limit **
  18  Prefactor     .10000E-03    8.6994        .60106E-07** at limit **
  19  Prefactor     16.839        49.707        .13689E-05   -.53142E-05
  20  norm          .10000E-03    48.640       -.29410E-06** at limit **
  21  Prefactor     6.0151        9.3790        .13824E-06   -.49045E-04
  22  Normalizat    .54698        .32897       -.65742E-05   -.18059E-03
  23  Prefactor     1.0772        .18723        .11732E-05   -.27731E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100059
  Prefactor  = 0.0001
  Prefactor  = 1.91947
  norm       = 2.46836
  Prefactor  = 0.0001
  Prefactor  = 25.2105
  Prefactor  = 0.0001
  Prefactor  = 2.00589
  Prefactor  = 4.23923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100585
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8389
  norm       = 0.0001
  Prefactor  = 6.01512
  Normalizat = 0.546978
  Prefactor  = 1.0772
 **********
 **   18 **HESSE 
 **********

 FCN=   3379.426     FROM HESSE     STATUS=OK           376 CALLS     3022 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    36.687        .19019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9195        24.037        .14987E-02   -1.5431    
   4  norm          2.4684        2.1526        .76037E-04   -1.5394    
   5  Prefactor     .10000E-03    35.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.211        19.528        .79763E-04   -1.4703    
   7  Prefactor     .10000E-03    19.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0059        .36651        .14246E-04   -1.5425    
   9  Prefactor     4.2392        12.333        .19571E-03   -1.5296    
  10  Prefactor     .10000E-03    37.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6164        .17604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10149E-03    63.091        .10352       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1084        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10058E-03    302.36        .71203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7490        .16743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.839        49.753        .97624E-04   -1.4887    
  20  norm          .10000E-03    49.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0151        9.3650        .16369E-03   -1.5217    
  22  Normalizat    .54698        .34405        .43012E-03   -1.1029    
  23  Prefactor     1.0772        .20606        .18601E-03   -.90199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83318e-09
Minuit parameter uncertainties:
  1  0.00295194
  2  1.75628e-05
  3  13.5914
  4  2.15267
  5  7.44461e-05
  6  19.5329
  7  1.06932e-05
  8  0.366513
  9  12.3406
  10  7.40173e-07
  11  6.77669e-06
  12  0.0193961
  13  1.23868e-05
  14  8.72159e-06
  15  3.51174e-06
  16  0.0267263
  17  1.2335e-05
  18  1.21239e-05
  19  49.8756
  20  0.000187337
  21  9.36726
  22  0.345397
  23  0.206213
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.006e-04  2.673e-02  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.077e+00  2.062e-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:  5.470e-01  3.454e-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: 1.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884703/likelihoodResults_411955201_412214401_4FGL_J2325.7+1821_daily_bin666.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) = 3379.42621623
delta logL = -1.52109387273e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3379.42621623
delta logL = -1.52078978317e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4317       1.0000          .0000       10.000    
     3 'Normalizat'    .54697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0772       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=   3377.524     FROM MIGRAD    STATUS=CONVERGED    161 CALLS      332 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38698E-03    .77196E-02    .22737E-03** at limit **
   2  Index         8.3212        2.8300        .10231        .88299E-04
   3  Normalizat    .32426        .10150        .12454        .94831E-04
   4  Prefactor     1.1667        .60635E-01    .38525E-01    .91918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000386983
  Index      = 8.32117
  Normalizat = 0.324256
  Prefactor  = 1.16673
 **********
 **   18 **HESSE 
 **********

 FCN=   3377.524     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      365 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38698E-03    .12579E-01    .90268E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3212        7.7581        .44123E-02    .72647    
   3  Normalizat    .32426        .29308        .55172E-03   -1.2142    
   4  Prefactor     1.1667        .17392        .17933E-03   -.87361    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77292e-10
Minuit parameter uncertainties:
  1  0.00379995
  2  4.41405
  3  0.294474
  4  0.174005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884703': 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) = 3377.52387712
delta logL = 1.90232390706

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.870e-04  3.800e-03  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  8.321e+00  4.414e+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.167e+00  1.740e-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:  3.243e-01  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.23
Ra Dec: 351.436 18.365
Photon Index (Free Index): 8.32 +/- 4.41
Photon Flux (Free Index): 1.66e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.91e-05 +/- 1.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/884703/cmap_HighResolution_411955201_412214401_4FGL_J2325.7+1821_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', energy_flux2='1.91e-05', dlogl='1.90e+00', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-29 18:35:14.777188', photon_index_error2='4.41', photon_index2='8.32', ts='-0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.89e-07', energy_flux_error2='1.27e-05', EG='0.55', time_epoch_completed='1632965714.78', return_code='0', job_id='884703', GAL2='1.17', EG2='0.32', return_code2='102', photon_flux_error2='1.08e-07', ts2='4.23', photon_index='2.43' WHERE bin_id='666' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:35:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 884703: <4FGL_J2325.7+1821_daily_bin666> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin666> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:26:20 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:26:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:26:21 2021
Terminated at Wed Sep 29 18:35:15 2021
Results reported at Wed Sep 29 18:35:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin666 351.436 18.3654 411955201 412214401 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 :                                   511.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            535 sec.

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

