/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 121 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0424.7+0036_daily_bin169
RA = 66.1945, Dec = 0.6028
tmin = 283132801, tmax = 283392001
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='412017', job_status='RUN', time_executed='2021-08-20 13:37:51.320857', time_epoch_executed='1629491871.32' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412017/ft1_4FGL_J0424.7+0036_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412017/ft1_4FGL_J0424.7+0036_daily_bin169.fits outfile=/scratch/kocevski/412017/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin169.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=283132801.0 tmax=283392001.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 5.54
user 3.55
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.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/412017/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.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.18
user 0.36
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/412017/ltcube_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.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/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits
.....................!
real 15.57
user 14.43
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/412017/ltcube_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.fits outfile=/scratch/kocevski/412017/expmap_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.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/412017/ltcube_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.fits
.....................!
real 195.06
user 188.29
sys 6.30

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/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.fits scfile=/scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits outfile=/scratch/kocevski/412017/cmap_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.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 1.22
user 0.39
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.fits scfile=/scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits outfile=/scratch/kocevski/412017/cmap_HighResolution_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.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 1.26
user 0.45
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412017/Model_4FGL_J0424.7+0036_daily_bin169.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/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.fits.....................!
real 111.71
user 109.28
sys 2.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.fits', '/scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits', expMap='/scratch/kocevski/412017/expmap_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.fits', expCube='/scratch/kocevski/412017/ltcube_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412017/Model_4FGL_J0424.7+0036_daily_bin169.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/412017/ft1_filtered_4FGL_J0424.7+0036_daily_bin169.fits
Spacecraft file(s): /scratch/kocevski/412017/ft2_4FGL_J0424.7+0036_daily_bin169.fits
Exposure map: /scratch/kocevski/412017/expmap_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.fits
Exposure cube: /scratch/kocevski/412017/ltcube_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412017/Model_4FGL_J0424.7+0036_daily_bin169.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) = 7690.30937087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3705       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2182       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4105       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24533E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.6148       1.0000         .10000E-03   10000.    
     9 'norm      '    4.8779       1.0000         .10000E-03   10000.    
    10 'norm      '    7.7491       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4358       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.872       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5982       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2132       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.910       1.0000         .10000E-03   10000.    
    17 'norm      '    7.5823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22269E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3002       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3348       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7682       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87802       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0422       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=   7690.278     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2954 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3702        1.7346        .52930E-07   -.66523E-03
   2  Prefactor     22.925        42.992        .14840E-04   -.33224E-04
   3  Prefactor     3.2139        10.640        .20649E-04   -.12241E-03
   4  norm          .10000E-03    5.9425        .30950E-07** at limit **
   5  Prefactor     .10000E-03    35.112        .19849E-05** at limit **
   6  norm          3.4105        3.3853       -.22075E-06    .15010E-03
   7  Prefactor     .10054E-03    13.887       -.28144E-05** at limit **
   8  norm          8.6146        8.1711        .22277E-05   -.36242E-04
   9  norm          4.8756        17.324        .13922E-05   -.54576E-04
  10  norm          7.7492        1.8960        .19608E-06   -.17218E-04
  11  Prefactor     1.4357        1.3518       -.12521E-07    .86509E-04
  12  Prefactor     15.874        23.730        .13980E-05   -.96365E-05
  13  Prefactor     8.5463        43.196        .35814E-05   -.53475E-05
  14  Prefactor     5.5986        8.6692       -.76619E-05   -.16845E-03
  15  norm          2.2147        3.1194       -.49974E-06   -.10672E-02
  16  Prefactor     10.913        35.886        .39127E-05   -.23394E-04
  17  norm          7.5827        3.2311        .20733E-06   -.23550E-03
  18  Prefactor     .10119E-03    4.0520        .10294E-05** at limit **
  19  Prefactor     6.3266        45.013        .23031E-04    .92336E-05
  20  norm          2.3348        1.8907        .98516E-07   -.33725E-03
  21  Prefactor     .10000E-03    37.831       -.22008E-04** at limit **
  22  norm          1.7682        .83683       -.17887E-06    .49862E-04
  23  Prefactor     .10000E-03    8.3934       -.24673E-08** at limit **
  24  Normalizat    .87774        .25946       -.12130E-05   -.13523E-03
  25  Prefactor     1.0423        .97224E-01   -.18442E-05    .26013E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3702
  Prefactor  = 22.9246
  Prefactor  = 3.21386
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41047
  Prefactor  = 0.000100539
  norm       = 8.61456
  norm       = 4.87557
  norm       = 7.74919
  Prefactor  = 1.43575
  Prefactor  = 15.8739
  Prefactor  = 8.54633
  Prefactor  = 5.59861
  norm       = 2.21475
  Prefactor  = 10.9132
  norm       = 7.58268
  Prefactor  = 0.000101191
  Prefactor  = 6.32658
  norm       = 2.33476
  Prefactor  = 0.000100001
  norm       = 1.76817
  Prefactor  = 0.0001
  Normalizat = 0.877737
  Prefactor  = 1.04234
 **********
 **   18 **HESSE 
 **********

 FCN=   7690.278     FROM HESSE     STATUS=OK           449 CALLS     3403 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3702        1.7061        .12456E-03   -1.5474    
   2  Prefactor     22.925        42.868        .83687E-04   -1.4750    
   3  Prefactor     3.2139        10.483        .22583E-03   -1.5349    
   4  norm          .10000E-03    5.9442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4105        3.3880        .15559E-03   -1.5339    
   7  Prefactor     .10054E-03    15.791        .10520       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6146        8.1670        .13657E-03   -1.5121    
   9  norm          4.8756        17.270        .18213E-03   -1.5266    
  10  norm          7.7492        1.8935        .54959E-04   -1.5151    
  11  Prefactor     1.4357        1.3580        .92519E-04   -1.5468    
  12  Prefactor     15.874        23.447        .10053E-03   -1.4911    
  13  Prefactor     8.5463        42.752        .13714E-03   -1.5123    
  14  Prefactor     5.5986        8.6999        .16979E-03   -1.5235    
  15  norm          2.2147        3.0381        .15533E-03   -1.5410    
  16  Prefactor     10.913        35.818        .12130E-03   -1.5047    
  17  norm          7.5827        3.2314        .96562E-04   -1.5157    
  18  Prefactor     .10119E-03    43.389        .32303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3266        43.700        .15992E-03   -1.5205    
  20  norm          2.3348        1.8836        .10448E-03   -1.5402    
  21  Prefactor     .10000E-03    38.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7682        .82830        .51627E-04   -1.5442    
  23  Prefactor     .10000E-03    8.3964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87774        .28100        .44586E-03   -.97247    
  25  Prefactor     1.0423        .10764        .16491E-03   -.91331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78328e-08
Minuit parameter uncertainties:
  1  1.7062
  2  42.9254
  3  10.4887
  4  2.37496e-06
  5  2.46608e-05
  6  3.38822
  7  0.00583501
  8  8.16801
  9  17.2881
  10  1.89354
  11  1.35807
  12  23.4603
  13  38.2731
  14  8.70185
  15  3.03836
  16  35.8889
  17  3.23145
  18  0.0143864
  19  33.2893
  20  1.88364
  21  0.000441868
  22  0.828304
  23  5.79469e-06
  24  0.281467
  25  0.107664
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.436e+00  1.358e+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.042e+00  1.077e-01  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.777e-01  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.99
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.50e-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) = 7689.2980185
delta logL = 0.980166009217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7689.26966402
delta logL = 1.00852049101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0658       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2520       1.0000          .0000       10.000    
     3 'Normalizat'    .89480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0408       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=   7689.270     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0649        .89537        .18995E-01   -.37508E-03
   2  Index         1.2517        .42567        .27929       -.60751E-04
   3  Normalizat    .89481        .23547        .99842E-01    .31408E-04
   4  Prefactor     1.0408        .94588E-01    .40481E-01   -.49692E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06495
  Index      = 1.25174
  Normalizat = 0.894812
  Prefactor  = 1.0408
 **********
 **   18 **HESSE 
 **********

 FCN=   7689.270     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0649        1.4422        .74237E-03   -1.5502    
   2  Index         1.2517        .64667        .11031E-01   -.84754    
   3  Normalizat    .89481        .25856        .44242E-03   -.96643    
   4  Prefactor     1.0408        .10425        .16509E-03   -.91382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35118e-09
Minuit parameter uncertainties:
  1  1.44224
  2  0.650863
  3  0.258918
  4  0.104271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412017': 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) = 7689.26966387
delta logL = 1.00852064211

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.065e+00  1.442e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.252e+00  6.509e-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.041e+00  1.043e-01  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.948e-01  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.01
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.25 +/- 0.65
Photon Flux (Free Index): 8.86e-09 +/- 1.23e-08
Energy Flux (Free Index): 6.32e-05 +/- 9.14e-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/412017/cmap_HighResolution_283132801_283392001_4FGL_J0424.7+0036_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='6.32e-05', photon_flux_error='3.42e-08', dlogl='1.01e+00', energy_flux='1.58e-05', photon_flux2='8.86e-09', job_status='DONE', time_completed='2021-08-20 13:49:41.432461', photon_index_error2='0.65', photon_index2='1.25', ts='5.99', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='9.14e-05', EG='0.88', time_epoch_completed='1629492581.43', return_code='0', job_id='412017', GAL2='1.04', EG2='0.89', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='1.23e-08', ts2='8.01', photon_index='2.21' WHERE bin_id='169' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:49:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 412017: <4FGL_J0424.7+0036_daily_bin169> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin169> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:28 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:35:29 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:35:29 2021
Terminated at Fri Aug 20 13:49:42 2021
Results reported at Fri Aug 20 13:49:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin169 66.1945 0.6028 283132801 283392001 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 :                                   714.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

