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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1499
RA = 66.8294, Dec = 5.08
tmin = 627868801, tmax = 628128001
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='458941', job_status='RUN', time_executed='2021-08-20 16:08:08.519576', time_epoch_executed='1629500888.52' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458941/ft1_4FGL_J0427.3+0504_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458941/ft2_4FGL_J0427.3+0504_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458941/ft1_4FGL_J0427.3+0504_daily_bin1499.fits outfile=/scratch/kocevski/458941/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1499.fits ra=66.8294 dec=5.08 rad=12.0 tmin=627868801.0 tmax=628128001.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.69
user 2.29
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458941/ft1_filtered_4FGL_J0427.3+0504_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/458941/ft2_4FGL_J0427.3+0504_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/458941/ltcube_627868801_628128001_4FGL_J0427.3+0504_daily_bin1499.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/458941/ft2_4FGL_J0427.3+0504_daily_bin1499.fits
.....................!
real 15.28
user 13.57
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458941/ft1_filtered_4FGL_J0427.3+0504_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/458941/ft2_4FGL_J0427.3+0504_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/458941/ltcube_627868801_628128001_4FGL_J0427.3+0504_daily_bin1499.fits outfile=/scratch/kocevski/458941/expmap_627868801_628128001_4FGL_J0427.3+0504_daily_bin1499.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/458941/ltcube_627868801_628128001_4FGL_J0427.3+0504_daily_bin1499.fits
.....................!
real 192.29
user 184.92
sys 6.73

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/458941/ft1_filtered_4FGL_J0427.3+0504_daily_bin1499.fits scfile=/scratch/kocevski/458941/ft2_4FGL_J0427.3+0504_daily_bin1499.fits outfile=/scratch/kocevski/458941/cmap_627868801_628128001_4FGL_J0427.3+0504_daily_bin1499.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.68
user 0.40
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458941/ft1_filtered_4FGL_J0427.3+0504_daily_bin1499.fits scfile=/scratch/kocevski/458941/ft2_4FGL_J0427.3+0504_daily_bin1499.fits outfile=/scratch/kocevski/458941/cmap_HighResolution_627868801_628128001_4FGL_J0427.3+0504_daily_bin1499.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.70
user 0.38
sys 1.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.64       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.988       1.0000         .10000E-03   10000.    
     5 'norm      '    .20586E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22862E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10782E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4634       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1614       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13977E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8916       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2641       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8256       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.669       1.0000         .10000E-03   10000.    
    23 'norm      '    .20397E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2582       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92431       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88778       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=   3930.132     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3332 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.67        139.15        .27440E-04    .10251E-04
   2  Prefactor     .10000E-03    41.286       -.15849E-06** at limit **
   3  norm          .10000E-03    13.139        .22428E-06** at limit **
   4  Prefactor     39.005        49.663        .76765E-05    .12052E-03
   5  norm          .10000E-03    5.2053        .22836E-06** at limit **
   6  Prefactor     .10000E-03    109.07       -.82800E-05** at limit **
   7  norm          .10000E-03    6.4448        .11032E-06** at limit **
   8  norm          .10002E-03    240.32       -.50381E-04** at limit **
   9  norm          .10000E-03    1.1423       -.76695E-06** at limit **
  10  Prefactor     .10000E-03    1.0728       -.37819E-06** at limit **
  11  Prefactor     8.4744        52.565        .45974E-05    .81094E-04
  12  Prefactor     7.1960        89.807        .42609E-04    .79800E-04
  13  Prefactor     3.1461        14.081       -.18541E-05   -.10502E-03
  14  Prefactor     .10000E-03    198.72        .55265E-04** at limit **
  15  norm          .10000E-03    2.5862       -.77591E-07** at limit **
  16  Prefactor     .10000E-03    24.944       -.18831E-06** at limit **
  17  norm          9.8915        3.9501       -.96547E-07    .11478E-03
  18  Prefactor     8.2606        16.111        .10156E-06   -.75911E-04
  19  norm          .10000E-03    1.6181        .66231E-07** at limit **
  20  Prefactor     .10000E-03    17.918        .16626E-06** at limit **
  21  norm          1.8252        2.1766        .27833E-06   -.34509E-03
  22  Prefactor     34.658        40.053        .25737E-06   -.11720E-03
  23  norm          .10000E-03    .53711        .28845E-06** at limit **
  24  norm          .10000E-03    2.5299        .18796E-07** at limit **
  25  Prefactor     7.2566        6.1118        .18315E-06   -.74989E-04
  26  Normalizat    .92441        .39205       -.65381E-05    .80447E-04
  27  Prefactor     .88780        .11636       -.87821E-06    .20098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 105.669
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 39.0054
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100015
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.47442
  Prefactor  = 7.19595
  Prefactor  = 3.14609
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.89146
  Prefactor  = 8.26065
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82523
  Prefactor  = 34.6582
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.25662
  Normalizat = 0.924406
  Prefactor  = 0.887801
 **********
 **   18 **HESSE 
 **********

 FCN=   3930.132     FROM HESSE     STATUS=OK           482 CALLS     3814 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.67        138.03        .39126E-04   -1.3648    
   2  Prefactor     .10000E-03    41.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.005        49.729        .64192E-04   -1.4458    
   5  norm          .10000E-03    13.396        .27148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    109.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.4517        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    245.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7252        .12493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0830        .63340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4744        51.781        .13780E-03   -1.5126    
  12  Prefactor     7.1960        88.813        .14989E-03   -1.5171    
  13  Prefactor     3.1461        14.515        .22868E-03   -1.5353    
  14  Prefactor     .10000E-03    197.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6025        .97975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8915        3.9708        .71602E-04   -1.5079    
  18  Prefactor     8.2606        16.045        .13946E-03   -1.5133    
  19  norm          .10000E-03    1.6253        .77849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8252        2.1579        .94389E-04   -1.5438    
  22  Prefactor     34.658        38.597        .68059E-04   -1.4530    
  23  norm          .10000E-03    4.8318        .82894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5410        .97237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.2566        6.1091        .13720E-03   -1.5169    
  26  Normalizat    .92441        .43167        .42652E-03   -.95608    
  27  Prefactor     .88780        .13148        .15965E-03   -.96569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60858e-09
Minuit parameter uncertainties:
  1  138.455
  2  0.000333349
  3  1.48201e-05
  4  49.7818
  5  0.000167906
  6  0.000186443
  7  1.64368e-05
  8  0.0038878
  9  0.000127561
  10  3.37563e-05
  11  41.9497
  12  50.6539
  13  13.5206
  14  0.000111451
  15  1.3423e-05
  16  3.80731e-06
  17  3.97091
  18  16.0532
  19  4.07699e-06
  20  1.39133e-05
  21  2.15803
  22  38.6251
  23  6.3281e-05
  24  6.57372e-06
  25  6.10963
  26  0.433305
  27  0.131523
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.474e+00  4.195e+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:  8.878e-01  1.315e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  9.244e-01  4.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/458941/likelihoodResults_627868801_628128001_4FGL_J0427.3+0504_daily_bin1499.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3929.90376161
delta logL = 0.228631288281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3929.8846596
delta logL = 0.247733293855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7249       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5728       1.0000          .0000       10.000    
     3 'Normalizat'    .87231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89664       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3929.885     FROM MIGRAD    STATUS=FAILED        91 CALLS      254 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7358        617.63        .16787E-03   -.25870E-04
   2  Index         4.5704        6.0825        .11680E-01    .22670E-03
   3  Normalizat    .87229        .34092        .43742E-03    .30227E-04
   4  Prefactor     .89666        .12762        .15886E-03   -.68964E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3929.885     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      344 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7358        617.63        .37710E-03   -.25870E-04
   2  Index         4.5704        6.0825        .30636E-02    .22670E-03
   3  Normalizat    .87229        .34092        .24253E-03    .30227E-04
   4  Prefactor     .89666        .12762        .53015E-04   -.68964E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3929.885     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      374 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7358        22.202        .67149E-05   -.38094E-04
   2  Index         4.5704        2.9332        .23361E-02   -.13067E-05
   3  Normalizat    .87229        .34125        .17497E-04    .25211E-04
   4  Prefactor     .89666        .12353        .31773E-04   -.59397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.7358
  Index      = 4.57038
  Normalizat = 0.872294
  Prefactor  = 0.896664
 **********
 **   18 **HESSE 
 **********

 FCN=   3929.885     FROM HESSE     STATUS=OK            23 CALLS      397 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7358        20.228        .13430E-05   -1.5229    
   2  Index         4.5704        2.7023        .93443E-04   -.86030E-01
   3  Normalizat    .87229        .34114        .34994E-05   -.97441    
   4  Prefactor     .89666        .12348        .63546E-05   -.96258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58408e-11
Minuit parameter uncertainties:
  1  20.2521
  2  2.85624
  3  0.34199
  4  0.123516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458941': 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) = 3929.88465907
delta logL = 0.247733826242

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  5.736e+00  2.025e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  4.570e+00  2.856e+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:  8.967e-01  1.235e-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:  8.723e-01  3.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/458941/cmap_HighResolution_627868801_628128001_4FGL_J0427.3+0504_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-02', job_status='DONE', photon_flux_upper_limit='3.22e-07', time_completed='2021-08-20 16:17:34.338788', job_id='458941', GAL2='0.90', fit_tolerance='1e-08', EG2='0.87', EG='0.92', time_epoch_completed='1629501454.34', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.48e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1499' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:17:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 458941: <4FGL_J0427.3+0504_daily_bin1499> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1499> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 16:05:19 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:05:21 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:05:21 2021
Terminated at Fri Aug 20 16:17:35 2021
Results reported at Fri Aug 20 16:17:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1499 66.8294 5.08 627868801 628128001 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 :                                   580.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            736 sec.

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

