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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1107
RA = 66.8294, Dec = 5.08
tmin = 526262401, tmax = 526521601
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='453791', job_status='RUN', time_executed='2021-08-20 15:51:26.590684', time_epoch_executed='1629499886.59' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453791/ft1_4FGL_J0427.3+0504_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453791/ft2_4FGL_J0427.3+0504_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453791/ft1_4FGL_J0427.3+0504_daily_bin1107.fits outfile=/scratch/kocevski/453791/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1107.fits ra=66.8294 dec=5.08 rad=12.0 tmin=526262401.0 tmax=526521601.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.98
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453791/ft2_4FGL_J0427.3+0504_daily_bin1107.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/453791/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1107.fits evtable="EVENTS" outfile="/scratch/kocevski/453791/ft1_filtered_4FGL_J0427.3+0504_daily_bin1107.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.48
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453791/ft1_filtered_4FGL_J0427.3+0504_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/453791/ft2_4FGL_J0427.3+0504_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/453791/ltcube_526262401_526521601_4FGL_J0427.3+0504_daily_bin1107.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/453791/ft2_4FGL_J0427.3+0504_daily_bin1107.fits
.....................!
real 11.64
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453791/ft1_filtered_4FGL_J0427.3+0504_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/453791/ft2_4FGL_J0427.3+0504_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/453791/ltcube_526262401_526521601_4FGL_J0427.3+0504_daily_bin1107.fits outfile=/scratch/kocevski/453791/expmap_526262401_526521601_4FGL_J0427.3+0504_daily_bin1107.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/453791/ltcube_526262401_526521601_4FGL_J0427.3+0504_daily_bin1107.fits
.....................!
real 190.83
user 185.67
sys 4.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/453791/ft1_filtered_4FGL_J0427.3+0504_daily_bin1107.fits scfile=/scratch/kocevski/453791/ft2_4FGL_J0427.3+0504_daily_bin1107.fits outfile=/scratch/kocevski/453791/cmap_526262401_526521601_4FGL_J0427.3+0504_daily_bin1107.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 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453791/ft1_filtered_4FGL_J0427.3+0504_daily_bin1107.fits scfile=/scratch/kocevski/453791/ft2_4FGL_J0427.3+0504_daily_bin1107.fits outfile=/scratch/kocevski/453791/cmap_HighResolution_526262401_526521601_4FGL_J0427.3+0504_daily_bin1107.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 0.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.0951       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.707       1.0000         .10000E-03   10000.    
     7 'norm      '    34.275       1.0000         .10000E-03   10000.    
     8 'norm      '    31.713       1.0000         .10000E-03   10000.    
     9 'norm      '    .44512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5307       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31661E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3455       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8962       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7582       1.0000         .10000E-03   10000.    
    19 'norm      '    .98156E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.037       1.0000         .10000E-03   10000.    
    21 'norm      '    9.3564       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1568       1.0000         .10000E-03   10000.    
    24 'norm      '    33.912       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3296       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76523       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0784       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=   9844.211     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3370 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.598        .12296E-05** at limit **
   2  Prefactor     .10000E-03    18.198       -.80457E-06** at limit **
   3  norm          .10000E-03    10.289        .31163E-05** at limit **
   4  Prefactor     .10000E-03    10.795       -.41101E-05** at limit **
   5  norm          7.0947        5.2341       -.24101E-06   -.61933E-04
   6  Prefactor     25.717        22.954       -.66146E-05   -.17110E-03
   7  norm          34.272        20.631        .19757E-05    .78238E-04
   8  norm          31.705        24.173       -.59712E-05   -.14030E-03
   9  norm          .44453        .93924        .15857E-06   -.10172E-03
  10  Prefactor     .10000E-03    .60150        .57005E-07** at limit **
  11  Prefactor     3.4536        38.533        .69748E-05    .46740E-04
  12  Prefactor     .10366E-03    28.892       -.14755E-05** at limit **
  13  Prefactor     .10000E-03    11.829        .15883E-05** at limit **
  14  Prefactor     .10000E-03    9.2514       -.36048E-06** at limit **
  15  norm          3.3530        3.1013       -.27249E-06   -.14952E-03
  16  Prefactor     .10000E-03    15.784       -.54998E-06** at limit **
  17  norm          4.8942        2.5999        .20634E-07    .99071E-04
  18  Prefactor     2.7545        2.8254        .96242E-06   -.27840E-02
  19  norm          .10000E-03    .72486       -.95095E-07** at limit **
  20  Prefactor     37.036        34.985        .54859E-06    .24599E-04
  21  norm          9.3562        3.1775       -.28107E-07   -.19730E-06
  22  Prefactor     .10000E-03    31.781        .12400E-06** at limit **
  23  norm          1.1564        .78001       -.31942E-07   -.23713E-03
  24  norm          33.913        7.5170       -.29982E-07    .12087E-04
  25  Prefactor     2.3292        2.3716       -.34058E-07    .22169E-04
  26  Normalizat    .76545        .27693        .15138E-06    .47335E-04
  27  Prefactor     1.0783        .79514E-01    .38960E-06    .22300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.09467
  Prefactor  = 25.7171
  norm       = 34.2721
  norm       = 31.7051
  norm       = 0.444527
  Prefactor  = 0.0001
  Prefactor  = 3.45363
  Prefactor  = 0.00010366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.35295
  Prefactor  = 0.0001
  norm       = 4.89424
  Prefactor  = 2.75446
  norm       = 0.0001
  Prefactor  = 37.0356
  norm       = 9.35615
  Prefactor  = 0.0001
  norm       = 1.15637
  norm       = 33.9135
  Prefactor  = 2.32923
  Normalizat = 0.76545
  Prefactor  = 1.07828
 **********
 **   18 **HESSE 
 **********

 FCN=   9844.211     FROM HESSE     STATUS=OK           498 CALLS     3868 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0947        5.1907        .15060E-03   -1.5175    
   6  Prefactor     25.717        22.980        .79008E-04   -1.4693    
   7  norm          34.272        20.628        .68448E-04   -1.4536    
   8  norm          31.705        24.287        .71152E-04   -1.4581    
   9  norm          .44453        .89619        .12558E-03   -1.5575    
  10  Prefactor     .10000E-03    .61014        .74909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4536        36.603        .21513E-03   -1.5336    
  12  Prefactor     .10366E-03    28.392        .15548       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3530        3.0209        .13638E-03   -1.5342    
  16  Prefactor     .10000E-03    15.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8942        2.5994        .10923E-03   -1.5265    
  18  Prefactor     2.7545        6.0322        .12255E-02   -1.5376    
  19  norm          .10000E-03    6.0448        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.036        35.079        .65855E-04   -1.4490    
  21  norm          9.3562        3.1788        .98119E-04   -1.5096    
  22  Prefactor     .10000E-03    31.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1564        .76170        .63460E-04   -1.5493    
  24  norm          33.913        7.4872        .68812E-04   -1.4543    
  25  Prefactor     2.3292        2.3731        .14966E-03   -1.5403    
  26  Normalizat    .76545        .28954        .54401E-03   -1.0136    
  27  Prefactor     1.0783        .84198E-01    .15181E-03   -.90164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08781e-08
Minuit parameter uncertainties:
  1  3.2227e-05
  2  6.81687e-05
  3  4.93451e-05
  4  5.92064e-05
  5  5.19103
  6  22.9884
  7  20.6324
  8  24.2943
  9  0.896215
  10  5.93302e-06
  11  22.5042
  12  0.020397
  13  3.39364e-05
  14  1.14156e-05
  15  3.02106
  16  6.53097e-06
  17  2.5995
  18  6.03348
  19  5.24594e-06
  20  35.0988
  21  3.17885
  22  3.63491e-05
  23  0.761703
  24  7.48738
  25  2.37317
  26  0.29012
  27  0.084208
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.454e+00  2.250e+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.078e+00  8.421e-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:  7.655e-01  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/453791/likelihoodResults_526262401_526521601_4FGL_J0427.3+0504_daily_bin1107.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) = 9844.21123497
delta logL = 0.000210818881897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9844.21122999
delta logL = 0.000215799647776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4023       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9124       1.0000          .0000       10.000    
     3 'Normalizat'    .76500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0784       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=   9844.211     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      261 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3968        30.550        .21933E-03    .33826E-03
   2  Index         2.9107        2.3307        .23142E-01    .14686E-03
   3  Normalizat    .76511        .25125        .54412E-03   -.10175E-02
   4  Prefactor     1.0783        .81555E-01    .15181E-03   -.27748E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3968
  Index      = 2.91073
  Normalizat = 0.765113
  Prefactor  = 1.07835
 **********
 **   18 **HESSE 
 **********

 FCN=   9844.211     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3968        27.676        .87733E-05   -1.5339    
   2  Index         2.9107        2.2311        .92567E-03   -.43108    
   3  Normalizat    .76511        .25149        .10882E-03   -1.0138    
   4  Prefactor     1.0783        .81569E-01    .30362E-04   -.90162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0561e-08
Minuit parameter uncertainties:
  1  19.4039
  2  2.33219
  3  0.251867
  4  0.0815786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453791': 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) = 9844.21122949
delta logL = 0.000216299986278

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.397e+00  1.940e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.911e+00  2.332e+00  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.078e+00  8.158e-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:  7.651e-01  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 66.829 5.080

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/453791/cmap_HighResolution_526262401_526521601_4FGL_J0427.3+0504_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-08-20 16:06:53.883477', job_id='453791', GAL2='1.08', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1629500813.88', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.16e-04', ts2='0.03', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1107' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:06:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 453791: <4FGL_J0427.3+0504_daily_bin1107> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1107> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 15:50:35 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:50:37 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:50:37 2021
Terminated at Fri Aug 20 16:06:54 2021
Results reported at Fri Aug 20 16:06:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1107 66.8294 5.08 526262401 526521601 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 :                                   925.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

