/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 139 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0424.7+0036_daily_bin154
RA = 66.1945, Dec = 0.6028
tmin = 279244801, tmax = 279504001
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='410898', job_status='RUN', time_executed='2021-08-20 13:33:38.123043', time_epoch_executed='1629491618.12' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410898/ft1_4FGL_J0424.7+0036_daily_bin154.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410898/ft2_4FGL_J0424.7+0036_daily_bin154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410898/ft1_4FGL_J0424.7+0036_daily_bin154.fits outfile=/scratch/kocevski/410898/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin154.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=279244801.0 tmax=279504001.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.35
user 3.48
sys 0.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410898/ft2_4FGL_J0424.7+0036_daily_bin154.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/410898/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin154.fits evtable="EVENTS" outfile="/scratch/kocevski/410898/ft1_filtered_4FGL_J0424.7+0036_daily_bin154.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.19
user 0.36
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410898/ft1_filtered_4FGL_J0424.7+0036_daily_bin154.fits" evtable="EVENTS" scfile=/scratch/kocevski/410898/ft2_4FGL_J0424.7+0036_daily_bin154.fits sctable="SC_DATA" outfile=/scratch/kocevski/410898/ltcube_279244801_279504001_4FGL_J0424.7+0036_daily_bin154.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/410898/ft2_4FGL_J0424.7+0036_daily_bin154.fits
.....................!
real 15.62
user 14.21
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410898/ft1_filtered_4FGL_J0424.7+0036_daily_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/410898/ft2_4FGL_J0424.7+0036_daily_bin154.fits sctable="SC_DATA" expcube=/scratch/kocevski/410898/ltcube_279244801_279504001_4FGL_J0424.7+0036_daily_bin154.fits outfile=/scratch/kocevski/410898/expmap_279244801_279504001_4FGL_J0424.7+0036_daily_bin154.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/410898/ltcube_279244801_279504001_4FGL_J0424.7+0036_daily_bin154.fits
.....................!
real 193.49
user 187.35
sys 5.51

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/410898/ft1_filtered_4FGL_J0424.7+0036_daily_bin154.fits scfile=/scratch/kocevski/410898/ft2_4FGL_J0424.7+0036_daily_bin154.fits outfile=/scratch/kocevski/410898/cmap_279244801_279504001_4FGL_J0424.7+0036_daily_bin154.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.21
user 0.41
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410898/ft1_filtered_4FGL_J0424.7+0036_daily_bin154.fits scfile=/scratch/kocevski/410898/ft2_4FGL_J0424.7+0036_daily_bin154.fits outfile=/scratch/kocevski/410898/cmap_HighResolution_279244801_279504001_4FGL_J0424.7+0036_daily_bin154.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.16
user 0.40
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410898/ft1_filtered_4FGL_J0424.7+0036_daily_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/410898/ft2_4FGL_J0424.7+0036_daily_bin154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410898/Model_4FGL_J0424.7+0036_daily_bin154.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/410898/ft1_filtered_4FGL_J0424.7+0036_daily_bin154.fits.....................!
real 113.50
user 110.95
sys 2.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16952E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.823       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.045       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2014       1.0000         .10000E-03   10000.    
     8 'norm      '    4.6388       1.0000         .10000E-03   10000.    
     9 'norm      '    .10538E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1325       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11091E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.182       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8297       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3081       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.1606       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4873       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2988       1.0000         .10000E-03   10000.    
    23 'Prefactor '    85.968       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78861       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0119       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=   7626.097     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2945 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .87935        .23107E-06** at limit **
   2  Prefactor     .10000E-03    14.874        .12616E-05** at limit **
   3  Prefactor     28.826        19.413        .55833E-06   -.46911E-04
   4  norm          .10000E-03    15.171       -.52777E-06** at limit **
   5  Prefactor     53.031        37.902       -.18924E-05   -.31347E-03
   6  norm          .10000E-03    2.2526       -.42762E-07** at limit **
   7  Prefactor     4.1930        53.790       -.10748E-05   -.58950E-04
   8  norm          4.6380        10.804        .65096E-05   -.61711E-03
   9  norm          .10000E-03    21.142        .28277E-05** at limit **
  10  norm          2.1325        1.3785       -.91548E-08    .28112E-03
  11  Prefactor     .10000E-03    1.3639       -.20434E-07** at limit **
  12  Prefactor     29.178        27.588        .51577E-07   -.28062E-04
  13  Prefactor     .10010E-03    103.71       -.16439E-04** at limit **
  14  Prefactor     .10000E-03    9.5739       -.44640E-06** at limit **
  15  norm          2.0254        2.6072        .74392E-07   -.97604E-04
  16  Prefactor     .10007E-03    91.090        .13971E-04** at limit **
  17  norm          4.8296        2.7644        .81038E-07    .61969E-04
  18  Prefactor     6.3077        6.7759        .24762E-05   -.84401E-03
  19  Prefactor     .10001E-03    19.636       -.34646E-05** at limit **
  20  norm          2.1605        2.1244        .19124E-06   -.47901E-04
  21  Prefactor     4.4857        38.805       -.43754E-06   -.88892E-05
  22  norm          1.2988        .68575        .16063E-07    .33338E-04
  23  Prefactor     85.966        42.741       -.14937E-06   -.75673E-04
  24  Normalizat    .78886        .25011       -.38995E-05   -.52261E-06
  25  Prefactor     1.0118        .91950E-01    .31851E-06   -.18881E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 28.8261
  norm       = 0.0001
  Prefactor  = 53.0308
  norm       = 0.0001
  Prefactor  = 4.19295
  norm       = 4.638
  norm       = 0.000100004
  norm       = 2.13251
  Prefactor  = 0.0001
  Prefactor  = 29.1775
  Prefactor  = 0.000100103
  Prefactor  = 0.0001
  norm       = 2.02541
  Prefactor  = 0.000100069
  norm       = 4.82958
  Prefactor  = 6.30772
  Prefactor  = 0.000100005
  norm       = 2.16051
  Prefactor  = 4.48566
  norm       = 1.29878
  Prefactor  = 85.9659
  Normalizat = 0.788858
  Prefactor  = 1.01183
 **********
 **   18 **HESSE 
 **********

 FCN=   7626.097     FROM HESSE     STATUS=OK           427 CALLS     3372 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.8531        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.826        19.401        .37312E-03   -1.4634    
   4  norm          .10000E-03    15.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.031        38.287        .55069E-04   -1.4250    
   6  norm          .10000E-03    2.2665        .12791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1930        53.473        .19661E-03   -1.5298    
   8  norm          4.6380        11.272        .93433E-03   -1.5277    
   9  norm          .10000E-03    21.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1325        1.3649        .76987E-04   -1.5416    
  11  Prefactor     .10000E-03    1.4163        .19821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.178        27.191        .74166E-04   -1.4627    
  13  Prefactor     .10010E-03    110.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0254        2.5579        .14004E-03   -1.5423    
  16  Prefactor     .10007E-03    96.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8296        2.7635        .10304E-03   -1.5268    
  18  Prefactor     6.3077        6.9113        .79910E-03   -1.5206    
  19  Prefactor     .10001E-03    19.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.1605        2.1057        .11810E-03   -1.5414    
  21  Prefactor     4.4857        38.670        .19007E-03   -1.5284    
  22  norm          1.2988        .68175        .49154E-04   -1.5480    
  23  Prefactor     85.966        42.684        .43328E-04   -1.3851    
  24  Normalizat    .78886        .26869        .44690E-03   -1.0048    
  25  Prefactor     1.0118        .10147        .16021E-03   -.92336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35246e-09
Minuit parameter uncertainties:
  1  0.000128804
  2  0.000202099
  3  19.4052
  4  8.68367e-05
  5  38.3051
  6  1.79297e-06
  7  29.98
  8  11.2774
  9  0.000608972
  10  1.36491
  11  1.33018e-05
  12  27.2021
  13  0.00676413
  14  5.32552e-05
  15  2.55807
  16  0.0051899
  17  2.76356
  18  6.91216
  19  0.000641402
  20  2.10579
  21  26.3635
  22  0.681751
  23  42.6993
  24  0.26914
  25  0.101494
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.330e-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:  1.012e+00  1.015e-01  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  7.889e-01  2.691e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410898/likelihoodResults_279244801_279504001_4FGL_J0424.7+0036_daily_bin154.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): 0
logL (Free Index) = 7626.10056693
delta logL = -0.0033702060955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7626.09719729
delta logL = -5.58167812414e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2074       1.0000          .0000       10.000    
     3 'Normalizat'    .78881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0119       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=   7626.097     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      236 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    14.363        .19858E-02** at limit **
   2  Index         2.1731        8.4057        .50000        .22592E-04
   3  Normalizat    .78886        .20058E-01    .44690E-03    .33452E-04
   4  Prefactor     1.0118        .81222E-02    .16021E-03    .96504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100228
  Index      = 2.17311
  Normalizat = 0.788858
  Prefactor  = 1.01183
 **********
 **   18 **HESSE 
 **********

 FCN=   7626.097     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    146.41        .39715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1731        5.0548        .50000       -.60089    
   3  Normalizat    .78886        .74189E-01    .17876E-04   -1.0048    
   4  Prefactor     1.0118        .29564E-01    .64086E-05   -.92336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.81197e-08
Minuit parameter uncertainties:
  1  0.0115934
  2  725.452
  3  0.0741983
  4  0.0295646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410898': 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) = 7626.09719653
delta logL = 1.96767359739e-07

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.002e-04  1.159e-02  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.173e+00  7.255e+02  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.012e+00  2.956e-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.889e-01  7.420e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.195 0.603

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/410898/cmap_HighResolution_279244801_279504001_4FGL_J0424.7+0036_daily_bin154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-20 13:46:37.674707', job_id='410898', GAL2='1.01', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1629492397.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='154' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 410898: <4FGL_J0424.7+0036_daily_bin154> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin154> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:30:55 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:30:57 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:57 2021
Terminated at Fri Aug 20 13:46:38 2021
Results reported at Fri Aug 20 13:46:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin154 66.1945 0.6028 279244801 279504001 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 :                                   788.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

