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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin955
RA = 351.359, Dec = -35.9878
tmin = 486864001, tmax = 487123201
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='868149', job_status='RUN', time_executed='2021-09-29 17:40:49.779820', time_epoch_executed='1632962449.78' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868149/ft1_4FGL_J2325.4-3559_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868149/ft2_4FGL_J2325.4-3559_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868149/ft1_4FGL_J2325.4-3559_daily_bin955.fits outfile=/scratch/kocevski/868149/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin955.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=486864001.0 tmax=487123201.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.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868149/ft1_filtered_4FGL_J2325.4-3559_daily_bin955.fits" evtable="EVENTS" scfile=/scratch/kocevski/868149/ft2_4FGL_J2325.4-3559_daily_bin955.fits sctable="SC_DATA" outfile=/scratch/kocevski/868149/ltcube_486864001_487123201_4FGL_J2325.4-3559_daily_bin955.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/868149/ft2_4FGL_J2325.4-3559_daily_bin955.fits
.....................!
real 11.83
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868149/ft1_filtered_4FGL_J2325.4-3559_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/868149/ft2_4FGL_J2325.4-3559_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/868149/ltcube_486864001_487123201_4FGL_J2325.4-3559_daily_bin955.fits outfile=/scratch/kocevski/868149/expmap_486864001_487123201_4FGL_J2325.4-3559_daily_bin955.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/868149/ltcube_486864001_487123201_4FGL_J2325.4-3559_daily_bin955.fits
.....................!
real 190.79
user 185.55
sys 4.92

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/868149/ft1_filtered_4FGL_J2325.4-3559_daily_bin955.fits scfile=/scratch/kocevski/868149/ft2_4FGL_J2325.4-3559_daily_bin955.fits outfile=/scratch/kocevski/868149/cmap_486864001_487123201_4FGL_J2325.4-3559_daily_bin955.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868149/ft1_filtered_4FGL_J2325.4-3559_daily_bin955.fits scfile=/scratch/kocevski/868149/ft2_4FGL_J2325.4-3559_daily_bin955.fits outfile=/scratch/kocevski/868149/cmap_HighResolution_486864001_487123201_4FGL_J2325.4-3559_daily_bin955.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/868149/ft1_filtered_4FGL_J2325.4-3559_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/868149/ft2_4FGL_J2325.4-3559_daily_bin955.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/868149/Model_4FGL_J2325.4-3559_daily_bin955.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/868149/ft1_filtered_4FGL_J2325.4-3559_daily_bin955.fits.....................!
real 37.81
user 36.57
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12351E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0872       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-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      '    8.2203       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.857       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.943       1.0000         .10000E-03   10000.    
    20 'norm      '    10.416       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.189       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.7505       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19625E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0985       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68494       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=   4391.911     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3698 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    59.921        .90712E-02** at limit **
   2  Prefactor     .10000E-03    4.9570        .90712E-02** at limit **
   3  Prefactor     6.7799        18.107        .38533E-02    .73267E-04
   4  Prefactor     .10000E-03    19.075        .90712E-02** at limit **
   5  Prefactor     .10000E-03    6.6910        .90712E-02** at limit **
   6  Prefactor     4.5648        33.027        .47110E-02    .61202E-04
   7  Prefactor     .10000E-03    20.186        .90712E-02** at limit **
   8  Prefactor     .10000E-03    2.1008        .90712E-02** at limit **
   9  norm          .10005E-03    4.1456        .41441E-01** at limit **
  10  Prefactor     .10005E-03    8.6713        .90712E-02** at limit **
  11  Prefactor     4.0853        12.512        .49854E-02    .23138E-03
  12  norm          1.1345        .98089        .97128E-02    .45602E-03
  13  Prefactor     .10000E-03    40.085        .90712E-02** at limit **
  14  Prefactor     .10000E-03    5.0654        .90712E-02** at limit **
  15  norm          .10000E-03    4.8829        .90712E-02** at limit **
  16  norm          .10000E-03    2.8365        .90712E-02** at limit **
  17  norm          8.2204        8.5477        .34958E-02    .17843E-03
  18  Prefactor     51.856        53.028        .13923E-02    .44336E-03
  19  Prefactor     24.944        50.969        .20052E-02   -.14906E-03
  20  norm          10.415        8.2437        .31038E-02    .11444E-02
  21  Prefactor     12.185        21.560        .28684E-02   -.20441E-03
  22  norm          .10000E-03    1.9839        .90712E-02** at limit **
  23  Prefactor     .10006E-03    62.300        .90712E-02** at limit **
  24  Prefactor     .10001E-03    20.844        .90712E-02** at limit **
  25  Prefactor     .10000E-03    5.1929        .90712E-02** at limit **
  26  Prefactor     9.7507        7.3831        .32083E-02   -.12020E-02
  27  Prefactor     .10002E-03    146.10        .90712E-02** at limit **
  28  Normalizat    1.0984        .20255        .38062E-01    .50053E-04
  29  Prefactor     .68503        .20435        .63248E-01    .52720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Prefactor  = 0.000100004
  Prefactor  = 6.77989
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.56482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100052
  Prefactor  = 0.000100052
  Prefactor  = 4.08532
  norm       = 1.13447
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.22037
  Prefactor  = 51.8564
  Prefactor  = 24.9443
  norm       = 10.4152
  Prefactor  = 12.1848
  norm       = 0.0001
  Prefactor  = 0.000100064
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 9.75068
  Prefactor  = 0.000100016
  Normalizat = 1.09845
  Prefactor  = 0.685025
 **********
 **   18 **HESSE 
 **********

 FCN=   4391.911     FROM HESSE     STATUS=OK           547 CALLS     4245 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    60.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1493        .28723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7799        18.062        .15413E-03   -1.5187    
   4  Prefactor     .10000E-03    19.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6928        .16743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5648        33.083        .18844E-03   -1.5281    
   7  Prefactor     .10000E-03    20.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1027        .93804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10005E-03    8.6753        .24674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    8.6737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0853        13.109        .19942E-03   -1.5304    
  12  norm          1.1345        1.0348        .43603E-04   -1.5495    
  13  Prefactor     .10000E-03    40.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0726        .14555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8855        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8417        .10895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.2204        8.5404        .13983E-03   -1.5134    
  18  Prefactor     51.856        53.294        .55693E-04   -1.4266    
  19  Prefactor     24.944        51.285        .80208E-04   -1.4709    
  20  norm          10.415        8.2510        .12415E-03   -1.5062    
  21  Prefactor     12.185        21.597        .11474E-03   -1.5010    
  22  norm          .10000E-03    1.9907        .91076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10006E-03    62.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    20.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.4268        .29475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.7507        7.4016        .12833E-03   -1.5083    
  27  Prefactor     .10002E-03    150.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0984        .24473        .21261E-03   -.89802    
  29  Prefactor     .68503        .24454        .27981E-03   -1.0412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7595e-08
Minuit parameter uncertainties:
  1  0.00235111
  2  0.000290703
  3  18.0761
  4  0.000482578
  5  3.3122e-05
  6  24.5969
  7  0.000201364
  8  1.06381e-06
  9  0.00133863
  10  0.00134111
  11  13.1185
  12  1.03483
  13  0.000822023
  14  0.000229673
  15  2.70764e-05
  16  7.26222e-06
  17  8.54163
  18  53.3429
  19  51.3761
  20  8.2519
  21  21.6104
  22  1.38145e-07
  23  0.00400185
  24  0.000840871
  25  9.34984e-05
  26  7.40229
  27  0.00306754
  28  0.244979
  29  0.244925
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  8.220e+00  8.542e+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:  6.850e-01  2.449e-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.098e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 351.359 -35.988
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.56e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/868149/likelihoodResults_486864001_487123201_4FGL_J2325.4-3559_daily_bin955.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) = 4391.88515659
delta logL = 0.0257180830595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4391.88307777
delta logL = 0.0277969028812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7131       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3849       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69027       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=   4391.883     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7182        8.5835        .33949E-02    .10243E-02
   2  alpha         2.3863        1.0237        .41207E-01   -.21205E-04
   3  Normalizat    1.0886        .19248        .38488E-01   -.33032E-03
   4  Prefactor     .69013        .20243        .63025E-01   -.11965E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.71821
  alpha      = 2.38625
  Normalizat = 1.08863
  Prefactor  = 0.690125
 **********
 **   18 **HESSE 
 **********

 FCN=   4391.883     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7182        8.5848        .67898E-03   -1.5117    
   2  alpha         2.3863        1.0283        .16483E-02   -.45514E-01
   3  Normalizat    1.0886        .22927        .21342E-03   -.90118    
   4  Prefactor     .69013        .24014        .27881E-03   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50826e-10
Minuit parameter uncertainties:
  1  8.58597
  2  1.05988
  3  0.229483
  4  0.240497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868149': 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) = 4391.88307643
delta logL = 0.0277982404477

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  8.718e+00  8.586e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.386e+00  1.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:  6.901e-01  2.405e-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.089e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 2.39 +/- 1.06
Photon Flux (Free Index): 3.44e-08 +/- 5.09e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.10e-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/868149/cmap_HighResolution_486864001_487123201_4FGL_J2325.4-3559_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', comment='SUCCESS', photon_flux='2.56e-08', energy_flux2='1.09e-05', photon_flux_error='2.66e-08', dlogl='2.78e-02', energy_flux='1.03e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2021-09-29 17:51:54.100769', photon_index_error2='1.06', photon_index2='2.39', ts='2.06', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='1.10e-05', EG='1.10', time_epoch_completed='1632963114.1', return_code='0', job_id='868149', GAL2='0.69', EG2='1.09', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='5.09e-08', ts2='2.11', photon_index='2.13' WHERE bin_id='955' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 868149: <4FGL_J2325.4-3559_daily_bin955> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin955 351.359 -35.9878 486864001 487123201 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 :                                   661.34 sec.
    Max Memory :                                 1072 MB
    Average Memory :                             299.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

