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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin1056
RA = 66.1945, Dec = 0.6028
tmin = 513043201, tmax = 513302401
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='416553', job_status='RUN', time_executed='2021-08-20 13:51:39.071470', time_epoch_executed='1629492699.07' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416553/ft1_4FGL_J0424.7+0036_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416553/ft2_4FGL_J0424.7+0036_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416553/ft1_4FGL_J0424.7+0036_daily_bin1056.fits outfile=/scratch/kocevski/416553/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1056.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=513043201.0 tmax=513302401.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 9.56
user 6.08
sys 3.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416553/ft1_filtered_4FGL_J0424.7+0036_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/416553/ft2_4FGL_J0424.7+0036_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/416553/ltcube_513043201_513302401_4FGL_J0424.7+0036_daily_bin1056.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/416553/ft2_4FGL_J0424.7+0036_daily_bin1056.fits
.....................!
real 15.97
user 12.01
sys 3.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416553/ft1_filtered_4FGL_J0424.7+0036_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/416553/ft2_4FGL_J0424.7+0036_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/416553/ltcube_513043201_513302401_4FGL_J0424.7+0036_daily_bin1056.fits outfile=/scratch/kocevski/416553/expmap_513043201_513302401_4FGL_J0424.7+0036_daily_bin1056.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/416553/ltcube_513043201_513302401_4FGL_J0424.7+0036_daily_bin1056.fits
.....................!
real 195.82
user 186.45
sys 8.97

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/416553/ft1_filtered_4FGL_J0424.7+0036_daily_bin1056.fits scfile=/scratch/kocevski/416553/ft2_4FGL_J0424.7+0036_daily_bin1056.fits outfile=/scratch/kocevski/416553/cmap_513043201_513302401_4FGL_J0424.7+0036_daily_bin1056.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 3.68
user 0.36
sys 3.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416553/ft1_filtered_4FGL_J0424.7+0036_daily_bin1056.fits scfile=/scratch/kocevski/416553/ft2_4FGL_J0424.7+0036_daily_bin1056.fits outfile=/scratch/kocevski/416553/cmap_HighResolution_513043201_513302401_4FGL_J0424.7+0036_daily_bin1056.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 3.68
user 0.38
sys 3.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/416553/ft1_filtered_4FGL_J0424.7+0036_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/416553/ft2_4FGL_J0424.7+0036_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416553/Model_4FGL_J0424.7+0036_daily_bin1056.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/416553/ft1_filtered_4FGL_J0424.7+0036_daily_bin1056.fits.....................!
real 86.54
user 80.82
sys 5.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0951       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.817       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.596       1.0000         .10000E-03   10000.    
     4 'norm      '    16.385       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1678       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.846       1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.719       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.305       1.0000         .10000E-03   10000.    
    17 'norm      '    .95795       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11393E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18755E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .95701       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11922E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68025       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1453       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=   5885.717     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     2958 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0953        1.9614        .27874E-06   -.27610E-03
   2  Prefactor     72.860        60.071        .14111E-04   -.62782E-05
   3  Prefactor     12.586        16.184       -.31593E-05   -.51336E-04
   4  norm          16.388        24.823       -.24652E-05   -.10818E-04
   5  Prefactor     .10000E-03    13.309        .42336E-07** at limit **
   6  norm          3.1702        3.2453        .24022E-06    .16334E-03
   7  Prefactor     .10000E-03    7.5646        .95319E-07** at limit **
   8  norm          15.846        12.852        .15903E-05   -.51958E-04
   9  norm          .10000E-03    8.1246       -.23076E-06** at limit **
  10  norm          .10000E-03    .56102        .11975E-06** at limit **
  11  Prefactor     2.9189        1.9424       -.12723E-06   -.34972E-03
  12  Prefactor     32.699        24.444        .23433E-04    .64391E-04
  13  Prefactor     .10000E-03    54.767       -.28705E-05** at limit **
  14  Prefactor     .10000E-03    7.3280        .33691E-07** at limit **
  15  norm          .10000E-03    1.8289       -.11505E-05** at limit **
  16  Prefactor     77.394        54.367        .14418E-04    .17215E-06
  17  norm          .95850        2.1839       -.13601E-06   -.97445E-03
  18  Prefactor     .10000E-03    4.6997       -.23004E-06** at limit **
  19  Prefactor     .10000E-03    25.844        .13742E-05** at limit **
  20  norm          .10000E-03    1.8275        .22886E-06** at limit **
  21  Prefactor     .10034E-03    36.894        .11543E-05** at limit **
  22  norm          .95816        .71417       -.32763E-07   -.60008E-03
  23  Prefactor     .10000E-03    21.201       -.78426E-06** at limit **
  24  Normalizat    .68011        .27191       -.71592E-05   -.15021E-03
  25  Prefactor     1.1454        .11086       -.21952E-05    .17594E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09529
  Prefactor  = 72.8597
  Prefactor  = 12.5861
  norm       = 16.3878
  Prefactor  = 0.0001
  norm       = 3.17019
  Prefactor  = 0.0001
  norm       = 15.8461
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.91888
  Prefactor  = 32.6992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 77.394
  norm       = 0.958502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100337
  norm       = 0.958156
  Prefactor  = 0.0001
  Normalizat = 0.68011
  Prefactor  = 1.14535
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.717     FROM HESSE     STATUS=OK           435 CALLS     3393 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0953        1.9489        .10009E-03   -1.5418    
   2  Prefactor     72.860        59.945        .47048E-04   -1.3999    
   3  Prefactor     12.586        16.181        .11287E-03   -1.4998    
   4  norm          16.388        24.817        .98946E-04   -1.4898    
   5  Prefactor     .10000E-03    13.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1702        3.2449        .13564E-03   -1.5352    
   7  Prefactor     .10000E-03    7.5684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.846        12.856        .10062E-03   -1.4912    
   9  norm          .10000E-03    8.1288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .93914        .11056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9189        1.9260        .83456E-04   -1.5366    
  12  Prefactor     32.699        24.437        .70052E-04   -1.4564    
  13  Prefactor     .10000E-03    55.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8853        .20319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     77.394        54.334        .45672E-04   -1.3946    
  17  norm          .95850        1.8967        .16017E-02   -1.5512    
  18  Prefactor     .10000E-03    4.7491        .16237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8892        .20222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10034E-03    37.906        .12179       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .95816        .70569        .51724E-04   -1.5512    
  23  Prefactor     .10000E-03    21.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68011        .28237        .46704E-03   -1.0468    
  25  Prefactor     1.1454        .11875        .15706E-03   -.88030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76175e-09
Minuit parameter uncertainties:
  1  1.94899
  2  59.9947
  3  16.1867
  4  24.833
  5  6.46704e-06
  6  3.24513
  7  3.80872e-05
  8  12.8583
  9  4.4328e-05
  10  1.31804e-05
  11  1.92607
  12  24.4446
  13  4.57225e-05
  14  4.16179e-05
  15  0.000158161
  16  54.3689
  17  1.89683
  18  5.45463e-05
  19  2.40805e-05
  20  3.18442e-05
  21  0.00715113
  22  0.705698
  23  6.94946e-05
  24  0.282979
  25  0.118773
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.919e+00  1.926e+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.145e+00  1.188e-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:  6.801e-01  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 7.34e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 2.12e-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) = 5885.64540702
delta logL = 0.0719646801481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5885.63483158
delta logL = 0.0825401149878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5037       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0193       1.0000          .0000       10.000    
     3 'Normalizat'    .68998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1432       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=   5885.635     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5050        59.319        .53998E-02    .30879E-03
   2  Index         2.0201        5.9918        .17101        .11449E-03
   3  Normalizat    .68961        .15018        .10467        .16647E-04
   4  Prefactor     1.1433        .49917E-01    .36136E-01   -.11958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.505
  Index      = 2.02009
  Normalizat = 0.689608
  Prefactor  = 1.14327
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.635     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5050        2.6485        .92113E-04   -1.5334    
   2  Index         2.0201        .46854        .62611E-02   -.63849    
   3  Normalizat    .68961        .27108        .46407E-03   -1.0430    
   4  Prefactor     1.1433        .11623        .15718E-03   -.88095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31692e-11
Minuit parameter uncertainties:
  1  2.64858
  2  0.469614
  3  0.271609
  4  0.116255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416553': 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) = 5885.63482796
delta logL = 0.0825437346557

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.505e+00  2.649e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.020e+00  4.696e-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.143e+00  1.163e-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:  6.896e-01  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.02 +/- 0.47
Photon Flux (Free Index): 6.36e-08 +/- 4.89e-08
Energy Flux (Free Index): 4.19e-05 +/- 4.14e-05

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/416553/cmap_HighResolution_513043201_513302401_4FGL_J0424.7+0036_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.34e-08', energy_flux2='4.19e-05', photon_flux_error='4.84e-08', dlogl='8.25e-02', energy_flux='3.22e-05', photon_flux2='6.36e-08', job_status='DONE', time_completed='2021-08-20 14:02:30.961262', photon_index_error2='0.47', photon_index2='2.02', ts='4.69', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='4.14e-05', EG='0.68', time_epoch_completed='1629493350.96', return_code='0', job_id='416553', GAL2='1.14', EG2='0.69', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='4.89e-08', ts2='4.84', photon_index='2.21' WHERE bin_id='1056' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:02:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 416553: <4FGL_J0424.7+0036_daily_bin1056> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin1056> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 13:50:32 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:50:34 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:50:34 2021
Terminated at Fri Aug 20 14:02:32 2021
Results reported at Fri Aug 20 14:02:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin1056 66.1945 0.6028 513043201 513302401 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 :                                   696.48 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

