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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin662
RA = 171.964, Dec = 36.314
tmin = 410918401, tmax = 411177601
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='808180', job_status='RUN', time_executed='2021-09-03 21:56:18.018383', time_epoch_executed='1630731378.02' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808180/ft1_4FGL_J1127.8+3618_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808180/ft2_4FGL_J1127.8+3618_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808180/ft1_4FGL_J1127.8+3618_daily_bin662.fits outfile=/scratch/kocevski/808180/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin662.fits ra=171.964 dec=36.314 rad=12.0 tmin=410918401.0 tmax=411177601.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 6.99
user 6.70
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808180/ft2_4FGL_J1127.8+3618_daily_bin662.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/808180/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/808180/ft1_filtered_4FGL_J1127.8+3618_daily_bin662.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/808180/ft1_filtered_4FGL_J1127.8+3618_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/808180/ft2_4FGL_J1127.8+3618_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/808180/ltcube_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.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/808180/ft2_4FGL_J1127.8+3618_daily_bin662.fits
.....................!
real 15.38
user 14.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808180/ft1_filtered_4FGL_J1127.8+3618_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/808180/ft2_4FGL_J1127.8+3618_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/808180/ltcube_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.fits outfile=/scratch/kocevski/808180/expmap_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.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/808180/ltcube_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.fits
.....................!
real 190.56
user 185.85
sys 4.17

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/808180/ft1_filtered_4FGL_J1127.8+3618_daily_bin662.fits scfile=/scratch/kocevski/808180/ft2_4FGL_J1127.8+3618_daily_bin662.fits outfile=/scratch/kocevski/808180/cmap_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808180/ft1_filtered_4FGL_J1127.8+3618_daily_bin662.fits scfile=/scratch/kocevski/808180/ft2_4FGL_J1127.8+3618_daily_bin662.fits outfile=/scratch/kocevski/808180/cmap_HighResolution_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.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.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/808180/ft1_filtered_4FGL_J1127.8+3618_daily_bin662.fits', '/scratch/kocevski/808180/ft2_4FGL_J1127.8+3618_daily_bin662.fits', expMap='/scratch/kocevski/808180/expmap_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.fits', expCube='/scratch/kocevski/808180/ltcube_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/808180/Model_4FGL_J1127.8+3618_daily_bin662.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/808180/ft1_filtered_4FGL_J1127.8+3618_daily_bin662.fits
Spacecraft file(s): /scratch/kocevski/808180/ft2_4FGL_J1127.8+3618_daily_bin662.fits
Exposure map: /scratch/kocevski/808180/expmap_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.fits
Exposure cube: /scratch/kocevski/808180/ltcube_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/808180/Model_4FGL_J1127.8+3618_daily_bin662.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) = 3339.20502241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31526E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2007       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.252       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11961E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    87.941       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.264       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10501E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .62782E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    37.212       1.0000         .10000E-03   10000.    
    13 'norm      '    .95660E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57068       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34240E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47111E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7029       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20395E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22551E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    112.58       1.0000         .10000E-03   10000.    
    21 'norm      '    8.6145       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22950E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.3160       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .75282E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18144E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .51782E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.5172       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73674       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92775       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=   3339.124     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     3528 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.296        .98870E-02** at limit **
   2  Prefactor     .10000E-03    3.3431        .90712E-02** at limit **
   3  Prefactor     3.1687        3.5051        .56619E-02   -.21338E-03
   4  Prefactor     27.342        30.270        .19547E-02   -.45541E-05
   5  Prefactor     .10000E-03    30.971        .90712E-02** at limit **
   6  Prefactor     61.853        138.40        .10711E-02   -.34251E-04
   7  Prefactor     17.172        12.793        .24098E-02    .44483E-04
   8  norm          2.6553        .61781        .47979E-02   -.52815E-04
   9  Prefactor     1.7225        2.9778        .79571E-02    .31586E-03
  10  Prefactor     .10000E-03    9.2079        .10365E-01** at limit **
  11  Prefactor     .10000E-03    16.775        .10520E-01** at limit **
  12  norm          37.152        19.822        .16425E-02    .24193E-02
  13  norm          .10000E-03    7.2417        .10396E-01** at limit **
  14  Prefactor     .52708        4.7357        .11556E-01    .10920E-02
  15  Prefactor     .10000E-03    51.254        .98402E-02** at limit **
  16  Prefactor     .10000E-03    22.223        .92560E-01** at limit **
  17  norm          6.8308        5.1338        .38747E-02    .14275E-03
  18  Prefactor     .10000E-03    50.813        .90712E-02** at limit **
  19  Prefactor     .10000E-03    6.9209        .90712E-02** at limit **
  20  Prefactor     105.44        90.695        .94782E-03   -.70060E-04
  21  norm          8.6817        2.8525        .34144E-02    .52652E-04
  22  Prefactor     .10001E-03    50.222        .90712E-02** at limit **
  23  norm          5.3124        10.789        .43579E-02    .13167E-03
  24  Prefactor     .10001E-03    83.286        .92901E-02** at limit **
  25  Prefactor     .10000E-03    39.800        .10157E-01** at limit **
  26  norm          .10000E-03    .87344        .90712E-02** at limit **
  27  Prefactor     .10001E-03    57.405        .95769E-02** at limit **
  28  Prefactor     8.5348        8.9714        .34339E-02   -.61879E-04
  29  Normalizat    .74778        .23162        .42779E-01    .15846E-03
  30  Prefactor     .92155        .26382        .45358E-01    .19022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.16871
  Prefactor  = 27.3416
  Prefactor  = 0.0001
  Prefactor  = 61.8529
  Prefactor  = 17.1716
  norm       = 2.65525
  Prefactor  = 1.72253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.1516
  norm       = 0.0001
  Prefactor  = 0.527085
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  norm       = 6.83079
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 105.435
  norm       = 8.68173
  Prefactor  = 0.000100014
  norm       = 5.31243
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 8.53485
  Normalizat = 0.747781
  Prefactor  = 0.921549
 **********
 **   18 **HESSE 
 **********

 FCN=   3339.124     FROM HESSE     STATUS=OK           590 CALLS     4118 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.297        .19774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3518        .10317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1687        3.5064        .11099E-03   -1.5352    
   4  Prefactor     27.342        30.270        .78187E-04   -1.4662    
   5  Prefactor     .10000E-03    31.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     61.853        138.94        .42844E-04   -1.4133    
   7  Prefactor     17.172        12.789        .96393E-04   -1.4879    
   8  norm          2.6553        .61831        .21185E-04   -1.5382    
   9  Prefactor     1.7225        2.9470        .12539E-03   -1.5445    
  10  Prefactor     .10000E-03    9.2347        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.854        .21040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          37.152        19.804        .65700E-04   -1.4488    
  13  norm          .10000E-03    7.2647        .15187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .52708        4.7389        .22678E-02   -1.5563    
  15  Prefactor     .10000E-03    51.287        .19680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.772        .82299E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8308        5.0565        .10070E-03   -1.5185    
  18  Prefactor     .10000E-03    51.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0196        .14819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     105.44        91.027        .37913E-04   -1.3651    
  21  norm          8.6817        2.8618        .48293E-04   -1.5119    
  22  Prefactor     .10001E-03    50.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.3124        10.780        .17431E-03   -1.5247    
  24  Prefactor     .10001E-03    83.862        .18580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    39.816        .20314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .91312        .10521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    57.581        .19154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.5348        8.9751        .13736E-03   -1.5124    
  29  Normalizat    .74778        .26466        .26560E-03   -1.0204    
  30  Prefactor     .92155        .30173        .28428E-03   -.95392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02761e-09
Minuit parameter uncertainties:
  1  4.37124e-05
  2  1.3794e-05
  3  3.50659
  4  30.2867
  5  9.65741e-05
  6  139.675
  7  12.7906
  8  0.618308
  9  2.9472
  10  2.60305e-05
  11  2.86282e-05
  12  19.8075
  13  1.72713e-05
  14  3.16092
  15  0.000687736
  16  0.000701793
  17  5.05683
  18  0.000616766
  19  2.88505e-05
  20  91.1476
  21  2.86183
  22  0.00170371
  23  10.7836
  24  0.00183345
  25  0.000220604
  26  8.08984e-07
  27  0.00167222
  28  8.97654
  29  0.265112
  30  0.30228
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  5.271e-01  3.161e+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

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.215e-01  3.023e-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:  7.478e-01  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808180/likelihoodResults_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.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) = 3339.11767916
delta logL = 0.00599169484485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3339.11728926
delta logL = 0.00638159415666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44785       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6527       1.0000          .0000       10.000    
     3 'Normalizat'    .74565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92298       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=   3339.117     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      220 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45366        30.996        .11056E-01    .97237E-03
   2  Index         2.6568        1.8766        .46039        .40892E-05
   3  Normalizat    .74556        .19420E-01    .42897E-01    .23726E-05
   4  Prefactor     .92300        .23023E-01    .45297E-01   -.27623E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.453658
  Index      = 2.65681
  Normalizat = 0.745559
  Prefactor  = 0.923001
 **********
 **   18 **HESSE 
 **********

 FCN=   3339.117     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45366        4.6441        .18014E-03   -1.5573    
   2  Index         2.6568        2.6782        .70951E-02   -.48775    
   3  Normalizat    .74556        .25381        .26594E-03   -1.0212    
   4  Prefactor     .92300        .29971        .28406E-03   -.95342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26881e-10
Minuit parameter uncertainties:
  1  2.90294
  2  2.87748
  3  0.254207
  4  0.300243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808180': 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) = 3339.11728149
delta logL = 0.00638936758878

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  4.537e-01  2.903e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.657e+00  2.877e+00  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.230e-01  3.002e-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:  7.456e-01  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/808180/cmap_HighResolution_410918401_411177601_4FGL_J1127.8+3618_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.91e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-03 22:07:12.067291', job_id='808180', GAL2='0.92', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630732032.07', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.39e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='662' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:07:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 808180: <4FGL_J1127.8+3618_daily_bin662> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin662> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 21:51:21 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:53:00 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:53:00 2021
Terminated at Fri Sep  3 22:07:12 2021
Results reported at Fri Sep  3 22:07:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin662 171.964 36.314 410918401 411177601 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 :                                   651.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            951 sec.

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

