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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin1085
RA = 351.359, Dec = -35.9878
tmin = 520560001, tmax = 520819201
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='868335', job_status='RUN', time_executed='2021-09-29 17:44:33.845932', time_epoch_executed='1632962673.85' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868335

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868335/ft1_4FGL_J2325.4-3559_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868335/ft2_4FGL_J2325.4-3559_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868335/ft1_4FGL_J2325.4-3559_daily_bin1085.fits outfile=/scratch/kocevski/868335/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin1085.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=520560001.0 tmax=520819201.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.88
user 3.65
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/868335/ft2_4FGL_J2325.4-3559_daily_bin1085.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/868335/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/868335/ft1_filtered_4FGL_J2325.4-3559_daily_bin1085.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.41
user 0.27
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868335/ft1_filtered_4FGL_J2325.4-3559_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/868335/ft2_4FGL_J2325.4-3559_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/868335/ltcube_520560001_520819201_4FGL_J2325.4-3559_daily_bin1085.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/868335/ft2_4FGL_J2325.4-3559_daily_bin1085.fits
.....................!
real 9.07
user 8.77
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868335/ft1_filtered_4FGL_J2325.4-3559_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/868335/ft2_4FGL_J2325.4-3559_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/868335/ltcube_520560001_520819201_4FGL_J2325.4-3559_daily_bin1085.fits outfile=/scratch/kocevski/868335/expmap_520560001_520819201_4FGL_J2325.4-3559_daily_bin1085.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/868335/ltcube_520560001_520819201_4FGL_J2325.4-3559_daily_bin1085.fits
.....................!
real 139.91
user 136.69
sys 2.99

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/868335/ft1_filtered_4FGL_J2325.4-3559_daily_bin1085.fits scfile=/scratch/kocevski/868335/ft2_4FGL_J2325.4-3559_daily_bin1085.fits outfile=/scratch/kocevski/868335/cmap_520560001_520819201_4FGL_J2325.4-3559_daily_bin1085.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.45
user 0.31
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868335/ft1_filtered_4FGL_J2325.4-3559_daily_bin1085.fits scfile=/scratch/kocevski/868335/ft2_4FGL_J2325.4-3559_daily_bin1085.fits outfile=/scratch/kocevski/868335/cmap_HighResolution_520560001_520819201_4FGL_J2325.4-3559_daily_bin1085.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.44
user 0.29
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/868335/ft1_filtered_4FGL_J2325.4-3559_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/868335/ft2_4FGL_J2325.4-3559_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/868335/Model_4FGL_J2325.4-3559_daily_bin1085.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/868335/ft1_filtered_4FGL_J2325.4-3559_daily_bin1085.fits.....................!
real 32.65
user 31.59
sys 0.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.553       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8072       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0462       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44338E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    104.74       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7946       1.0000         .10000E-03   10000.    
    15 'norm      '    .40160E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1069       1.0000         .10000E-03   10000.    
    17 'norm      '    .12710E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.317       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6747       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    132.55       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.290       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.333       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .52260       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95108       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=   5723.236     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3793 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.553        29.085        .42883E-07    .60449E-06
   2  Prefactor     .10000E-03    3.6385       -.12833E-06** at limit **
   3  Prefactor     24.536        28.486        .14499E-06   -.21638E-04
   4  Prefactor     .10000E-03    12.654        .37398E-07** at limit **
   5  Prefactor     .10000E-03    4.2236        .38992E-07** at limit **
   6  Prefactor     .10000E-03    5.9765        .81734E-07** at limit **
   7  Prefactor     3.1069        9.8145       -.72965E-07   -.15632E-03
   8  Prefactor     1.8068        3.2144        .17151E-06    .14270E-04
   9  norm          7.0475        3.8692       -.18786E-06   -.10814E-02
  10  Prefactor     .10000E-03    4.4195        .52101E-07** at limit **
  11  Prefactor     .10000E-03    9.3249        .41094E-06** at limit **
  12  norm          3.4724        .92598       -.39802E-06   -.67150E-02
  13  Prefactor     104.75        48.320        .53708E-07    .22846E-04
  14  Prefactor     3.8031        12.599        .48904E-05   -.51104E-03
  15  norm          .10001E-03    6.0314        .55286E-06** at limit **
  16  norm          4.1067        4.0187        .21024E-07    .17588E-05
  17  norm          .10813E-03    7.0653       -.10829E-05** at limit **
  18  Prefactor     36.318        30.754        .16032E-06    .62596E-04
  19  Prefactor     7.7200        39.421        .13931E-05   -.12803E-03
  20  norm          .10000E-03    1.7177        .11183E-06** at limit **
  21  Prefactor     .10000E-03    4.2375        .43543E-07** at limit **
  22  norm          .10000E-03    1.1146        .57705E-07** at limit **
  23  Prefactor     132.54        93.413        .16313E-07   -.86754E-04
  24  Prefactor     19.288        28.277        .25346E-07    .18506E-05
  25  Prefactor     .10000E-03    1.2070       -.16363E-07** at limit **
  26  Prefactor     .10000E-03    2.9759        .12377E-06** at limit **
  27  Prefactor     37.334        31.081        .37476E-07   -.56251E-04
  28  Normalizat    .52252        .15298       -.19018E-07   -.17986E-03
  29  Prefactor     .95121        .16124       -.45242E-06   -.20584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5527
  Prefactor  = 0.0001
  Prefactor  = 24.5356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.10688
  Prefactor  = 1.80676
  norm       = 7.0475
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.47243
  Prefactor  = 104.747
  Prefactor  = 3.80309
  norm       = 0.000100007
  norm       = 4.1067
  norm       = 0.00010813
  Prefactor  = 36.3175
  Prefactor  = 7.71996
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 132.537
  Prefactor  = 19.2885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3343
  Normalizat = 0.522517
  Prefactor  = 0.951211
 **********
 **   18 **HESSE 
 **********

 FCN=   5723.236     FROM HESSE     STATUS=OK           557 CALLS     4350 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.553        29.095        .77743E-04   -1.4677    
   2  Prefactor     .10000E-03    3.7340        .27949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.536        28.315        .80869E-04   -1.4717    
   4  Prefactor     .10000E-03    12.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2277        .15185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9954        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1069        9.8001        .23007E-03   -1.5355    
   8  Prefactor     1.8068        3.1896        .17534E-03   -1.5439    
   9  norm          7.0475        3.8832        .10431E-03   -1.5177    
  10  Prefactor     .10000E-03    4.4235        .15529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.683        .38322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4724        .93468        .29881E-04   -1.5335    
  13  Prefactor     104.75        48.336        .39291E-04   -1.3657    
  14  Prefactor     3.8031        12.742        .10361E-02   -1.5318    
  15  norm          .10001E-03    41.183        .35818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1067        4.0191        .14393E-03   -1.5303    
  17  norm          .10813E-03    8.5365        .54955E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.318        30.736        .66502E-04   -1.4502    
  19  Prefactor     7.7200        39.425        .14475E-03   -1.5152    
  20  norm          .10000E-03    1.7240        .96491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2454        .15209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1221        .77952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     132.54        93.439        .34976E-04   -1.3400    
  24  Prefactor     19.288        28.273        .91194E-04   -1.4829    
  25  Prefactor     .10000E-03    1.2088        .81156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.0258        .12742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     37.334        31.090        .65594E-04   -1.4485    
  28  Normalizat    .52252        .18009        .25911E-03   -1.1138    
  29  Prefactor     .95121        .19111        .21857E-03   -.94374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01638e-09
Minuit parameter uncertainties:
  1  29.1109
  2  7.79481e-06
  3  28.331
  4  3.33884e-06
  5  9.28013e-06
  6  7.95563e-06
  7  9.80519
  8  3.18988
  9  3.8833
  10  6.81742e-06
  11  0.000714642
  12  0.934681
  13  48.3538
  14  12.7514
  15  0.00109539
  16  4.01933
  17  0.0166641
  18  30.7498
  19  34.9281
  20  5.50173e-06
  21  3.15373e-06
  22  2.37923e-06
  23  93.5433
  24  28.2924
  25  3.10832e-07
  26  7.75553e-06
  27  31.1036
  28  0.180291
  29  0.191246
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.081e-04  1.666e-02  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:  9.512e-01  1.912e-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:  5.225e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.359 -35.988
Photon Flux Upper Limit: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/868335/likelihoodResults_520560001_520819201_4FGL_J2325.4-3559_daily_bin1085.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) = 5723.23629349
delta logL = -1.03100874185e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5722.55755091
delta logL = 0.678732276837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1351       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2324       1.0000          .0000       5.0000    
     3 'Normalizat'    .46350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98626       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=   5722.558     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      293 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1340        23.135        .10938E-01    .11330E-02
   2  alpha         4.2336        3.4824        .50000        .49404E-04
   3  Normalizat    .46348        .38656E-01    .62005E-01    .23217E-04
   4  Prefactor     .98636        .43582E-01    .46095E-01   -.38487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13404
  alpha      = 4.23358
  Normalizat = 0.46348
  Prefactor  = 0.986357
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.558     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      326 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1340        47.790        .72951E-04   -1.5495    
   2  alpha         4.2336        2.7594        .28928E-01    .76624    
   3  Normalizat    .46348        .17202        .27439E-03   -1.1414    
   4  Prefactor     .98636        .19467        .21498E-03   -.93186    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15168e-09
Minuit parameter uncertainties:
  1  14.7355
  2  9.06033
  3  0.172218
  4  0.19481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868335': 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) = 5722.55754996
delta logL = 0.678733218003

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.134e+00  1.474e+01  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  4.234e+00  9.060e+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:  9.864e-01  1.948e-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:  4.635e-01  1.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 4.23 +/- 9.06
Photon Flux (Free Index): 4.70e-08 +/- 4.55e-08
Energy Flux (Free Index): 7.19e-06 +/- 1.20e-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/868335/cmap_HighResolution_520560001_520819201_4FGL_J2325.4-3559_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', comment='SUCCESS', energy_flux2='7.19e-06', dlogl='6.79e-01', photon_flux2='4.70e-08', job_status='DONE', time_completed='2021-09-29 17:54:30.783048', photon_index_error2='9.06', photon_index2='4.23', ts='-0.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='5.85e-08', energy_flux_error2='1.20e-05', EG='0.52', time_epoch_completed='1632963270.78', return_code='0', job_id='868335', GAL2='0.99', EG2='0.46', return_code2='102', photon_flux_error2='4.55e-08', ts2='1.45', photon_index='2.13' WHERE bin_id='1085' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:54:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 868335: <4FGL_J2325.4-3559_daily_bin1085> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin1085> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 17:40:46 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:40:48 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:40:48 2021
Terminated at Wed Sep 29 17:54:31 2021
Results reported at Wed Sep 29 17:54:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin1085 351.359 -35.9878 520560001 520819201 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 :                                   576.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            825 sec.

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

