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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1419
RA = 66.8294, Dec = 5.08
tmin = 607132801, tmax = 607392001
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='456912', job_status='RUN', time_executed='2021-08-20 16:02:14.900715', time_epoch_executed='1629500534.9' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456912

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456912/ft1_4FGL_J0427.3+0504_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456912/ft2_4FGL_J0427.3+0504_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456912/ft1_4FGL_J0427.3+0504_daily_bin1419.fits outfile=/scratch/kocevski/456912/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1419.fits ra=66.8294 dec=5.08 rad=12.0 tmin=607132801.0 tmax=607392001.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.71
user 5.09
sys 3.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456912/ft1_filtered_4FGL_J0427.3+0504_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/456912/ft2_4FGL_J0427.3+0504_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/456912/ltcube_607132801_607392001_4FGL_J0427.3+0504_daily_bin1419.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/456912/ft2_4FGL_J0427.3+0504_daily_bin1419.fits
.....................!
real 15.56
user 11.65
sys 3.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456912/ft1_filtered_4FGL_J0427.3+0504_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/456912/ft2_4FGL_J0427.3+0504_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/456912/ltcube_607132801_607392001_4FGL_J0427.3+0504_daily_bin1419.fits outfile=/scratch/kocevski/456912/expmap_607132801_607392001_4FGL_J0427.3+0504_daily_bin1419.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/456912/ltcube_607132801_607392001_4FGL_J0427.3+0504_daily_bin1419.fits
.....................!
real 195.00
user 186.10
sys 8.44

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/456912/ft1_filtered_4FGL_J0427.3+0504_daily_bin1419.fits scfile=/scratch/kocevski/456912/ft2_4FGL_J0427.3+0504_daily_bin1419.fits outfile=/scratch/kocevski/456912/cmap_607132801_607392001_4FGL_J0427.3+0504_daily_bin1419.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 3.62
user 0.39
sys 3.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456912/ft1_filtered_4FGL_J0427.3+0504_daily_bin1419.fits scfile=/scratch/kocevski/456912/ft2_4FGL_J0427.3+0504_daily_bin1419.fits outfile=/scratch/kocevski/456912/cmap_HighResolution_607132801_607392001_4FGL_J0427.3+0504_daily_bin1419.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 3.74
user 0.38
sys 3.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15875E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.604       1.0000         .10000E-03   10000.    
     8 'norm      '    19.001       1.0000         .10000E-03   10000.    
     9 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.166       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.670       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7749       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.404       1.0000         .10000E-03   10000.    
    17 'norm      '    .64579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.852       1.0000         .10000E-03   10000.    
    21 'norm      '    6.0317       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.3364       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.483       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .28552       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2093       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=   8831.411     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3398 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.249        .72870E-06** at limit **
   2  Prefactor     .10000E-03    10.556        .64780E-07** at limit **
   3  norm          .10000E-03    5.2353       -.13509E-07** at limit **
   4  Prefactor     .10000E-03    9.3832        .87706E-08** at limit **
   5  norm          .10000E-03    1.4527       -.34948E-07** at limit **
   6  Prefactor     .10000E-03    12.750       -.11977E-06** at limit **
   7  norm          11.604        13.508       -.69409E-06   -.34907E-04
   8  norm          19.000        31.869       -.94455E-06   -.25314E-04
   9  norm          .10000E-03    .48702        .10246E-06** at limit **
  10  Prefactor     2.5063        2.3347       -.40510E-06   -.38508E-03
  11  Prefactor     19.181        41.518        .13214E-05   -.46433E-04
  12  Prefactor     24.692        49.815        .32141E-05   -.50617E-04
  13  Prefactor     .10000E-03    5.0148       -.70295E-07** at limit **
  14  Prefactor     .10000E-03    26.345       -.95440E-06** at limit **
  15  norm          2.7694        4.7564       -.21820E-06   -.39459E-03
  16  Prefactor     41.400        46.175       -.10532E-05   -.79866E-05
  17  norm          .64466        2.5190        .21357E-06   -.65548E-03
  18  Prefactor     .10000E-03    3.5708       -.10423E-06** at limit **
  19  norm          1.1901        2.3372        .22173E-06   -.31363E-03
  20  Prefactor     13.851        31.933       -.12503E-05   -.17800E-04
  21  norm          6.0321        2.8575       -.20156E-06   -.11452E-03
  22  Prefactor     .10000E-03    15.872        .15462E-06** at limit **
  23  norm          .10000E-03    .18430       -.40380E-07** at limit **
  24  norm          2.3365        3.2994        .11182E-06   -.16163E-03
  25  Prefactor     13.483        6.6573        .35920E-06   -.57026E-03
  26  Normalizat    .28554        .32738        .86006E-05    .24545E-04
  27  Prefactor     1.2093        .93582E-01   -.16212E-05   -.14707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6038
  norm       = 19.0003
  norm       = 0.0001
  Prefactor  = 2.50635
  Prefactor  = 19.181
  Prefactor  = 24.6925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76936
  Prefactor  = 41.4002
  norm       = 0.64466
  Prefactor  = 0.0001
  norm       = 1.19014
  Prefactor  = 13.8511
  norm       = 6.03209
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.33653
  Prefactor  = 13.4829
  Normalizat = 0.285545
  Prefactor  = 1.20929
 **********
 **   18 **HESSE 
 **********

 FCN=   8831.411     FROM HESSE     STATUS=OK           494 CALLS     3892 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    72.054        .58167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4585        .11059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.604        13.350        .11760E-03   -1.5027    
   8  norm          19.000        31.729        .91884E-04   -1.4836    
   9  norm          .10000E-03    .73824        .12033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5063        2.2784        .11536E-03   -1.5391    
  11  Prefactor     19.181        40.543        .91486E-04   -1.4832    
  12  Prefactor     24.692        48.712        .80649E-04   -1.4714    
  13  Prefactor     .10000E-03    5.0428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7694        4.6778        .19202E-03   -1.5375    
  16  Prefactor     41.400        46.193        .62298E-04   -1.4420    
  17  norm          .64466        2.3775        .24947E-03   -1.5547    
  18  Prefactor     .10000E-03    3.5872        .17335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1901        2.2838        .18878E-03   -1.5490    
  20  Prefactor     13.851        31.897        .10762E-03   -1.4963    
  21  norm          6.0321        2.8467        .10344E-03   -1.5217    
  22  Prefactor     .10000E-03    15.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .18806        .78461E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.3365        3.2631        .19511E-03   -1.5402    
  25  Prefactor     13.483        6.5438        .54541E-03   -1.4973    
  26  Normalizat    .28554        .27873        .82303E-03   -1.2371    
  27  Prefactor     1.2093        .88612E-01    .14355E-03   -.86046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2287e-09
Minuit parameter uncertainties:
  1  3.24318e-05
  2  0.000897385
  3  4.83022e-08
  4  1.15672e-06
  5  1.68516e-06
  6  6.36705e-06
  7  13.3531
  8  31.7567
  9  2.96702e-05
  10  2.2785
  11  40.6017
  12  48.7904
  13  2.22142e-05
  14  7.89879e-05
  15  4.6784
  16  46.2326
  17  2.37787
  18  3.83468e-07
  19  2.28397
  20  31.9358
  21  2.84672
  22  3.94266e-06
  23  3.81691e-08
  24  3.26338
  25  6.54415
  26  0.280096
  27  0.0886226
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.918e+01  4.060e+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.209e+00  8.862e-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:  2.855e-01  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456912/likelihoodResults_607132801_607392001_4FGL_J0427.3+0504_daily_bin1419.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) = 8831.26611562
delta logL = 0.145154717098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8831.25134378
delta logL = 0.159926559876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.235       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3720       1.0000          .0000       10.000    
     3 'Normalizat'    .29534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2043       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=   8831.251     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      312 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.237        35.987        .74098E-04   -.27003E-04
   2  Index         2.3720        .70111        .11801E-01   -.14173E-03
   3  Normalizat    .29539        .24639        .81021E-03    .16810E-04
   4  Prefactor     1.2043        .85143E-01    .14377E-03    .13064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.2368
  Index      = 2.37195
  Normalizat = 0.295391
  Prefactor  = 1.20433
 **********
 **   18 **HESSE 
 **********

 FCN=   8831.251     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.237        35.884        .29639E-05   -1.4626    
   2  Index         2.3720        .69954        .23602E-02   -.55343    
   3  Normalizat    .29539        .24619        .32408E-04   -1.2311    
   4  Prefactor     1.2043        .85041E-01    .57507E-05   -.86198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97166e-12
Minuit parameter uncertainties:
  1  35.9106
  2  0.702727
  3  0.247101
  4  0.0850511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456912': 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) = 8831.25134375
delta logL = 0.159926586786

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.924e+01  3.591e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.372e+00  7.027e-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.204e+00  8.505e-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:  2.954e-01  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
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/456912/cmap_HighResolution_607132801_607392001_4FGL_J0427.3+0504_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-02', job_status='DONE', photon_flux_upper_limit='2.48e-07', time_completed='2021-08-20 16:17:14.936514', job_id='456912', GAL2='1.20', fit_tolerance='1e-08', EG2='0.30', EG='0.29', time_epoch_completed='1629501434.94', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.60e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1419' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:17:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 456912: <4FGL_J0427.3+0504_daily_bin1419> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1419> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:44 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:45 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:45 2021
Terminated at Fri Aug 20 16:17:16 2021
Results reported at Fri Aug 20 16:17:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1419 66.8294 5.08 607132801 607392001 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 :                                   937.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

