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


Performing analysis on: 4FGL_J1027.2+7427_daily_bin806
RA = 156.812, Dec = 74.4524
tmin = 448243201, tmax = 448502401
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='879146', job_status='RUN', time_executed='2021-09-01 21:48:11.792235', time_epoch_executed='1630558091.79' WHERE source_name='4FGL J1027.2+7427' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/879146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/879146/ft1_4FGL_J1027.2+7427_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/879146/ft1_4FGL_J1027.2+7427_daily_bin806.fits outfile=/scratch/kocevski/879146/ft1_filteredMKT_4FGL_J1027.2+7427_daily_bin806.fits ra=156.812 dec=74.4524 rad=12.0 tmin=448243201.0 tmax=448502401.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 5.55
user 5.05
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.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/879146/ft1_filteredMKT_4FGL_J1027.2+7427_daily_bin806.fits evtable="EVENTS" outfile="/scratch/kocevski/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.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.55
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/879146/ltcube_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.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/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits
.....................!
real 17.24
user 16.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/879146/ltcube_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.fits outfile=/scratch/kocevski/879146/expmap_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.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/879146/ltcube_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.fits
.....................!
real 193.37
user 188.00
sys 4.75

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

Setting source of interest to:
4FGL J1027.2+7427 @ 156.812 74.4524

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.fits scfile=/scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits outfile=/scratch/kocevski/879146/cmap_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.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=156.812 yref=74.4524 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.fits scfile=/scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits outfile=/scratch/kocevski/879146/cmap_HighResolution_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.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=156.812 yref=74.4524 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/879146/Model_4FGL_J1027.2+7427_daily_bin806.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/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.fits......................!
real 51.64
user 50.19
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.fits', '/scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits', expMap='/scratch/kocevski/879146/expmap_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.fits', expCube='/scratch/kocevski/879146/ltcube_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/879146/Model_4FGL_J1027.2+7427_daily_bin806.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1027.2+7427'

4FGL J1027.2+7427
   Spectrum: PowerLaw
332    Prefactor:  6.515e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.419e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/879146/ft1_filtered_4FGL_J1027.2+7427_daily_bin806.fits
Spacecraft file(s): /scratch/kocevski/879146/ft2_4FGL_J1027.2+7427_daily_bin806.fits
Exposure map: /scratch/kocevski/879146/expmap_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.fits
Exposure cube: /scratch/kocevski/879146/ltcube_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/879146/Model_4FGL_J1027.2+7427_daily_bin806.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) = 3840.26452093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.072       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .87567E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6254       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.187       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .51729       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.447       1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8152       1.0000         .10000E-03   10000.    
    20 'norm      '    .11658E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.881       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.4038       1.0000         .10000E-03   10000.    
    28 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .77710       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3840.197     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4430 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.024        77.949        .23743E-05    .37706E-04
   2  norm          .10000E-03    10.895       -.35353E-06** at limit **
   3  Prefactor     .10068E-03    7862.9       -.10034E-03** at limit **
   4  Prefactor     .10000E-03    2.1615       -.10129E-06** at limit **
   5  norm          2.6267        3.8635        .11204E-06    .61163E-04
   6  Prefactor     .10000E-03    40.822       -.15905E-05** at limit **
   7  Prefactor     19.184        30.027       -.12025E-07    .23673E-04
   8  Prefactor     7.0875        16.750        .22697E-07   -.10134E-04
   9  Prefactor     .10000E-03    5.7780        .35089E-06** at limit **
  10  norm          .51733        .75107       -.47868E-06   -.10617E-02
  11  norm          .10000E-03    53.487        .16452E-05** at limit **
  12  Prefactor     36.112        18.400        .50868E-07    .21483E-04
  13  Prefactor     .10000E-03    13.274        .58799E-06** at limit **
  14  Prefactor     .10000E-03    54.971       -.29282E-05** at limit **
  15  Prefactor     50.461        44.701       -.25044E-06   -.64979E-07
  16  norm          .10000E-03    9.5423        .43949E-07** at limit **
  17  Prefactor     .10000E-03    168.53       -.59853E-05** at limit **
  18  Prefactor     .10000E-03    2.3009       -.14121E-07** at limit **
  19  norm          2.8150        1.0848       -.80709E-07   -.35707E-03
  20  norm          .10000E-03    15.835       -.20090E-05** at limit **
  21  Prefactor     .10000E-03    8.4177       -.20869E-06** at limit **
  22  Prefactor     .10000E-03    4.6076        .21394E-06** at limit **
  23  Prefactor     .10000E-03    18.637        .46466E-06** at limit **
  24  Prefactor     .10000E-03    4.5521        .76705E-06** at limit **
  25  Prefactor     15.881        14.523       -.70989E-06    .26101E-04
  26  Prefactor     .10000E-03    48.862        .62093E-06** at limit **
  27  norm          9.4034        6.9361        .54303E-06    .28384E-03
  28  norm          .10000E-03    8.3218       -.36164E-05** at limit **
  29  Prefactor     .10000E-03    21.143        .52999E-06** at limit **
  30  Prefactor     .10000E-03    16.307       -.37717E-06** at limit **
  31  Normalizat    .77709        .22455       -.21140E-05   -.47948E-04
  32  Prefactor     1.0536        .18996        .21699E-06    .19026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.0243
  norm       = 0.0001
  Prefactor  = 0.000100678
  Prefactor  = 0.0001
  norm       = 2.62671
  Prefactor  = 0.0001
  Prefactor  = 19.1842
  Prefactor  = 7.08746
  Prefactor  = 0.0001
  norm       = 0.517332
  norm       = 0.0001
  Prefactor  = 36.1122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.4605
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.881
  Prefactor  = 0.0001
  norm       = 9.40344
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.777091
  Prefactor  = 1.05355
 **********
 **   18 **HESSE 
 **********

 FCN=   3840.197     FROM HESSE     STATUS=OK           657 CALLS     5087 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.024        78.244        .57834E-04   -1.4321    
   2  norm          .10000E-03    10.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10068E-03    49.778        .12194       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1650        .89005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6267        3.8123        .12220E-03   -1.5384    
   6  Prefactor     .10000E-03    40.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.184        29.800        .91436E-04   -1.4832    
   8  Prefactor     7.0875        16.768        .15069E-03   -1.5175    
   9  Prefactor     .10000E-03    5.7949        .14558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .51733        .75067        .64466E-03   -1.5564    
  11  norm          .10000E-03    54.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.112        18.379        .66688E-04   -1.4505    
  13  Prefactor     .10000E-03    13.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.461        44.700        .56463E-04   -1.4286    
  16  norm          .10000E-03    10.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    168.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3147        .91841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8150        1.0520        .24242E-04   -1.5372    
  20  norm          .10000E-03    15.650        .14428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4682        .17568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.6677        .12959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6115        .12904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.881        13.918        .10050E-03   -1.4911    
  26  Prefactor     .10000E-03    48.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.4034        7.0067        .65343E-03   -1.5095    
  28  norm          .10000E-03    8.4507        .23202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    21.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    16.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .77709        .24382        .28205E-03   -1.0092    
  32  Prefactor     1.0536        .20658        .21287E-03   -.90965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3427e-10
Minuit parameter uncertainties:
  1  78.412
  2  7.8545e-07
  3  0.0116259
  4  6.64436e-06
  5  3.81266
  6  7.47925e-05
  7  29.823
  8  16.7788
  9  2.4393e-05
  10  0.750688
  11  7.65853e-05
  12  18.3823
  13  1.27333e-05
  14  8.89316e-05
  15  44.7297
  16  1.3359e-05
  17  7.83019e-05
  18  4.1586e-06
  19  1.05199
  20  1.27455e-05
  21  3.24438e-06
  22  4.33734e-06
  23  8.14072e-06
  24  4.89112e-06
  25  13.9206
  26  4.21486e-05
  27  7.0073
  28  0.000112503
  29  5.26363e-06
  30  1.85813e-05
  31  0.244164
  32  0.206737
Done.

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

Extracting fit parameters...

4FGL J1027.2+7427
   Spectrum: PowerLaw
332    Prefactor:  3.611e+01  1.838e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.419e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
705    Prefactor:  1.054e+00  2.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
706        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
707        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
704   Normalization:  7.771e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.38
Ra Dec: 156.812 74.452
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 5.57e-08
Energy Flux (Fixed Index): 3.50e-05 +/- 1.78e-05

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) = 3840.16811947
delta logL = 0.0290790317335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3840.16779326
delta logL = 0.0294052362406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.933       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5393       1.0000          .0000       10.000    
     3 'Normalizat'    .76950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7080E+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=   3840.168     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      265 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.919        28.307        .72041E-04   -.13177E-04
   2  Index         2.5396        .54554        .36476E-02    .34474E-03
   3  Normalizat    .76943        .23638        .28323E-03    .27536E-04
   4  Prefactor     1.0577        .20394        .21249E-03   -.58008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9193
  Index      = 2.53956
  Normalizat = 0.769429
  Prefactor  = 1.05769
 **********
 **   18 **HESSE 
 **********

 FCN=   3840.168     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.919        26.601        .28816E-05   -1.4595    
   2  Index         2.5396        .51259        .72952E-03   -.51449    
   3  Normalizat    .76943        .23630        .11329E-04   -1.0121    
   4  Prefactor     1.0577        .20394        .42497E-04   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00876e-11
Minuit parameter uncertainties:
  1  26.6109
  2  0.513784
  3  0.236613
  4  0.20409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/879146': 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) = 3840.16779307
delta logL = 0.0294054294877

Extracting fit parameters...

4FGL J1027.2+7427
   Spectrum: PowerLaw
332    Prefactor:  3.092e+01  2.661e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.540e+00  5.138e-01  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
705    Prefactor:  1.058e+00  2.041e-01  0.000e+00  1.000e+01 ( 1.000e+00)
706        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
707        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
704   Normalization:  7.694e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.50
Ra Dec: 156.812 74.452
Photon Index (Free Index): 2.54 +/- 0.51
Photon Flux (Free Index): 1.17e-07 +/- 6.41e-08
Energy Flux (Free Index): 3.25e-05 +/- 1.84e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/879146/cmap_HighResolution_448243201_448502401_4FGL_J1027.2+7427_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.25e-05', photon_flux_error='5.57e-08', dlogl='2.94e-02', energy_flux='3.50e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-01 22:00:36.012390', photon_index_error2='0.51', photon_index2='2.54', ts='8.38', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='0.78', time_epoch_completed='1630558836.01', return_code='0', job_id='879146', GAL2='1.06', EG2='0.77', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='6.41e-08', ts2='8.50', photon_index='2.42' WHERE bin_id='806' AND source_name='4FGL J1027.2+7427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 22:00:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 879146: <4FGL_J1027.2+7427_daily_bin806> in cluster <slac> Done

Job <4FGL_J1027.2+7427_daily_bin806> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 21:45:24 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:47:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 21:47:57 2021
Terminated at Wed Sep  1 22:00:36 2021
Results reported at Wed Sep  1 22:00:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1027.2+7427_daily_bin806 156.812 74.4524 448243201 448502401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1027.2+7427 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            912 sec.

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

