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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin45
RA = 66.1945, Dec = 0.6028
tmin = 250992001, tmax = 251251201
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='410756', job_status='RUN', time_executed='2021-08-20 13:31:31.581345', time_epoch_executed='1629491491.58' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410756/ft1_4FGL_J0424.7+0036_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410756/ft2_4FGL_J0424.7+0036_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410756/ft1_4FGL_J0424.7+0036_daily_bin45.fits outfile=/scratch/kocevski/410756/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin45.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=250992001.0 tmax=251251201.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 1.99
user 1.22
sys 0.76

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410756/ft1_filtered_4FGL_J0424.7+0036_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/410756/ft2_4FGL_J0424.7+0036_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/410756/ltcube_250992001_251251201_4FGL_J0424.7+0036_daily_bin45.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/410756/ft2_4FGL_J0424.7+0036_daily_bin45.fits
.....................!
real 12.94
user 11.95
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410756/ft1_filtered_4FGL_J0424.7+0036_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/410756/ft2_4FGL_J0424.7+0036_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/410756/ltcube_250992001_251251201_4FGL_J0424.7+0036_daily_bin45.fits outfile=/scratch/kocevski/410756/expmap_250992001_251251201_4FGL_J0424.7+0036_daily_bin45.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/410756/ltcube_250992001_251251201_4FGL_J0424.7+0036_daily_bin45.fits
.....................!
real 191.62
user 186.08
sys 5.22

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/410756/ft1_filtered_4FGL_J0424.7+0036_daily_bin45.fits scfile=/scratch/kocevski/410756/ft2_4FGL_J0424.7+0036_daily_bin45.fits outfile=/scratch/kocevski/410756/cmap_250992001_251251201_4FGL_J0424.7+0036_daily_bin45.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.10
user 0.35
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410756/ft1_filtered_4FGL_J0424.7+0036_daily_bin45.fits scfile=/scratch/kocevski/410756/ft2_4FGL_J0424.7+0036_daily_bin45.fits outfile=/scratch/kocevski/410756/cmap_HighResolution_250992001_251251201_4FGL_J0424.7+0036_daily_bin45.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.10
user 0.36
sys 0.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410756/ft1_filtered_4FGL_J0424.7+0036_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/410756/ft2_4FGL_J0424.7+0036_daily_bin45.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410756/Model_4FGL_J0424.7+0036_daily_bin45.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/410756/ft1_filtered_4FGL_J0424.7+0036_daily_bin45.fits.....................!
real 112.21
user 110.07
sys 1.92

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2267       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.997       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16305E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.872       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.946       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9303       1.0000         .10000E-03   10000.    
     9 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7968       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10569E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9347       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2015       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.924       1.0000         .10000E-03   10000.    
    20 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.401       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.305       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .31733       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0917       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=   8211.952     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2982 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2270        1.4607       -.43476E-07   -.10270E-03
   2  Prefactor     31.985        32.850       -.13500E-06   -.91422E-04
   3  Prefactor     .10005E-03    8.2900        .51499E-06** at limit **
   4  norm          .10000E-03    7.5716       -.21454E-07** at limit **
   5  Prefactor     27.858        33.704       -.20584E-06   -.81518E-04
   6  norm          .10000E-03    1.4823       -.44725E-07** at limit **
   7  Prefactor     18.949        17.981       -.23064E-07   -.57816E-04
   8  norm          1.9311        3.9175        .39529E-06    .46230E-04
   9  norm          .10000E-03    18.905       -.29129E-06** at limit **
  10  norm          3.3143        1.1973       -.17134E-07   -.16458E-03
  11  Prefactor     .78099        1.2728       -.13751E-06   -.55351E-03
  12  Prefactor     1.7854        27.938        .36771E-06   -.43747E-04
  13  Prefactor     .10000E-03    12.760       -.35753E-07** at limit **
  14  Prefactor     .10000E-03    3.3074       -.82238E-07** at limit **
  15  norm          .10000E-03    1.2460        .36650E-06** at limit **
  16  Prefactor     5.9322        25.690        .11841E-06   -.19257E-04
  17  norm          9.2023        2.8412       -.81826E-07   -.22426E-03
  18  Prefactor     .10000E-03    3.8045        .36187E-06** at limit **
  19  Prefactor     61.951        36.693       -.31540E-06   -.70513E-04
  20  norm          .10000E-03    .95723       -.19912E-06** at limit **
  21  Prefactor     27.429        27.331       -.10263E-05   -.16841E-03
  22  norm          .10000E-03    .22241        .44902E-06** at limit **
  23  Prefactor     17.308        18.764       -.93890E-07    .65982E-05
  24  Normalizat    .31717        .22030        .40845E-05   -.59249E-04
  25  Prefactor     1.0918        .90969E-01   -.87506E-06   -.44724E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22695
  Prefactor  = 31.9853
  Prefactor  = 0.000100052
  norm       = 0.0001
  Prefactor  = 27.8582
  norm       = 0.0001
  Prefactor  = 18.9485
  norm       = 1.93113
  norm       = 0.0001
  norm       = 3.31427
  Prefactor  = 0.780988
  Prefactor  = 1.78541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.93224
  norm       = 9.2023
  Prefactor  = 0.0001
  Prefactor  = 61.9515
  norm       = 0.0001
  Prefactor  = 27.429
  norm       = 0.0001
  Prefactor  = 17.3079
  Normalizat = 0.317171
  Prefactor  = 1.0918
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.952     FROM HESSE     STATUS=OK           435 CALLS     3417 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2270        1.4570        .85453E-04   -1.5409    
   2  Prefactor     31.985        32.691        .70836E-04   -1.4576    
   3  Prefactor     .10005E-03    73.867        .49222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.5846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.858        33.207        .75884E-04   -1.4652    
   6  norm          .10000E-03    1.4891        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.949        17.958        .92017E-04   -1.4837    
   8  norm          1.9311        3.8571        .24606E-03   -1.5430    
   9  norm          .10000E-03    19.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3143        1.1789        .55627E-04   -1.5344    
  11  Prefactor     .78099        1.0548        .12151E-02   -1.5531    
  12  Prefactor     1.7854        26.080        .31193E-03   -1.5441    
  13  Prefactor     .10000E-03    12.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3312        .16091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0569        .18420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9322        25.738        .16484E-03   -1.5221    
  17  norm          9.2023        2.8080        .78363E-04   -1.5101    
  18  Prefactor     .10000E-03    3.8444        .17234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     61.951        36.600        .50991E-04   -1.4132    
  20  norm          .10000E-03    1.5518        .16784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.429        27.820        .76533E-04   -1.4660    
  22  norm          .10000E-03    .23260        .75950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.308        18.596        .96280E-04   -1.4876    
  24  Normalizat    .31717        .20745        .58732E-03   -1.2183    
  25  Prefactor     1.0918        .89966E-01    .14435E-03   -.89729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88986e-10
Minuit parameter uncertainties:
  1  1.45701
  2  32.709
  3  0.00392174
  4  7.47427e-07
  5  33.2292
  6  1.20648e-06
  7  17.9632
  8  3.8576
  9  9.64403e-06
  10  1.17891
  11  1.05487
  12  13.6541
  13  8.75276e-07
  14  5.17827e-06
  15  4.81413e-05
  16  24.7308
  17  2.80802
  18  2.68443e-07
  19  36.6136
  20  3.02824e-06
  21  27.8327
  22  2.65245e-06
  23  18.602
  24  0.20795
  25  0.0899784
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  7.810e-01  1.055e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.092e+00  8.998e-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:  3.172e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/410756/likelihoodResults_250992001_251251201_4FGL_J0424.7+0036_daily_bin45.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) = 8211.88387237
delta logL = 0.0683662296851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8211.88112616
delta logL = 0.0711124321915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99695       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9096       1.0000          .0000       10.000    
     3 'Normalizat'    .32111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0909       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=   8211.881     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99598        32.576        .26530E-01    .90016E-03
   2  Index         1.9102        5.9384        .26337        .23429E-04
   3  Normalizat    .32108        .42242E-01    .13187        .86327E-04
   4  Prefactor     1.0909        .18301E-01    .37943E-01   -.13157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.995976
  Index      = 1.91022
  Normalizat = 0.321083
  Prefactor  = 1.09091
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.881     FROM HESSE     STATUS=OK            35 CALLS      270 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99598        1.3162        .13431E-02   -1.5508    
   2  Index         1.9102        .76358        .11995E-01   -.66614    
   3  Normalizat    .32108        .19656        .58396E-03   -1.2160    
   4  Prefactor     1.0909        .87623E-01    .14441E-03   -.89758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30086e-10
Minuit parameter uncertainties:
  1  1.31624
  2  0.768463
  3  0.196978
  4  0.0876349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410756': 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) = 8211.8811256
delta logL = 0.0711129919455

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  9.960e-01  1.316e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.910e+00  7.685e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.091e+00  8.763e-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:  3.211e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.91 +/- 0.77
Photon Flux (Free Index): 1.52e-08 +/- 2.26e-08
Energy Flux (Free Index): 1.33e-05 +/- 2.43e-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/410756/cmap_HighResolution_250992001_251251201_4FGL_J0424.7+0036_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='7.11e-02', photon_flux2='1.52e-08', job_status='DONE', time_completed='2021-08-20 13:44:12.152751', photon_index_error2='0.77', photon_index2='1.91', ts='0.86', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.10e-08', energy_flux_error2='2.43e-05', EG='0.32', time_epoch_completed='1629492252.15', return_code='0', job_id='410756', GAL2='1.09', EG2='0.32', return_code2='0', photon_flux_error2='2.26e-08', ts2='1.00', photon_index='2.21' WHERE bin_id='45' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:44:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 410756: <4FGL_J0424.7+0036_daily_bin45> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin45 66.1945 0.6028 250992001 251251201 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 :                                   769.37 sec.
    Max Memory :                                 1009 MB
    Average Memory :                             334.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

