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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin979
RA = 66.1945, Dec = 0.6028
tmin = 493084801, tmax = 493344001
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='415307', job_status='RUN', time_executed='2021-08-20 13:48:06.428965', time_epoch_executed='1629492486.43' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415307/ft1_4FGL_J0424.7+0036_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415307/ft2_4FGL_J0424.7+0036_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415307/ft1_4FGL_J0424.7+0036_daily_bin979.fits outfile=/scratch/kocevski/415307/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin979.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=493084801.0 tmax=493344001.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.48
user 3.36
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415307/ft1_filtered_4FGL_J0424.7+0036_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/415307/ft2_4FGL_J0424.7+0036_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/415307/ltcube_493084801_493344001_4FGL_J0424.7+0036_daily_bin979.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/415307/ft2_4FGL_J0424.7+0036_daily_bin979.fits
.....................!
real 13.16
user 11.78
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415307/ft1_filtered_4FGL_J0424.7+0036_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/415307/ft2_4FGL_J0424.7+0036_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/415307/ltcube_493084801_493344001_4FGL_J0424.7+0036_daily_bin979.fits outfile=/scratch/kocevski/415307/expmap_493084801_493344001_4FGL_J0424.7+0036_daily_bin979.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/415307/ltcube_493084801_493344001_4FGL_J0424.7+0036_daily_bin979.fits
.....................!
real 191.36
user 185.03
sys 6.01

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/415307/ft1_filtered_4FGL_J0424.7+0036_daily_bin979.fits scfile=/scratch/kocevski/415307/ft2_4FGL_J0424.7+0036_daily_bin979.fits outfile=/scratch/kocevski/415307/cmap_493084801_493344001_4FGL_J0424.7+0036_daily_bin979.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.41
user 0.38
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415307/ft1_filtered_4FGL_J0424.7+0036_daily_bin979.fits scfile=/scratch/kocevski/415307/ft2_4FGL_J0424.7+0036_daily_bin979.fits outfile=/scratch/kocevski/415307/cmap_HighResolution_493084801_493344001_4FGL_J0424.7+0036_daily_bin979.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.41
user 0.38
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415307/ft1_filtered_4FGL_J0424.7+0036_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/415307/ft2_4FGL_J0424.7+0036_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415307/Model_4FGL_J0424.7+0036_daily_bin979.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/415307/ft1_filtered_4FGL_J0424.7+0036_daily_bin979.fits.....................!
real 159.53
user 156.95
sys 2.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1444       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.957       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.331       1.0000         .10000E-03   10000.    
     9 'norm      '    21.740       1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9902       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12672E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.470       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4277       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48020E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1442       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9529       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39487E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6511       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.858       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.014       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91607       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97756       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=   11134.09     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2918 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1446        .94781       -.52993E-07   -.64579E-04
   2  Prefactor     .10000E-03    17.314       -.13676E-07** at limit **
   3  Prefactor     .10000E-03    14.332       -.22911E-07** at limit **
   4  norm          10.958        10.075       -.43805E-08   -.23596E-05
   5  Prefactor     .10000E-03    6.4874       -.10176E-06** at limit **
   6  norm          1.0861        2.4186        .23658E-06   -.28741E-03
   7  Prefactor     .10000E-03    8.7546       -.98260E-07** at limit **
   8  norm          12.334        7.3392       -.66399E-06   -.44415E-04
   9  norm          21.754        21.634       -.43340E-05   -.60216E-04
  10  norm          .10000E-03    .33290        .97156E-07** at limit **
  11  Prefactor     1.9906        1.3721        .25370E-06   -.54846E-04
  12  Prefactor     .10000E-03    33.501       -.82503E-06** at limit **
  13  Prefactor     .10000E-03    12.026       -.49764E-06** at limit **
  14  Prefactor     13.475        9.0717       -.26610E-06   -.57279E-04
  15  norm          1.4299        2.3185       -.15242E-06   -.26259E-03
  16  Prefactor     .10000E-03    155.16       -.30215E-05** at limit **
  17  norm          5.1451        2.2949       -.13245E-07   -.92426E-04
  18  Prefactor     3.9439        2.5935        .25197E-06   -.16584E-02
  19  Prefactor     .10000E-03    49.942        .89266E-05** at limit **
  20  norm          1.6525        1.6836       -.17810E-06   -.25477E-03
  21  Prefactor     44.846        31.677       -.30747E-05   -.10910E-03
  22  norm          3.0091        .82814        .78217E-07   -.60917E-03
  23  Prefactor     24.010        26.016        .10092E-06    .44552E-05
  24  Normalizat    .91587        .19253        .12567E-05   -.80689E-04
  25  Prefactor     .97752        .72684E-01   -.22785E-06   -.47733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9581
  Prefactor  = 0.0001
  norm       = 1.08611
  Prefactor  = 0.0001
  norm       = 12.3337
  norm       = 21.7541
  norm       = 0.0001
  Prefactor  = 1.99061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4752
  norm       = 1.42994
  Prefactor  = 0.0001
  norm       = 5.1451
  Prefactor  = 3.94386
  Prefactor  = 0.000100001
  norm       = 1.65254
  Prefactor  = 44.8464
  norm       = 3.00906
  Prefactor  = 24.0103
  Normalizat = 0.915865
  Prefactor  = 0.977521
 **********
 **   18 **HESSE 
 **********

 FCN=   11134.09     FROM HESSE     STATUS=OK           431 CALLS     3349 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1446        .95169        .90757E-04   -1.5494    
   2  Prefactor     .10000E-03    17.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.958        10.074        .12103E-03   -1.5046    
   5  Prefactor     .10000E-03    6.4888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0861        2.3658        .23767E-03   -1.5500    
   7  Prefactor     .10000E-03    8.7707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.334        7.3479        .11407E-03   -1.5005    
   9  norm          21.754        21.567        .85905E-04   -1.4775    
  10  norm          .10000E-03    .85269        .11637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9906        1.3540        .95641E-04   -1.5426    
  12  Prefactor     .10000E-03    33.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.475        9.1017        .10914E-03   -1.4974    
  15  norm          1.4299        2.2829        .18871E-03   -1.5469    
  16  Prefactor     .10000E-03    158.75        .19258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1451        2.2955        .10071E-03   -1.5254    
  18  Prefactor     3.9439        7.5078        .10144E-02   -1.5311    
  19  Prefactor     .10000E-03    51.139        .21270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6525        1.6635        .12775E-03   -1.5451    
  21  Prefactor     44.846        32.151        .59861E-04   -1.4368    
  22  norm          3.0091        .83032        .45521E-04   -1.5361    
  23  Prefactor     24.010        25.929        .81741E-04   -1.4728    
  24  Normalizat    .91587        .21487        .40710E-03   -.95905    
  25  Prefactor     .97752        .81216E-01    .16171E-03   -.93483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8351e-09
Minuit parameter uncertainties:
  1  0.951699
  2  2.54589e-06
  3  3.00103e-07
  4  10.0753
  5  6.13892e-06
  6  2.36599
  7  2.41037e-06
  8  7.34847
  9  21.5747
  10  1.2233e-05
  11  1.354
  12  0.000188269
  13  2.44579e-06
  14  9.10268
  15  2.28304
  16  5.85987e-05
  17  2.29552
  18  7.50962
  19  0.00040793
  20  1.66358
  21  32.1635
  22  0.830319
  23  25.9413
  24  0.215074
  25  0.0812266
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  9.775e-01  8.123e-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.159e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.49e-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) = 11134.0461102
delta logL = 0.0453768464704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11134.0416008
delta logL = 0.0498862047953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2314       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0549       1.0000          .0000       10.000    
     3 'Normalizat'    .92265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97623       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=   11134.04     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2312        37.708        .68801E-02    .46040E-03
   2  Index         2.0548        5.9778        .15989        .10336E-03
   3  Normalizat    .92268        .11230        .91614E-01    .40842E-04
   4  Prefactor     .97622        .33686E-01    .45969E-01   -.49969E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23123
  Index      = 2.05477
  Normalizat = 0.922685
  Prefactor  = 0.97622
 **********
 **   18 **HESSE 
 **********

 FCN=   11134.04     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2312        1.6377        .10256E-03   -1.5409    
   2  Index         2.0548        .50076        .94655E-02   -.62988    
   3  Normalizat    .92268        .19394        .40578E-03   -.95668    
   4  Prefactor     .97622        .79433E-01    .16181E-03   -.93526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17033e-12
Minuit parameter uncertainties:
  1  1.63773
  2  0.502047
  3  0.194083
  4  0.0794427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415307': 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) = 11134.0416007
delta logL = 0.0498862891109

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.231e+00  1.638e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.055e+00  5.020e-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.762e-01  7.944e-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.227e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.05 +/- 0.50
Photon Flux (Free Index): 4.28e-08 +/- 3.65e-08
Energy Flux (Free Index): 2.60e-05 +/- 2.38e-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/415307/cmap_HighResolution_493084801_493344001_4FGL_J0424.7+0036_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='2.60e-05', photon_flux_error='3.41e-08', dlogl='4.99e-02', energy_flux='2.20e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-08-20 14:02:20.509441', photon_index_error2='0.50', photon_index2='2.05', ts='4.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='0.92', time_epoch_completed='1629493340.51', return_code='0', job_id='415307', GAL2='0.98', EG2='0.92', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='3.65e-08', ts2='4.10', photon_index='2.21' WHERE bin_id='979' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:02:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 415307: <4FGL_J0424.7+0036_daily_bin979> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin979 66.1945 0.6028 493084801 493344001 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 :                                   867.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

