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


Performing analysis on: 4FGL_J1125.5-3557_daily_bin1019
RA = 171.393, Dec = -35.9581
tmin = 503452801, tmax = 503712001
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='775234', job_status='RUN', time_executed='2021-09-03 20:11:07.715693', time_epoch_executed='1630725067.72' WHERE source_name='4FGL J1125.5-3557' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775234/ft1_4FGL_J1125.5-3557_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775234/ft1_4FGL_J1125.5-3557_daily_bin1019.fits outfile=/scratch/kocevski/775234/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin1019.fits ra=171.393 dec=-35.9581 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.90
user 7.49
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.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/775234/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.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.54
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/775234/ltcube_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.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/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits
.....................!
real 17.66
user 17.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/775234/ltcube_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.fits outfile=/scratch/kocevski/775234/expmap_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.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/775234/ltcube_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.fits
.....................!
real 192.14
user 186.33
sys 4.93

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/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.fits scfile=/scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits outfile=/scratch/kocevski/775234/cmap_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.fits scfile=/scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits outfile=/scratch/kocevski/775234/cmap_HighResolution_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775234/Model_4FGL_J1125.5-3557_daily_bin1019.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/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.fits.....................!
real 63.65
user 62.22
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.fits', '/scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits', expMap='/scratch/kocevski/775234/expmap_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.fits', expCube='/scratch/kocevski/775234/ltcube_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/775234/Model_4FGL_J1125.5-3557_daily_bin1019.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/775234/ft1_filtered_4FGL_J1125.5-3557_daily_bin1019.fits
Spacecraft file(s): /scratch/kocevski/775234/ft2_4FGL_J1125.5-3557_daily_bin1019.fits
Exposure map: /scratch/kocevski/775234/expmap_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.fits
Exposure cube: /scratch/kocevski/775234/ltcube_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/775234/Model_4FGL_J1125.5-3557_daily_bin1019.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) = 6277.94739638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.399       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14031E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0290       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.128       1.0000         .10000E-03   10000.    
    10 'norm      '    23.630       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.766       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9476       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9196       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96672       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0956       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=   6277.912     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1863 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.404        33.418        .58436E-06    .16710E-03
   2  Prefactor     .10000E-03    1.7001       -.28262E-06** at limit **
   3  Prefactor     .10001E-03    8.9187       -.10850E-06** at limit **
   4  Prefactor     1.0300        12.871        .35512E-05    .25267E-04
   5  norm          .10000E-03    1.2865       -.18666E-06** at limit **
   6  norm          .10000E-03    11.802       -.17916E-06** at limit **
   7  Prefactor     .10000E-03    15.987        .22213E-09** at limit **
   8  Prefactor     .10000E-03    5.5379       -.15978E-06** at limit **
   9  Prefactor     11.106        37.360        .14353E-05    .43063E-04
  10  norm          23.580        38.903        .30273E-05    .11030E-03
  11  Prefactor     .10000E-03    7.0547        .28830E-06** at limit **
  12  norm          11.766        8.1008        .40645E-07    .26136E-04
  13  Prefactor     2.9445        6.6111       -.45138E-06   -.38030E-04
  14  Prefactor     .10000E-03    4.9150        .13534E-07** at limit **
  15  Prefactor     .10000E-03    17.582       -.33891E-06** at limit **
  16  norm          .10000E-03    14.947        .13961E-06** at limit **
  17  Prefactor     8.9143        15.535       -.14815E-06    .13459E-06
  18  Normalizat    .96777        .31132        .10314E-04    .19797E-03
  19  Prefactor     1.0952        .13298       -.36857E-05    .73954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.4044
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 1.02999
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1059
  norm       = 23.5799
  Prefactor  = 0.0001
  norm       = 11.7658
  Prefactor  = 2.9445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.91425
  Normalizat = 0.96777
  Prefactor  = 1.09519
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.912     FROM HESSE     STATUS=OK           262 CALLS     2125 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.404        33.323        .60168E-04   -1.4374    
   2  Prefactor     .10000E-03    1.7082        .10102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    44.891        .41655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0300        13.185        .25088E-02   -1.5505    
   5  norm          .10000E-03    1.3298        .17558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.106        37.429        .12010E-03   -1.5041    
  10  norm          23.580        39.131        .82403E-04   -1.4736    
  11  Prefactor     .10000E-03    7.0724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.766        8.0958        .11679E-03   -1.5022    
  13  Prefactor     2.9445        6.6352        .11828E-02   -1.5365    
  14  Prefactor     .10000E-03    4.9169        .17155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9143        15.530        .13420E-03   -1.5111    
  18  Normalizat    .96777        .31288        .39248E-03   -.94118    
  19  Prefactor     1.0952        .13295        .15831E-03   -.89621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07164e-10
Minuit parameter uncertainties:
  1  33.3368
  2  1.16716e-05
  3  0.00119062
  4  7.37208
  5  6.47921e-06
  6  1.62939e-05
  7  4.43802e-06
  8  1.76762e-05
  9  37.5078
  10  39.1738
  11  1.01554e-05
  12  8.09657
  13  6.63686
  14  2.48929e-06
  15  4.13981e-05
  16  1.55172e-05
  17  15.5374
  18  0.313478
  19  0.132987
Done.

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

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  1.111e+01  3.751e+01  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:  1.095e+00  1.330e-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:  9.678e-01  3.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/775234/likelihoodResults_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.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) = 6277.90266482
delta logL = 0.00906475692591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.9010518
delta logL = 0.0106777690153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1472       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2185       1.0000          .0000       10.000    
     3 'Normalizat'    .96528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0956       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.

 FCN=   6277.901     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      241 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0664        939.27        .33129E-02    .80832E-04
   2  Index         2.2311        3.1900        .24667        .52403E-04
   3  Normalizat    .96474        .51922E-01    .88759E-01    .80263E-04
   4  Prefactor     1.0957        .20794E-01    .37756E-01   -.29569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.06639
  Index      = 2.23105
  Normalizat = 0.964735
  Prefactor  = 1.09567
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.901     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0664        41.111        .13252E-03   -1.5106    
   2  Index         2.2311        1.6751        .99245E-02   -.58691    
   3  Normalizat    .96474        .30547        .39304E-03   -.94221    
   4  Prefactor     1.0957        .13094        .15828E-03   -.89605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6108e-10
Minuit parameter uncertainties:
  1  38.6561
  2  1.72399
  3  0.306021
  4  0.130981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775234': 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) = 6277.90101228
delta logL = 0.010717297595

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  9.066e+00  3.866e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.231e+00  1.724e+00  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:  1.096e+00  1.310e-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:  9.647e-01  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/775234/cmap_HighResolution_503452801_503712001_4FGL_J1125.5-3557_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-03 20:22:11.233269', job_id='775234', GAL2='1.10', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1630725731.23', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.07e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1019' AND source_name='4FGL J1125.5-3557' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:22:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 775234: <4FGL_J1125.5-3557_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1125.5-3557_daily_bin1019> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:06:38 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:07:10 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:07:10 2021
Terminated at Fri Sep  3 20:22:11 2021
Results reported at Fri Sep  3 20:22:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.5-3557_daily_bin1019 171.393 -35.9581 503452801 503712001 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 :                                   656.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             239.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            933 sec.

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

