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


Performing analysis on: 4FGL_J1125.5-3557_daily_bin963
RA = 171.393, Dec = -35.9581
tmin = 488937601, tmax = 489196801
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='775153', job_status='RUN', time_executed='2021-09-03 20:10:17.612834', time_epoch_executed='1630725017.61' WHERE source_name='4FGL J1125.5-3557' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775153

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775153/ft1_4FGL_J1125.5-3557_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775153/ft1_4FGL_J1125.5-3557_daily_bin963.fits outfile=/scratch/kocevski/775153/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin963.fits ra=171.393 dec=-35.9581 rad=12.0 tmin=488937601.0 tmax=489196801.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.64
user 3.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.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/775153/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin963.fits evtable="EVENTS" outfile="/scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/775153/ltcube_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.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/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits
.....................!
real 17.51
user 17.05
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/775153/ltcube_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.fits outfile=/scratch/kocevski/775153/expmap_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.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/775153/ltcube_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.fits
.....................!
real 192.83
user 186.83
sys 5.34

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Added 188 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1125.5-3557 @ 171.393 -35.9581

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.fits scfile=/scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits outfile=/scratch/kocevski/775153/cmap_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.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=171.393 yref=-35.9581 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.fits scfile=/scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits outfile=/scratch/kocevski/775153/cmap_HighResolution_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.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=171.393 yref=-35.9581 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.60
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775153/Model_4FGL_J1125.5-3557_daily_bin963.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 G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.fits.....................!
real 74.12
user 72.13
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.fits', '/scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits', expMap='/scratch/kocevski/775153/expmap_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.fits', expCube='/scratch/kocevski/775153/ltcube_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/775153/Model_4FGL_J1125.5-3557_daily_bin963.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.5-3557'

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  7.579e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/775153/ft1_filtered_4FGL_J1125.5-3557_daily_bin963.fits
Spacecraft file(s): /scratch/kocevski/775153/ft2_4FGL_J1125.5-3557_daily_bin963.fits
Exposure map: /scratch/kocevski/775153/expmap_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.fits
Exposure cube: /scratch/kocevski/775153/ltcube_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/775153/Model_4FGL_J1125.5-3557_daily_bin963.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) = 6881.84940716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1537       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24031E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1562       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85804       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.489       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1054       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.9966       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .72142       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6881.845     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1949 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0888        28.700       -.68350E-06   -.21600E-04
   2  Prefactor     .10000E-03    1.6811        .14095E-05** at limit **
   3  Prefactor     .10000E-03    12.281        .35128E-05** at limit **
   4  Prefactor     9.1553        11.428        .79752E-07   -.73906E-04
   5  norm          .10000E-03    1.2044        .28599E-06** at limit **
   6  norm          .10000E-03    6.8995       -.14254E-07** at limit **
   7  Prefactor     .10000E-03    20.353       -.11331E-06** at limit **
   8  Prefactor     .87795        9.6885        .13436E-05   -.18848E-05
   9  Prefactor     .10000E-03    42.137       -.12269E-05** at limit **
  10  norm          .10000E-03    15.722        .14559E-06** at limit **
  11  Prefactor     .10000E-03    12.371       -.40727E-08** at limit **
  12  norm          15.696        9.7365        .16000E-06   -.59865E-04
  13  Prefactor     .10000E-03    15.135       -.56507E-05** at limit **
  14  Prefactor     42.488        34.048        .93525E-06   -.21040E-04
  15  Prefactor     .10000E-03    20.233       -.22180E-06** at limit **
  16  norm          .10000E-03    7.4075        .14751E-08** at limit **
  17  Prefactor     1.1049        9.4974        .52574E-05   -.12444E-03
  18  Normalizat    1.9971        .29864       -.33893E-05   -.22876E-03
  19  Prefactor     .72125        .11003       -.35571E-07   -.10151E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.08881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.15532
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.877954
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6955
  Prefactor  = 0.000100002
  Prefactor  = 42.4877
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.10488
  Normalizat = 1.99715
  Prefactor  = 0.721254
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.845     FROM HESSE     STATUS=OK           272 CALLS     2221 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0888        28.812        .14041E-03   -1.5139    
   2  Prefactor     .10000E-03    1.6818        .10489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    83.899        .51519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1553        11.429        .13245E-03   -1.5103    
   5  norm          .10000E-03    2.1780        .17654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.9025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .87795        67.428        .49070E-02   -1.5521    
   9  Prefactor     .10000E-03    42.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    15.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.696        9.7336        .10110E-03   -1.4915    
  13  Prefactor     .10000E-03    35.716        .34174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.488        34.115        .61501E-04   -1.4403    
  15  Prefactor     .10000E-03    20.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1049        13.885        .22530E-02   -1.5498    
  18  Normalizat    1.9971        .32883        .32237E-03   -.64622    
  19  Prefactor     .72125        .12565        .19335E-03   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61232e-08
Minuit parameter uncertainties:
  1  28.8615
  2  6.65217e-06
  3  0.000288535
  4  11.432
  5  6.81251e-05
  6  3.72441e-06
  7  6.11085e-06
  8  15.4052
  9  0.000102092
  10  1.92698e-05
  11  5.17546e-05
  12  9.73455
  13  0.000577909
  14  34.131
  15  8.44668e-06
  16  6.7752e-06
  17  7.83545
  18  0.329201
  19  0.125701
Done.

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

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.021e-04  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  7.213e-01  1.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.997e+00  3.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.393 -35.958
Photon Flux Upper Limit: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775153/likelihoodResults_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.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): 102
logL (Free Index) = 6881.84495366
delta logL = -0.000112482040095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6881.84484131
delta logL = -1.31890374178e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9497       1.0000          .0000       10.000    
     3 'Normalizat'    1.9971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+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=   6881.845     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      267 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6463.9        .18142E-02** at limit **
   2  Index         1.9768        7.2395        .50000       -.63009E-05
   3  Normalizat    1.9971        .71271E-01    .32237E-03    .33195E-03
   4  Prefactor     .72126        .27752E-01    .19335E-03    .70110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.97679
  Normalizat = 1.99714
  Prefactor  = 0.72126
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.845     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8480.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9768        7.9221        .50000       -.64932    
   3  Normalizat    1.9971        .27914        .64474E-04   -.64622    
   4  Prefactor     .72126        .10875        .38670E-04   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.30095e-10
Minuit parameter uncertainties:
  1  0.00834776
  2  62.3581
  3  0.279371
  4  0.10878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775153': 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): 102
logL (Free Index) = 6881.84484123
delta logL = -5.39102984476e-08

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  8.348e-03  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  1.977e+00  6.236e+01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  7.213e-01  1.088e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.997e+00  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.393 -35.958

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/775153/cmap_HighResolution_488937601_489196801_4FGL_J1125.5-3557_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-09-03 20:21:37.991072', job_id='775153', GAL2='0.72', fit_tolerance='1e-08', EG2='2.00', EG='2.00', time_epoch_completed='1630725697.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-5.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='963' AND source_name='4FGL J1125.5-3557' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 775153: <4FGL_J1125.5-3557_daily_bin963> in cluster <slac> Done

Job <4FGL_J1125.5-3557_daily_bin963> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:06:33 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:06:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:06:53 2021
Terminated at Fri Sep  3 20:21:38 2021
Results reported at Fri Sep  3 20:21:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.5-3557_daily_bin963 171.393 -35.9581 488937601 489196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.5-3557 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             256.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            905 sec.

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

