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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin595
RA = 351.359, Dec = -35.9878
tmin = 393552001, tmax = 393811201
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='865364', job_status='RUN', time_executed='2021-09-29 17:34:40.399220', time_epoch_executed='1632962080.4' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865364

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865364/ft1_4FGL_J2325.4-3559_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865364/ft2_4FGL_J2325.4-3559_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865364/ft1_4FGL_J2325.4-3559_daily_bin595.fits outfile=/scratch/kocevski/865364/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin595.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=393552001.0 tmax=393811201.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.48
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865364/ft1_filtered_4FGL_J2325.4-3559_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/865364/ft2_4FGL_J2325.4-3559_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/865364/ltcube_393552001_393811201_4FGL_J2325.4-3559_daily_bin595.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/865364/ft2_4FGL_J2325.4-3559_daily_bin595.fits
.....................!
real 11.81
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865364/ft1_filtered_4FGL_J2325.4-3559_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/865364/ft2_4FGL_J2325.4-3559_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/865364/ltcube_393552001_393811201_4FGL_J2325.4-3559_daily_bin595.fits outfile=/scratch/kocevski/865364/expmap_393552001_393811201_4FGL_J2325.4-3559_daily_bin595.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/865364/ltcube_393552001_393811201_4FGL_J2325.4-3559_daily_bin595.fits
.....................!
real 190.17
user 185.15
sys 4.71

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/865364/ft1_filtered_4FGL_J2325.4-3559_daily_bin595.fits scfile=/scratch/kocevski/865364/ft2_4FGL_J2325.4-3559_daily_bin595.fits outfile=/scratch/kocevski/865364/cmap_393552001_393811201_4FGL_J2325.4-3559_daily_bin595.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865364/ft1_filtered_4FGL_J2325.4-3559_daily_bin595.fits scfile=/scratch/kocevski/865364/ft2_4FGL_J2325.4-3559_daily_bin595.fits outfile=/scratch/kocevski/865364/cmap_HighResolution_393552001_393811201_4FGL_J2325.4-3559_daily_bin595.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865364/ft1_filtered_4FGL_J2325.4-3559_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/865364/ft2_4FGL_J2325.4-3559_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865364/Model_4FGL_J2325.4-3559_daily_bin595.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/865364/ft1_filtered_4FGL_J2325.4-3559_daily_bin595.fits.....................!
real 38.48
user 37.19
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11895E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8755       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.684       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2666       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5713       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0265       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .92323E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45313E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.222       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.872       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1859       1.0000         .10000E-03   10000.    
    20 'norm      '    .15549E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .72205       1.0000         .10000E-03   10000.    
    23 'Prefactor '    75.231       1.0000         .10000E-03   10000.    
    24 'Prefactor '    163.45       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.8187       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    81.671       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .69544       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1083       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=   4864.394     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3820 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.626        .55250E-07** at limit **
   2  Prefactor     .10000E-03    4.6140       -.18440E-07** at limit **
   3  Prefactor     2.8426        30.681        .57196E-06    .35152E-05
   4  Prefactor     50.657        38.698       -.36642E-07   -.22052E-04
   5  Prefactor     .10000E-03    13.557        .35285E-06** at limit **
   6  Prefactor     .10000E-03    13.272        .13608E-06** at limit **
   7  Prefactor     7.2683        10.651        .39254E-06   -.43108E-04
   8  Prefactor     1.5710        4.6909        .76976E-06    .14542E-04
   9  norm          .10000E-03    1.5201        .63611E-07** at limit **
  10  Prefactor     5.0294        9.6436       -.53250E-06   -.19430E-03
  11  Prefactor     .10000E-03    4.1794        .62528E-07** at limit **
  12  norm          .87005E-02    .61126        .13736E-06   -.10900E-02
  13  Prefactor     .10000E-03    14.028        .13321E-07** at limit **
  14  Prefactor     .10005E-03    51.202        .37098E-05** at limit **
  15  norm          .10000E-03    3.3644        .49515E-07** at limit **
  16  norm          .10000E-03    1.8241        .34470E-07** at limit **
  17  norm          22.231        12.618       -.18266E-06    .46832E-04
  18  Prefactor     40.844        34.568       -.25150E-06    .14789E-03
  19  Prefactor     8.0764        137.15        .27233E-05   -.11610E-04
  20  norm          .10002E-03    4.9035       -.49309E-07** at limit **
  21  Prefactor     .10000E-03    8.8651        .24285E-06** at limit **
  22  norm          .72020        4.2205        .16521E-05    .26713E-03
  23  Prefactor     75.350        133.30        .99511E-06    .85301E-05
  24  Prefactor     163.41        82.828        .49983E-07   -.18555E-04
  25  Prefactor     4.8197        5.9434        .43639E-07    .81356E-07
  26  Prefactor     .10000E-03    1.6643        .83223E-07** at limit **
  27  Prefactor     81.630        56.776        .33400E-06   -.22504E-04
  28  Normalizat    .69524        .23204       -.41434E-05   -.11257E-03
  29  Prefactor     1.1086        .24118        .22579E-05   -.54511E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84256
  Prefactor  = 50.657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.26834
  Prefactor  = 1.571
  norm       = 0.0001
  Prefactor  = 5.02943
  Prefactor  = 0.0001
  norm       = 0.00870051
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.2306
  Prefactor  = 40.8444
  Prefactor  = 8.07643
  norm       = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.720202
  Prefactor  = 75.3504
  Prefactor  = 163.409
  Prefactor  = 4.8197
  Prefactor  = 0.0001
  Prefactor  = 81.6302
  Normalizat = 0.695238
  Prefactor  = 1.10864
 **********
 **   18 **HESSE 
 **********

 FCN=   4864.394     FROM HESSE     STATUS=OK           569 CALLS     4389 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7860        .29131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8426        30.462        .23970E-03   -1.5371    
   4  Prefactor     50.657        38.684        .28166E-03   -1.4283    
   5  Prefactor     .10000E-03    13.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2683        10.648        .14880E-03   -1.5169    
   8  Prefactor     1.5710        4.6585        .25108E-03   -1.5457    
   9  norm          .10000E-03    1.5282        .83859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0294        9.7495        .17936E-03   -1.5259    
  11  Prefactor     .10000E-03    4.2024        .13889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .87005E-02    4.6352        .86629E-03   -1.5689    
  13  Prefactor     .10000E-03    14.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    5.1509        .54096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3653        .12495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8269        .91988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.231        12.568        .84970E-04   -1.4765    
  18  Prefactor     40.844        34.800        .62700E-04   -1.4429    
  19  Prefactor     8.0764        138.05        .14013E-03   -1.5140    
  20  norm          .10002E-03    12.774        .20920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .72020        4.2166        .26789E-03   -1.5538    
  23  Prefactor     75.350        133.23        .23146E-03   -1.3970    
  24  Prefactor     163.41        82.806        .15773E-03   -1.3144    
  25  Prefactor     4.8197        5.9276        .17795E-03   -1.5269    
  26  Prefactor     .10000E-03    1.6682        .87876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     81.630        56.667        .22222E-03   -1.3899    
  28  Normalizat    .69524        .23469        .25517E-03   -1.0408    
  29  Prefactor     1.1086        .24508        .22996E-03   -.89191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93337e-09
Minuit parameter uncertainties:
  1  2.8377e-08
  2  8.62831e-06
  3  18.6225
  4  38.7027
  5  1.49893e-05
  6  1.47619e-05
  7  10.6505
  8  4.65953
  9  1.82745e-06
  10  9.7526
  11  5.3605e-06
  12  0.399357
  13  2.58812e-06
  14  0.000965998
  15  1.10658e-06
  16  2.17403e-06
  17  12.5693
  18  34.8174
  19  66.9628
  20  0.00101188
  21  7.48457e-06
  22  3.48542
  23  133.765
  24  82.865
  25  5.92834
  26  8.41266e-07
  27  56.7045
  28  0.235028
  29  0.245334
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  2.223e+01  1.257e+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.109e+00  2.453e-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:  6.952e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.02
Ra Dec: 351.359 -35.988
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 6.92e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.57e-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) = 4860.66987703
delta logL = 3.72386493842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4860.66412196
delta logL = 3.72962001476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7837       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8861       1.0000          .0000       5.0000    
     3 'Normalizat'    .49581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2628       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4860.664     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      283 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7828        7.8282        .62529E-04    .36174E-02
   2  alpha         3.8863        .73958        .80091E-03    .27285E-03
   3  Normalizat    .49581        .22546        .29796E-03   -.14102E-03
   4  Prefactor     1.2628        .24683        .21701E-03   -.39523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.78283
  alpha      = 3.88625
  Normalizat = 0.495809
  Prefactor  = 1.2628
 **********
 **   18 **HESSE 
 **********

 FCN=   4860.664     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7828        7.6256        .12506E-04   -1.5150    
   2  alpha         3.8863        .72122        .32036E-04    .58776    
   3  Normalizat    .49581        .22553        .11918E-04   -1.1261    
   4  Prefactor     1.2628        .24687        .43402E-04   -.84420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52251e-09
Minuit parameter uncertainties:
  1  7.62652
  2  0.736506
  3  0.225941
  4  0.247101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865364': 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) = 4860.66412194
delta logL = 3.72962002856

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  7.783e+00  7.627e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  3.886e+00  7.365e-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:  1.263e+00  2.471e-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.958e-01  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.45
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 3.89 +/- 0.74
Photon Flux (Free Index): 1.97e-07 +/- 7.26e-08
Energy Flux (Free Index): 3.21e-05 +/- 1.13e-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/865364/cmap_HighResolution_393552001_393811201_4FGL_J2325.4-3559_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.92e-08', energy_flux2='3.21e-05', photon_flux_error='3.91e-08', dlogl='3.73e+00', energy_flux='2.78e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-29 17:45:16.391234', photon_index_error2='0.74', photon_index2='3.89', ts='7.02', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.70', time_epoch_completed='1632962716.39', return_code='0', job_id='865364', GAL2='1.26', EG2='0.50', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='7.26e-08', ts2='15.45', photon_index='2.13' WHERE bin_id='595' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:45:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 865364: <4FGL_J2325.4-3559_daily_bin595> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin595> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 17:30:39 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:30:41 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:30:41 2021
Terminated at Wed Sep 29 17:45:19 2021
Results reported at Wed Sep 29 17:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin595 351.359 -35.9878 393552001 393811201 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 :                                   635.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            880 sec.

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

