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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin1577
RA = 351.35, Dec = -48.0022
tmin = 648086401, tmax = 648345601
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='880271', job_status='RUN', time_executed='2021-09-29 18:19:30.713545', time_epoch_executed='1632964770.71' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880271/ft1_4FGL_J2325.4-4800_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880271/ft1_4FGL_J2325.4-4800_daily_bin1577.fits outfile=/scratch/kocevski/880271/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1577.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.26
user 3.98
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.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/880271/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/880271/ltcube_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.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/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits
.....................!
real 11.63
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/880271/ltcube_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.fits outfile=/scratch/kocevski/880271/expmap_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.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/880271/ltcube_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.fits
.....................!
real 191.19
user 186.64
sys 4.22

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/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.fits scfile=/scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits outfile=/scratch/kocevski/880271/cmap_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.fits scfile=/scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits outfile=/scratch/kocevski/880271/cmap_HighResolution_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.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/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880271/Model_4FGL_J2325.4-4800_daily_bin1577.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/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.fits.....................!
real 36.28
user 34.54
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.fits', '/scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits', expMap='/scratch/kocevski/880271/expmap_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.fits', expCube='/scratch/kocevski/880271/ltcube_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/880271/Model_4FGL_J2325.4-4800_daily_bin1577.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/880271/ft1_filtered_4FGL_J2325.4-4800_daily_bin1577.fits
Spacecraft file(s): /scratch/kocevski/880271/ft2_4FGL_J2325.4-4800_daily_bin1577.fits
Exposure map: /scratch/kocevski/880271/expmap_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.fits
Exposure cube: /scratch/kocevski/880271/ltcube_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/880271/Model_4FGL_J2325.4-4800_daily_bin1577.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) = 4430.02990744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9553       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91015E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.780       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.209       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8702       1.0000         .10000E-03   10000.    
     8 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.006       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9514       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.497       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7269       1.0000         .10000E-03   10000.    
    19 'norm      '    10.936       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1022       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.492       1.0000         .10000E-03   10000.    
    23 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.350       1.0000         .10000E-03   10000.    
    25 'norm      '    .22682       1.0000         .10000E-03   10000.    
    26 'norm      '    4.6144       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.393       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.942       1.0000         .10000E-03   10000.    
    30 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.6017       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.0123       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .74568       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .75977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4430.000     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     4040 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9508        1.2482       -.30689E-06    .17289E-03
   2  Prefactor     .10083E-03    191.01       -.47768E-05** at limit **
   3  Prefactor     74.741        6.4474       -.57790E-06    .10863E-01
   4  Prefactor     .10000E-03    4.2778        .27767E-07** at limit **
   5  Prefactor     8.0395        1.0738        .17950E-06   -.71401E-04
   6  Prefactor     21.209        1.0038        .17995E-07   -.21285E-03
   7  Prefactor     6.8691        1.0277        .65519E-07   -.30270E-03
   8  norm          .10000E-03    13.916        .38118E-05** at limit **
   9  Prefactor     .10000E-03    2.6848        .17995E-07** at limit **
  10  Prefactor     .10004E-03    8.1099        .17383E-05** at limit **
  11  Prefactor     .72403        2.4465        .51712E-05    .10614E-02
  12  Prefactor     .10000E-03    19.230       -.41457E-05** at limit **
  13  Prefactor     23.020        2.0194       -.59681E-06    .34731E-02
  14  Prefactor     .10000E-03    32.011        .36022E-05** at limit **
  15  Prefactor     3.9518        1.1709       -.26048E-06   -.46904E-03
  16  Prefactor     29.499        1.0153       -.23178E-07    .30999E-03
  17  Prefactor     .10006E-03    5.9906       -.28402E-05** at limit **
  18  norm          1.7271        1.0598       -.23884E-06    .59101E-04
  19  norm          10.933        1.0075       -.51672E-09   -.14480E-03
  20  norm          .10000E-03    1.4973       -.39100E-07** at limit **
  21  Prefactor     4.1023        1.0294       -.17234E-06   -.56575E-04
  22  Prefactor     12.506        2.3240        .98894E-07   -.13644E-03
  23  norm          .10000E-03    2.0532        .42322E-07** at limit **
  24  Prefactor     18.347        1.0649        .58671E-07   -.62388E-03
  25  norm          .22748        1.0990       -.40312E-06   -.98403E-04
  26  norm          4.6152        3.8495       -.65394E-06   -.88133E-03
  27  Prefactor     23.400        1.3385       -.15424E-06    .17044E-02
  28  Prefactor     .10000E-03    2.3566        .30267E-07** at limit **
  29  Prefactor     10.936        1.2916        .43655E-06   -.10343E-02
  30  norm          .10000E-03    7.7358       -.58859E-07** at limit **
  31  Prefactor     5.6019        4.2250        .43444E-05    .11370E-02
  32  Prefactor     5.0075        3.9380       -.16104E-05   -.71207E-03
  33  Normalizat    .74521        .20191       -.18225E-05   -.81046E-04
  34  Prefactor     .76016        .21459        .71984E-07   -.52980E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95078
  Prefactor  = 0.000100832
  Prefactor  = 74.7413
  Prefactor  = 0.0001
  Prefactor  = 8.03946
  Prefactor  = 21.2085
  Prefactor  = 6.86913
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.724032
  Prefactor  = 0.0001
  Prefactor  = 23.0199
  Prefactor  = 0.000100005
  Prefactor  = 3.95184
  Prefactor  = 29.4987
  Prefactor  = 0.000100056
  norm       = 1.7271
  norm       = 10.9332
  norm       = 0.0001
  Prefactor  = 4.10228
  Prefactor  = 12.5063
  norm       = 0.0001
  Prefactor  = 18.3466
  norm       = 0.22748
  norm       = 4.61518
  Prefactor  = 23.3995
  Prefactor  = 0.0001
  Prefactor  = 10.9361
  norm       = 0.0001
  Prefactor  = 5.60193
  Prefactor  = 5.00746
  Normalizat = 0.745213
  Prefactor  = 0.760155
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.000     FROM HESSE     STATUS=OK           816 CALLS     4856 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9508        146.55        .59057E-02   -1.5364    
   2  Prefactor     .10083E-03    14.214        .13064       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.741        47.591        .11608E-02   -1.3977    
   4  Prefactor     .10000E-03    4.2769        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.0395        9.5995        .35356E-02   -1.5141    
   6  Prefactor     21.209        26.372        .21743E-02   -1.4787    
   7  Prefactor     6.8691        7.0189        .38267E-02   -1.5184    
   8  norm          .10000E-03    14.850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    11.559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72403        6.1360        .12154E-01   -1.5538    
  12  Prefactor     .10000E-03    19.722        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.020        14.827        .20878E-02   -1.4748    
  14  Prefactor     .10000E-03    32.311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9518        4.5719        .50731E-02   -1.5310    
  16  Prefactor     29.499        24.223        .18442E-02   -1.4621    
  17  Prefactor     .10006E-03    11.949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7271        31.716        .79885E-02   -1.5445    
  19  norm          10.933        9.2722        .30288E-02   -1.5047    
  20  norm          .10000E-03    1.4977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1023        8.2613        .49761E-02   -1.5303    
  22  Prefactor     12.506        31.928        .28334E-02   -1.5001    
  23  norm          .10000E-03    2.0325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.347        20.818        .23375E-02   -1.4851    
  25  norm          .22748        .81853        .29472E-01   -1.5613    
  26  norm          4.6152        4.0689        .46843E-02   -1.5278    
  27  Prefactor     23.400        21.129        .20705E-02   -1.4740    
  28  Prefactor     .10000E-03    2.3268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.936        14.876        .30279E-02   -1.5046    
  30  norm          .10000E-03    7.7343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.6019        5.1142        .42434E-02   -1.5235    
  32  Prefactor     5.0075        4.0840        .44904E-02   -1.5260    
  33  Normalizat    .74521        .18768        .42897E-01   -1.0213    
  34  Prefactor     .76016        .18678        .43191E-01   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78868e-07
Minuit parameter uncertainties:
  1  41.6976
  2  0.0068779
  3  47.6155
  4  1.41535e-05
  5  9.6013
  6  26.3865
  7  7.01971
  8  0.00045427
  9  6.09485e-06
  10  0.00130113
  11  4.21582
  12  0.000123485
  13  14.8293
  14  0.000768346
  15  4.57233
  16  24.2311
  17  0.00163232
  18  14.8109
  19  9.27346
  20  4.14083e-06
  21  8.2636
  22  31.9711
  23  6.70865e-06
  24  20.8264
  25  0.818568
  26  4.06915
  27  21.1356
  28  3.02312e-06
  29  14.8807
  30  2.06409e-05
  31  5.11461
  32  4.08421
  33  0.187847
  34  0.186934
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  4.102e+00  8.264e+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:  7.602e-01  1.869e-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:  7.452e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/880271/likelihoodResults_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.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) = 4429.91052402
delta logL = 0.0891294021994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4429.90640338
delta logL = 0.0932500510571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8724       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7611       1.0000          .0000       10.000    
     3 'Normalizat'    .75082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75621       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4429.906     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8724        8.7113        .82860E-03   -.16266E-03
   2  Index         1.7619        .74067        .10371E-01    .87537E-04
   3  Normalizat    .75093        .19625        .22789E-03    .43901E-05
   4  Prefactor     .75617        .21389        .24624E-03    .17083E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87243
  Index      = 1.76192
  Normalizat = 0.750931
  Prefactor  = 0.756168
 **********
 **   18 **HESSE 
 **********

 FCN=   4429.906     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8724        8.6287        .33144E-04   -1.5223    
   2  Index         1.7619        .73389        .20743E-02   -.70445    
   3  Normalizat    .75093        .19643        .91155E-05   -1.0192    
   4  Prefactor     .75617        .21411        .98495E-05   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68879e-11
Minuit parameter uncertainties:
  1  8.63052
  2  0.738503
  3  0.196616
  4  0.214343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880271': 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) = 4429.90640228
delta logL = 0.0932511504416

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  5.872e+00  8.631e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  1.762e+00  7.385e-01  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:  7.562e-01  2.143e-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:  7.509e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/880271/cmap_HighResolution_648086401_648345601_4FGL_J2325.4-4800_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='9.09e-08', time_completed='2021-09-29 18:31:38.384487', job_id='880271', GAL2='0.76', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632965498.38', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='9.33e-02', ts2='0.74', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1577' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 880271: <4FGL_J2325.4-4800_daily_bin1577> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin1577> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:15:28 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:15:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:15:30 2021
Terminated at Wed Sep 29 18:31:39 2021
Results reported at Wed Sep 29 18:31:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin1577 351.35 -48.0022 648086401 648345601 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 :                                   722.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

