/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 90 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 = 7341
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0424.7+0036_daily_bin923
RA = 66.1945, Dec = 0.6028
tmin = 478569601, tmax = 478828801
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='415227', job_status='RUN', time_executed='2021-08-20 13:47:34.044938', time_epoch_executed='1629492454.04' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415227/ft1_4FGL_J0424.7+0036_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415227/ft2_4FGL_J0424.7+0036_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415227/ft1_4FGL_J0424.7+0036_daily_bin923.fits outfile=/scratch/kocevski/415227/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin923.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=478569601.0 tmax=478828801.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 4.33
user 3.23
sys 1.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415227/ft2_4FGL_J0424.7+0036_daily_bin923.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/415227/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin923.fits evtable="EVENTS" outfile="/scratch/kocevski/415227/ft1_filtered_4FGL_J0424.7+0036_daily_bin923.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.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415227/ft1_filtered_4FGL_J0424.7+0036_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/415227/ft2_4FGL_J0424.7+0036_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/415227/ltcube_478569601_478828801_4FGL_J0424.7+0036_daily_bin923.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/415227/ft2_4FGL_J0424.7+0036_daily_bin923.fits
.....................!
real 13.54
user 12.20
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415227/ft1_filtered_4FGL_J0424.7+0036_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/415227/ft2_4FGL_J0424.7+0036_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/415227/ltcube_478569601_478828801_4FGL_J0424.7+0036_daily_bin923.fits outfile=/scratch/kocevski/415227/expmap_478569601_478828801_4FGL_J0424.7+0036_daily_bin923.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/415227/ltcube_478569601_478828801_4FGL_J0424.7+0036_daily_bin923.fits
.....................!
real 192.37
user 185.55
sys 6.42

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/415227/ft1_filtered_4FGL_J0424.7+0036_daily_bin923.fits scfile=/scratch/kocevski/415227/ft2_4FGL_J0424.7+0036_daily_bin923.fits outfile=/scratch/kocevski/415227/cmap_478569601_478828801_4FGL_J0424.7+0036_daily_bin923.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.36
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415227/ft1_filtered_4FGL_J0424.7+0036_daily_bin923.fits scfile=/scratch/kocevski/415227/ft2_4FGL_J0424.7+0036_daily_bin923.fits outfile=/scratch/kocevski/415227/cmap_HighResolution_478569601_478828801_4FGL_J0424.7+0036_daily_bin923.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.42
user 0.36
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415227/ft1_filtered_4FGL_J0424.7+0036_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/415227/ft2_4FGL_J0424.7+0036_daily_bin923.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415227/Model_4FGL_J0424.7+0036_daily_bin923.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/415227/ft1_filtered_4FGL_J0424.7+0036_daily_bin923.fits.....................!
real 146.95
user 144.25
sys 2.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.880       1.0000         .10000E-03   10000.    
     2 'Prefactor '    97.767       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.549       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2788       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.940       1.0000         .10000E-03   10000.    
     8 'norm      '    .95214       1.0000         .10000E-03   10000.    
     9 'norm      '    14.029       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4328       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11808E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4167       1.0000         .10000E-03   10000.    
    15 'norm      '    .10645E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.640       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.419       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3656       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7751       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91973       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=   10307.58     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3459 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.880        2.2105       -.48845E-07    .17312E-03
   2  Prefactor     97.765        50.600        .23059E-06    .69650E-04
   3  Prefactor     .10000E-03    6.8689       -.59052E-06** at limit **
   4  norm          12.093        11.344       -.16623E-06    .21498E-04
   5  Prefactor     25.554        32.320       -.12258E-05    .83263E-04
   6  norm          1.2790        2.6185       -.24605E-06    .37646E-04
   7  Prefactor     20.901        27.735       -.28402E-05    .22213E-03
   8  norm          .94995        9.1804       -.71627E-06   -.93653E-04
   9  norm          14.017        25.338        .22276E-05    .14706E-03
  10  norm          .10000E-03    .24770       -.27463E-06** at limit **
  11  Prefactor     1.4329        .96970        .59496E-07    .37733E-03
  12  Prefactor     .10968E-03    33.201       -.13445E-04** at limit **
  13  Prefactor     .10000E-03    12.847       -.28411E-06** at limit **
  14  Prefactor     1.4165        7.4199        .80703E-05    .66109E-03
  15  norm          .10000E-03    1.2395       -.76645E-06** at limit **
  16  Prefactor     29.640        28.838       -.17490E-06    .78244E-04
  17  norm          4.0567        2.1263       -.15691E-07    .49396E-03
  18  Prefactor     12.416        8.0853        .12624E-05    .54731E-03
  19  Prefactor     .10000E-03    18.660       -.22033E-06** at limit **
  20  norm          1.3654        1.5782       -.18503E-06   -.13046E-03
  21  Prefactor     6.7734        20.838       -.47163E-06    .94038E-04
  22  norm          .10000E-03    .17506       -.18727E-06** at limit **
  23  Prefactor     .10000E-03    26.638       -.16381E-06** at limit **
  24  Normalizat    1.0187        .19538        .22010E-06    .62604E-03
  25  Prefactor     .91975        .76089E-01    .15770E-05    .65715E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8799
  Prefactor  = 97.7654
  Prefactor  = 0.0001
  norm       = 12.0933
  Prefactor  = 25.554
  norm       = 1.27904
  Prefactor  = 20.9009
  norm       = 0.949953
  norm       = 14.0173
  norm       = 0.0001
  Prefactor  = 1.43287
  Prefactor  = 0.000109676
  Prefactor  = 0.0001
  Prefactor  = 1.41647
  norm       = 0.000100001
  Prefactor  = 29.64
  norm       = 4.05674
  Prefactor  = 12.4159
  Prefactor  = 0.0001
  norm       = 1.36543
  Prefactor  = 6.77341
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0187
  Prefactor  = 0.919747
 **********
 **   18 **HESSE 
 **********

 FCN=   10307.58     FROM HESSE     STATUS=OK           443 CALLS     3902 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.880        2.2127        .65791E-04   -1.5048    
   2  Prefactor     97.765        50.607        .40654E-04   -1.3727    
   3  Prefactor     .10000E-03    6.8902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.093        11.345        .11519E-03   -1.5012    
   5  Prefactor     25.554        32.227        .79252E-04   -1.4697    
   6  norm          1.2790        2.5647        .22594E-03   -1.5482    
   7  Prefactor     20.901        28.322        .87528E-04   -1.4793    
   8  norm          .94995        9.5358        .51982E-02   -1.5513    
   9  norm          14.017        26.016        .10694E-03   -1.4959    
  10  norm          .10000E-03    .43933        .97619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4329        .97353        .78350E-04   -1.5469    
  12  Prefactor     .10968E-03    22.398        .10203       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4165        7.7679        .18183E-02   -1.5470    
  15  norm          .10000E-03    2.0181        .20656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.640        28.845        .73591E-04   -1.4619    
  17  norm          4.0567        2.1307        .10052E-03   -1.5305    
  18  Prefactor     12.416        8.0920        .11367E-03   -1.5003    
  19  Prefactor     .10000E-03    18.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3654        1.5647        .12962E-03   -1.5474    
  21  Prefactor     6.7734        20.255        .15415E-03   -1.5187    
  22  norm          .10000E-03    .27279        .80467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0187        .21874        .37400E-03   -.92406    
  25  Prefactor     .91975        .84517E-01    .16414E-03   -.95454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84666e-07
Minuit parameter uncertainties:
  1  2.21268
  2  50.6289
  3  3.11097e-05
  4  11.3465
  5  32.2485
  6  2.56494
  7  28.3403
  8  6.0204
  9  26.037
  10  1.52939e-05
  11  0.973537
  12  0.0294537
  13  3.13864e-05
  14  6.63524
  15  8.7317e-05
  16  28.8587
  17  2.13077
  18  8.09268
  19  0.000136963
  20  1.56475
  21  20.2759
  22  9.40111e-06
  23  0.000189227
  24  0.218929
  25  0.0845295
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.433e+00  9.735e-01  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.197e-01  8.453e-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:  1.019e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.08
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.07e-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) = 10306.4013866
delta logL = 1.18263912864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10306.393697
delta logL = 1.19032868899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3840       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3869       1.0000          .0000       10.000    
     3 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91724       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=   10306.39     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3832        .99560        .92445E-02   -.56652E-03
   2  Index         1.3874        .37372        .27121       -.76488E-04
   3  Normalizat    1.0391        .17356        .83756E-01    .31409E-04
   4  Prefactor     .91716        .73014E-01    .45224E-01   -.33973E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38321
  Index      = 1.38735
  Normalizat = 1.03906
  Prefactor  = 0.917158
 **********
 **   18 **HESSE 
 **********

 FCN=   10306.39     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3832        1.1324        .81598E-04   -1.5473    
   2  Index         1.3874        .47973        .10409E-01   -.80745    
   3  Normalizat    1.0391        .19267        .37082E-03   -.91733    
   4  Prefactor     .91716        .81340E-01    .16437E-03   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42817e-12
Minuit parameter uncertainties:
  1  1.13239
  2  0.481288
  3  0.192804
  4  0.0813505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415227': 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) = 10306.3936948
delta logL = 1.19033090331

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.383e+00  1.132e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.387e+00  4.813e-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.172e-01  8.135e-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:  1.039e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.46
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.39 +/- 0.48
Photon Flux (Free Index): 1.20e-08 +/- 1.16e-08
Energy Flux (Free Index): 5.53e-05 +/- 6.52e-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/415227/cmap_HighResolution_478569601_478828801_4FGL_J0424.7+0036_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='5.53e-05', photon_flux_error='2.45e-08', dlogl='1.19e+00', energy_flux='1.58e-05', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-08-20 14:02:14.062868', photon_index_error2='0.48', photon_index2='1.39', ts='10.08', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='6.52e-05', EG='1.02', time_epoch_completed='1629493334.06', return_code='0', job_id='415227', GAL2='0.92', EG2='1.04', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='1.16e-08', ts2='12.46', photon_index='2.21' WHERE bin_id='923' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:02:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 415227: <4FGL_J0424.7+0036_daily_bin923> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin923 66.1945 0.6028 478569601 478828801 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 :                                   892.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            997 sec.

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

