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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin18
RA = 171.964, Dec = 36.314
tmin = 243993601, tmax = 244252801
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='803816', job_status='RUN', time_executed='2021-09-03 21:38:12.873662', time_epoch_executed='1630730292.87' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803816/ft1_4FGL_J1127.8+3618_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803816/ft1_4FGL_J1127.8+3618_daily_bin18.fits outfile=/scratch/kocevski/803816/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin18.fits ra=171.964 dec=36.314 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.22
user 1.01
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.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/803816/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.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.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/803816/ltcube_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.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/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits
.....................!
real 17.25
user 16.86
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/803816/ltcube_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.fits outfile=/scratch/kocevski/803816/expmap_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.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/803816/ltcube_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.fits
.....................!
real 157.53
user 152.53
sys 4.40

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

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.fits scfile=/scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits outfile=/scratch/kocevski/803816/cmap_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.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.964 yref=36.314 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.50
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.fits scfile=/scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits outfile=/scratch/kocevski/803816/cmap_HighResolution_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.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.964 yref=36.314 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.50
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803816/Model_4FGL_J1127.8+3618_daily_bin18.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/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.fits.....................!
real 40.29
user 39.02
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.fits', '/scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits', expMap='/scratch/kocevski/803816/expmap_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.fits', expCube='/scratch/kocevski/803816/ltcube_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/803816/Model_4FGL_J1127.8+3618_daily_bin18.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.8+3618'

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/803816/ft1_filtered_4FGL_J1127.8+3618_daily_bin18.fits
Spacecraft file(s): /scratch/kocevski/803816/ft2_4FGL_J1127.8+3618_daily_bin18.fits
Exposure map: /scratch/kocevski/803816/expmap_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.fits
Exposure cube: /scratch/kocevski/803816/ltcube_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/803816/Model_4FGL_J1127.8+3618_daily_bin18.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) = 5678.17796526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.493       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.942       1.0000         .10000E-03   10000.    
     6 'Prefactor '    151.15       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6653       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.696       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3590       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.481       1.0000         .10000E-03   10000.    
    17 'norm      '    .44559       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61485       1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.206       1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7871       1.0000         .10000E-03   10000.    
    23 'norm      '    11.786       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.5721       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.704       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.704       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88851       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5678.171     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3890 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.176        .19341E-05** at limit **
   2  Prefactor     .10000E-03    4.4678        .17803E-05** at limit **
   3  Prefactor     .10000E-03    6.0766        .18329E-05** at limit **
   4  Prefactor     26.521        43.698        .30001E-06    .52726E-04
   5  Prefactor     10.942        16.563        .10928E-06   -.76583E-05
   6  Prefactor     151.16        95.594        .17096E-06   -.35502E-05
   7  Prefactor     .10000E-03    2.4762       -.14015E-07** at limit **
   8  norm          1.6653        .35778        .14898E-07   -.12065E-03
   9  Prefactor     .10000E-03    .73494       -.17573E-07** at limit **
  10  Prefactor     .10000E-03    8.4179       -.61809E-07** at limit **
  11  Prefactor     .10000E-03    11.256        .15497E-06** at limit **
  12  norm          22.696        14.231        .65112E-07   -.75175E-04
  13  norm          2.3593        6.5072        .97938E-06    .68606E-04
  14  Prefactor     .10000E-03    .73420       -.16244E-07** at limit **
  15  Prefactor     .10000E-03    38.167       -.14724E-06** at limit **
  16  Prefactor     14.477        13.399       -.26531E-06   -.13482E-03
  17  norm          .44859        1.6935        .16600E-06   -.27473E-03
  18  Prefactor     .10000E-03    13.074       -.26380E-06** at limit **
  19  Prefactor     .61131        5.1506        .24909E-05   -.55223E-03
  20  Prefactor     57.188        42.840        .13190E-05    .36045E-04
  21  norm          .10000E-03    .33601       -.69942E-06** at limit **
  22  Prefactor     2.7869        13.214        .82445E-06    .99671E-05
  23  norm          11.784        9.6531        .78406E-07    .50374E-04
  24  Prefactor     .10000E-03    22.424       -.53710E-06** at limit **
  25  Prefactor     .10000E-03    27.192       -.18576E-06** at limit **
  26  norm          3.5721        1.3216       -.33779E-08   -.19335E-03
  27  Prefactor     14.700        23.284       -.34684E-07   -.38646E-04
  28  Prefactor     14.703        10.562        .85525E-07   -.63084E-05
  29  Normalizat    .88866        .17866       -.40749E-06   -.17906E-03
  30  Prefactor     .91923        .20347       -.86870E-07   -.13290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.521
  Prefactor  = 10.9422
  Prefactor  = 151.156
  Prefactor  = 0.0001
  norm       = 1.66532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.6964
  norm       = 2.35932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.477
  norm       = 0.448587
  Prefactor  = 0.0001
  Prefactor  = 0.611312
  Prefactor  = 57.1875
  norm       = 0.0001
  Prefactor  = 2.78686
  norm       = 11.7844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57206
  Prefactor  = 14.7
  Prefactor  = 14.7031
  Normalizat = 0.888661
  Prefactor  = 0.919226
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.171     FROM HESSE     STATUS=OK           588 CALLS     4478 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5668        .15578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.2542        .36258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.521        43.456        .77830E-04   -1.4678    
   5  Prefactor     10.942        16.558        .12112E-03   -1.5046    
   6  Prefactor     151.16        95.747        .32784E-04   -1.3243    
   7  Prefactor     .10000E-03    2.4783        .11580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6653        .35794        .20111E-04   -1.5450    
   9  Prefactor     .10000E-03    .74466        .63069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.696        14.220        .84078E-04   -1.4755    
  13  norm          2.3593        6.4996        .26683E-03   -1.5401    
  14  Prefactor     .10000E-03    .74432        .62926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.477        13.348        .10525E-03   -1.4947    
  17  norm          .44859        2.3548        .17194E-02   -1.5574    
  18  Prefactor     .10000E-03    13.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .61131        7.2727        .27227E-02   -1.5552    
  20  Prefactor     57.188        42.944        .53040E-04   -1.4194    
  21  norm          .10000E-03    .36263        .86681E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7869        13.181        .24373E-03   -1.5374    
  23  norm          11.784        9.6569        .11669E-03   -1.5021    
  24  Prefactor     .10000E-03    22.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.5721        1.3201        .50727E-04   -1.5330    
  27  Prefactor     14.700        23.281        .10445E-03   -1.4941    
  28  Prefactor     14.703        10.564        .10445E-03   -1.4941    
  29  Normalizat    .88866        .20724        .23807E-03   -.96860    
  30  Prefactor     .91923        .23584        .28263E-03   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73412e-08
Minuit parameter uncertainties:
  1  0.000276688
  2  5.09171e-05
  3  6.10929e-05
  4  43.5076
  5  16.5652
  6  95.8459
  7  7.95292e-07
  8  0.35794
  9  1.75716e-07
  10  2.49805e-05
  11  4.57e-05
  12  14.222
  13  6.50152
  14  3.40348e-06
  15  0.000218116
  16  13.3511
  17  2.05546
  18  8.24403e-05
  19  4.21737
  20  42.9677
  21  7.86763e-06
  22  12.1258
  23  9.65814
  24  0.000181702
  25  5.84317e-05
  26  1.32016
  27  23.2956
  28  10.5651
  29  0.207423
  30  0.236107
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.403e-06  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.192e-01  2.361e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  8.887e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 4.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803816/likelihoodResults_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5678.17743225
delta logL = -0.00627219006219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5678.17116037
delta logL = -3.08647031488e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3585       1.0000          .0000       10.000    
     3 'Normalizat'    .88868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91927       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5678.171     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      206 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2185        .90712E-02** at limit **
   2  Index         1.9655        8.9018        .50000        .21275E-06
   3  Normalizat    .88866        .80857E-02    .44757E-01    .75828E-04
   4  Prefactor     .91923        .98015E-02    .45250E-01    .43864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96546
  Normalizat = 0.888663
  Prefactor  = 0.919225
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.171     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.388        .67055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9655        5.8829        .50000       -.65216    
   3  Normalizat    .88866        .43737E-01    .23807E-03   -.96860    
   4  Prefactor     .91923        .53010E-01    .28263E-03   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60526e-11
Minuit parameter uncertainties:
  1  4.35519e-05
  2  554.084
  3  0.0437384
  4  0.0530128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803816': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5678.17115264
delta logL = 7.41995700082e-06

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  4.355e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.965e+00  5.541e+02  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.192e-01  5.301e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  8.887e-01  4.374e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.964 36.314

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/803816/cmap_HighResolution_243993601_244252801_4FGL_J1127.8+3618_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-03 21:50:12.838843', job_id='803816', GAL2='0.92', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630731012.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='18' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:50:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 803816: <4FGL_J1127.8+3618_daily_bin18> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin18> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 21:36:42 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:37:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 21:37:35 2021
Terminated at Fri Sep  3 21:50:13 2021
Results reported at Fri Sep  3 21:50:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin18 171.964 36.314 243993601 244252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.8+3618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            811 sec.

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

