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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin1064
RA = 351.359, Dec = -35.9878
tmin = 515116801, tmax = 515376001
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='868305', job_status='RUN', time_executed='2021-09-29 17:42:38.210286', time_epoch_executed='1632962558.21' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868305

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868305/ft1_4FGL_J2325.4-3559_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868305/ft2_4FGL_J2325.4-3559_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868305/ft1_4FGL_J2325.4-3559_daily_bin1064.fits outfile=/scratch/kocevski/868305/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin1064.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=515116801.0 tmax=515376001.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.51
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868305/ft1_filtered_4FGL_J2325.4-3559_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/868305/ft2_4FGL_J2325.4-3559_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/868305/ltcube_515116801_515376001_4FGL_J2325.4-3559_daily_bin1064.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/868305/ft2_4FGL_J2325.4-3559_daily_bin1064.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868305/ft1_filtered_4FGL_J2325.4-3559_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/868305/ft2_4FGL_J2325.4-3559_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/868305/ltcube_515116801_515376001_4FGL_J2325.4-3559_daily_bin1064.fits outfile=/scratch/kocevski/868305/expmap_515116801_515376001_4FGL_J2325.4-3559_daily_bin1064.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/868305/ltcube_515116801_515376001_4FGL_J2325.4-3559_daily_bin1064.fits
.....................!
real 191.10
user 186.82
sys 3.90

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/868305/ft1_filtered_4FGL_J2325.4-3559_daily_bin1064.fits scfile=/scratch/kocevski/868305/ft2_4FGL_J2325.4-3559_daily_bin1064.fits outfile=/scratch/kocevski/868305/cmap_515116801_515376001_4FGL_J2325.4-3559_daily_bin1064.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868305/ft1_filtered_4FGL_J2325.4-3559_daily_bin1064.fits scfile=/scratch/kocevski/868305/ft2_4FGL_J2325.4-3559_daily_bin1064.fits outfile=/scratch/kocevski/868305/cmap_HighResolution_515116801_515376001_4FGL_J2325.4-3559_daily_bin1064.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/868305/ft1_filtered_4FGL_J2325.4-3559_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/868305/ft2_4FGL_J2325.4-3559_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/868305/Model_4FGL_J2325.4-3559_daily_bin1064.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/868305/ft1_filtered_4FGL_J2325.4-3559_daily_bin1064.fits....................!
real 44.16
user 42.76
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14141E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.840       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5154       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.041       1.0000         .10000E-03   10000.    
    12 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20096E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12583       1.0000         .10000E-03   10000.    
    16 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0082       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2049       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.6148       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0584       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2188       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2925       1.0000         .10000E-03   10000.    
    27 'Prefactor '    39.663       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88925       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83045       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=   5917.351     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     4304 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.454        .79062E-05** at limit **
   2  Prefactor     .10000E-03    2.7981        .18432E-06** at limit **
   3  Prefactor     .10220E-03    13.103       -.24299E-08** at limit **
   4  Prefactor     .10000E-03    12.231        .34261E-05** at limit **
   5  Prefactor     13.837        17.283        .11131E-05   -.33388E-04
   6  Prefactor     .10000E-03    26.541        .40895E-05** at limit **
   7  Prefactor     .10000E-03    8.1891       -.18904E-06** at limit **
   8  Prefactor     .10000E-03    3.3915       -.26499E-07** at limit **
   9  norm          1.5157        2.9218       -.26310E-06   -.39633E-03
  10  Prefactor     .10000E-03    10.240       -.28172E-05** at limit **
  11  Prefactor     33.035        10.244        .17517E-06    .10119E-02
  12  norm          .10000E-03    .42616        .97174E-07** at limit **
  13  Prefactor     .10000E-03    21.427        .17355E-04** at limit **
  14  Prefactor     .10000E-03    17.823       -.11730E-04** at limit **
  15  norm          .12965        7.1254       -.16023E-05    .37591E-03
  16  norm          .10000E-03    3.6981        .51318E-07** at limit **
  17  norm          5.0086        6.0021        .14697E-05   -.16533E-03
  18  Prefactor     4.2452        99.915        .80567E-05   -.98936E-05
  19  Prefactor     .10000E-03    29.279       -.16399E-04** at limit **
  20  norm          5.6111        5.3933       -.72764E-06   -.35184E-03
  21  Prefactor     .10000E-03    9.1315        .11680E-05** at limit **
  22  norm          .10000E-03    1.3001       -.71164E-08** at limit **
  23  Prefactor     .10000E-03    43.144       -.12648E-05** at limit **
  24  Prefactor     1.0647        34.750        .86013E-06   -.67114E-04
  25  Prefactor     4.2188        6.7539        .26206E-05   -.35988E-03
  26  Prefactor     2.2929        3.3877       -.15825E-06   -.35366E-03
  27  Prefactor     39.641        49.784       -.82609E-05   -.48378E-04
  28  Normalizat    .88924        .15807       -.18433E-06    .48581E-04
  29  Prefactor     .83039        .16664       -.12566E-06    .57897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102198
  Prefactor  = 0.0001
  Prefactor  = 13.8367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51574
  Prefactor  = 0.0001
  Prefactor  = 33.035
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.129646
  norm       = 0.0001
  norm       = 5.00857
  Prefactor  = 4.24523
  Prefactor  = 0.0001
  norm       = 5.61109
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06472
  Prefactor  = 4.21884
  Prefactor  = 2.29292
  Prefactor  = 39.6411
  Normalizat = 0.889242
  Prefactor  = 0.830393
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.351     FROM HESSE     STATUS=OK           571 CALLS     4875 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9094        .25028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10220E-03    14.723        .92075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.837        17.279        .10767E-03   -1.4964    
   6  Prefactor     .10000E-03    26.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4302        .13831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5157        2.8696        .16973E-03   -1.5462    
  10  Prefactor     .10000E-03    10.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.035        9.2406        .69711E-04   -1.4558    
  12  norm          .10000E-03    .80237        .87670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.187        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .12965        10.732        .69209E-01   -1.5636    
  16  norm          .10000E-03    3.7271        .14353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0086        5.9849        .17969E-03   -1.5260    
  18  Prefactor     4.2452        94.131        .19652E-03   -1.5296    
  19  Prefactor     .10000E-03    29.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.6111        5.1988        .12335E-03   -1.5234    
  21  Prefactor     .10000E-03    9.1724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3099        .85526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    43.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.0647        287.62        .84420E-02   -1.5502    
  25  Prefactor     4.2188        6.6364        .19619E-03   -1.5297    
  26  Prefactor     2.2929        3.3760        .16679E-03   -1.5405    
  27  Prefactor     39.641        49.244        .63645E-04   -1.4448    
  28  Normalizat    .88924        .19009        .21559E-03   -.96839    
  29  Prefactor     .83039        .20010        .24600E-03   -.98618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.722e-09
Minuit parameter uncertainties:
  1  6.84285e-05
  2  3.03385e-05
  3  0.0113804
  4  1.31209e-06
  5  17.2848
  6  4.70953e-05
  7  3.45582e-06
  8  1.30143e-06
  9  2.8699
  10  1.61346e-05
  11  9.24102
  12  1.06146e-05
  13  1.09037e-05
  14  0.000208181
  15  2.35867
  16  1.54167e-05
  17  5.98557
  18  40.0514
  19  2.12526e-06
  20  5.1992
  21  1.5223e-07
  22  2.04393e-06
  23  1.631e-05
  24  35.1693
  25  6.63759
  26  3.37624
  27  49.2943
  28  0.190235
  29  0.200279
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  5.009e+00  5.986e+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:  8.304e-01  2.003e-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:  8.892e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 351.359 -35.988
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.56e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 6.26e-06 +/- 7.48e-06

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

Saving results to:
/scratch/kocevski/868305/likelihoodResults_515116801_515376001_4FGL_J2325.4-3559_daily_bin1064.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) = 5916.56417662
delta logL = 0.786608516626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5916.56144211
delta logL = 0.789343023231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3811       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5920       1.0000          .0000       5.0000    
     3 'Normalizat'    .83097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86964       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5916.561     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      282 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3811        8.4754        .47335E-03   -.43088E-03
   2  alpha         3.5917        1.7669        .16572E-01    .10210E-04
   3  Normalizat    .83095        .18706        .22211E-03    .20064E-04
   4  Prefactor     .86958        .20321        .24087E-03   -.15292E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.38108
  alpha      = 3.59172
  Normalizat = 0.830953
  Prefactor  = 0.869578
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.561     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3811        5.0690        .18934E-04   -1.5340    
   2  alpha         3.5917        1.1558        .66289E-03    .45191    
   3  Normalizat    .83095        .18397        .88845E-05   -.98931    
   4  Prefactor     .86958        .19997        .96349E-05   -.97212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81769e-10
Minuit parameter uncertainties:
  1  5.06967
  2  1.21385
  3  0.184108
  4  0.200138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868305': 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) = 5916.56144152
delta logL = 0.789343617173

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  3.381e+00  5.070e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  3.592e+00  1.214e+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.696e-01  2.001e-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:  8.310e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 3.59 +/- 1.21
Photon Flux (Free Index): 5.70e-08 +/- 4.46e-08
Energy Flux (Free Index): 9.98e-06 +/- 7.13e-06

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/868305/cmap_HighResolution_515116801_515376001_4FGL_J2325.4-3559_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-05', comment='SUCCESS', photon_flux='1.56e-08', energy_flux2='9.98e-06', photon_flux_error='1.86e-08', dlogl='7.89e-01', energy_flux='6.26e-06', photon_flux2='5.70e-08', job_status='DONE', time_completed='2021-09-29 17:56:39.364401', photon_index_error2='1.21', photon_index2='3.59', ts='1.09', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.31e-08', energy_flux_error2='7.13e-06', EG='0.89', time_epoch_completed='1632963399.36', return_code='0', job_id='868305', GAL2='0.87', EG2='0.83', return_code2='0', energy_flux_error='7.48e-06', photon_flux_error2='4.46e-08', ts2='2.73', photon_index='2.13' WHERE bin_id='1064' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:56:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 868305: <4FGL_J2325.4-3559_daily_bin1064> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin1064 351.359 -35.9878 515116801 515376001 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 :                                   836.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

