/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 227 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin93
RA = 171.491, Dec = 20.0912
tmin = 263433601, tmax = 263692801
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='778565', job_status='RUN', time_executed='2021-09-03 20:20:32.792130', time_epoch_executed='1630725632.79' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778565/ft1_4FGL_J1125.9+2005_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778565/ft2_4FGL_J1125.9+2005_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778565/ft1_4FGL_J1125.9+2005_daily_bin93.fits outfile=/scratch/kocevski/778565/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin93.fits ra=171.491 dec=20.0912 rad=12.0 tmin=263433601.0 tmax=263692801.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 2.88
user 2.66
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778565/ft2_4FGL_J1125.9+2005_daily_bin93.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/778565/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/778565/ft1_filtered_4FGL_J1125.9+2005_daily_bin93.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.46
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778565/ft1_filtered_4FGL_J1125.9+2005_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/778565/ft2_4FGL_J1125.9+2005_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/778565/ltcube_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.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/778565/ft2_4FGL_J1125.9+2005_daily_bin93.fits
.....................!
real 14.28
user 13.97
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778565/ft1_filtered_4FGL_J1125.9+2005_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/778565/ft2_4FGL_J1125.9+2005_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/778565/ltcube_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.fits outfile=/scratch/kocevski/778565/expmap_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.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/778565/ltcube_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.fits
.....................!
real 156.37
user 151.82
sys 4.20

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/778565/ft1_filtered_4FGL_J1125.9+2005_daily_bin93.fits scfile=/scratch/kocevski/778565/ft2_4FGL_J1125.9+2005_daily_bin93.fits outfile=/scratch/kocevski/778565/cmap_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778565/ft1_filtered_4FGL_J1125.9+2005_daily_bin93.fits scfile=/scratch/kocevski/778565/ft2_4FGL_J1125.9+2005_daily_bin93.fits outfile=/scratch/kocevski/778565/cmap_HighResolution_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.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.49
user 0.34
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/778565/ft1_filtered_4FGL_J1125.9+2005_daily_bin93.fits', '/scratch/kocevski/778565/ft2_4FGL_J1125.9+2005_daily_bin93.fits', expMap='/scratch/kocevski/778565/expmap_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.fits', expCube='/scratch/kocevski/778565/ltcube_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/778565/Model_4FGL_J1125.9+2005_daily_bin93.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/778565/ft1_filtered_4FGL_J1125.9+2005_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/778565/ft2_4FGL_J1125.9+2005_daily_bin93.fits
Exposure map: /scratch/kocevski/778565/expmap_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.fits
Exposure cube: /scratch/kocevski/778565/ltcube_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/778565/Model_4FGL_J1125.9+2005_daily_bin93.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) = 4763.39499577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0162       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .71445E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1012       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .93942       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38065       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4468       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5581       1.0000         .10000E-03   10000.    
    12 'norm      '    21.628       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.553       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0732       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.934       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0973       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9291       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6896       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5050       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91818       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95553       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.

 FCN=   4763.330     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2502 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5327       -.33150E-07** at limit **
   2  Prefactor     8.0162        3.1833        .73750E-08    .11884E-03
   3  Prefactor     .10000E-03    5.1566       -.28819E-06** at limit **
   4  Prefactor     12.267        8.6058       -.26536E-06    .11213E-03
   5  Prefactor     .10000E-03    4.8641        .98516E-07** at limit **
   6  Prefactor     9.0985        9.4954        .36069E-06    .11002E-03
   7  Prefactor     .10000E-03    11.979       -.37376E-05** at limit **
   8  norm          .94026        1.6000       -.80481E-07   -.60367E-04
   9  Prefactor     .38672        2.2599       -.74069E-06    .45075E-03
  10  Prefactor     2.4465        2.3970        .33715E-06   -.89075E-03
  11  norm          7.5581        7.9126        .20565E-06    .27070E-04
  12  norm          21.627        14.713       -.54624E-06    .45030E-04
  13  Prefactor     14.552        11.398       -.62139E-07    .18603E-04
  14  Prefactor     .10000E-03    12.847        .73622E-05** at limit **
  15  Prefactor     5.0700        50.584       -.97146E-05   -.35558E-05
  16  Prefactor     .10000E-03    5.3226       -.37272E-06** at limit **
  17  Prefactor     12.932        17.080       -.11838E-05   -.30185E-05
  18  Prefactor     .10000E-03    7.1149        .71144E-06** at limit **
  19  Prefactor     1.0973        1.1431        .28680E-07    .75490E-04
  20  norm          4.9291        2.1873       -.34386E-08    .11324E-04
  21  Prefactor     .10000E-03    12.027       -.34188E-05** at limit **
  22  Prefactor     1.6902        3.9867       -.88680E-06   -.93970E-04
  23  Prefactor     2.5033        3.2254        .15061E-06    .25134E-04
  24  Normalizat    .91809        .21022        .11489E-05    .13387E-03
  25  Prefactor     .95565        .20750        .19213E-06    .14062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.01619
  Prefactor  = 0.000100001
  Prefactor  = 12.2667
  Prefactor  = 0.0001
  Prefactor  = 9.0985
  Prefactor  = 0.0001
  norm       = 0.940262
  Prefactor  = 0.386723
  Prefactor  = 2.44645
  norm       = 7.55815
  norm       = 21.6267
  Prefactor  = 14.5517
  Prefactor  = 0.0001
  Prefactor  = 5.06999
  Prefactor  = 0.0001
  Prefactor  = 12.9323
  Prefactor  = 0.0001
  Prefactor  = 1.09729
  norm       = 4.92914
  Prefactor  = 0.0001
  Prefactor  = 1.69024
  Prefactor  = 2.50333
  Normalizat = 0.918085
  Prefactor  = 0.955651
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.330     FROM HESSE     STATUS=OK           439 CALLS     2941 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5350        .10726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0162        3.1829        .74581E-04   -1.5142    
   3  Prefactor     .10000E-03    31.987        .30186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.267        8.6176        .11437E-03   -1.5007    
   5  Prefactor     .10000E-03    4.8724        .14860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0985        9.5164        .13285E-03   -1.5105    
   7  Prefactor     .10000E-03    12.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .94026        1.5619        .10583E-03   -1.5514    
   9  Prefactor     .38672        6.7664        .18633E-02   -1.5584    
  10  Prefactor     2.4465        7.6839        .13076E-02   -1.5395    
  11  norm          7.5581        7.9062        .14587E-03   -1.5158    
  12  norm          21.627        14.746        .86128E-04   -1.4778    
  13  Prefactor     14.552        11.602        .10499E-03   -1.4945    
  14  Prefactor     .10000E-03    12.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0700        50.721        .17851E-03   -1.5258    
  16  Prefactor     .10000E-03    5.3389        .15553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.932        17.103        .11138E-03   -1.4989    
  18  Prefactor     .10000E-03    7.1600        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0973        1.1540        .72488E-04   -1.5498    
  20  norm          4.9291        2.1884        .65094E-04   -1.5264    
  21  Prefactor     .10000E-03    12.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6902        3.9441        .19548E-03   -1.5448    
  23  Prefactor     2.5033        3.1965        .13064E-03   -1.5392    
  24  Normalizat    .91809        .24585        .24711E-03   -.95828    
  25  Prefactor     .95565        .24326        .25837E-03   -.94223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62628e-09
Minuit parameter uncertainties:
  1  3.30394e-07
  2  3.18296
  3  0.000373366
  4  8.61842
  5  1.46841e-06
  6  9.51798
  7  5.60823e-06
  8  1.56193
  9  3.23526
  10  7.68698
  11  7.90729
  12  14.7485
  13  11.6042
  14  1.46783e-07
  15  32.1072
  16  5.45415e-06
  17  17.1099
  18  4.89692e-06
  19  1.15399
  20  2.18847
  21  1.3271e-05
  22  3.94474
  23  3.19674
  24  0.246155
  25  0.243543
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.455e+01  1.160e+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:  9.557e-01  2.435e-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:  9.181e-01  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.65
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.34e-05

TS (Fixed Index): 2.65
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778565/likelihoodResults_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.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) = 4763.27065138
delta logL = 0.0593732058333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4763.26198257
delta logL = 0.068042007847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.585       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0491       1.0000          .0000       10.000    
     3 'Normalizat'    .92435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94989       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=   4763.262     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      271 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.591        17.534        .92906E-04    .46867E-04
   2  Index         2.0488        .51126        .58084E-02    .24152E-03
   3  Normalizat    .92436        .22515        .24634E-03   -.47165E-04
   4  Prefactor     .94985        .24049        .25900E-03    .60575E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5908
  Index      = 2.04883
  Normalizat = 0.92436
  Prefactor  = 0.949855
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.262     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.591        17.115        .37163E-05   -1.4845    
   2  Index         2.0488        .49910        .11617E-02   -.63135    
   3  Normalizat    .92436        .22538        .98538E-05   -.95609    
   4  Prefactor     .94985        .24072        .10360E-04   -.94420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35063e-11
Minuit parameter uncertainties:
  1  17.1197
  2  0.500376
  3  0.225607
  4  0.240988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778565': 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) = 4763.26198233
delta logL = 0.0680422510295

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.859e+01  1.712e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.049e+00  5.004e-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:  9.499e-01  2.410e-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:  9.244e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 171.491 20.091
Photon Index (Free Index): 2.05 +/- 0.50
Photon Flux (Free Index): 3.69e-08 +/- 3.06e-08
Energy Flux (Free Index): 2.27e-05 +/- 2.58e-05

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/778565/cmap_HighResolution_263433601_263692801_4FGL_J1125.9+2005_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='2.27e-05', photon_flux_error='3.22e-08', dlogl='6.80e-02', energy_flux='1.68e-05', photon_flux2='3.69e-08', job_status='DONE', time_completed='2021-09-03 20:29:25.356708', photon_index_error2='0.50', photon_index2='2.05', ts='2.65', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='2.58e-05', EG='0.92', time_epoch_completed='1630726165.36', return_code='0', job_id='778565', GAL2='0.95', EG2='0.92', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.06e-08', ts2='2.78', photon_index='2.24' WHERE bin_id='93' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:29:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 778565: <4FGL_J1125.9+2005_daily_bin93> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin93> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:16:27 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:16:37 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:16:37 2021
Terminated at Fri Sep  3 20:29:26 2021
Results reported at Fri Sep  3 20:29:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin93 171.491 20.0912 263433601 263692801 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            779 sec.

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

