/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 0 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.4-4800_daily_bin41
RA = 351.35, Dec = -48.0022
tmin = 249955201, tmax = 250214401
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='871093', job_status='RUN', time_executed='2021-09-29 17:50:28.450853', time_epoch_executed='1632963028.45' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/871093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/871093/ft1_4FGL_J2325.4-4800_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/871093/ft1_4FGL_J2325.4-4800_daily_bin41.fits outfile=/scratch/kocevski/871093/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin41.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.41
user 1.23
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.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/871093/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/871093/ltcube_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.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/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits
.....................!
real 12.45
user 12.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/871093/ltcube_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.fits outfile=/scratch/kocevski/871093/expmap_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.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/871093/ltcube_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.fits
.....................!
real 189.73
user 184.34
sys 5.08

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J2325.4-4800 @ 351.35 -48.0022

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.fits scfile=/scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits outfile=/scratch/kocevski/871093/cmap_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.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.35 yref=-48.0022 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.fits scfile=/scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits outfile=/scratch/kocevski/871093/cmap_HighResolution_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.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.35 yref=-48.0022 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/871093/Model_4FGL_J2325.4-4800_daily_bin41.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/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.fits....................!
real 42.98
user 41.69
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.fits', '/scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits', expMap='/scratch/kocevski/871093/expmap_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.fits', expCube='/scratch/kocevski/871093/ltcube_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/871093/Model_4FGL_J2325.4-4800_daily_bin41.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.4-4800'

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  3.164e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/871093/ft1_filtered_4FGL_J2325.4-4800_daily_bin41.fits
Spacecraft file(s): /scratch/kocevski/871093/ft2_4FGL_J2325.4-4800_daily_bin41.fits
Exposure map: /scratch/kocevski/871093/expmap_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.fits
Exposure cube: /scratch/kocevski/871093/ltcube_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/871093/Model_4FGL_J2325.4-4800_daily_bin41.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) = 5929.20443675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.397       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.2986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60083       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.338       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3797       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.338       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .97086E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6430       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7624       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3238       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0790       1.0000         .10000E-03   10000.    
    26 'norm      '    4.2577       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.4336       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.7196       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    13.020       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .23518E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.4250       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .93567       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .90384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5929.165     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4798 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.806        .11059E-06** at limit **
   2  Prefactor     .10000E-03    49.386       -.12700E-07** at limit **
   3  Prefactor     .10000E-03    17.033        .86393E-07** at limit **
   4  Prefactor     15.029        14.214       -.26874E-06   -.75399E-04
   5  Prefactor     .10000E-03    2.9202       -.57987E-08** at limit **
   6  Prefactor     52.413        38.229        .42327E-06    .69795E-04
   7  Prefactor     .10000E-03    8.4066        .62313E-07** at limit **
   8  norm          9.2978        7.6181        .22668E-07    .38575E-05
   9  Prefactor     .59555        3.6859        .97160E-06   -.38365E-03
  10  Prefactor     .10000E-03    20.529       -.29092E-06** at limit **
  11  Prefactor     10.338        5.6064        .34939E-07   -.15751E-03
  12  Prefactor     .10000E-03    17.448       -.70530E-07** at limit **
  13  Prefactor     .10000E-03    6.5488       -.23768E-07** at limit **
  14  Prefactor     .10000E-03    47.666        .44676E-07** at limit **
  15  Prefactor     3.3794        4.2613        .66809E-07   -.11037E-03
  16  Prefactor     .10000E-03    22.663       -.17282E-06** at limit **
  17  Prefactor     35.335        23.035       -.12888E-07   -.63977E-04
  18  norm          .10000E-03    3.1130        .36826E-08** at limit **
  19  norm          .10149        4.7166       -.15771E-06    .41619E-04
  20  norm          7.6430        5.1282       -.25420E-07   -.46118E-04
  21  Prefactor     3.7614        5.3674        .17983E-06   -.71793E-05
  22  Prefactor     4.3215        16.961        .53835E-06   -.14056E-04
  23  norm          .10000E-03    .95747       -.31420E-07** at limit **
  24  Prefactor     .10000E-03    16.683        .30369E-06** at limit **
  25  norm          2.0785        1.7213        .11062E-06   -.30801E-03
  26  norm          4.2575        3.2456        .69514E-07   -.29300E-04
  27  Prefactor     9.4431        16.922       -.54562E-06   -.76399E-04
  28  Prefactor     5.7247        4.1514       -.25851E-06   -.33204E-03
  29  Prefactor     .10000E-03    28.164        .88440E-06** at limit **
  30  norm          13.057        18.415       -.22678E-05   -.91501E-04
  31  Prefactor     .10001E-03    3.7208        .12805E-05** at limit **
  32  Prefactor     8.4232        5.6767        .17426E-06   -.12069E-03
  33  Normalizat    .93590        .19234       -.15292E-05   -.26146E-03
  34  Prefactor     .90372        .19185        .43563E-06   -.28404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0288
  Prefactor  = 0.0001
  Prefactor  = 52.4129
  Prefactor  = 0.0001
  norm       = 9.29777
  Prefactor  = 0.595552
  Prefactor  = 0.0001
  Prefactor  = 10.3375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37941
  Prefactor  = 0.0001
  Prefactor  = 35.3355
  norm       = 0.0001
  norm       = 0.101487
  norm       = 7.64296
  Prefactor  = 3.76143
  Prefactor  = 4.32154
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0785
  norm       = 4.25749
  Prefactor  = 9.44308
  Prefactor  = 5.72472
  Prefactor  = 0.0001
  norm       = 13.0571
  Prefactor  = 0.000100013
  Prefactor  = 8.42318
  Normalizat = 0.935898
  Prefactor  = 0.90372
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.165     FROM HESSE     STATUS=OK           738 CALLS     5536 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.029        14.229        .10333E-03   -1.4932    
   5  Prefactor     .10000E-03    2.9250        .12850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.413        38.096        .27704E-03   -1.4259    
   7  Prefactor     .10000E-03    8.5860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.2978        7.6270        .13143E-03   -1.5098    
   9  Prefactor     .59555        6.5995        .25701E-02   -1.5554    
  10  Prefactor     .10000E-03    20.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.338        5.5973        .12461E-03   -1.5065    
  12  Prefactor     .10000E-03    17.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3794        4.2532        .17281E-03   -1.5340    
  16  Prefactor     .10000E-03    22.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.335        22.991        .67415E-04   -1.4518    
  18  norm          .10000E-03    3.1139        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10149        46.776        .31317E-02   -1.5644    
  20  norm          7.6430        5.1211        .13337E-03   -1.5155    
  21  Prefactor     3.7614        5.3123        .19620E-03   -1.5320    
  22  Prefactor     4.3215        16.902        .19373E-03   -1.5292    
  23  norm          .10000E-03    .95889        .73504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0785        1.7420        .75205E-04   -1.5420    
  26  norm          4.2575        3.2397        .11631E-03   -1.5295    
  27  Prefactor     9.4431        16.977        .13048E-03   -1.5093    
  28  Prefactor     5.7247        4.1426        .12403E-03   -1.5229    
  29  Prefactor     .10000E-03    28.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          13.057        18.541        .11101E-03   -1.4985    
  31  Prefactor     .10001E-03    29.217        .25577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     8.4232        5.6793        .13811E-03   -1.5127    
  33  Normalizat    .93590        .22547        .24066E-03   -.95210    
  34  Prefactor     .90372        .22765        .26441E-03   -.96011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65556e-10
Minuit parameter uncertainties:
  1  1.98827e-05
  2  8.35677e-05
  3  2.41881e-05
  4  14.2324
  5  1.62767e-06
  6  38.1141
  7  1.46305e-05
  8  7.62779
  9  3.96525
  10  0.000105076
  11  5.59759
  12  6.11735e-06
  13  7.87633e-06
  14  5.21351e-05
  15  4.25362
  16  5.39063e-05
  17  22.997
  18  9.94928e-07
  19  4.35886
  20  5.12141
  21  5.31299
  22  16.9204
  23  8.05576e-07
  24  3.01212e-05
  25  1.74201
  26  3.23985
  27  16.9861
  28  4.14277
  29  0.000174443
  30  18.5495
  31  0.0012226
  32  5.67966
  33  0.225701
  34  0.227887
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  3.761e+00  5.313e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.037e-01  2.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  9.359e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.85
Ra Dec: 351.350 -48.002
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/871093/likelihoodResults_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.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) = 5929.16498955
delta logL = 2.54333954217e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.16497431
delta logL = 4.06728440794e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7362       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1147       1.0000          .0000       10.000    
     3 'Normalizat'    .93580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   5929.165     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      252 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7367        6.0552        .19530E-03   -.37371E-03
   2  Index         2.1153        1.1057        .11452E-01   -.52867E-04
   3  Normalizat    .93566        .20678        .24068E-03    .20590E-03
   4  Prefactor     .90386        .22308        .26439E-03    .23073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.73668
  Index      = 2.11526
  Normalizat = 0.935662
  Prefactor  = 0.903863
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.165     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7367        5.7684        .78120E-05   -1.5321    
   2  Index         2.1153        1.0536        .45808E-03   -.61499    
   3  Normalizat    .93566        .20665        .96274E-05   -.95218    
   4  Prefactor     .90386        .22316        .10576E-04   -.96006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02655e-10
Minuit parameter uncertainties:
  1  5.76927
  2  1.06566
  3  0.206824
  4  0.223384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/871093': 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) = 5929.16497373
delta logL = 4.12524495914e-05

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  3.737e+00  5.769e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.115e+00  1.066e+00  0.000e+00  1.000e+01 (-1.000e+00)
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.039e-01  2.234e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  9.357e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.85
Ra Dec: 351.350 -48.002

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/871093/cmap_HighResolution_249955201_250214401_4FGL_J2325.4-4800_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-29 18:05:33.525889', job_id='871093', GAL2='0.90', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632963933.53', return_code2='0', ts='0.85', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.13e-05', ts2='0.85', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='41' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:05:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 871093: <4FGL_J2325.4-4800_daily_bin41> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin41> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 17:50:20 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:50:21 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:50:21 2021
Terminated at Wed Sep 29 18:05:34 2021
Results reported at Wed Sep 29 18:05:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin41 351.35 -48.0022 249955201 250214401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.4-4800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   902.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

