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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin229
RA = 351.359, Dec = -35.9878
tmin = 298684801, tmax = 298944001
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='864289', job_status='RUN', time_executed='2021-09-29 17:27:47.158017', time_epoch_executed='1632961667.16' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864289/ft1_4FGL_J2325.4-3559_daily_bin229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864289/ft2_4FGL_J2325.4-3559_daily_bin229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864289/ft1_4FGL_J2325.4-3559_daily_bin229.fits outfile=/scratch/kocevski/864289/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin229.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=298684801.0 tmax=298944001.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.49
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/864289/ft1_filtered_4FGL_J2325.4-3559_daily_bin229.fits" evtable="EVENTS" scfile=/scratch/kocevski/864289/ft2_4FGL_J2325.4-3559_daily_bin229.fits sctable="SC_DATA" outfile=/scratch/kocevski/864289/ltcube_298684801_298944001_4FGL_J2325.4-3559_daily_bin229.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/864289/ft2_4FGL_J2325.4-3559_daily_bin229.fits
.....................!
real 14.10
user 13.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864289/ft1_filtered_4FGL_J2325.4-3559_daily_bin229.fits evtable="EVENTS" scfile=/scratch/kocevski/864289/ft2_4FGL_J2325.4-3559_daily_bin229.fits sctable="SC_DATA" expcube=/scratch/kocevski/864289/ltcube_298684801_298944001_4FGL_J2325.4-3559_daily_bin229.fits outfile=/scratch/kocevski/864289/expmap_298684801_298944001_4FGL_J2325.4-3559_daily_bin229.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/864289/ltcube_298684801_298944001_4FGL_J2325.4-3559_daily_bin229.fits
.....................!
real 191.43
user 185.36
sys 5.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/864289/ft1_filtered_4FGL_J2325.4-3559_daily_bin229.fits scfile=/scratch/kocevski/864289/ft2_4FGL_J2325.4-3559_daily_bin229.fits outfile=/scratch/kocevski/864289/cmap_298684801_298944001_4FGL_J2325.4-3559_daily_bin229.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/864289/ft1_filtered_4FGL_J2325.4-3559_daily_bin229.fits scfile=/scratch/kocevski/864289/ft2_4FGL_J2325.4-3559_daily_bin229.fits outfile=/scratch/kocevski/864289/cmap_HighResolution_298684801_298944001_4FGL_J2325.4-3559_daily_bin229.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/864289/ft1_filtered_4FGL_J2325.4-3559_daily_bin229.fits evtable="EVENTS" scfile=/scratch/kocevski/864289/ft2_4FGL_J2325.4-3559_daily_bin229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/864289/Model_4FGL_J2325.4-3559_daily_bin229.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/864289/ft1_filtered_4FGL_J2325.4-3559_daily_bin229.fits.....................!
real 37.01
user 35.67
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10112E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .57972E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22515E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1856       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6690       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2681       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10954E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6961       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5154       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8760       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    256.99       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.1437       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1289       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71573       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=   4278.659     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3672 TOTAL
                     EDM=   .79E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.773        .84914E-06** at limit **
   2  Prefactor     .10000E-03    3.0064        .15826E-06** at limit **
   3  Prefactor     .10000E-03    20.932        .88910E-06** at limit **
   4  Prefactor     .10000E-03    146.78        .52306E-05** at limit **
   5  Prefactor     20.929        23.049       -.21549E-06   -.41109E-05
   6  Prefactor     39.320        28.725        .10303E-05   -.14344E-04
   7  Prefactor     .10000E-03    13.779       -.69187E-06** at limit **
   8  Prefactor     .10000E-03    4.0523       -.44018E-07** at limit **
   9  norm          .10000E-03    2.1998        .13306E-07** at limit **
  10  Prefactor     .10000E-03    7.3439        .12896E-06** at limit **
  11  Prefactor     .10000E-03    10.050        .26886E-08** at limit **
  12  norm          2.1891        .91524        .21673E-07   -.30868E-04
  13  Prefactor     20.454        68.439        .12766E-04    .22756E-05
  14  Prefactor     .10000E-03    7.9521       -.18731E-06** at limit **
  15  norm          .10000E-03    28.203        .18365E-05** at limit **
  16  norm          1.6692        4.7927        .26729E-05   -.12861E-04
  17  norm          5.2690        8.0935        .45843E-06   -.27324E-04
  18  Prefactor     .10000E-03    63.686        .40207E-07** at limit **
  19  Prefactor     9.6608        78.322        .74103E-05    .13502E-05
  20  norm          3.5135        4.2318       -.64243E-06   -.10209E-04
  21  Prefactor     1.8711        36.278        .87172E-06   -.95114E-06
  22  norm          .10000E-03    1.4581        .21926E-08** at limit **
  23  Prefactor     256.99        156.26       -.28384E-08   -.19309E-05
  24  Prefactor     .10000E-03    17.575       -.11334E-05** at limit **
  25  Prefactor     .10000E-03    4.5737        .13669E-06** at limit **
  26  Prefactor     8.1421        6.9169        .12553E-06   -.81069E-05
  27  Prefactor     .10000E-03    40.576       -.21395E-05** at limit **
  28  Normalizat    1.1291        .21348        .72111E-06   -.54656E-04
  29  Prefactor     .71563        .22497       -.28166E-05   -.12742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9289
  Prefactor  = 39.3204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18913
  Prefactor  = 20.4535
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.66915
  norm       = 5.26897
  Prefactor  = 0.0001
  Prefactor  = 9.66076
  norm       = 3.51348
  Prefactor  = 1.87109
  norm       = 0.0001
  Prefactor  = 256.99
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.14208
  Prefactor  = 0.0001
  Normalizat = 1.1291
  Prefactor  = 0.715631
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.659     FROM HESSE     STATUS=OK           551 CALLS     4223 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1265        .22143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    147.89        .21082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.929        23.053        .87550E-04   -1.4793    
   6  Prefactor     39.320        28.728        .63899E-04   -1.4453    
   7  Prefactor     .10000E-03    13.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0632        .12858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2112        .94685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3484        .17308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.691        .36736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1891        .84148        .35838E-04   -1.5412    
  13  Prefactor     20.454        68.554        .88396E-04   -1.4803    
  14  Prefactor     .10000E-03    7.9773        .17998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    28.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6692        4.8052        .10662E-02   -1.5450    
  17  norm          5.2690        8.0791        .87560E-03   -1.5249    
  18  Prefactor     .10000E-03    64.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6608        78.981        .12869E-03   -1.5086    
  20  norm          3.5135        4.2220        .12689E-03   -1.5333    
  21  Prefactor     1.8711        36.413        .30401E-03   -1.5434    
  22  norm          .10000E-03    1.4695        .77108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     256.99        156.32        .12639E-03   -1.2488    
  24  Prefactor     .10000E-03    17.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.6457        .13654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.1421        6.9230        .14049E-03   -1.5137    
  27  Prefactor     .10000E-03    40.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1291        .25310        .21687E-03   -.88823    
  29  Prefactor     .71563        .26492        .28750E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76624e-10
Minuit parameter uncertainties:
  1  6.4431e-06
  2  8.0212e-06
  3  2.90164e-05
  4  0.000124379
  5  23.0633
  6  28.7385
  7  2.02374e-05
  8  2.64993e-06
  9  1.28159e-06
  10  1.26008e-06
  11  8.20972e-06
  12  0.841482
  13  68.8197
  14  1.77623e-06
  15  4.48275e-05
  16  4.80628
  17  8.08074
  18  5.10379e-06
  19  55.3452
  20  4.22235
  21  16.5196
  22  9.95214e-07
  23  156.571
  24  2.56854e-06
  25  7.61652e-06
  26  6.92372
  27  4.80632e-05
  28  0.25337
  29  0.26539
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  5.269e+00  8.081e+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:  7.156e-01  2.654e-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.129e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/864289/likelihoodResults_298684801_298944001_4FGL_J2325.4-3559_daily_bin229.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) = 4278.57539489
delta logL = 0.0838065381613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4278.57458183
delta logL = 0.0846195956265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1609       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6220       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72285       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=   4278.575     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      267 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1618        7.7671        .17696E-03   -.14496E-02
   2  alpha         2.6217        1.1815        .23319E-01   -.11831E-03
   3  Normalizat    1.1171        .24570        .21787E-03    .23005E-03
   4  Prefactor     .72283        .26400        .28614E-03    .21864E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.16176
  alpha      = 2.62171
  Normalizat = 1.1171
  Prefactor  = 0.722834
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.575     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1618        7.5213        .70785E-05   -1.5254    
   2  alpha         2.6217        1.1465        .93274E-03    .48701E-01
   3  Normalizat    1.1171        .24585        .43575E-04   -.89205    
   4  Prefactor     .72283        .26412        .11446E-04   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68262e-09
Minuit parameter uncertainties:
  1  7.52263
  2  1.19119
  3  0.2461
  4  0.264585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864289': 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) = 4278.57458177
delta logL = 0.0846196614166

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  5.162e+00  7.523e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.622e+00  1.191e+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:  7.228e-01  2.646e-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.117e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
Ra Dec: 351.359 -35.988

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/864289/cmap_HighResolution_298684801_298944001_4FGL_J2325.4-3559_daily_bin229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-09-29 17:38:46.495449', job_id='864289', GAL2='0.72', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1632962326.5', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='8.46e-02', ts2='0.82', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='229' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:38:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 864289: <4FGL_J2325.4-3559_daily_bin229> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin229 351.359 -35.9878 298684801 298944001 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 :                                   654.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            789 sec.

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

