/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 25 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0424.7+0036_daily_bin12
RA = 66.1945, Dec = 0.6028
tmin = 242438401, tmax = 242697601
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='410707', job_status='RUN', time_executed='2021-08-20 13:31:29.554186', time_epoch_executed='1629491489.55' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410707/ft1_4FGL_J0424.7+0036_daily_bin12.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410707/ft2_4FGL_J0424.7+0036_daily_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410707/ft1_4FGL_J0424.7+0036_daily_bin12.fits outfile=/scratch/kocevski/410707/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin12.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=242438401.0 tmax=242697601.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 2.33
user 1.24
sys 1.05

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410707/ft2_4FGL_J0424.7+0036_daily_bin12.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/410707/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin12.fits evtable="EVENTS" outfile="/scratch/kocevski/410707/ft1_filtered_4FGL_J0424.7+0036_daily_bin12.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.39
user 0.32
sys 1.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410707/ft1_filtered_4FGL_J0424.7+0036_daily_bin12.fits" evtable="EVENTS" scfile=/scratch/kocevski/410707/ft2_4FGL_J0424.7+0036_daily_bin12.fits sctable="SC_DATA" outfile=/scratch/kocevski/410707/ltcube_242438401_242697601_4FGL_J0424.7+0036_daily_bin12.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/410707/ft2_4FGL_J0424.7+0036_daily_bin12.fits
.....................!
real 13.25
user 11.84
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410707/ft1_filtered_4FGL_J0424.7+0036_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/410707/ft2_4FGL_J0424.7+0036_daily_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/410707/ltcube_242438401_242697601_4FGL_J0424.7+0036_daily_bin12.fits outfile=/scratch/kocevski/410707/expmap_242438401_242697601_4FGL_J0424.7+0036_daily_bin12.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/410707/ltcube_242438401_242697601_4FGL_J0424.7+0036_daily_bin12.fits
.....................!
real 193.60
user 187.28
sys 5.96

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/410707/ft1_filtered_4FGL_J0424.7+0036_daily_bin12.fits scfile=/scratch/kocevski/410707/ft2_4FGL_J0424.7+0036_daily_bin12.fits outfile=/scratch/kocevski/410707/cmap_242438401_242697601_4FGL_J0424.7+0036_daily_bin12.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.38
user 0.38
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410707/ft1_filtered_4FGL_J0424.7+0036_daily_bin12.fits scfile=/scratch/kocevski/410707/ft2_4FGL_J0424.7+0036_daily_bin12.fits outfile=/scratch/kocevski/410707/cmap_HighResolution_242438401_242697601_4FGL_J0424.7+0036_daily_bin12.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.40
user 0.38
sys 1.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410707/ft1_filtered_4FGL_J0424.7+0036_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/410707/ft2_4FGL_J0424.7+0036_daily_bin12.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410707/Model_4FGL_J0424.7+0036_daily_bin12.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/410707/ft1_filtered_4FGL_J0424.7+0036_daily_bin12.fits.....................!
real 144.24
user 141.61
sys 2.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.615       1.0000         .10000E-03   10000.    
     4 'norm      '    7.2363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.092       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.328       1.0000         .10000E-03   10000.    
    10 'norm      '    .94793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6125       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8819       1.0000         .10000E-03   10000.    
    15 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.349       1.0000         .10000E-03   10000.    
    17 'norm      '    5.9493       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0910       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.137       1.0000         .10000E-03   10000.    
    20 'norm      '    .26276       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10460E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .47477       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75909       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98357       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=   10727.17     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2927 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6571        1.1649        .40842E-07    .17364E-05
   2  Prefactor     .10000E-03    12.887        .14062E-06** at limit **
   3  Prefactor     17.614        12.656        .24580E-07   -.21073E-05
   4  norm          7.2356        11.276        .10832E-06   -.12241E-05
   5  Prefactor     21.094        25.134        .51167E-07    .34282E-05
   6  norm          .10000E-03    .86268        .28159E-08** at limit **
   7  Prefactor     .10000E-03    43.591       -.14878E-05** at limit **
   8  norm          .10000E-03    3.0414        .15021E-07** at limit **
   9  norm          16.321        21.168        .36565E-06   -.43552E-04
  10  norm          .94796        .69817        .17147E-07   -.37807E-04
  11  Prefactor     3.6127        1.6659        .32187E-07   -.99828E-04
  12  Prefactor     .10000E-03    35.417        .67754E-06** at limit **
  13  Prefactor     .10000E-03    11.647       -.61079E-07** at limit **
  14  Prefactor     7.8814        6.8062        .17385E-06   -.46633E-04
  15  norm          .10000E-03    1.0428        .20870E-06** at limit **
  16  Prefactor     12.324        28.493       -.40181E-06   -.70742E-04
  17  norm          5.9495        2.2980        .10591E-08   -.27757E-03
  18  Prefactor     6.0927        6.2026        .21900E-06    .76425E-06
  19  Prefactor     46.131        26.152       -.67883E-07   -.39954E-04
  20  norm          .26271        .93131        .12858E-05   -.86197E-04
  21  Prefactor     .10000E-03    18.506       -.20435E-06** at limit **
  22  norm          .47501        .42063        .16254E-07   -.67358E-04
  23  Prefactor     .10000E-03    14.726       -.20413E-06** at limit **
  24  Normalizat    .75913        .18513       -.13106E-05   -.10674E-03
  25  Prefactor     .98353        .73830E-01    .15780E-06   -.27763E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65708
  Prefactor  = 0.0001
  Prefactor  = 17.6143
  norm       = 7.23558
  Prefactor  = 21.0941
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.3211
  norm       = 0.947965
  Prefactor  = 3.61268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.88139
  norm       = 0.0001
  Prefactor  = 12.3243
  norm       = 5.94955
  Prefactor  = 6.09272
  Prefactor  = 46.1315
  norm       = 0.262714
  Prefactor  = 0.0001
  norm       = 0.475013
  Prefactor  = 0.0001
  Normalizat = 0.759127
  Prefactor  = 0.983531
 **********
 **   18 **HESSE 
 **********

 FCN=   10727.17     FROM HESSE     STATUS=OK           433 CALLS     3360 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6571        1.1624        .90795E-04   -1.5451    
   2  Prefactor     .10000E-03    12.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.614        12.662        .95429E-04   -1.4868    
   4  norm          7.2356        11.272        .14911E-03   -1.5170    
   5  Prefactor     21.094        25.118        .87214E-04   -1.4789    
   6  norm          .10000E-03    .86594        .93927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.0602        .17633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.321        21.111        .99118E-04   -1.4900    
  10  norm          .94796        .67991        .70186E-04   -1.5513    
  11  Prefactor     3.6127        1.6563        .82990E-04   -1.5328    
  12  Prefactor     .10000E-03    36.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8814        6.8088        .14282E-03   -1.5146    
  15  norm          .10000E-03    1.9888        .20022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.324        28.638        .11399E-03   -1.5006    
  17  norm          5.9495        2.2984        .91344E-04   -1.5220    
  18  Prefactor     6.0927        6.1468        .16268E-03   -1.5214    
  19  Prefactor     46.131        26.036        .59029E-04   -1.4349    
  20  norm          .26271        .93531        .18178E-03   -1.5605    
  21  Prefactor     .10000E-03    18.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .47501        .41146        .60358E-04   -1.5570    
  23  Prefactor     .10000E-03    14.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .75913        .19890        .41580E-03   -1.0160    
  25  Prefactor     .98353        .80347E-01    .15490E-03   -.93281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24671e-10
Minuit parameter uncertainties:
  1  1.16241
  2  4.21656e-05
  3  12.664
  4  11.2755
  5  25.1301
  6  1.38182e-07
  7  0.000224153
  8  2.80224e-06
  9  21.1209
  10  0.679912
  11  1.65636
  12  0.000242434
  13  1.43914e-05
  14  6.80951
  15  2.6665e-05
  16  28.6698
  17  2.29845
  18  6.14747
  19  26.0428
  20  0.93536
  21  2.77739e-05
  22  0.411462
  23  4.60501e-05
  24  0.199092
  25  0.0803568
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.613e+00  1.656e+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:  9.835e-01  8.036e-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.591e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.88
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 9.09e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 3.98e-05 +/- 1.83e-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) = 10727.1331294
delta logL = 0.0347962803844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10727.124835
delta logL = 0.0430906758666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9387       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1159       1.0000          .0000       10.000    
     3 'Normalizat'    .76556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98227       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10727.12     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      276 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9388        2.0596        .87860E-04   -.23809E-04
   2  Index         2.1158        .33568        .56420E-02   -.45196E-04
   3  Normalizat    .76543        .18612        .41432E-03    .23762E-04
   4  Prefactor     .98226        .78096E-01    .15499E-03    .76724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.93877
  Index      = 2.11578
  Normalizat = 0.76543
  Prefactor  = 0.982264
 **********
 **   18 **HESSE 
 **********

 FCN=   10727.12     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9388        2.0121        .35144E-05   -1.5311    
   2  Index         2.1158        .32780        .22568E-03   -.61486    
   3  Normalizat    .76543        .18612        .16573E-04   -1.0136    
   4  Prefactor     .98226        .78114E-01    .61997E-05   -.93323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01693e-11
Minuit parameter uncertainties:
  1  2.01214
  2  0.328149
  3  0.186271
  4  0.0781227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410707': 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) = 10727.1248342
delta logL = 0.0430915046654

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.939e+00  2.012e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.116e+00  3.281e-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:  9.823e-01  7.812e-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.654e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.01
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.12 +/- 0.33
Photon Flux (Free Index): 8.37e-08 +/- 4.48e-08
Energy Flux (Free Index): 4.44e-05 +/- 2.62e-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/410707/cmap_HighResolution_242438401_242697601_4FGL_J0424.7+0036_daily_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.09e-08', energy_flux2='4.44e-05', photon_flux_error='4.17e-08', dlogl='4.31e-02', energy_flux='3.98e-05', photon_flux2='8.37e-08', job_status='DONE', time_completed='2021-08-20 13:45:00.176575', photon_index_error2='0.33', photon_index2='2.12', ts='11.88', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.62e-05', EG='0.76', time_epoch_completed='1629492300.18', return_code='0', job_id='410707', GAL2='0.98', EG2='0.77', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.48e-08', ts2='12.01', photon_index='2.21' WHERE bin_id='12' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 410707: <4FGL_J0424.7+0036_daily_bin12> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin12 66.1945 0.6028 242438401 242697601 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 :                                   823.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

