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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin1504
RA = 351.359, Dec = -35.9878
tmin = 629164801, tmax = 629424001
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='869959', job_status='RUN', time_executed='2021-09-29 17:46:39.022897', time_epoch_executed='1632962799.02' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/869959

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/869959/ft1_4FGL_J2325.4-3559_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/869959/ft1_4FGL_J2325.4-3559_daily_bin1504.fits outfile=/scratch/kocevski/869959/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin1504.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=629164801.0 tmax=629424001.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.60
user 3.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/869959/ft1_filtered_4FGL_J2325.4-3559_daily_bin1504.fits" evtable="EVENTS" scfile=/scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits sctable="SC_DATA" outfile=/scratch/kocevski/869959/ltcube_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.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/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits
.....................!
real 11.84
user 11.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/869959/ft1_filtered_4FGL_J2325.4-3559_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/869959/ltcube_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.fits outfile=/scratch/kocevski/869959/expmap_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.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/869959/ltcube_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.fits
.....................!
real 189.81
user 185.52
sys 3.93

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J2325.4-3559 @ 351.359 -35.9878

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/869959/ft1_filtered_4FGL_J2325.4-3559_daily_bin1504.fits scfile=/scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits outfile=/scratch/kocevski/869959/cmap_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.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.359 yref=-35.9878 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/869959/ft1_filtered_4FGL_J2325.4-3559_daily_bin1504.fits scfile=/scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits outfile=/scratch/kocevski/869959/cmap_HighResolution_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.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.359 yref=-35.9878 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/869959/ft1_filtered_4FGL_J2325.4-3559_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/869959/Model_4FGL_J2325.4-3559_daily_bin1504.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/869959/ft1_filtered_4FGL_J2325.4-3559_daily_bin1504.fits.....................!
real 43.47
user 42.23
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/869959/ft1_filtered_4FGL_J2325.4-3559_daily_bin1504.fits', '/scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits', expMap='/scratch/kocevski/869959/expmap_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.fits', expCube='/scratch/kocevski/869959/ltcube_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/869959/Model_4FGL_J2325.4-3559_daily_bin1504.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.4-3559'

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  7.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.129e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/869959/ft1_filtered_4FGL_J2325.4-3559_daily_bin1504.fits
Spacecraft file(s): /scratch/kocevski/869959/ft2_4FGL_J2325.4-3559_daily_bin1504.fits
Exposure map: /scratch/kocevski/869959/expmap_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.fits
Exposure cube: /scratch/kocevski/869959/ltcube_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/869959/Model_4FGL_J2325.4-3559_daily_bin1504.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) = 5509.31463034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3359       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9817       1.0000         .10000E-03   10000.    
     9 'norm      '    .12937E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.912       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.398       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.387       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15770E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10386       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.629       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2272       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .49737       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5509.312     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3704 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.671       -.18828E-06** at limit **
   2  Prefactor     6.3341        4.2593       -.46168E-07   -.32884E-03
   3  Prefactor     .10000E-03    18.493       -.30155E-06** at limit **
   4  Prefactor     .10001E-03    97.269       -.24570E-05** at limit **
   5  Prefactor     7.8385        17.956        .34754E-05    .23764E-04
   6  Prefactor     8.8450        12.112        .41473E-06    .35881E-05
   7  Prefactor     .10000E-03    21.292        .75093E-06** at limit **
   8  Prefactor     2.9817        4.0524        .31921E-07   -.26793E-04
   9  norm          .10000E-03    2.8432       -.98647E-06** at limit **
  10  Prefactor     .10000E-03    7.7405        .30888E-07** at limit **
  11  Prefactor     21.906        11.173       -.62181E-07    .28712E-03
  12  norm          1.3776        .75829       -.38574E-08    .74333E-03
  13  Prefactor     39.396        53.531        .73928E-07   -.14880E-04
  14  Prefactor     .10000E-03    3.9631        .12341E-06** at limit **
  15  norm          .10000E-03    5.6277        .11940E-08** at limit **
  16  norm          .10000E-03    1.2188        .47459E-08** at limit **
  17  norm          15.389        8.9238        .68905E-07   -.19503E-04
  18  Prefactor     .10000E-03    16.306       -.18084E-06** at limit **
  19  Prefactor     .10000E-03    13.774        .45116E-07** at limit **
  20  norm          .10000E-03    1.9540        .51315E-06** at limit **
  21  Prefactor     .10000E-03    3.9277       -.56859E-07** at limit **
  22  norm          .10270        1.9003       -.56290E-08   -.45722E-04
  23  Prefactor     .10001E-03    70.102        .17245E-05** at limit **
  24  Prefactor     .10000E-03    27.563       -.47729E-06** at limit **
  25  Prefactor     11.627        7.0236        .13774E-05    .92916E-04
  26  Prefactor     .10000E-03    4.2956        .29336E-06** at limit **
  27  Prefactor     .10000E-03    81.020       -.87179E-06** at limit **
  28  Normalizat    1.2272        .17195       -.47561E-06   -.46841E-05
  29  Prefactor     .49730        .17958       -.53890E-06   -.18288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.33407
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 7.83853
  Prefactor  = 8.84504
  Prefactor  = 0.0001
  Prefactor  = 2.98173
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.9061
  norm       = 1.37758
  Prefactor  = 39.3965
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.3886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.102703
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 11.6273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2272
  Prefactor  = 0.497298
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.312     FROM HESSE     STATUS=OK           551 CALLS     4255 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3341        4.2589        .11984E-03   -1.5205    
   3  Prefactor     .10000E-03    18.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    98.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8385        18.092        .71614E-03   -1.5148    
   6  Prefactor     8.8450        12.111        .67385E-03   -1.5113    
   7  Prefactor     .10000E-03    22.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9817        4.0432        .16918E-03   -1.5363    
   9  norm          .10000E-03    4.5036        .22485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.906        11.255        .85568E-04   -1.4772    
  12  norm          1.3776        .77019        .39963E-04   -1.5473    
  13  Prefactor     39.396        53.564        .63858E-04   -1.4452    
  14  Prefactor     .10000E-03    3.9770        .14429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6521        .17197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2196        .80019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.389        8.9254        .10210E-03   -1.4923    
  18  Prefactor     .10000E-03    16.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.9253        .19356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.9322        .14368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10270        26.960        .19175E-02   -1.5644    
  23  Prefactor     .10001E-03    70.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.627        7.1522        .58737E-03   -1.5026    
  26  Prefactor     .10000E-03    4.4167        .30051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    81.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2272        .19520        .19675E-03   -.85767    
  29  Prefactor     .49730        .20329        .31752E-03   -1.1210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30637e-08
Minuit parameter uncertainties:
  1  0.000144074
  2  4.25915
  3  6.2196e-05
  4  0.00222767
  5  18.1049
  6  12.114
  7  0.000188965
  8  4.04353
  9  0.00015285
  10  1.6306e-05
  11  11.256
  12  0.770193
  13  53.6295
  14  2.08786e-05
  15  3.58484e-06
  16  2.73249e-07
  17  8.92619
  18  9.99172e-05
  19  1.18865e-05
  20  0.000131215
  21  1.36064e-05
  22  3.32786
  23  0.00137788
  24  0.000219998
  25  7.15274
  26  3.26319e-05
  27  8.96889e-05
  28  0.195316
  29  0.203589
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.539e+01  8.926e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.129e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  4.973e-01  2.036e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.227e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.86
Ra Dec: 351.359 -35.988
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.79e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.12e-05

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): 0
logL (Free Index) = 5509.30762923
delta logL = 0.00472350538894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5509.30735524
delta logL = 0.00499750044673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.346       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0629       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49498       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5509.307     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.311        253.89        .25560E-02    .29818E-04
   2  alpha         2.0596        2.8925        .41976        .21599E-05
   3  Normalizat    1.2310        .20988        .34175E-01    .39342E-07
   4  Prefactor     .49497        .18823        .71875E-01    .30555E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.311
  alpha      = 2.05961
  Normalizat = 1.23103
  Prefactor  = 0.494969
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.307     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.311        9.0524        .10224E-03   -1.4925    
   2  alpha         2.0596        .68242        .15734E-01   -.17708    
   3  Normalizat    1.2310        .19031        .19650E-03   -.85649    
   4  Prefactor     .49497        .20056        .31822E-03   -1.1221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80839e-13
Minuit parameter uncertainties:
  1  9.05317
  2  0.69148
  3  0.190415
  4  0.200845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/869959': 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) = 5509.30733844
delta logL = 0.00501429517044

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.531e+01  9.053e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.060e+00  6.915e-01  0.000e+00  5.000e+00 ( 1.000e+00)
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  4.950e-01  2.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.231e+00  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.84
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 2.06 +/- 0.69
Photon Flux (Free Index): 4.50e-08 +/- 3.86e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.18e-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/869959/cmap_HighResolution_629164801_629424001_4FGL_J2325.4-3559_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.79e-08', energy_flux2='1.95e-05', photon_flux_error='2.78e-08', dlogl='5.01e-03', energy_flux='1.92e-05', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-09-29 17:58:22.946761', photon_index_error2='0.69', photon_index2='2.06', ts='5.86', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.23', time_epoch_completed='1632963502.95', return_code='0', job_id='869959', GAL2='0.49', EG2='1.23', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.86e-08', ts2='5.84', photon_index='2.13' WHERE bin_id='1504' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:58:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 869959: <4FGL_J2325.4-3559_daily_bin1504> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin1504> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 17:46:04 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:46: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 17:46:06 2021
Terminated at Wed Sep 29 17:58:23 2021
Results reported at Wed Sep 29 17:58:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin1504 351.359 -35.9878 629164801 629424001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.4-3559 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

