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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1383
RA = 66.8294, Dec = 5.08
tmin = 597801601, tmax = 598060801
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='456849', job_status='RUN', time_executed='2021-08-20 16:01:05.530381', time_epoch_executed='1629500465.53' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456849

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456849/ft1_4FGL_J0427.3+0504_daily_bin1383.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456849/ft2_4FGL_J0427.3+0504_daily_bin1383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456849/ft1_4FGL_J0427.3+0504_daily_bin1383.fits outfile=/scratch/kocevski/456849/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1383.fits ra=66.8294 dec=5.08 rad=12.0 tmin=597801601.0 tmax=598060801.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 4.54
user 3.37
sys 1.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456849/ft2_4FGL_J0427.3+0504_daily_bin1383.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/456849/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1383.fits evtable="EVENTS" outfile="/scratch/kocevski/456849/ft1_filtered_4FGL_J0427.3+0504_daily_bin1383.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 1.46
user 0.34
sys 1.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456849/ft1_filtered_4FGL_J0427.3+0504_daily_bin1383.fits" evtable="EVENTS" scfile=/scratch/kocevski/456849/ft2_4FGL_J0427.3+0504_daily_bin1383.fits sctable="SC_DATA" outfile=/scratch/kocevski/456849/ltcube_597801601_598060801_4FGL_J0427.3+0504_daily_bin1383.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/456849/ft2_4FGL_J0427.3+0504_daily_bin1383.fits
.....................!
real 12.99
user 11.55
sys 1.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456849/ft1_filtered_4FGL_J0427.3+0504_daily_bin1383.fits evtable="EVENTS" scfile=/scratch/kocevski/456849/ft2_4FGL_J0427.3+0504_daily_bin1383.fits sctable="SC_DATA" expcube=/scratch/kocevski/456849/ltcube_597801601_598060801_4FGL_J0427.3+0504_daily_bin1383.fits outfile=/scratch/kocevski/456849/expmap_597801601_598060801_4FGL_J0427.3+0504_daily_bin1383.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/456849/ltcube_597801601_598060801_4FGL_J0427.3+0504_daily_bin1383.fits
.....................!
real 192.68
user 186.82
sys 5.47

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/456849/ft1_filtered_4FGL_J0427.3+0504_daily_bin1383.fits scfile=/scratch/kocevski/456849/ft2_4FGL_J0427.3+0504_daily_bin1383.fits outfile=/scratch/kocevski/456849/cmap_597801601_598060801_4FGL_J0427.3+0504_daily_bin1383.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 1.49
user 0.38
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456849/ft1_filtered_4FGL_J0427.3+0504_daily_bin1383.fits scfile=/scratch/kocevski/456849/ft2_4FGL_J0427.3+0504_daily_bin1383.fits outfile=/scratch/kocevski/456849/cmap_HighResolution_597801601_598060801_4FGL_J0427.3+0504_daily_bin1383.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 1.47
user 0.38
sys 1.08

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.147       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1686       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6555       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2026       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.179       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.961       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2887       1.0000         .10000E-03   10000.    
    16 'Prefactor '    98.279       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7444       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6569       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4194       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.847       1.0000         .10000E-03   10000.    
    23 'norm      '    .10556E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8539       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1532       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .47935       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1380       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=   11365.77     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3353 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.166       -.20378E-06** at limit **
   2  Prefactor     .10000E-03    6.2715        .10318E-06** at limit **
   3  norm          20.858        17.780        .12943E-06    .24083E-04
   4  Prefactor     11.147        13.370        .71133E-07    .95877E-05
   5  norm          1.1661        3.1079        .64945E-06   -.50307E-03
   6  Prefactor     5.6516        19.453        .33939E-05    .13956E-03
   7  norm          .10000E-03    4.4873        .54367E-07** at limit **
   8  norm          .10000E-03    10.360        .13476E-06** at limit **
   9  norm          1.2027        .87693       -.86523E-08   -.28141E-03
  10  Prefactor     .10000E-03    .48487       -.27861E-08** at limit **
  11  Prefactor     39.164        24.358        .14190E-05    .28095E-03
  12  Prefactor     .10000E-03    34.153        .17349E-06** at limit **
  13  Prefactor     .10000E-03    6.2882        .16099E-07** at limit **
  14  Prefactor     15.960        17.320        .74529E-06    .92152E-04
  15  norm          3.2914        3.2852       -.21495E-06   -.50717E-03
  16  Prefactor     98.283        58.184        .11696E-05    .85724E-04
  17  norm          1.7440        1.5350        .45996E-07   -.18006E-03
  18  Prefactor     .10000E-03    3.3943        .23376E-06** at limit **
  19  norm          1.6573        1.8637        .88420E-07   -.48893E-03
  20  Prefactor     .10000E-03    15.108       -.32806E-06** at limit **
  21  norm          1.4190        1.5513        .10677E-06   -.30906E-03
  22  Prefactor     23.884        27.220       -.12175E-05   -.18505E-03
  23  norm          .10515E-03    .22140       -.13448E-07** at limit **
  24  norm          5.8565        3.3079        .33237E-06   -.10070E-02
  25  Prefactor     1.1519        3.3903        .10535E-05   -.66563E-03
  26  Normalizat    .47970        .24435       -.87720E-06   -.11983E-03
  27  Prefactor     1.1379        .77489E-01   -.21973E-06   -.89110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.8578
  Prefactor  = 11.1471
  norm       = 1.16607
  Prefactor  = 5.65156
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.20274
  Prefactor  = 0.0001
  Prefactor  = 39.1639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9596
  norm       = 3.29143
  Prefactor  = 98.2831
  norm       = 1.74402
  Prefactor  = 0.000100003
  norm       = 1.65734
  Prefactor  = 0.0001
  norm       = 1.41897
  Prefactor  = 23.8838
  norm       = 0.000105149
  norm       = 5.85646
  Prefactor  = 1.15194
  Normalizat = 0.479699
  Prefactor  = 1.13789
 **********
 **   18 **HESSE 
 **********

 FCN=   11365.77     FROM HESSE     STATUS=OK           500 CALLS     3853 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.858        17.769        .87702E-04   -1.4794    
   4  Prefactor     11.147        13.365        .11999E-03   -1.5040    
   5  norm          1.1661        3.1800        .30216E-03   -1.5492    
   6  Prefactor     5.6516        19.705        .16891E-03   -1.5232    
   7  norm          .10000E-03    4.5014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2027        .85610        .79313E-04   -1.5489    
  10  Prefactor     .10000E-03    .49187        .72359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.164        25.054        .64036E-04   -1.4456    
  12  Prefactor     .10000E-03    34.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.960        17.386        .10025E-03   -1.4909    
  15  norm          3.2914        3.3079        .16358E-03   -1.5345    
  16  Prefactor     98.283        58.196        .40549E-04   -1.3722    
  17  norm          1.7440        1.5225        .11722E-03   -1.5444    
  18  Prefactor     .10000E-03    14.517        .36106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6573        1.8463        .14728E-03   -1.5450    
  20  Prefactor     .10000E-03    15.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4190        1.5293        .13327E-03   -1.5470    
  22  Prefactor     23.884        27.195        .82028E-04   -1.4730    
  23  norm          .10515E-03    .45793        .16379E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8565        3.4132        .69699E-03   -1.5224    
  25  Prefactor     1.1519        3.6983        .35062E-03   -1.5493    
  26  Normalizat    .47970        .23163        .62637E-03   -1.1337    
  27  Prefactor     1.1379        .76830E-01    .14399E-03   -.88265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8419e-09
Minuit parameter uncertainties:
  1  2.31669e-05
  2  1.30661e-06
  3  17.7738
  4  13.3687
  5  3.18047
  6  19.7278
  7  5.4917e-06
  8  2.27405e-06
  9  0.856109
  10  5.27835e-07
  11  25.0607
  12  2.44181e-05
  13  7.63784e-06
  14  17.391
  15  3.30806
  16  58.2296
  17  1.52253
  18  0.000418706
  19  1.84632
  20  1.69861e-05
  21  1.52938
  22  27.2088
  23  0.00307108
  24  3.41328
  25  3.69899
  26  0.232094
  27  0.0768371
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.916e+01  2.506e+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.138e+00  7.684e-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:  4.797e-01  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.68
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 7.83e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.69e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11365.7101513
delta logL = 0.0643966158004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11365.7073417
delta logL = 0.0672062682224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.446       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0931       1.0000          .0000       10.000    
     3 'Normalizat'    .46547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       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.

 FCN=   11365.71     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.498        343.39        .16828E-02    .13301E-03
   2  Index         3.0951        6.5367        .21902        .13748E-03
   3  Normalizat    .46506        .98753E-01    .14322        .54870E-03
   4  Prefactor     1.1408        .32270E-01    .36207E-01    .19861E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.498
  Index      = 3.0951
  Normalizat = 0.465065
  Prefactor  = 1.14082
 **********
 **   18 **HESSE 
 **********

 FCN=   11365.71     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.498        24.851        .67311E-04   -1.4516    
   2  Index         3.0951        .69473        .94054E-02   -.39086    
   3  Normalizat    .46506        .21941        .63543E-03   -1.1406    
   4  Prefactor     1.1408        .74144E-01    .14382E-03   -.88172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67066e-10
Minuit parameter uncertainties:
  1  24.8587
  2  0.697372
  3  0.21982
  4  0.0741507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456849': 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) = 11365.7073233
delta logL = 0.0672245919613

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.550e+01  2.486e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.095e+00  6.974e-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.141e+00  7.415e-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:  4.651e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.90
Ra Dec: 66.829 5.080
Photon Index (Free Index): 3.10 +/- 0.70
Photon Flux (Free Index): 1.37e-07 +/- 8.05e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.45e-05

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/456849/cmap_HighResolution_597801601_598060801_4FGL_J0427.3+0504_daily_bin1383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='2.62e-05', photon_flux_error='7.83e-08', dlogl='6.72e-02', energy_flux='2.64e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-08-20 16:16:08.636722', photon_index_error2='0.70', photon_index2='3.10', ts='4.68', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='0.48', time_epoch_completed='1629501368.64', return_code='0', job_id='456849', GAL2='1.14', EG2='0.47', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='8.05e-08', ts2='4.90', photon_index='2.86' WHERE bin_id='1383' 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@bullet0221>
Subject: Job 456849: <4FGL_J0427.3+0504_daily_bin1383> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1383 66.8294 5.08 597801601 598060801 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 :                                   915.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             353.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

