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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin666
RA = 66.1945, Dec = 0.6028
tmin = 411955201, tmax = 412214401
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='413802', job_status='RUN', time_executed='2021-08-20 13:44:02.760169', time_epoch_executed='1629492242.76' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413802/ft1_4FGL_J0424.7+0036_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413802/ft2_4FGL_J0424.7+0036_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413802/ft1_4FGL_J0424.7+0036_daily_bin666.fits outfile=/scratch/kocevski/413802/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin666.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=411955201.0 tmax=412214401.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 6.42
user 5.26
sys 1.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413802/ft1_filtered_4FGL_J0424.7+0036_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/413802/ft2_4FGL_J0424.7+0036_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/413802/ltcube_411955201_412214401_4FGL_J0424.7+0036_daily_bin666.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/413802/ft2_4FGL_J0424.7+0036_daily_bin666.fits
.....................!
real 13.11
user 11.74
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413802/ft1_filtered_4FGL_J0424.7+0036_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/413802/ft2_4FGL_J0424.7+0036_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/413802/ltcube_411955201_412214401_4FGL_J0424.7+0036_daily_bin666.fits outfile=/scratch/kocevski/413802/expmap_411955201_412214401_4FGL_J0424.7+0036_daily_bin666.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/413802/ltcube_411955201_412214401_4FGL_J0424.7+0036_daily_bin666.fits
.....................!
real 192.98
user 186.67
sys 5.91

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/413802/ft1_filtered_4FGL_J0424.7+0036_daily_bin666.fits scfile=/scratch/kocevski/413802/ft2_4FGL_J0424.7+0036_daily_bin666.fits outfile=/scratch/kocevski/413802/cmap_411955201_412214401_4FGL_J0424.7+0036_daily_bin666.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.40
user 0.37
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413802/ft1_filtered_4FGL_J0424.7+0036_daily_bin666.fits scfile=/scratch/kocevski/413802/ft2_4FGL_J0424.7+0036_daily_bin666.fits outfile=/scratch/kocevski/413802/cmap_HighResolution_411955201_412214401_4FGL_J0424.7+0036_daily_bin666.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.43
user 0.37
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413802/ft1_filtered_4FGL_J0424.7+0036_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/413802/ft2_4FGL_J0424.7+0036_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413802/Model_4FGL_J0424.7+0036_daily_bin666.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/413802/ft1_filtered_4FGL_J0424.7+0036_daily_bin666.fits.....................!
real 98.18
user 95.62
sys 2.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3396       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .15663E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2606       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1536       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3828       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6765       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4657       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1948       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73332       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1636       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=   6719.720     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2510 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3397        2.4002        .67675E-07   -.55921E-04
   2  Prefactor     .10000E-03    17.701       -.27781E-05** at limit **
   3  Prefactor     .10000E-03    6.8919       -.10356E-05** at limit **
   4  norm          .10000E-03    7.0401        .11497E-05** at limit **
   5  Prefactor     .10000E-03    16.664       -.74437E-06** at limit **
   6  norm          .10137E-03    5.9379        .13799E-05** at limit **
   7  Prefactor     4.2577        30.118        .12082E-06    .13256E-04
   8  norm          4.1540        6.5787        .38640E-05   -.10049E-02
   9  norm          .10001E-03    25.665        .46394E-05** at limit **
  10  norm          1.5977        1.6382        .98889E-07   -.14885E-02
  11  Prefactor     2.3829        1.8161       -.10726E-07   -.33379E-03
  12  Prefactor     .10002E-03    82.411       -.89177E-05** at limit **
  13  Prefactor     .10000E-03    23.046       -.23785E-05** at limit **
  14  Prefactor     .10000E-03    8.1826        .21048E-07** at limit **
  15  norm          1.6734        3.0737       -.73262E-07    .13160E-03
  16  Prefactor     .10000E-03    17.045       -.15015E-05** at limit **
  17  norm          1.4662        2.8140        .47487E-06   -.21286E-03
  18  Prefactor     1.2126        6.4948        .21362E-05   -.19932E-03
  19  Prefactor     .10000E-03    10.781       -.15912E-05** at limit **
  20  norm          4.1947        2.6773        .97869E-07   -.15254E-03
  21  Prefactor     .10000E-03    14.932        .18951E-05** at limit **
  22  norm          .10000E-03    .17636        .78844E-08** at limit **
  23  Prefactor     .10000E-03    13.556        .31476E-05** at limit **
  24  Normalizat    .73327        .25627       -.22706E-05   -.11387E-03
  25  Prefactor     1.1636        .10043       -.41910E-08   -.23249E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.33975
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000101369
  Prefactor  = 4.25767
  norm       = 4.15395
  norm       = 0.00010001
  norm       = 1.5977
  Prefactor  = 2.38287
  Prefactor  = 0.000100024
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.67344
  Prefactor  = 0.000100001
  norm       = 1.46616
  Prefactor  = 1.21255
  Prefactor  = 0.000100001
  norm       = 4.19472
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.733273
  Prefactor  = 1.16362
 **********
 **   18 **HESSE 
 **********

 FCN=   6719.720     FROM HESSE     STATUS=OK           431 CALLS     2941 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3397        2.3969        .91050E-04   -1.5291    
   2  Prefactor     .10000E-03    18.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.9680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.0991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10137E-03    7.1025        .52456E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2577        30.043        .19520E-03   -1.5295    
   8  norm          4.1540        6.9188        .98885E-03   -1.5300    
   9  norm          .10001E-03    26.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5977        1.6057        .90277E-04   -1.5455    
  11  Prefactor     2.3829        1.8009        .89252E-04   -1.5399    
  12  Prefactor     .10002E-03    86.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6734        3.0090        .17777E-03   -1.5449    
  16  Prefactor     .10000E-03    17.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4662        2.7848        .17349E-03   -1.5466    
  18  Prefactor     1.2126        6.4831        .39696E-03   -1.5488    
  19  Prefactor     .10000E-03    10.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1947        2.6694        .10136E-03   -1.5298    
  21  Prefactor     .10000E-03    15.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .18409        .67185E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73327        .26953        .44986E-03   -1.0259    
  25  Prefactor     1.1636        .10808        .15511E-03   -.87458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25622e-09
Minuit parameter uncertainties:
  1  2.39695
  2  0.00051311
  3  0.000113517
  4  0.000132683
  5  0.000134074
  6  0.00623646
  7  22.6357
  8  6.92009
  9  0.00101485
  10  1.60574
  11  1.80093
  12  0.00286929
  13  0.000496039
  14  4.21781e-06
  15  3.00927
  16  0.000269393
  17  2.78509
  18  5.60826
  19  0.000228495
  20  2.66951
  21  0.000321196
  22  5.52493e-08
  23  0.000513849
  24  0.270016
  25  0.108103
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.383e+00  1.801e+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.164e+00  1.081e-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:  7.333e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.33
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.99e-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) = 6718.45008155
delta logL = 1.27004403458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6718.06479598
delta logL = 1.65532960789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23619       1.0000         .10000E-03   10000.    
     2 'Index     '    .51843       1.0000          .0000       10.000    
     3 'Normalizat'    .77122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1627       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=   6718.065     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      225 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23532        .26036        .88425E-02   -.16945E-02
   2  Index         .51735        .44784        .26475        .91111E-05
   3  Normalizat    .77140        .23106        .99255E-01    .70388E-04
   4  Prefactor     1.1627        .98766E-01    .35578E-01    .25443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.235324
  Index      = 0.517348
  Normalizat = 0.771395
  Prefactor  = 1.16267
 **********
 **   18 **HESSE 
 **********

 FCN=   6718.065     FROM HESSE     STATUS=OK            35 CALLS      260 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23532        .65111        .33467E-03   -1.5611    
   2  Index         .51735        .86438        .12692E-01   -1.1119    
   3  Normalizat    .77140        .24837        .43990E-03   -1.0114    
   4  Prefactor     1.1627        .10654        .15532E-03   -.87488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62567e-11
Minuit parameter uncertainties:
  1  0.651125
  2  0.887977
  3  0.24873
  4  0.106564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413802': 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) = 6718.06479504
delta logL = 1.6553305467

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.353e-01  6.511e-01  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  5.173e-01  8.880e-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.163e+00  1.066e-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:  7.714e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 66.195 0.603
Photon Index (Free Index): 0.52 +/- 0.89
Photon Flux (Free Index): 5.02e-09 +/- 5.36e-09
Energy Flux (Free Index): 1.70e-04 +/- 2.04e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/413802/cmap_HighResolution_411955201_412214401_4FGL_J0424.7+0036_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='1.70e-04', photon_flux_error='4.53e-08', dlogl='1.66e+00', energy_flux='2.63e-05', photon_flux2='5.02e-09', job_status='DONE', time_completed='2021-08-20 13:54:24.405548', photon_index_error2='0.89', photon_index2='0.52', ts='4.33', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.04e-04', EG='0.73', time_epoch_completed='1629492864.41', return_code='0', job_id='413802', GAL2='1.16', EG2='0.77', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='5.36e-09', ts2='7.61', photon_index='2.21' WHERE bin_id='666' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:54:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 413802: <4FGL_J0424.7+0036_daily_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin666 66.1945 0.6028 411955201 412214401 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 :                                   634.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             230.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

