/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7432
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0424.7+0036_daily_bin42
RA = 66.1945, Dec = 0.6028
tmin = 250214401, tmax = 250473601
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='410752', job_status='RUN', time_executed='2021-08-20 13:31:38.360833', time_epoch_executed='1629491498.36' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410752

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410752/ft1_4FGL_J0424.7+0036_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410752/ft1_4FGL_J0424.7+0036_daily_bin42.fits outfile=/scratch/kocevski/410752/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin42.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=250214401.0 tmax=250473601.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.73
user 1.24
sys 2.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.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/410752/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin42.fits evtable="EVENTS" outfile="/scratch/kocevski/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.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 2.79
user 0.33
sys 2.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.fits" evtable="EVENTS" scfile=/scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits sctable="SC_DATA" outfile=/scratch/kocevski/410752/ltcube_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.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/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits
.....................!
real 14.82
user 11.95
sys 2.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/410752/ltcube_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.fits outfile=/scratch/kocevski/410752/expmap_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.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/410752/ltcube_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.fits
.....................!
real 195.92
user 186.76
sys 8.21

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 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J0424.7+0036 @ 66.1945 0.6028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.fits scfile=/scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits outfile=/scratch/kocevski/410752/cmap_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.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.1945 yref=0.6028 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 2.73
user 0.36
sys 2.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.fits scfile=/scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits outfile=/scratch/kocevski/410752/cmap_HighResolution_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.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.1945 yref=0.6028 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 2.77
user 0.38
sys 2.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410752/Model_4FGL_J0424.7+0036_daily_bin42.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/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.fits.....................!
real 136.21
user 131.81
sys 4.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.fits', '/scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits', expMap='/scratch/kocevski/410752/expmap_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.fits', expCube='/scratch/kocevski/410752/ltcube_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410752/Model_4FGL_J0424.7+0036_daily_bin42.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0424.7+0036'

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410752/ft1_filtered_4FGL_J0424.7+0036_daily_bin42.fits
Spacecraft file(s): /scratch/kocevski/410752/ft2_4FGL_J0424.7+0036_daily_bin42.fits
Exposure map: /scratch/kocevski/410752/expmap_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.fits
Exposure cube: /scratch/kocevski/410752/ltcube_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410752/Model_4FGL_J0424.7+0036_daily_bin42.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) = 9998.59459619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4191       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0525       1.0000         .10000E-03   10000.    
     6 'norm      '    .66219       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.732       1.0000         .10000E-03   10000.    
     9 'norm      '    23.137       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7572       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1975       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49530       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7063       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1691       1.0000         .10000E-03   10000.    
    17 'norm      '    12.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7972       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7833       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78685       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0689       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9998.583     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2911 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2949        1.5741        .14096E-07   -.22372E-03
   2  Prefactor     .10000E-03    59.019        .48831E-06** at limit **
   3  Prefactor     2.4130        5.6025        .11672E-05   -.72496E-03
   4  norm          .10000E-03    4.5414       -.88403E-07** at limit **
   5  Prefactor     5.0460        26.036       -.53410E-05   -.20912E-04
   6  norm          .66214        1.9532       -.17094E-08   -.17481E-03
   7  Prefactor     .10000E-03    8.5199       -.43656E-06** at limit **
   8  norm          19.733        11.508       -.32934E-07    .97230E-04
   9  norm          23.137        20.589        .21060E-06    .11257E-04
  10  norm          2.7571        1.1102        .38464E-08    .34978E-03
  11  Prefactor     2.1972        1.5279        .40002E-08    .86003E-04
  12  Prefactor     .10000E-03    18.376        .23770E-05** at limit **
  13  Prefactor     25.286        29.998        .19852E-05    .45347E-04
  14  Prefactor     .50974        5.3984       -.72841E-06    .25770E-03
  15  norm          1.7059        2.5954        .10632E-06   -.27153E-03
  16  Prefactor     5.1591        37.186       -.14023E-04   -.37371E-04
  17  norm          12.750        2.9404       -.73801E-08    .14867E-03
  18  Prefactor     4.7984        6.7514        .16758E-06   -.57284E-04
  19  Prefactor     .10000E-03    23.176        .20789E-05** at limit **
  20  norm          1.7835        1.3206        .45708E-07    .49195E-04
  21  Prefactor     .10000E-03    10.722        .74689E-07** at limit **
  22  norm          .10000E-03    .12168        .50797E-07** at limit **
  23  Prefactor     .10000E-03    19.861       -.30058E-05** at limit **
  24  Normalizat    .78658        .21543       -.16637E-05    .73749E-04
  25  Prefactor     1.0689        .83256E-01    .51546E-06   -.82385E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.29495
  Prefactor  = 0.0001
  Prefactor  = 2.41304
  norm       = 0.0001
  Prefactor  = 5.04602
  norm       = 0.662135
  Prefactor  = 0.0001
  norm       = 19.7333
  norm       = 23.1373
  norm       = 2.75708
  Prefactor  = 2.19724
  Prefactor  = 0.0001
  Prefactor  = 25.2863
  Prefactor  = 0.509744
  norm       = 1.70587
  Prefactor  = 5.15907
  norm       = 12.7496
  Prefactor  = 4.79844
  Prefactor  = 0.0001
  norm       = 1.78349
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.786578
  Prefactor  = 1.06893
 **********
 **   18 **HESSE 
 **********

 FCN=   9998.583     FROM HESSE     STATUS=OK           437 CALLS     3348 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2949        1.5590        .13142E-03   -1.5480    
   2  Prefactor     .10000E-03    59.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4130        15.773        .13158E-02   -1.5397    
   4  norm          .10000E-03    4.5435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0460        26.075        .17889E-03   -1.5259    
   6  norm          .66214        1.9777        .23066E-03   -1.5545    
   7  Prefactor     .10000E-03    8.5495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.733        11.504        .90166E-04   -1.4819    
   9  norm          23.137        20.551        .83274E-04   -1.4746    
  10  norm          2.7571        1.1000        .61934E-04   -1.5376    
  11  Prefactor     2.1972        1.5156        .94082E-04   -1.5411    
  12  Prefactor     .10000E-03    18.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.286        29.933        .79667E-04   -1.4702    
  14  Prefactor     .50974        25.740        .41934E-02   -1.5565    
  15  norm          1.7059        2.5740        .18377E-03   -1.5447    
  16  Prefactor     5.1591        37.639        .17682E-03   -1.5254    
  17  norm          12.750        2.9404        .77680E-04   -1.4994    
  18  Prefactor     4.7984        6.7094        .18368E-03   -1.5270    
  19  Prefactor     .10000E-03    23.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7835        1.3178        .95691E-04   -1.5441    
  21  Prefactor     .10000E-03    10.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .12451        .34046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78658        .23157        .44174E-03   -1.0057    
  25  Prefactor     1.0689        .91901E-01    .16068E-03   -.90466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48758e-09
Minuit parameter uncertainties:
  1  1.55908
  2  2.49882e-05
  3  12.3431
  4  3.79089e-07
  5  22.9566
  6  1.97794
  7  1.20458e-06
  8  11.505
  9  20.5573
  10  1.10004
  11  1.51563
  12  1.96623e-05
  13  29.9507
  14  7.24718
  15  2.5742
  16  27.8943
  17  2.94043
  18  6.71043
  19  3.69003e-05
  20  1.31779
  21  1.28504e-06
  22  7.3354e-08
  23  2.51971e-05
  24  0.23186
  25  0.0919145
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.197e+00  1.516e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.069e+00  9.191e-02  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  7.866e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.13
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.67e-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) = 9998.11319504
delta logL = 0.469880270657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9998.11299293
delta logL = 0.470082381753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8523       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7898       1.0000          .0000       10.000    
     3 'Normalizat'    .80231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0656       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9998.113     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      234 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8523        51.420        .60183E-02   -.23889E-03
   2  Index         1.7898        5.8437        .23337        .39213E-04
   3  Normalizat    .80232        .13150        .98842E-01    .24163E-03
   4  Prefactor     1.0656        .39890E-01    .39072E-01    .42506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.85229
  Index      = 1.78979
  Normalizat = 0.802318
  Prefactor  = 1.0656
 **********
 **   18 **HESSE 
 **********

 FCN=   9998.113     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8523        1.8900        .10871E-03   -1.5370    
   2  Index         1.7898        .40735        .81173E-02   -.69716    
   3  Normalizat    .80232        .20775        .43803E-03   -.99983    
   4  Prefactor     1.0656        .87462E-01    .16092E-03   -.90574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04998e-10
Minuit parameter uncertainties:
  1  1.89006
  2  0.408125
  3  0.207957
  4  0.0874734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410752': 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) = 9998.11299293
delta logL = 0.470082381878

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.852e+00  1.890e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.790e+00  4.081e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.066e+00  8.747e-02  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  8.023e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.10
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.79 +/- 0.41
Photon Flux (Free Index): 3.67e-08 +/- 3.08e-08
Energy Flux (Free Index): 4.53e-05 +/- 4.43e-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/410752/cmap_HighResolution_250214401_250473601_4FGL_J0424.7+0036_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='4.53e-05', photon_flux_error='3.81e-08', dlogl='4.70e-01', energy_flux='2.42e-05', photon_flux2='3.67e-08', job_status='DONE', time_completed='2021-08-20 13:44:55.567240', photon_index_error2='0.41', photon_index2='1.79', ts='5.13', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='4.43e-05', EG='0.79', time_epoch_completed='1629492295.57', return_code='0', job_id='410752', GAL2='1.07', EG2='0.80', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.08e-08', ts2='6.10', photon_index='2.21' WHERE bin_id='42' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:44:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 410752: <4FGL_J0424.7+0036_daily_bin42> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin42> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:30:44 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:30: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 13:30:45 2021
Terminated at Fri Aug 20 13:44:56 2021
Results reported at Fri Aug 20 13:44:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin42 66.1945 0.6028 250214401 250473601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0424.7+0036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   831.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            852 sec.

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

