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


Performing analysis on: 4FGL_J1125.5-3557_daily_bin970
RA = 171.393, Dec = -35.9581
tmin = 490752001, tmax = 491011201
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='775164', job_status='RUN', time_executed='2021-09-03 20:09:38.810396', time_epoch_executed='1630724978.81' WHERE source_name='4FGL J1125.5-3557' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775164/ft1_4FGL_J1125.5-3557_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775164/ft2_4FGL_J1125.5-3557_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775164/ft1_4FGL_J1125.5-3557_daily_bin970.fits outfile=/scratch/kocevski/775164/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin970.fits ra=171.393 dec=-35.9581 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.90
user 5.51
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775164/ft1_filtered_4FGL_J1125.5-3557_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/775164/ft2_4FGL_J1125.5-3557_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/775164/ltcube_490752001_491011201_4FGL_J1125.5-3557_daily_bin970.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/775164/ft2_4FGL_J1125.5-3557_daily_bin970.fits
.....................!
real 13.96
user 13.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775164/ft1_filtered_4FGL_J1125.5-3557_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/775164/ft2_4FGL_J1125.5-3557_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/775164/ltcube_490752001_491011201_4FGL_J1125.5-3557_daily_bin970.fits outfile=/scratch/kocevski/775164/expmap_490752001_491011201_4FGL_J1125.5-3557_daily_bin970.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/775164/ltcube_490752001_491011201_4FGL_J1125.5-3557_daily_bin970.fits
.....................!
real 191.39
user 185.78
sys 5.12

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/775164/ft1_filtered_4FGL_J1125.5-3557_daily_bin970.fits scfile=/scratch/kocevski/775164/ft2_4FGL_J1125.5-3557_daily_bin970.fits outfile=/scratch/kocevski/775164/cmap_490752001_491011201_4FGL_J1125.5-3557_daily_bin970.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775164/ft1_filtered_4FGL_J1125.5-3557_daily_bin970.fits scfile=/scratch/kocevski/775164/ft2_4FGL_J1125.5-3557_daily_bin970.fits outfile=/scratch/kocevski/775164/cmap_HighResolution_490752001_491011201_4FGL_J1125.5-3557_daily_bin970.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6583       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.142       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0590       1.0000         .10000E-03   10000.    
     6 'norm      '    18.783       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.163       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.2877       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.774       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    29.736       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .71874       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94382       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=   9060.937     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1838 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    18.139        .90712E-02** at limit **
   2  Prefactor     3.6561        3.9105        .52799E-02    .63403E-03
   3  Prefactor     1.5398        11.228        .86035E-02    .63328E-03
   4  Prefactor     11.142        7.7781        .30006E-02    .19975E-03
   5  norm          1.0591        1.2146        .11922E-02    .32023E-02
   6  norm          18.783        21.431        .23104E-02   -.13835E-03
   7  Prefactor     .10001E-03    11.883        .90712E-02** at limit **
   8  Prefactor     .10000E-03    5.9835        .90712E-02** at limit **
   9  Prefactor     52.163        42.228        .13883E-02   -.38574E-03
  10  norm          .10000E-03    12.155        .90712E-02** at limit **
  11  Prefactor     .10000E-03    8.0026        .90712E-02** at limit **
  12  norm          7.2871        4.7920        .37145E-02   -.11080E-02
  13  Prefactor     24.774        7.0110        .20120E-02    .24745E-03
  14  Prefactor     .10002E-03    18.031        .90712E-02** at limit **
  15  Prefactor     .10000E-03    8.1294        .90712E-02** at limit **
  16  norm          29.736        23.250        .18368E-02   -.45765E-03
  17  Prefactor     .10000E-03    5.2575        .90712E-02** at limit **
  18  Normalizat    .71884        .20062        .87423E-01    .37986E-03
  19  Prefactor     .94377        .83627E-01    .33564E-01    .93453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 3.65609
  Prefactor  = 1.53978
  Prefactor  = 11.1417
  norm       = 1.05914
  norm       = 18.7833
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 52.1631
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 7.28714
  Prefactor  = 24.7739
  Prefactor  = 0.000100017
  Prefactor  = 0.000100001
  norm       = 29.7365
  Prefactor  = 0.0001
  Normalizat = 0.71884
  Prefactor  = 0.943768
 **********
 **   18 **HESSE 
 **********

 FCN=   9060.937     FROM HESSE     STATUS=OK           264 CALLS     2102 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    18.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6561        3.8304        .17197E-03   -1.5326    
   3  Prefactor     1.5398        10.763        .34414E-03   -1.5460    
   4  Prefactor     11.142        7.7753        .12002E-03   -1.5040    
   5  norm          1.0591        1.2145        .23844E-03   -1.5502    
   6  norm          18.783        21.476        .92415E-04   -1.4841    
   7  Prefactor     .10001E-03    11.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.163        42.223        .55531E-04   -1.4262    
  10  norm          .10000E-03    12.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2871        4.7885        .14858E-03   -1.5168    
  13  Prefactor     24.774        7.0198        .80481E-04   -1.4712    
  14  Prefactor     .10002E-03    18.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          29.736        23.251        .73473E-04   -1.4617    
  17  Prefactor     .10000E-03    5.3002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .71884        .22464        .38721E-03   -1.0315    
  19  Prefactor     .94377        .94824E-01    .14831E-03   -.94628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70482e-09
Minuit parameter uncertainties:
  1  0.00076397
  2  3.83062
  3  8.14391
  4  7.776
  5  1.21456
  6  21.485
  7  0.000703759
  8  3.56637e-05
  9  42.2471
  10  0.000207834
  11  0.000165075
  12  4.7888
  13  7.02006
  14  0.00110519
  15  0.000210191
  16  23.258
  17  8.02445e-05
  18  0.224927
  19  0.0948408
Done.

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

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  5.216e+01  4.225e+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:  9.438e-01  9.484e-02  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:  7.188e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.44
Ra Dec: 171.393 -35.958
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.72e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 2.03e-05

TS (Fixed Index): 2.44
Ra Dec: 171.393 -35.958
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775164/likelihoodResults_490752001_491011201_4FGL_J1125.5-3557_daily_bin970.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) = 9060.79450568
delta logL = 0.142706712255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9060.75817593
delta logL = 0.17903646885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.417       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3649       1.0000          .0000       10.000    
     3 'Normalizat'    .69945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94759       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=   9060.758     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      321 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.425        55.243        .70377E-04    .31319E-03
   2  Index         2.3646        .79159        .57903E-02    .23495E-03
   3  Normalizat    .69900        .21607        .39224E-03    .47122E-03
   4  Prefactor     .94780        .92862E-01    .14800E-03    .15318E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.4248
  Index      = 2.36465
  Normalizat = 0.699
  Prefactor  = 0.947802
 **********
 **   18 **HESSE 
 **********

 FCN=   9060.758     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.425        43.415        .14075E-04   -1.4568    
   2  Index         2.3646        .62227        .23161E-03   -.55515    
   3  Normalizat    .69900        .21457        .15690E-04   -1.0393    
   4  Prefactor     .94780        .92593E-01    .29601E-04   -.94490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28469e-10
Minuit parameter uncertainties:
  1  43.4569
  2  0.624515
  3  0.214828
  4  0.0926085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775164': 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) = 9060.75817307
delta logL = 0.17903932714

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  3.242e+01  4.346e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.365e+00  6.245e-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:  9.478e-01  9.261e-02  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:  6.990e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 171.393 -35.958
Photon Index (Free Index): 2.36 +/- 0.62
Photon Flux (Free Index): 5.47e-08 +/- 4.72e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.58e-05

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/775164/cmap_HighResolution_490752001_491011201_4FGL_J1125.5-3557_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', comment='SUCCESS', photon_flux='3.72e-08', energy_flux2='1.88e-05', photon_flux_error='3.01e-08', dlogl='1.79e-01', energy_flux='2.51e-05', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-09-03 20:22:48.417505', photon_index_error2='0.62', photon_index2='2.36', ts='2.44', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.58e-05', EG='0.72', time_epoch_completed='1630725768.42', return_code='0', job_id='775164', GAL2='0.95', EG2='0.70', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='4.72e-08', ts2='2.80', photon_index='2.01' WHERE bin_id='970' AND source_name='4FGL J1125.5-3557' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:22:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 775164: <4FGL_J1125.5-3557_daily_bin970> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.5-3557_daily_bin970 171.393 -35.9581 490752001 491011201 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            975 sec.

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

