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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1391
RA = 66.8294, Dec = 5.08
tmin = 599875201, tmax = 600134401
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='456867', job_status='RUN', time_executed='2021-08-20 16:05:38.504560', time_epoch_executed='1629500738.5' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456867/ft1_4FGL_J0427.3+0504_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456867/ft1_4FGL_J0427.3+0504_daily_bin1391.fits outfile=/scratch/kocevski/456867/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1391.fits ra=66.8294 dec=5.08 rad=12.0 tmin=599875201.0 tmax=600134401.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 11.32
user 2.21
sys 9.00

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.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/456867/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1391.fits evtable="EVENTS" outfile="/scratch/kocevski/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.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 9.77
user 0.33
sys 9.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/456867/ltcube_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.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/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits
.....................!
real 23.96
user 13.48
sys 10.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/456867/ltcube_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.fits outfile=/scratch/kocevski/456867/expmap_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.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/456867/ltcube_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.fits
.....................!
real 201.21
user 185.21
sys 15.42

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

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.fits scfile=/scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits outfile=/scratch/kocevski/456867/cmap_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.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=66.8294 yref=5.08 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 8.37
user 0.38
sys 7.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.fits scfile=/scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits outfile=/scratch/kocevski/456867/cmap_HighResolution_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.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=66.8294 yref=5.08 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 9.27
user 0.39
sys 8.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456867/Model_4FGL_J0427.3+0504_daily_bin1391.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/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.fits.....................!
real 66.92
user 54.71
sys 11.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.fits', '/scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits', expMap='/scratch/kocevski/456867/expmap_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.fits', expCube='/scratch/kocevski/456867/ltcube_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456867/Model_4FGL_J0427.3+0504_daily_bin1391.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/456867/ft1_filtered_4FGL_J0427.3+0504_daily_bin1391.fits
Spacecraft file(s): /scratch/kocevski/456867/ft2_4FGL_J0427.3+0504_daily_bin1391.fits
Exposure map: /scratch/kocevski/456867/expmap_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.fits
Exposure cube: /scratch/kocevski/456867/ltcube_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456867/Model_4FGL_J0427.3+0504_daily_bin1391.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) = 3263.70464538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10618       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9536       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20500E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.940       1.0000         .10000E-03   10000.    
    15 'norm      '    18.329       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.4378       1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.034       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.8889       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96285       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3263.693     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3274 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    110.25       -.17548E-04** at limit **
   2  Prefactor     .10000E-03    38.831       -.16912E-04** at limit **
   3  norm          .10000E-03    19.474       -.47351E-05** at limit **
   4  Prefactor     .10000E-03    52.022        .20442E-06** at limit **
   5  norm          .11838        4.4273       -.58029E-07   -.17833E-03
   6  Prefactor     7.9481        42.966       -.67909E-05   -.28438E-05
   7  norm          .10000E-03    12.089        .82046E-05** at limit **
   8  norm          .10000E-03    22.365        .62794E-05** at limit **
   9  norm          .10000E-03    1.7226        .28837E-06** at limit **
  10  Prefactor     1.4614        3.8377        .42861E-05   -.27762E-03
  11  Prefactor     .10000E-03    30.887        .40963E-05** at limit **
  12  Prefactor     81.880        83.867       -.32516E-04   -.89735E-04
  13  Prefactor     .10000E-03    5.7450       -.16744E-06** at limit **
  14  Prefactor     51.931        72.631       -.10018E-04   -.69134E-06
  15  norm          18.331        8.2885        .33708E-07   -.27347E-03
  16  Prefactor     .10000E-03    55.598        .98179E-05** at limit **
  17  norm          .10000E-03    2.5514        .16758E-06** at limit **
  18  Prefactor     .10000E-03    53.599        .63823E-05** at limit **
  19  norm          .10000E-03    2.4895        .96656E-07** at limit **
  20  Prefactor     .10000E-03    102.51        .71289E-05** at limit **
  21  norm          5.4386        4.8182       -.23266E-06   -.15330E-03
  22  Prefactor     52.033        80.317        .24330E-07   -.87477E-05
  23  norm          .10000E-03    .76500       -.16326E-07** at limit **
  24  norm          6.8889        7.4285        .43420E-07    .51282E-04
  25  Prefactor     .10000E-03    11.997       -.78722E-05** at limit **
  26  Normalizat    .96215        .41681        .62893E-05   -.83469E-04
  27  Prefactor     1.0014        .13542       -.76688E-07   -.35416E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.11838
  Prefactor  = 7.9481
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.46144
  Prefactor  = 0.0001
  Prefactor  = 81.8801
  Prefactor  = 0.0001
  Prefactor  = 51.9312
  norm       = 18.3309
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.43864
  Prefactor  = 52.0334
  norm       = 0.0001
  norm       = 6.88887
  Prefactor  = 0.0001
  Normalizat = 0.962153
  Prefactor  = 1.00136
 **********
 **   18 **HESSE 
 **********

 FCN=   3263.693     FROM HESSE     STATUS=OK           482 CALLS     3756 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    110.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11838        45.392        .23071E-02   -1.5639    
   6  Prefactor     7.9481        43.060        .14217E-03   -1.5144    
   7  norm          .10000E-03    12.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    22.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.9717        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4614        3.6183        .14778E-03   -1.5466    
  11  Prefactor     .10000E-03    30.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     81.880        83.145        .22189E-03   -1.3896    
  13  Prefactor     .10000E-03    5.7510        .13372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.931        72.813        .55649E-04   -1.4265    
  15  norm          18.331        8.2762        .93552E-04   -1.4851    
  16  Prefactor     .10000E-03    55.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5840        .89049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.4965        .88026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    102.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.4386        4.8144        .11369E-03   -1.5242    
  22  Prefactor     52.033        79.924        .55599E-04   -1.4264    
  23  norm          .10000E-03    .76738        .48553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.8889        7.4272        .15286E-03   -1.5183    
  25  Prefactor     .10000E-03    12.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96215        .46286        .48053E-03   -.94309    
  27  Prefactor     1.0014        .15279        .15690E-03   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69419e-10
Minuit parameter uncertainties:
  1  0.000102319
  2  2.67218e-05
  3  1.2764e-05
  4  0.000128977
  5  4.63774
  6  37.041
  7  1.05583e-05
  8  2.44144e-07
  9  8.80646e-05
  10  3.61888
  11  2.05541e-05
  12  83.2631
  13  1.4747e-05
  14  72.938
  15  8.27672
  16  2.02739e-06
  17  2.79941e-05
  18  0.000131893
  19  1.41085e-06
  20  6.72631e-05
  21  4.81472
  22  80.0891
  23  1.45577e-06
  24  7.42818
  25  4.31056e-06
  26  0.464801
  27  0.152856
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.055e-05  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.001e+00  1.529e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  9.622e-01  4.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 3.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456867/likelihoodResults_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.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) = 3263.69320414
delta logL = -0.000154056474912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3263.69305151
delta logL = -1.43561283039e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4520       1.0000          .0000       10.000    
     3 'Normalizat'    .96215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   3263.693     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      294 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    152.12        .18142E-01** at limit **
   2  Index         2.4768        7.8749        .50000        .22821E-06
   3  Normalizat    .96216        .23103E-01    .48052E-03    .15094E-04
   4  Prefactor     1.0014        .77463E-02    .15690E-03    .60909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.47676
  Normalizat = 0.962158
  Prefactor  = 1.00136
 **********
 **   18 **HESSE 
 **********

 FCN=   3263.693     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      323 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    787.68        .33729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4768        8.5283        .50000       -.52897    
   3  Normalizat    .96216        .54023E-01    .19221E-04   -.94309    
   4  Prefactor     1.0014        .18114E-01    .31379E-04   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.774e-10
Minuit parameter uncertainties:
  1  0.00622767
  2  1294.68
  3  0.0540257
  4  0.0181144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456867': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3263.69304982
delta logL = 2.54996848525e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  6.228e-03  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.477e+00  1.295e+03  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.001e+00  1.811e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  9.622e-01  5.403e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.829 5.080

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/456867/cmap_HighResolution_599875201_600134401_4FGL_J0427.3+0504_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-02', job_status='DONE', photon_flux_upper_limit='3.07e-07', time_completed='2021-08-20 16:16:08.363308', job_id='456867', GAL2='1.00', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629501368.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1391' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:16:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 456867: <4FGL_J0427.3+0504_daily_bin1391> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1391> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:41 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:00:42 2021
Terminated at Fri Aug 20 16:16:10 2021
Results reported at Fri Aug 20 16:16:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1391 66.8294 5.08 599875201 600134401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3+0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             217.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

