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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1126
RA = 171.491, Dec = 20.0912
tmin = 531187201, tmax = 531446401
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='784569', job_status='RUN', time_executed='2021-09-03 20:38:16.759623', time_epoch_executed='1630726696.76' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784569/ft1_4FGL_J1125.9+2005_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784569/ft1_4FGL_J1125.9+2005_daily_bin1126.fits outfile=/scratch/kocevski/784569/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1126.fits ra=171.491 dec=20.0912 rad=12.0 tmin=531187201.0 tmax=531446401.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.01
user 3.81
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.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/784569/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/784569/ltcube_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.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/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits
.....................!
real 15.74
user 15.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/784569/ltcube_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.fits outfile=/scratch/kocevski/784569/expmap_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.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/784569/ltcube_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.fits
.....................!
real 192.20
user 186.52
sys 5.30

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

Setting source of interest to:
4FGL J1125.9+2005 @ 171.491 20.0912

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.fits scfile=/scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits outfile=/scratch/kocevski/784569/cmap_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.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.491 yref=20.0912 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.fits scfile=/scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits outfile=/scratch/kocevski/784569/cmap_HighResolution_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.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.491 yref=20.0912 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.58
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/784569/Model_4FGL_J1125.9+2005_daily_bin1126.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/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.fits.....................!
real 68.67
user 66.46
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.fits', '/scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits', expMap='/scratch/kocevski/784569/expmap_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.fits', expCube='/scratch/kocevski/784569/ltcube_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784569/Model_4FGL_J1125.9+2005_daily_bin1126.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.9+2005'

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/784569/ft1_filtered_4FGL_J1125.9+2005_daily_bin1126.fits
Spacecraft file(s): /scratch/kocevski/784569/ft2_4FGL_J1125.9+2005_daily_bin1126.fits
Exposure map: /scratch/kocevski/784569/expmap_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.fits
Exposure cube: /scratch/kocevski/784569/ltcube_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784569/Model_4FGL_J1125.9+2005_daily_bin1126.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) = 7357.71856974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.894       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9414       1.0000         .10000E-03   10000.    
     8 'norm      '    .12027       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88654       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1112       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8603       1.0000         .10000E-03   10000.    
    12 'norm      '    14.759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.031       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.597       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.812       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.194       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .94526       1.0000         .10000E-03   10000.    
    20 'norm      '    73.698       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19172E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0184       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61994       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+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=   7357.710     FROM MIGRAD    STATUS=CONVERGED   1031 CALLS     3411 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.895        10.044        .92144E-04   -.44417E-05
   2  Prefactor     .10000E-03    .65838        .67718E-03** at limit **
   3  Prefactor     2.4080        3.6920        .19858E-03    .68413E-04
   4  Prefactor     .10000E-03    4.4720        .17604E-02** at limit **
   5  Prefactor     10.967        9.4082        .12097E-03   -.12217E-05
   6  Prefactor     .31307        93.732        .41148E-02    .70083E-04
   7  Prefactor     2.9406        9.1842        .11841E-02    .19053E-03
   8  norm          .12034        1.1955        .13014E-02    .12953E-02
   9  Prefactor     .88482        2.5002        .19531E-03   -.33452E-03
  10  Prefactor     8.1118        6.4738        .14077E-03    .15021E-04
  11  norm          3.8673        9.5197        .10269E-02    .75389E-04
  12  norm          14.763        11.845        .10426E-03    .17338E-04
  13  Prefactor     19.035        11.873        .91811E-04    .19565E-04
  14  Prefactor     .10000E-03    18.271        .18142E-02** at limit **
  15  Prefactor     48.559        49.160        .57522E-04   -.25100E-04
  16  Prefactor     14.817        13.735        .10407E-03    .45553E-04
  17  Prefactor     .10000E-03    8.2763        .18142E-02** at limit **
  18  Prefactor     19.200        13.406        .91421E-04    .62178E-05
  19  Prefactor     .94504        1.1173        .98053E-04    .12870E-04
  20  norm          73.699        5.8867        .46768E-04   -.24309E-06
  21  Prefactor     .10000E-03    5.0477        .18142E-02** at limit **
  22  Prefactor     .10001E-03    23.046        .23901E-02** at limit **
  23  Prefactor     3.0202        3.1053        .14578E-03   -.15987E-04
  24  Normalizat    .61947        .22199        .33393E-03   -.44701E-04
  25  Prefactor     1.0761        .20739        .26766E-03    .83590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8952
  Prefactor  = 0.0001
  Prefactor  = 2.40803
  Prefactor  = 0.0001
  Prefactor  = 10.9671
  Prefactor  = 0.31307
  Prefactor  = 2.94061
  norm       = 0.120342
  Prefactor  = 0.884819
  Prefactor  = 8.11176
  norm       = 3.86731
  norm       = 14.7632
  Prefactor  = 19.0352
  Prefactor  = 0.0001
  Prefactor  = 48.5592
  Prefactor  = 14.8165
  Prefactor  = 0.0001
  Prefactor  = 19.1997
  Prefactor  = 0.945037
  norm       = 73.6992
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 3.02023
  Normalizat = 0.619471
  Prefactor  = 1.07607
 **********
 **   18 **HESSE 
 **********

 FCN=   7357.710     FROM HESSE     STATUS=OK           409 CALLS     3820 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.895        10.043        .36858E-05   -1.4838    
   2  Prefactor     .10000E-03    .65840        .13544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4080        3.6915        .79433E-05   -1.5398    
   4  Prefactor     .10000E-03    4.4736        .35208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.967        9.4050        .48390E-05   -1.5046    
   6  Prefactor     .31307        88.726        .16459E-03   -1.5596    
   7  Prefactor     2.9406        9.1775        .23682E-03   -1.5365    
   8  norm          .12034        1.1908        .52054E-04   -1.5639    
   9  Prefactor     .88482        2.4187        .78126E-05   -1.5520    
  10  Prefactor     8.1118        6.4732        .56310E-05   -1.5138    
  11  norm          3.8673        9.5081        .41078E-04   -1.5315    
  12  norm          14.763        11.842        .41702E-05   -1.4939    
  13  Prefactor     19.035        11.871        .36724E-05   -1.4835    
  14  Prefactor     .10000E-03    18.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.559        49.152        .23009E-05   -1.4313    
  16  Prefactor     14.817        13.733        .41628E-05   -1.4938    
  17  Prefactor     .10000E-03    8.2767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.200        13.399        .36568E-05   -1.4831    
  19  Prefactor     .94504        1.1172        .39221E-05   -1.5514    
  20  norm          73.699        5.8862        .18707E-05   -1.3989    
  21  Prefactor     .10000E-03    5.0478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    23.437        .47802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0202        3.1035        .58310E-05   -1.5360    
  24  Normalizat    .61947        .22190        .13357E-04   -1.0716    
  25  Prefactor     1.0761        .20749        .10706E-04   -.90235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94972e-10
Minuit parameter uncertainties:
  1  10.0442
  2  3.4307e-07
  3  3.69186
  4  3.61452e-06
  5  9.40627
  6  10.555
  7  9.18191
  8  0.756818
  9  2.41897
  10  6.47374
  11  9.51178
  12  11.8442
  13  11.8728
  14  1.82368e-05
  15  49.1933
  16  13.736
  17  1.68756e-06
  18  13.4011
  19  1.11725
  20  5.88625
  21  2.99265e-06
  22  0.000726363
  23  3.10362
  24  0.222221
  25  0.207646
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.904e+01  1.187e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.076e+00  2.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  6.195e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.57
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.37e-05

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) = 7357.70613997
delta logL = 0.00337131535707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7357.70439023
delta logL = 0.00512105487996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.532       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1604       1.0000          .0000       10.000    
     3 'Normalizat'    .62794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0709       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+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=   7357.704     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      290 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.532        13.284        .90627E-04   -.40744E-04
   2  Index         2.1608        .81787        .96902E-02    .27090E-03
   3  Normalizat    .62764        .21421        .33187E-03    .12058E-04
   4  Prefactor     1.0712        .21015        .26820E-03    .22847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5317
  Index      = 2.16077
  Normalizat = 0.627637
  Prefactor  = 1.0712
 **********
 **   18 **HESSE 
 **********

 FCN=   7357.704     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.532        13.024        .18125E-04   -1.4824    
   2  Index         2.1608        .79693        .19380E-02   -.60389    
   3  Normalizat    .62764        .21306        .13275E-04   -1.0682    
   4  Prefactor     1.0712        .20980        .10728E-04   -.90392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78226e-12
Minuit parameter uncertainties:
  1  13.0259
  2  0.801991
  3  0.213344
  4  0.209959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784569': 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) = 7357.70438918
delta logL = 0.00512210043416

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.953e+01  1.303e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.161e+00  8.020e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.071e+00  2.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  6.276e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.51
Ra Dec: 171.491 20.091
Photon Index (Free Index): 2.16 +/- 0.80
Photon Flux (Free Index): 4.70e-08 +/- 6.33e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.69e-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/784569/cmap_HighResolution_531187201_531446401_4FGL_J1125.9+2005_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='2.27e-05', photon_flux_error='3.29e-08', dlogl='5.12e-03', energy_flux='2.20e-05', photon_flux2='4.70e-08', job_status='DONE', time_completed='2021-09-03 20:51:41.468119', photon_index_error2='0.80', photon_index2='2.16', ts='8.57', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='0.62', time_epoch_completed='1630727501.47', return_code='0', job_id='784569', GAL2='1.07', EG2='0.63', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.33e-08', ts2='8.51', photon_index='2.24' WHERE bin_id='1126' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 784569: <4FGL_J1125.9+2005_daily_bin1126> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1126> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:17 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:38:02 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:38:02 2021
Terminated at Fri Sep  3 20:51:41 2021
Results reported at Fri Sep  3 20:51:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1126 171.491 20.0912 531187201 531446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.9+2005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   799.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            924 sec.

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

