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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin451
RA = 171.964, Dec = 36.314
tmin = 356227201, tmax = 356486401
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='806811', job_status='RUN', time_executed='2021-09-03 21:48:36.771475', time_epoch_executed='1630730916.77' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806811

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806811/ft1_4FGL_J1127.8+3618_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/806811/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/806811/ft2_4FGL_J1127.8+3618_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806811/ft1_4FGL_J1127.8+3618_daily_bin451.fits outfile=/scratch/kocevski/806811/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin451.fits ra=171.964 dec=36.314 rad=12.0 tmin=356227201.0 tmax=356486401.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 3.14
user 2.93
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806811/ft2_4FGL_J1127.8+3618_daily_bin451.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/806811/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/806811/ft1_filtered_4FGL_J1127.8+3618_daily_bin451.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.56
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806811/ft1_filtered_4FGL_J1127.8+3618_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/806811/ft2_4FGL_J1127.8+3618_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/806811/ltcube_356227201_356486401_4FGL_J1127.8+3618_daily_bin451.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/806811/ft2_4FGL_J1127.8+3618_daily_bin451.fits
.....................!
real 4.20
user 3.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806811/ft1_filtered_4FGL_J1127.8+3618_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/806811/ft2_4FGL_J1127.8+3618_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/806811/ltcube_356227201_356486401_4FGL_J1127.8+3618_daily_bin451.fits outfile=/scratch/kocevski/806811/expmap_356227201_356486401_4FGL_J1127.8+3618_daily_bin451.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/806811/ltcube_356227201_356486401_4FGL_J1127.8+3618_daily_bin451.fits
.....................!
real 192.51
user 187.49
sys 4.28

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/806811/ft1_filtered_4FGL_J1127.8+3618_daily_bin451.fits scfile=/scratch/kocevski/806811/ft2_4FGL_J1127.8+3618_daily_bin451.fits outfile=/scratch/kocevski/806811/cmap_356227201_356486401_4FGL_J1127.8+3618_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806811/ft1_filtered_4FGL_J1127.8+3618_daily_bin451.fits scfile=/scratch/kocevski/806811/ft2_4FGL_J1127.8+3618_daily_bin451.fits outfile=/scratch/kocevski/806811/cmap_HighResolution_356227201_356486401_4FGL_J1127.8+3618_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.032       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.730       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.120       1.0000         .10000E-03   10000.    
    13 'norm      '    13.434       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.525       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2423       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    95.703       1.0000         .10000E-03   10000.    
    25 'Prefactor '    71.327       1.0000         .10000E-03   10000.    
    26 'norm      '    8.6222       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2495       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .42893       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=   1328.188     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     4512 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.738       -.90717E-06** at limit **
   2  Prefactor     .10000E-03    15.320        .54180E-06** at limit **
   3  Prefactor     .10000E-03    6.0281       -.80303E-08** at limit **
   4  Prefactor     .10000E-03    37.524        .56391E-05** at limit **
   5  Prefactor     24.030        42.197       -.19193E-05   -.74218E-06
   6  Prefactor     .10000E-03    71.875       -.15251E-04** at limit **
   7  Prefactor     11.728        26.498       -.61281E-06   -.16525E-04
   8  norm          1.7611        .76755        .48491E-07    .25543E-03
   9  Prefactor     .10000E-03    3.1825        .14198E-06** at limit **
  10  Prefactor     .10000E-03    30.213       -.65361E-05** at limit **
  11  Prefactor     .10000E-03    32.367       -.48453E-05** at limit **
  12  norm          25.119        32.903       -.30309E-06    .12560E-04
  13  norm          13.436        21.214        .74928E-06   -.13960E-04
  14  Prefactor     3.5604        5.6606        .84001E-06   -.12529E-03
  15  Prefactor     .10000E-03    45.657        .24238E-04** at limit **
  16  Prefactor     .10000E-03    27.733       -.54730E-05** at limit **
  17  norm          .10000E-03    1.9806        .44610E-08** at limit **
  18  Prefactor     .10000E-03    10.634       -.81669E-06** at limit **
  19  Prefactor     16.529        18.285       -.19729E-05   -.47995E-03
  20  Prefactor     .10000E-03    68.622       -.25516E-05** at limit **
  21  norm          2.2419        3.1217       -.35407E-05    .92057E-04
  22  Prefactor     .10000E-03    20.870        .11297E-04** at limit **
  23  norm          .10000E-03    12.247        .37865E-05** at limit **
  24  Prefactor     95.715        77.400        .10366E-04    .10203E-04
  25  Prefactor     71.388        191.64        .70881E-04   -.25594E-04
  26  norm          8.6224        3.8789       -.77904E-07   -.21729E-04
  27  Prefactor     .10000E-03    30.834       -.64984E-05** at limit **
  28  Prefactor     .10000E-03    14.163       -.60123E-05** at limit **
  29  Normalizat    1.2484        .39362       -.46250E-05    .95426E-04
  30  Prefactor     .43003        .42547       -.13921E-06   -.36357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0301
  Prefactor  = 0.0001
  Prefactor  = 11.7279
  norm       = 1.76108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.1185
  norm       = 13.436
  Prefactor  = 3.56042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5292
  Prefactor  = 0.0001
  norm       = 2.24187
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 95.7153
  Prefactor  = 71.3884
  norm       = 8.62238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24844
  Prefactor  = 0.430035
 **********
 **   18 **HESSE 
 **********

 FCN=   1328.188     FROM HESSE     STATUS=OK           576 CALLS     5088 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.863        .27861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0445        .87401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.030        42.179        .81711E-04   -1.4727    
   6  Prefactor     .10000E-03    71.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.728        26.495        .11696E-03   -1.5023    
   8  norm          1.7611        .76946        .20320E-04   -1.5443    
   9  Prefactor     .10000E-03    3.1916        .63473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.119        32.921        .79925E-04   -1.4705    
  13  norm          13.436        21.219        .10928E-03   -1.4975    
  14  Prefactor     3.5604        5.6302        .99336E-04   -1.5331    
  15  Prefactor     .10000E-03    45.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9846        .50079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.639        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.529        18.417        .49263E-03   -1.4895    
  20  Prefactor     .10000E-03    68.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2419        3.1294        .60302E-04   -1.5409    
  22  Prefactor     .10000E-03    20.909        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.220        .12445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     95.715        77.807        .41086E-04   -1.3748    
  25  Prefactor     71.388        191.88        .47533E-04   -1.4016    
  26  norm          8.6224        3.8795        .46416E-04   -1.5121    
  27  Prefactor     .10000E-03    30.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.218        .13397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2484        .44692        .21708E-03   -.85119    
  30  Prefactor     .43003        .47221        .40222E-03   -1.1530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12075e-09
Minuit parameter uncertainties:
  1  1.52043e-05
  2  5.39531e-05
  3  9.85229e-06
  4  2.09224e-05
  5  42.2309
  6  2.45726e-05
  7  26.5216
  8  0.769464
  9  9.30215e-06
  10  7.96072e-05
  11  3.88761e-05
  12  32.9452
  13  21.2312
  14  5.63106
  15  5.10169e-06
  16  5.2374e-05
  17  6.42593e-06
  18  2.9032e-06
  19  18.4231
  20  1.12919e-05
  21  3.12959
  22  3.27147e-06
  23  9.99332e-05
  24  77.8898
  25  193.583
  26  3.87963
  27  3.74587e-05
  28  1.7814e-05
  29  0.448299
  30  0.476585
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  3.560e+00  5.631e+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:  4.300e-01  4.766e-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:  1.248e+00  4.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 2.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806811/likelihoodResults_356227201_356486401_4FGL_J1127.8+3618_daily_bin451.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) = 1328.18450947
delta logL = 0.00318422852865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1328.18302894
delta logL = 0.00466475952135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2472       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5079       1.0000          .0000       10.000    
     3 'Normalizat'    1.2414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43534       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1328.183     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      248 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2484        6.4018        .92502E-04   -.13877E-02
   2  Index         2.5074        1.4846        .73368E-02   -.17630E-03
   3  Normalizat    1.2413        .42142        .21755E-03    .17714E-03
   4  Prefactor     .43545        .47039        .39986E-03    .15247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24836
  Index      = 2.50735
  Normalizat = 1.24129
  Prefactor  = 0.43545
 **********
 **   18 **HESSE 
 **********

 FCN=   1328.183     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2484        6.0536        .37001E-05   -1.5347    
   2  Index         2.5074        1.4056        .29347E-03   -.52190    
   3  Normalizat    1.2413        .42081        .43509E-04   -.85336    
   4  Prefactor     .43545        .46993        .15994E-04   -1.1504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77677e-09
Minuit parameter uncertainties:
  1  6.05475
  2  1.43145
  3  0.421972
  4  0.474182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806811': 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) = 1328.18302884
delta logL = 0.0046648551986

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  3.248e+00  6.055e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.507e+00  1.431e+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:  4.354e-01  4.742e-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:  1.241e+00  4.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
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/806811/cmap_HighResolution_356227201_356486401_4FGL_J1127.8+3618_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-02', job_status='DONE', photon_flux_upper_limit='2.62e-07', time_completed='2021-09-03 21:56:30.127065', job_id='806811', GAL2='0.44', fit_tolerance='1e-08', EG2='1.24', EG='1.25', time_epoch_completed='1630731390.13', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='4.66e-03', ts2='0.69', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='451' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:56:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 806811: <4FGL_J1127.8+3618_daily_bin451> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin451> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 21:46:22 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:46:25 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:46:25 2021
Terminated at Fri Sep  3 21:56:30 2021
Results reported at Fri Sep  3 21:56:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin451 171.964 36.314 356227201 356486401 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 :                                   471.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            608 sec.

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

