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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1203
RA = 66.8294, Dec = 5.08
tmin = 551145601, tmax = 551404801
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='455124', job_status='RUN', time_executed='2021-08-20 15:56:56.606498', time_epoch_executed='1629500216.61' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455124/ft1_4FGL_J0427.3+0504_daily_bin1203.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455124/ft2_4FGL_J0427.3+0504_daily_bin1203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455124/ft1_4FGL_J0427.3+0504_daily_bin1203.fits outfile=/scratch/kocevski/455124/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1203.fits ra=66.8294 dec=5.08 rad=12.0 tmin=551145601.0 tmax=551404801.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 8.46
user 3.40
sys 5.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455124/ft1_filtered_4FGL_J0427.3+0504_daily_bin1203.fits" evtable="EVENTS" scfile=/scratch/kocevski/455124/ft2_4FGL_J0427.3+0504_daily_bin1203.fits sctable="SC_DATA" outfile=/scratch/kocevski/455124/ltcube_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.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/455124/ft2_4FGL_J0427.3+0504_daily_bin1203.fits
.....................!
real 17.23
user 11.19
sys 6.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455124/ft1_filtered_4FGL_J0427.3+0504_daily_bin1203.fits evtable="EVENTS" scfile=/scratch/kocevski/455124/ft2_4FGL_J0427.3+0504_daily_bin1203.fits sctable="SC_DATA" expcube=/scratch/kocevski/455124/ltcube_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.fits outfile=/scratch/kocevski/455124/expmap_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.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/455124/ltcube_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.fits
.....................!
real 196.40
user 184.25
sys 11.82

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/455124/ft1_filtered_4FGL_J0427.3+0504_daily_bin1203.fits scfile=/scratch/kocevski/455124/ft2_4FGL_J0427.3+0504_daily_bin1203.fits outfile=/scratch/kocevski/455124/cmap_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.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 5.39
user 0.36
sys 5.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455124/ft1_filtered_4FGL_J0427.3+0504_daily_bin1203.fits scfile=/scratch/kocevski/455124/ft2_4FGL_J0427.3+0504_daily_bin1203.fits outfile=/scratch/kocevski/455124/cmap_HighResolution_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.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 5.05
user 0.39
sys 4.62

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455124/ft1_filtered_4FGL_J0427.3+0504_daily_bin1203.fits', '/scratch/kocevski/455124/ft2_4FGL_J0427.3+0504_daily_bin1203.fits', expMap='/scratch/kocevski/455124/expmap_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.fits', expCube='/scratch/kocevski/455124/ltcube_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455124/Model_4FGL_J0427.3+0504_daily_bin1203.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/455124/ft1_filtered_4FGL_J0427.3+0504_daily_bin1203.fits
Spacecraft file(s): /scratch/kocevski/455124/ft2_4FGL_J0427.3+0504_daily_bin1203.fits
Exposure map: /scratch/kocevski/455124/expmap_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.fits
Exposure cube: /scratch/kocevski/455124/ltcube_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455124/Model_4FGL_J0427.3+0504_daily_bin1203.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) = 4401.47842704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.241       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    27.572       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6815       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10867E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .32279E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14942E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.7932       1.0000         .10000E-03   10000.    
    22 'Prefactor '    111.05       1.0000         .10000E-03   10000.    
    23 'norm      '    5.9415       1.0000         .10000E-03   10000.    
    24 'norm      '    5.4498       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8368       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .70482       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0146       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=   4401.474     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3266 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.070       -.91372E-05** at limit **
   2  Prefactor     .10000E-03    19.754       -.45474E-06** at limit **
   3  norm          .10000E-03    36.663        .89083E-06** at limit **
   4  Prefactor     .10000E-03    31.097        .10184E-04** at limit **
   5  norm          .10000E-03    7.6708       -.30326E-07** at limit **
   6  Prefactor     .10000E-03    27.947        .34113E-05** at limit **
   7  norm          .10000E-03    142.40       -.35110E-04** at limit **
   8  norm          .10000E-03    28.891        .63297E-05** at limit **
   9  norm          .10000E-03    1.1830       -.35831E-07** at limit **
  10  Prefactor     .10000E-03    1.4619       -.28968E-07** at limit **
  11  Prefactor     52.233        90.746       -.84381E-05   -.14244E-04
  12  Prefactor     .10000E-03    44.404       -.23813E-04** at limit **
  13  Prefactor     .10000E-03    76.638        .22320E-04** at limit **
  14  Prefactor     .10000E-03    20.024        .31295E-05** at limit **
  15  norm          27.571        12.980        .13263E-05   -.82949E-04
  16  Prefactor     .10000E-03    25.317       -.54903E-05** at limit **
  17  norm          2.6817        8.0466        .11374E-04   -.21911E-03
  18  Prefactor     .10000E-03    23.782       -.64397E-05** at limit **
  19  norm          .10000E-03    1.9257        .35476E-06** at limit **
  20  Prefactor     .10000E-03    75.903        .22660E-04** at limit **
  21  norm          8.7932        19.402       -.27297E-06   -.42002E-04
  22  Prefactor     110.99        136.05       -.56998E-04   -.97331E-05
  23  norm          5.9363        4.2949        .33408E-05   -.77802E-03
  24  norm          5.4750        18.696       -.12610E-05    .48860E-04
  25  Prefactor     8.8317        11.336        .28214E-05   -.12940E-03
  26  Normalizat    .70479        .54035        .72982E-05   -.44864E-04
  27  Prefactor     1.0146        .12395       -.90942E-06   -.10819E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.2335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.5713
  Prefactor  = 0.0001
  norm       = 2.68175
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 8.79318
  Prefactor  = 110.985
  norm       = 5.93628
  norm       = 5.47498
  Prefactor  = 8.83169
  Normalizat = 0.704792
  Prefactor  = 1.01455
 **********
 **   18 **HESSE 
 **********

 FCN=   4401.474     FROM HESSE     STATUS=OK           482 CALLS     3748 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    36.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.6710        .17947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    142.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    28.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1837        .70473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4622        .78340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.233        90.800        .55490E-04   -1.4261    
  12  Prefactor     .10000E-03    44.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    76.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          27.571        12.988        .76296E-04   -1.4657    
  16  Prefactor     .10000E-03    25.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6817        7.9670        .24883E-03   -1.5380    
  18  Prefactor     .10000E-03    23.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.6462        .17489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    76.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.7932        19.381        .13517E-03   -1.5115    
  22  Prefactor     110.99        136.34        .19085E-03   -1.3597    
  23  norm          5.9363        4.3683        .75733E-04   -1.5221    
  24  norm          5.4750        18.940        .17212E-03   -1.5240    
  25  Prefactor     8.8317        11.277        .13484E-03   -1.5114    
  26  Normalizat    .70479        .53678        .71026E-03   -1.0370    
  27  Prefactor     1.0146        .12635        .14394E-03   -.92246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08509e-10
Minuit parameter uncertainties:
  1  3.44912e-05
  2  7.41286e-06
  3  1.35823e-06
  4  3.11742e-06
  5  3.4036e-06
  6  3.15315e-06
  7  1.9253e-05
  8  3.40463e-06
  9  2.81197e-06
  10  2.1174e-06
  11  91.0414
  12  2.79032e-05
  13  0.000196999
  14  2.69987e-05
  15  12.9898
  16  4.77151e-06
  17  7.97011
  18  0.00023087
  19  7.66917e-05
  20  0.000918746
  21  19.3952
  22  136.729
  23  4.36854
  24  18.9603
  25  11.2796
  26  0.540854
  27  0.126385
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  5.223e+01  9.104e+01  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.015e+00  1.264e-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:  7.048e-01  5.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455124/likelihoodResults_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.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) = 4401.45072592
delta logL = 0.0233467031485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4401.44789919
delta logL = 0.0261734275109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.473       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6355       1.0000          .0000       10.000    
     3 'Normalizat'    .71552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0122       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=   4401.448     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.471        78.473        .52917E-04    .13836E-03
   2  Index         2.6354        .94670        .11540E-01    .78385E-04
   3  Normalizat    .71563        .52455        .70525E-03   -.15121E-04
   4  Prefactor     1.0122        .12605        .14408E-03   -.65257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.4712
  Index      = 2.63545
  Normalizat = 0.715629
  Prefactor  = 1.01221
 **********
 **   18 **HESSE 
 **********

 FCN=   4401.448     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.471        78.004        .10583E-04   -1.4190    
   2  Index         2.6354        .94107        .46158E-03   -.49259    
   3  Normalizat    .71563        .52480        .28210E-04   -1.0328    
   4  Prefactor     1.0122        .12605        .57630E-05   -.92324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5575e-10
Minuit parameter uncertainties:
  1  78.1436
  2  0.948378
  3  0.528546
  4  0.126086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455124': 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) = 4401.44789917
delta logL = 0.026173450532

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  5.747e+01  7.814e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.635e+00  9.484e-01  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.012e+00  1.261e-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:  7.156e-01  5.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/455124/cmap_HighResolution_551145601_551404801_4FGL_J0427.3+0504_daily_bin1203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-02', job_status='DONE', photon_flux_upper_limit='6.45e-07', time_completed='2021-08-20 16:07:30.132798', job_id='455124', GAL2='1.01', fit_tolerance='1e-08', EG2='0.72', EG='0.70', time_epoch_completed='1629500850.13', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.62e-02', ts2='0.67', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1203' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:07:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 455124: <4FGL_J0427.3+0504_daily_bin1203> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1203> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 15:55:25 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:55:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 15:55:26 2021
Terminated at Fri Aug 20 16:07:31 2021
Results reported at Fri Aug 20 16:07:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1203 66.8294 5.08 551145601 551404801 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

