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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin189
RA = 351.359, Dec = -35.9878
tmin = 288316801, tmax = 288576001
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='864226', job_status='RUN', time_executed='2021-09-29 17:29:34.626419', time_epoch_executed='1632961774.63' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864226/ft1_4FGL_J2325.4-3559_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864226/ft1_4FGL_J2325.4-3559_daily_bin189.fits outfile=/scratch/kocevski/864226/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin189.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=288316801.0 tmax=288576001.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.85
user 3.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.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/864226/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin189.fits evtable="EVENTS" outfile="/scratch/kocevski/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.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.50
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/864226/ltcube_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.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/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits
.....................!
real 11.75
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/864226/ltcube_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.fits outfile=/scratch/kocevski/864226/expmap_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.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/864226/ltcube_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.fits
.....................!
real 190.24
user 185.05
sys 4.84

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/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.fits scfile=/scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits outfile=/scratch/kocevski/864226/cmap_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.fits scfile=/scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits outfile=/scratch/kocevski/864226/cmap_HighResolution_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/864226/Model_4FGL_J2325.4-3559_daily_bin189.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/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.fits.....................!
real 35.77
user 34.46
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.fits', '/scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits', expMap='/scratch/kocevski/864226/expmap_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.fits', expCube='/scratch/kocevski/864226/ltcube_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/864226/Model_4FGL_J2325.4-3559_daily_bin189.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/864226/ft1_filtered_4FGL_J2325.4-3559_daily_bin189.fits
Spacecraft file(s): /scratch/kocevski/864226/ft2_4FGL_J2325.4-3559_daily_bin189.fits
Exposure map: /scratch/kocevski/864226/expmap_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.fits
Exposure cube: /scratch/kocevski/864226/ltcube_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/864226/Model_4FGL_J2325.4-3559_daily_bin189.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) = 4021.15170936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13624E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10932E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12071E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3360       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    66.342       1.0000         .10000E-03   10000.    
    20 'norm      '    .36558       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9130       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15980E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3279       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.3566       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1335       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1095       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=   4021.141     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3688 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.855        .13131E-05** at limit **
   2  Prefactor     .10000E-03    2.6355        .30015E-07** at limit **
   3  Prefactor     .10000E-03    9.9920       -.57235E-07** at limit **
   4  Prefactor     .10070E-03    660.56       -.16509E-04** at limit **
   5  Prefactor     .10000E-03    28.128       -.21069E-06** at limit **
   6  Prefactor     .10000E-03    47.886       -.15013E-05** at limit **
   7  Prefactor     14.124        16.927        .68211E-06    .85619E-04
   8  Prefactor     .10000E-03    1.8060       -.52086E-07** at limit **
   9  norm          .10000E-03    1.5771       -.37339E-07** at limit **
  10  Prefactor     .10000E-03    6.4898       -.40731E-07** at limit **
  11  Prefactor     .10000E-03    5.8471       -.15124E-06** at limit **
  12  norm          1.0684        .75545        .76252E-07    .45284E-03
  13  Prefactor     .10000E-03    88.810       -.55738E-06** at limit **
  14  Prefactor     .10000E-03    7.5738       -.88761E-07** at limit **
  15  norm          .10000E-03    4.3784        .16916E-08** at limit **
  16  norm          .10000E-03    4.0570        .12001E-06** at limit **
  17  norm          2.3345        23.935        .40006E-05    .28293E-03
  18  Prefactor     .10000E-03    46.587        .66443E-06** at limit **
  19  Prefactor     66.331        74.120        .10326E-05    .91153E-04
  20  norm          .36924        14.172        .15416E-04   -.24854E-03
  21  Prefactor     .10000E-03    16.594        .24568E-06** at limit **
  22  norm          2.9125        3.0492       -.48039E-06   -.46015E-03
  23  Prefactor     .10013E-03    444.97       -.18652E-04** at limit **
  24  Prefactor     .10000E-03    55.079       -.50019E-06** at limit **
  25  Prefactor     .10000E-03    8.5053       -.14770E-06** at limit **
  26  Prefactor     7.3249        10.082        .36657E-06    .89869E-04
  27  Prefactor     8.3671        150.85        .62547E-05    .47257E-04
  28  Normalizat    1.1337        .24323       -.14019E-05   -.79397E-04
  29  Prefactor     1.1096        .24906       -.78826E-06   -.89614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100701
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.1245
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.33453
  Prefactor  = 0.0001
  Prefactor  = 66.3314
  norm       = 0.369236
  Prefactor  = 0.0001
  norm       = 2.91254
  Prefactor  = 0.000100135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.32495
  Prefactor  = 8.36709
  Normalizat = 1.13368
  Prefactor  = 1.10962
 **********
 **   18 **HESSE 
 **********

 FCN=   4021.141     FROM HESSE     STATUS=OK           543 CALLS     4231 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6526        .10043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10070E-03    693.81        .36364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.124        16.976        .10656E-03   -1.4956    
   8  Prefactor     .10000E-03    1.8063        .83229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5801        .77766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4956        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8751        .14964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0684        .74882        .44474E-04   -1.5501    
  13  Prefactor     .10000E-03    88.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5946        .17038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3791        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0694        .12456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3345        24.073        .26828E-03   -1.5402    
  18  Prefactor     .10000E-03    46.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     66.331        74.021        .49275E-04   -1.4077    
  20  norm          .36924        14.362        .22356E-02   -1.5586    
  21  Prefactor     .10000E-03    16.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9125        3.0550        .10936E-03   -1.5367    
  23  Prefactor     .10013E-03    450.32        .20420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    55.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.6919        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.3249        10.099        .14817E-03   -1.5167    
  27  Prefactor     8.3671        151.62        .13868E-03   -1.5129    
  28  Normalizat    1.1337        .30550        .24818E-03   -.88678    
  29  Prefactor     1.1096        .31238        .26844E-03   -.89160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70342e-09
Minuit parameter uncertainties:
  1  0.000445522
  2  2.78268e-06
  3  7.93105e-06
  4  0.0446231
  5  8.60519e-05
  6  0.000589121
  7  16.9819
  8  5.38497e-06
  9  3.26318e-06
  10  7.35431e-06
  11  2.70508e-05
  12  0.748827
  13  0.000379146
  14  1.75658e-05
  15  5.64504e-07
  16  2.67433e-05
  17  15.0006
  18  0.000182987
  19  74.1242
  20  4.60622
  21  6.77251e-05
  22  3.05512
  23  0.0157123
  24  0.000155062
  25  4.11391e-05
  26  10.1013
  27  71.4473
  28  0.305979
  29  0.312894
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  2.335e+00  1.500e+01  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:  1.110e+00  3.129e-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.134e+00  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 351.359 -35.988
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/864226/likelihoodResults_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.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): 0
logL (Free Index) = 4020.33954083
delta logL = 0.801173881203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4020.21887842
delta logL = 0.921836295411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7071       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6574       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1742       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=   4020.219     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      251 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7160        117.89        .42034E-02    .10358E-02
   2  alpha         3.6560        4.0046        .34836        .98159E-04
   3  Normalizat    1.0217        .86196E-01    .43103E-01    .41105E-03
   4  Prefactor     1.1743        .93486E-01    .59132E-01    .30363E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.716
  alpha      = 3.65598
  Normalizat = 1.0217
  Prefactor  = 1.17429
 **********
 **   18 **HESSE 
 **********

 FCN=   4020.219     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7160        9.9320        .11514E-03   -1.5230    
   2  alpha         3.6560        1.1653        .14742E-01    .48069    
   3  Normalizat    1.0217        .30178        .25917E-03   -.92307    
   4  Prefactor     1.1743        .31638        .26151E-03   -.87126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01924e-10
Minuit parameter uncertainties:
  1  9.93487
  2  1.22699
  3  0.302283
  4  0.316887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864226': 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) = 4020.21887741
delta logL = 0.921837302042

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  5.716e+00  9.935e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  3.656e+00  1.227e+00  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:  1.174e+00  3.169e-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.022e+00  3.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 3.66 +/- 1.23
Photon Flux (Free Index): 1.05e-07 +/- 8.85e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.53e-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/864226/cmap_HighResolution_288316801_288576001_4FGL_J2325.4-3559_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-05', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='9.22e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-29 17:40:03.592735', photon_index_error2='1.23', photon_index2='3.66', ts='0.03', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.53e-05', EG='1.13', time_epoch_completed='1632962403.59', return_code='0', job_id='864226', GAL2='1.17', EG2='1.02', return_code2='0', photon_flux_error2='8.85e-08', ts2='1.97', photon_index='2.13' WHERE bin_id='189' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:40:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 864226: <4FGL_J2325.4-3559_daily_bin189> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin189> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 17:25:32 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:25:34 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:25:34 2021
Terminated at Wed Sep 29 17:40:04 2021
Results reported at Wed Sep 29 17:40:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin189 351.359 -35.9878 288316801 288576001 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

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

