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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin1096
RA = 351.359, Dec = -35.9878
tmin = 523411201, tmax = 523670401
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='868351', job_status='RUN', time_executed='2021-09-29 17:42:05.579455', time_epoch_executed='1632962525.58' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868351

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868351/ft1_4FGL_J2325.4-3559_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868351/ft2_4FGL_J2325.4-3559_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868351/ft1_4FGL_J2325.4-3559_daily_bin1096.fits outfile=/scratch/kocevski/868351/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin1096.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=523411201.0 tmax=523670401.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.56
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868351/ft1_filtered_4FGL_J2325.4-3559_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/868351/ft2_4FGL_J2325.4-3559_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/868351/ltcube_523411201_523670401_4FGL_J2325.4-3559_daily_bin1096.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/868351/ft2_4FGL_J2325.4-3559_daily_bin1096.fits
.....................!
real 11.72
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868351/ft1_filtered_4FGL_J2325.4-3559_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/868351/ft2_4FGL_J2325.4-3559_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/868351/ltcube_523411201_523670401_4FGL_J2325.4-3559_daily_bin1096.fits outfile=/scratch/kocevski/868351/expmap_523411201_523670401_4FGL_J2325.4-3559_daily_bin1096.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/868351/ltcube_523411201_523670401_4FGL_J2325.4-3559_daily_bin1096.fits
.....................!
real 191.08
user 185.32
sys 5.39

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/868351/ft1_filtered_4FGL_J2325.4-3559_daily_bin1096.fits scfile=/scratch/kocevski/868351/ft2_4FGL_J2325.4-3559_daily_bin1096.fits outfile=/scratch/kocevski/868351/cmap_523411201_523670401_4FGL_J2325.4-3559_daily_bin1096.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6631       1.0000         .10000E-03   10000.    
    13 'Prefactor '    129.09       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51803E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8655       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4546       1.0000         .10000E-03   10000.    
    22 'norm      '    13.391       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.596       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.059       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .63528E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0325       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81172       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=   4242.388     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3672 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.167        .30478E-06** at limit **
   2  Prefactor     .10000E-03    1.9214        .22353E-06** at limit **
   3  Prefactor     .10000E-03    9.9122        .21714E-06** at limit **
   4  Prefactor     .10000E-03    22.524        .14955E-06** at limit **
   5  Prefactor     56.877        34.471        .13462E-06   -.14166E-04
   6  Prefactor     .10000E-03    9.3372        .15402E-06** at limit **
   7  Prefactor     8.0522        20.409        .46622E-06   -.11632E-04
   8  Prefactor     .10000E-03    2.4464        .15693E-06** at limit **
   9  norm          11.286        6.5310        .13610E-06   -.86331E-04
  10  Prefactor     .10000E-03    13.607        .10873E-06** at limit **
  11  Prefactor     .10000E-03    29.812        .28836E-06** at limit **
  12  norm          1.6627        .88946        .22031E-07   -.83659E-03
  13  Prefactor     129.08        93.127       -.14147E-06   -.12343E-04
  14  Prefactor     .10024E-03    14.068        .10936E-05** at limit **
  15  norm          .10000E-03    8.1122        .20905E-06** at limit **
  16  norm          .10000E-03    1.7589        .51641E-07** at limit **
  17  norm          9.8642        11.031        .19876E-05    .16441E-03
  18  Prefactor     .10000E-03    13.991        .27560E-06** at limit **
  19  Prefactor     .10000E-03    39.743       -.98080E-07** at limit **
  20  norm          .10000E-03    1.7736        .19022E-06** at limit **
  21  Prefactor     1.4525        37.237        .38402E-05    .20164E-04
  22  norm          13.391        6.3756       -.56196E-07   -.10744E-03
  23  Prefactor     41.324        110.59       -.13482E-05   -.26526E-04
  24  Prefactor     13.058        37.021        .28600E-07   -.75573E-05
  25  Prefactor     .10000E-03    1.7068        .11013E-06** at limit **
  26  Prefactor     .10029E-03    3.9637        .67369E-06** at limit **
  27  Prefactor     .10000E-03    14.527        .58087E-07** at limit **
  28  Normalizat    1.0321        .22421        .20557E-05   -.30876E-03
  29  Prefactor     .81211        .24156       -.41398E-05   -.14300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.8775
  Prefactor  = 0.0001
  Prefactor  = 8.05222
  Prefactor  = 0.0001
  norm       = 11.2858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66272
  Prefactor  = 129.081
  Prefactor  = 0.00010024
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.8642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.45253
  norm       = 13.3905
  Prefactor  = 41.3244
  Prefactor  = 13.0577
  Prefactor  = 0.0001
  Prefactor  = 0.000100285
  Prefactor  = 0.0001
  Normalizat = 1.03214
  Prefactor  = 0.812105
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.388     FROM HESSE     STATUS=OK           551 CALLS     4223 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9403        .88210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     56.877        34.459        .53190E-04   -1.4198    
   6  Prefactor     .10000E-03    9.3443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0522        20.553        .14127E-03   -1.5140    
   8  Prefactor     .10000E-03    2.4511        .99521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.286        6.5322        .11882E-03   -1.5036    
  10  Prefactor     .10000E-03    13.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6627        .84886        .40024E-04   -1.5450    
  13  Prefactor     129.08        93.076        .35435E-04   -1.3431    
  14  Prefactor     .10024E-03    167.20        .43441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.1329        .18121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7593        .84366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8642        11.252        .63789E-03   -1.5080    
  18  Prefactor     .10000E-03    14.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7782        .84677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4525        38.111        .35703E-03   -1.5467    
  22  norm          13.391        6.3707        .10836E-03   -1.4976    
  23  Prefactor     41.324        111.05        .31077E-03   -1.4421    
  24  Prefactor     13.058        37.008        .11085E-03   -1.4985    
  25  Prefactor     .10000E-03    1.7091        .83110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10029E-03    71.441        .24101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0321        .25203        .23120E-03   -.91961    
  29  Prefactor     .81211        .26546        .27802E-03   -.99284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17615e-09
Minuit parameter uncertainties:
  1  2.03272e-05
  2  4.20041e-06
  3  9.60043e-06
  4  7.77218e-06
  5  34.4706
  6  6.67998e-06
  7  20.5712
  8  3.7842e-06
  9  6.53258
  10  5.22317e-06
  11  6.59226e-05
  12  0.848869
  13  93.1822
  14  0.0127107
  15  8.75258e-06
  16  1.00653e-06
  17  11.2545
  18  1.34162e-05
  19  4.60615e-05
  20  2.91625e-06
  21  14.8906
  22  6.37107
  23  111.608
  24  37.0729
  25  1.69158e-06
  26  0.0090384
  27  6.74349e-06
  28  0.252327
  29  0.265879
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  9.864e+00  1.125e+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:  8.121e-01  2.659e-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.032e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 351.359 -35.988
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.07e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/868351/likelihoodResults_523411201_523670401_4FGL_J2325.4-3559_daily_bin1096.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) = 4241.90878388
delta logL = 0.478918162071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4241.90783594
delta logL = 0.479866103352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7215       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1743       1.0000          .0000       5.0000    
     3 'Normalizat'    .97569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85026       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=   4241.908     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      284 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7229        11.983        .13917E-03   -.49226E-03
   2  alpha         3.1745        1.2731        .15544E-01   -.40439E-04
   3  Normalizat    .97572        .25172        .23681E-03    .34242E-03
   4  Prefactor     .85018        .26726        .27196E-03    .42380E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.72288
  alpha      = 3.17451
  Normalizat = 0.975715
  Prefactor  = 0.850179
 **********
 **   18 **HESSE 
 **********

 FCN=   4241.908     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7229        10.479        .55668E-05   -1.5152    
   2  alpha         3.1745        1.1254        .62176E-03    .27319    
   3  Normalizat    .97572        .25090        .47361E-04   -.93849    
   4  Prefactor     .85018        .26622        .54392E-04   -.97904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17786e-10
Minuit parameter uncertainties:
  1  10.4819
  2  1.17103
  3  0.2512
  4  0.266626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868351': 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) = 4241.9078357
delta logL = 0.479866343225

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  7.723e+00  1.048e+01  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  3.175e+00  1.171e+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:  8.502e-01  2.666e-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:  9.757e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 3.17 +/- 1.17
Photon Flux (Free Index): 7.53e-08 +/- 6.90e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.25e-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/868351/cmap_HighResolution_523411201_523670401_4FGL_J2325.4-3559_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-05', comment='SUCCESS', photon_flux='3.07e-08', energy_flux2='1.51e-05', photon_flux_error='3.50e-08', dlogl='4.80e-01', energy_flux='1.23e-05', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-09-29 17:53:01.915655', photon_index_error2='1.17', photon_index2='3.17', ts='1.05', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.25e-05', EG='1.03', time_epoch_completed='1632963181.92', return_code='0', job_id='868351', GAL2='0.85', EG2='0.98', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='6.90e-08', ts2='2.03', photon_index='2.13' WHERE bin_id='1096' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:53:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 868351: <4FGL_J2325.4-3559_daily_bin1096> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin1096 351.359 -35.9878 523411201 523670401 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 :                                   647.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

