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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin570
RA = 66.1945, Dec = 0.6028
tmin = 387072001, tmax = 387331201
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='413662', job_status='RUN', time_executed='2021-08-20 13:41:46.739541', time_epoch_executed='1629492106.74' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413662/ft1_4FGL_J0424.7+0036_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413662/ft2_4FGL_J0424.7+0036_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413662/ft1_4FGL_J0424.7+0036_daily_bin570.fits outfile=/scratch/kocevski/413662/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin570.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=387072001.0 tmax=387331201.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.86
user 3.16
sys 3.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413662/ft1_filtered_4FGL_J0424.7+0036_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/413662/ft2_4FGL_J0424.7+0036_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/413662/ltcube_387072001_387331201_4FGL_J0424.7+0036_daily_bin570.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/413662/ft2_4FGL_J0424.7+0036_daily_bin570.fits
.....................!
real 15.74
user 11.37
sys 4.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413662/ft1_filtered_4FGL_J0424.7+0036_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/413662/ft2_4FGL_J0424.7+0036_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/413662/ltcube_387072001_387331201_4FGL_J0424.7+0036_daily_bin570.fits outfile=/scratch/kocevski/413662/expmap_387072001_387331201_4FGL_J0424.7+0036_daily_bin570.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/413662/ltcube_387072001_387331201_4FGL_J0424.7+0036_daily_bin570.fits
.....................!
real 194.17
user 185.37
sys 8.44

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/413662/ft1_filtered_4FGL_J0424.7+0036_daily_bin570.fits scfile=/scratch/kocevski/413662/ft2_4FGL_J0424.7+0036_daily_bin570.fits outfile=/scratch/kocevski/413662/cmap_387072001_387331201_4FGL_J0424.7+0036_daily_bin570.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.95
user 0.39
sys 3.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413662/ft1_filtered_4FGL_J0424.7+0036_daily_bin570.fits scfile=/scratch/kocevski/413662/ft2_4FGL_J0424.7+0036_daily_bin570.fits outfile=/scratch/kocevski/413662/cmap_HighResolution_387072001_387331201_4FGL_J0424.7+0036_daily_bin570.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.96
user 0.38
sys 3.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413662/ft1_filtered_4FGL_J0424.7+0036_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/413662/ft2_4FGL_J0424.7+0036_daily_bin570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413662/Model_4FGL_J0424.7+0036_daily_bin570.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/413662/ft1_filtered_4FGL_J0424.7+0036_daily_bin570.fits.....................!
real 139.99
user 133.95
sys 5.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1844       1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .63146E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    40.116       1.0000         .10000E-03   10000.    
    10 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8464       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8917       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8754       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5271       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0246       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90940       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=   9669.792     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2990 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9515        1.7223       -.89258E-10   -.11142E-03
   2  Prefactor     .10000E-03    35.319        .43128E-05** at limit **
   3  Prefactor     .10000E-03    6.5591        .35838E-05** at limit **
   4  norm          .10000E-03    5.3774        .14033E-06** at limit **
   5  Prefactor     6.1796        26.280        .34545E-05    .30484E-04
   6  norm          .10000E-03    1.8325        .10030E-07** at limit **
   7  Prefactor     .10000E-03    27.620        .28818E-07** at limit **
   8  norm          .48153E-01    2.9514       -.47398E-06    .25014E-03
   9  norm          40.097        25.964        .12529E-05    .55744E-05
  10  norm          .10000E-03    .31883        .73184E-07** at limit **
  11  Prefactor     .10000E-03    .72054        .26435E-07** at limit **
  12  Prefactor     11.348        26.343        .55507E-06   -.13819E-04
  13  Prefactor     64.918        47.697       -.71676E-05   -.40976E-03
  14  Prefactor     1.8344        7.4507        .35212E-05   -.12426E-04
  15  norm          2.8364        3.0214       -.10083E-06   -.31030E-03
  16  Prefactor     .10000E-03    33.376       -.40361E-05** at limit **
  17  norm          3.8908        1.8958        .17904E-06   -.12103E-03
  18  Prefactor     4.2372        3.6663        .15273E-05   -.31738E-02
  19  Prefactor     .10000E-03    6.0832       -.11022E-05** at limit **
  20  norm          3.8752        1.7350        .19826E-07   -.54434E-04
  21  Prefactor     .10000E-03    6.8108       -.27847E-05** at limit **
  22  norm          .10000E-03    .27986       -.30920E-09** at limit **
  23  Prefactor     2.5353        20.592       -.82941E-06   -.58516E-04
  24  Normalizat    1.0245        .19669        .26258E-06   -.94385E-04
  25  Prefactor     .90935        .73936E-01   -.22376E-06   -.42709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.95146
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.17962
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.048153
  norm       = 40.0968
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3476
  Prefactor  = 64.9182
  Prefactor  = 1.83438
  norm       = 2.83636
  Prefactor  = 0.000100001
  norm       = 3.89076
  Prefactor  = 4.23717
  Prefactor  = 0.0001
  norm       = 3.87524
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.53525
  Normalizat = 1.02451
  Prefactor  = 0.909345
 **********
 **   18 **HESSE 
 **********

 FCN=   9669.792     FROM HESSE     STATUS=OK           441 CALLS     3431 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9515        1.7237        .81869E-04   -1.5310    
   2  Prefactor     .10000E-03    35.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.3814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1796        26.075        .16143E-03   -1.5211    
   6  norm          .10000E-03    4.3022        .25667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .48153E-01    5.0518        .58926E-01   -1.5664    
   9  norm          40.097        25.867        .63286E-04   -1.4441    
  10  norm          .10000E-03    .50676        .10464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .73587        .16212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.348        25.903        .11888E-03   -1.5034    
  13  Prefactor     64.918        48.690        .49800E-04   -1.4095    
  14  Prefactor     1.8344        7.3758        .30689E-03   -1.5437    
  15  norm          2.8364        2.9585        .13645E-03   -1.5371    
  16  Prefactor     .10000E-03    33.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8908        1.8961        .89103E-04   -1.5313    
  18  Prefactor     4.2372        5.3277        .97871E-03   -1.5296    
  19  Prefactor     .10000E-03    6.0906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.8752        1.7333        .83069E-04   -1.5314    
  21  Prefactor     .10000E-03    6.8487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .95585        .10102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5353        20.608        .25696E-03   -1.5390    
  24  Normalizat    1.0245        .22182        .36738E-03   -.92214    
  25  Prefactor     .90935        .83480E-01    .15985E-03   -.95815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7665e-09
Minuit parameter uncertainties:
  1  1.72375
  2  0.000416442
  3  0.000154273
  4  5.35411e-06
  5  25.4063
  6  1.90735e-06
  7  2.13701e-05
  8  0.985483
  9  25.8739
  10  2.13188e-05
  11  1.6215e-05
  12  25.9284
  13  48.7199
  14  7.35801
  15  2.95861
  16  0.000394302
  17  1.89612
  18  5.32827
  19  4.66677e-05
  20  1.73334
  21  0.000125842
  22  8.07048e-07
  23  14.4627
  24  0.222018
  25  0.0834919
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.622e-05  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.093e-01  8.349e-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.025e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413662/likelihoodResults_387072001_387331201_4FGL_J0424.7+0036_daily_bin570.txt

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): 102
logL (Free Index) = 9669.79887731
delta logL = -0.00647184573427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9669.79240412
delta logL = 1.34489164338e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2357       1.0000          .0000       10.000    
     3 'Normalizat'    1.0245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90933       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=   9669.298     FROM MIGRAD    STATUS=CONVERGED    145 CALLS      302 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70480E-02    .34662        .18493E-02   -.10472E-01
   2  Index         5.0205        3.5082        .14510        .54135E-04
   3  Normalizat    .95513        .37373        .85417E-01   -.17985E-04
   4  Prefactor     .92401        .61116E-01    .45124E-01    .74039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00704798
  Index      = 5.02054
  Normalizat = 0.95513
  Prefactor  = 0.92401
 **********
 **   18 **HESSE 
 **********

 FCN=   9669.298     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      335 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70480E-02    .36687        .81751E-05   -1.5725    
   2  Index         5.0205        7.3492        .51716E-02    .41084E-02
   3  Normalizat    .95513        .18013        .37822E-03   -.94549    
   4  Prefactor     .92401        .72432E-01    .15860E-03   -.95307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.65026e-11
Minuit parameter uncertainties:
  1  0.100976
  2  6.06992
  3  0.180247
  4  0.0724391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413662': 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): 102
logL (Free Index) = 9669.29832139
delta logL = 0.494084081602

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  7.048e-03  1.010e-01  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  5.021e+00  6.070e+00  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.240e-01  7.244e-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:  9.551e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 66.195 0.603
Photon Index (Free Index): 5.02 +/- 6.07
Photon Flux (Free Index): 7.63e-08 +/- 2.16e-06
Energy Flux (Free Index): 1.01e-05 +/- 2.82e-04

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/413662/cmap_HighResolution_387072001_387331201_4FGL_J0424.7+0036_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='4.94e-01', photon_flux2='7.63e-08', job_status='DONE', time_completed='2021-08-20 13:57:08.189216', photon_index_error2='6.07', photon_index2='5.02', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.16e-08', energy_flux_error2='2.82e-04', EG='1.02', time_epoch_completed='1629493028.19', return_code='0', job_id='413662', GAL2='0.92', EG2='0.96', return_code2='102', photon_flux_error2='2.16e-06', ts2='1.09', photon_index='2.21' WHERE bin_id='570' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:57:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 413662: <4FGL_J0424.7+0036_daily_bin570> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin570> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 13:40:33 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:40: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:40:34 2021
Terminated at Fri Aug 20 13:57:09 2021
Results reported at Fri Aug 20 13:57:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin570 66.1945 0.6028 387072001 387331201 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 :                                   975.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

