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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin22
RA = 171.964, Dec = 36.314
tmin = 245030401, tmax = 245289601
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='803822', job_status='RUN', time_executed='2021-09-03 21:38:50.862845', time_epoch_executed='1630730330.86' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803822/ft1_4FGL_J1127.8+3618_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803822/ft2_4FGL_J1127.8+3618_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803822/ft1_4FGL_J1127.8+3618_daily_bin22.fits outfile=/scratch/kocevski/803822/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin22.fits ra=171.964 dec=36.314 rad=12.0 tmin=245030401.0 tmax=245289601.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.47
user 1.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803822/ft2_4FGL_J1127.8+3618_daily_bin22.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/803822/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/803822/ft1_filtered_4FGL_J1127.8+3618_daily_bin22.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803822/ft1_filtered_4FGL_J1127.8+3618_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/803822/ft2_4FGL_J1127.8+3618_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/803822/ltcube_245030401_245289601_4FGL_J1127.8+3618_daily_bin22.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/803822/ft2_4FGL_J1127.8+3618_daily_bin22.fits
.....................!
real 19.36
user 18.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803822/ft1_filtered_4FGL_J1127.8+3618_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/803822/ft2_4FGL_J1127.8+3618_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/803822/ltcube_245030401_245289601_4FGL_J1127.8+3618_daily_bin22.fits outfile=/scratch/kocevski/803822/expmap_245030401_245289601_4FGL_J1127.8+3618_daily_bin22.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/803822/ltcube_245030401_245289601_4FGL_J1127.8+3618_daily_bin22.fits
.....................!
real 191.78
user 187.09
sys 4.10

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/803822/ft1_filtered_4FGL_J1127.8+3618_daily_bin22.fits scfile=/scratch/kocevski/803822/ft2_4FGL_J1127.8+3618_daily_bin22.fits outfile=/scratch/kocevski/803822/cmap_245030401_245289601_4FGL_J1127.8+3618_daily_bin22.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803822/ft1_filtered_4FGL_J1127.8+3618_daily_bin22.fits scfile=/scratch/kocevski/803822/ft2_4FGL_J1127.8+3618_daily_bin22.fits outfile=/scratch/kocevski/803822/cmap_HighResolution_245030401_245289601_4FGL_J1127.8+3618_daily_bin22.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4997       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28976       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0451       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.539       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7516       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3953       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4602       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .45665       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.9828       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .42847       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0744       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89082       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5076.760     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     3286 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    7.9593        .66051E-05** at limit **
   2  Prefactor     7.4998        5.4284        .53715E-05    .32941E-02
   3  Prefactor     .10000E-03    3.1590       -.26368E-06** at limit **
   4  Prefactor     .10000E-03    9.7964       -.16424E-05** at limit **
   5  Prefactor     .10036E-03    6.4062       -.15139E-04** at limit **
   6  Prefactor     .10091E-03    49.987       -.53632E-05** at limit **
   7  Prefactor     .19332        146.07       -.10441E-03    .12589E-02
   8  norm          1.0451        .34806        .76452E-07    .29036E-02
   9  Prefactor     .10000E-03    2.6575        .23034E-06** at limit **
  10  Prefactor     20.537        1.1993       -.57903E-06    .50812E-04
  11  Prefactor     .10030E-03    5.9640       -.13548E-04** at limit **
  12  norm          3.7512        1.0101       -.10950E-06   -.61142E-04
  13  norm          .10000E-03    4.1491       -.38824E-06** at limit **
  14  Prefactor     .10000E-03    2.1184        .18823E-06** at limit **
  15  Prefactor     4.3476        5.9085       -.11788E-04    .50013E-03
  16  Prefactor     .10040E-03    7.1270        .95356E-05** at limit **
  17  norm          1.4604        2.2727        .22966E-07   -.26463E-03
  18  Prefactor     .10000E-03    7.0354       -.27822E-06** at limit **
  19  Prefactor     .10000E-03    2.0297        .24450E-06** at limit **
  20  Prefactor     .10077E-03    13.964       -.11672E-04** at limit **
  21  norm          .45532        .90785       -.94664E-07   -.40314E-03
  22  Prefactor     .10000E-03    7.0071        .34648E-05** at limit **
  23  norm          9.9823        1.0177       -.24164E-06    .53801E-05
  24  Prefactor     .10052E-03    11.484        .19892E-04** at limit **
  25  Prefactor     .10289E-03    44.269        .32879E-04** at limit **
  26  norm          .42816        .98618       -.31181E-06   -.38679E-03
  27  Prefactor     .10319E-03    43.003        .17486E-04** at limit **
  28  Prefactor     4.0670        1.0579       -.17375E-06    .23083E-03
  29  Normalizat    .89095        .21549        .20382E-05   -.26456E-03
  30  Prefactor     1.3031        .26233       -.10141E-05   -.23728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100351
  Prefactor  = 7.49981
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100357
  Prefactor  = 0.000100913
  Prefactor  = 0.193321
  norm       = 1.0451
  Prefactor  = 0.0001
  Prefactor  = 20.537
  Prefactor  = 0.000100304
  norm       = 3.75125
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34759
  Prefactor  = 0.000100396
  norm       = 1.46042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100766
  norm       = 0.455322
  Prefactor  = 0.000100001
  norm       = 9.98234
  Prefactor  = 0.000100519
  Prefactor  = 0.000102888
  norm       = 0.428159
  Prefactor  = 0.000103194
  Prefactor  = 4.06697
  Normalizat = 0.890952
  Prefactor  = 1.30315
 **********
 **   18 **HESSE 
 **********

 FCN=   5076.760     FROM HESSE     STATUS=OK           652 CALLS     3938 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    17.623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4998        5.4711        .36611E-02   -1.5160    
   3  Prefactor     .10000E-03    3.1152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10036E-03    13.965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10091E-03    52.156        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19332        10.858        .10380       -1.5620    
   8  norm          1.0451        .35690        .53019E-02   -1.5504    
   9  Prefactor     .10000E-03    2.5688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.537        17.420        .22094E-02   -1.4801    
  11  Prefactor     .10030E-03    13.815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7512        8.1468        .52113E-02   -1.5321    
  13  norm          .10000E-03    4.1334        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5156        .31339E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3476        52.924        .48025E-02   -1.5291    
  16  Prefactor     .10040E-03    17.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4604        2.3935        .89021E-02   -1.5466    
  18  Prefactor     .10000E-03    6.9915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10077E-03    21.240        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .45532        1.0233        .21649E-01   -1.5573    
  22  Prefactor     .10000E-03    19.880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.9823        10.847        .31706E-02   -1.5076    
  24  Prefactor     .10052E-03    12.785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10289E-03    98.215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .42816        1.0118        .10975E-01   -1.5577    
  27  Prefactor     .10319E-03    103.17        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.0670        7.7766        .49936E-02   -1.5305    
  29  Normalizat    .89095        .18819        .44784E-01   -.96779    
  30  Prefactor     1.3031        .22289        .59111E-01   -.83214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87715e-07
Minuit parameter uncertainties:
  1  0.00497657
  2  5.47147
  3  2.36708e-05
  4  0.00025207
  5  0.00446546
  6  0.0138097
  7  2.89739
  8  0.356905
  9  6.05327e-05
  10  17.4246
  11  0.0041029
  12  8.14925
  13  4.43258e-05
  14  2.27841e-05
  15  30.3708
  16  0.00533866
  17  2.39365
  18  1.44044e-05
  19  8.36291e-06
  20  0.00806973
  21  1.02337
  22  0.000338659
  23  10.8489
  24  0.00515525
  25  0.0337412
  26  1.01183
  27  0.0363682
  28  7.77856
  29  0.188328
  30  0.22305
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.278e-05  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:  1.303e+00  2.231e-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.910e-01  1.883e-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: 7.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803822/likelihoodResults_245030401_245289601_4FGL_J1127.8+3618_daily_bin22.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) = 5076.76263082
delta logL = -0.00224935745155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5076.76038184
delta logL = -3.77836840926e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3615       1.0000          .0000       10.000    
     3 'Normalizat'    .89102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3032       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=   5076.760     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9236        .31605E-01** at limit **
   2  Index         2.3518        5.8563        .50000        .37549E-04
   3  Normalizat    .89095        .69982E-02    .44787E-01    .12090E-03
   4  Prefactor     1.3031        .86263E-02    .59111E-01    .99094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.35181
  Normalizat = 0.890953
  Prefactor  = 1.30315
 **********
 **   18 **HESSE 
 **********

 FCN=   5076.760     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2334        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3518        6.1162        .50000       -.55817    
   3  Normalizat    .89095        .21096        .25200E-03   -.96779    
   4  Prefactor     1.3031        .26000        .26140E-03   -.83214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72878e-09
Minuit parameter uncertainties:
  1  3.91859e-05
  2  5.22305
  3  0.211158
  4  0.260262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803822': 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) = 5076.76038128
delta logL = 1.78646587301e-07

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.919e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.352e+00  5.223e+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:  1.303e+00  2.603e-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.910e-01  2.112e-01  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/803822/cmap_HighResolution_245030401_245289601_4FGL_J1127.8+3618_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-03 21:51:49.141551', job_id='803822', GAL2='1.30', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630731109.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='22' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 803822: <4FGL_J1127.8+3618_daily_bin22> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin22> 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) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:37:36 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:36 2021
Terminated at Fri Sep  3 21:51:49 2021
Results reported at Fri Sep  3 21:51:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin22 171.964 36.314 245030401 245289601 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 :                                   776.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            907 sec.

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

