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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin685
RA = 66.1945, Dec = 0.6028
tmin = 416880001, tmax = 417139201
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='413830', job_status='RUN', time_executed='2021-08-20 13:45:06.503355', time_epoch_executed='1629492306.5' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413830/ft1_4FGL_J0424.7+0036_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413830/ft2_4FGL_J0424.7+0036_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413830/ft1_4FGL_J0424.7+0036_daily_bin685.fits outfile=/scratch/kocevski/413830/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin685.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=416880001.0 tmax=417139201.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 11.52
user 4.99
sys 6.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413830/ft2_4FGL_J0424.7+0036_daily_bin685.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/413830/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin685.fits evtable="EVENTS" outfile="/scratch/kocevski/413830/ft1_filtered_4FGL_J0424.7+0036_daily_bin685.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 6.83
user 0.34
sys 6.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413830/ft1_filtered_4FGL_J0424.7+0036_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/413830/ft2_4FGL_J0424.7+0036_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/413830/ltcube_416880001_417139201_4FGL_J0424.7+0036_daily_bin685.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/413830/ft2_4FGL_J0424.7+0036_daily_bin685.fits
.....................!
real 19.88
user 12.44
sys 7.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413830/ft1_filtered_4FGL_J0424.7+0036_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/413830/ft2_4FGL_J0424.7+0036_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/413830/ltcube_416880001_417139201_4FGL_J0424.7+0036_daily_bin685.fits outfile=/scratch/kocevski/413830/expmap_416880001_417139201_4FGL_J0424.7+0036_daily_bin685.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/413830/ltcube_416880001_417139201_4FGL_J0424.7+0036_daily_bin685.fits
.....................!
real 198.73
user 185.40
sys 12.78

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/413830/ft1_filtered_4FGL_J0424.7+0036_daily_bin685.fits scfile=/scratch/kocevski/413830/ft2_4FGL_J0424.7+0036_daily_bin685.fits outfile=/scratch/kocevski/413830/cmap_416880001_417139201_4FGL_J0424.7+0036_daily_bin685.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 6.86
user 0.37
sys 6.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413830/ft1_filtered_4FGL_J0424.7+0036_daily_bin685.fits scfile=/scratch/kocevski/413830/ft2_4FGL_J0424.7+0036_daily_bin685.fits outfile=/scratch/kocevski/413830/cmap_HighResolution_416880001_417139201_4FGL_J0424.7+0036_daily_bin685.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 6.88
user 0.40
sys 6.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413830/ft1_filtered_4FGL_J0424.7+0036_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/413830/ft2_4FGL_J0424.7+0036_daily_bin685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413830/Model_4FGL_J0424.7+0036_daily_bin685.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/413830/ft1_filtered_4FGL_J0424.7+0036_daily_bin685.fits.....................!
real 100.43
user 90.62
sys 9.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0331       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11469E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.332       1.0000         .10000E-03   10000.    
     8 'norm      '    17.036       1.0000         .10000E-03   10000.    
     9 'norm      '    35.193       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5708       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12348E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4610       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91541E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.7295       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.342       1.0000         .10000E-03   10000.    
    22 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0009       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0179       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=   6281.513     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2943 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0329        1.7473       -.69466E-07   -.67589E-04
   2  Prefactor     50.906        59.442       -.53774E-04    .24105E-04
   3  Prefactor     .10000E-03    20.319       -.26985E-06** at limit **
   4  norm          .10000E-03    8.7006       -.39197E-07** at limit **
   5  Prefactor     .10000E-03    16.037        .56613E-06** at limit **
   6  norm          2.8412        4.0000       -.32839E-06   -.18255E-03
   7  Prefactor     36.323        27.847        .44346E-05    .99408E-04
   8  norm          17.035        14.392        .15740E-05    .10349E-04
   9  norm          35.173        35.741       -.45350E-05    .61679E-04
  10  norm          .10000E-03    .67603       -.74233E-07** at limit **
  11  Prefactor     3.5697        2.3315        .22136E-06    .20690E-03
  12  Prefactor     .10000E-03    13.075        .10838E-05** at limit **
  13  Prefactor     .10000E-03    43.346       -.50631E-06** at limit **
  14  Prefactor     .10000E-03    5.4820       -.87443E-07** at limit **
  15  norm          .10000E-03    1.5450       -.23963E-06** at limit **
  16  Prefactor     .10000E-03    33.476       -.93426E-05** at limit **
  17  norm          1.4606        2.2982       -.57155E-06   -.65709E-03
  18  Prefactor     .10053E-03    6.6903       -.24010E-05** at limit **
  19  Prefactor     .10000E-03    30.872        .91517E-05** at limit **
  20  norm          6.7290        2.8094       -.20176E-06    .11155E-03
  21  Prefactor     45.350        32.427        .11173E-04    .30393E-03
  22  norm          .10000E-03    .23147       -.49147E-06** at limit **
  23  Prefactor     .10000E-03    13.066       -.11763E-05** at limit **
  24  Normalizat    1.0009        .27380        .11140E-05    .40872E-03
  25  Prefactor     1.0180        .10311        .23157E-05    .48376E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.03285
  Prefactor  = 50.9056
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84124
  Prefactor  = 36.3226
  norm       = 17.0352
  norm       = 35.1726
  norm       = 0.0001
  Prefactor  = 3.56971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46063
  Prefactor  = 0.000100526
  Prefactor  = 0.000100002
  norm       = 6.72899
  Prefactor  = 45.3504
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.00085
  Prefactor  = 1.01802
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0329        1.7442        .94313E-04   -1.5423    
   2  Prefactor     50.906        59.344        .56175E-04   -1.4280    
   3  Prefactor     .10000E-03    20.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.7022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8412        3.9779        .18188E-03   -1.5371    
   7  Prefactor     36.323        27.832        .66489E-04   -1.4502    
   8  norm          17.035        14.476        .97037E-04   -1.4882    
   9  norm          35.173        35.615        .67553E-04   -1.4521    
  10  norm          .10000E-03    1.1029        .12436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5697        2.3079        .87720E-04   -1.5330    
  12  Prefactor     .10000E-03    13.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4992        .18116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6302        .18881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4606        2.2747        .14191E-03   -1.5466    
  18  Prefactor     .10053E-03    10.013        .53575E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7290        2.8138        .81877E-04   -1.5189    
  21  Prefactor     45.350        32.145        .59542E-04   -1.4360    
  22  norm          .10000E-03    .28138        .73504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0009        .30310        .40839E-03   -.93002    
  25  Prefactor     1.0180        .11524        .16428E-03   -.92131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83848e-09
Minuit parameter uncertainties:
  1  1.74426
  2  59.4133
  3  0.000588763
  4  5.17609e-06
  5  1.23022e-05
  6  3.97832
  7  27.842
  8  14.4789
  9  35.6365
  10  7.95345e-06
  11  2.30796
  12  1.16988e-06
  13  1.92715e-05
  14  1.91568e-05
  15  3.94037e-05
  16  5.80377e-05
  17  2.2748
  18  0.00459164
  19  0.000435135
  20  2.8139
  21  32.1572
  22  2.60032e-05
  23  1.20287e-05
  24  0.303624
  25  0.115273
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.570e+00  2.308e+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.018e+00  1.153e-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:  1.001e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 8.98e-08 +/- 5.80e-08
Energy Flux (Fixed Index): 3.94e-05 +/- 2.55e-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) = 6281.37924983
delta logL = 0.13401897981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6281.37005017
delta logL = 0.143218646454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7042       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5354       1.0000          .0000       10.000    
     3 'Normalizat'    .96372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0258       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=   6281.370     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      239 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7042        27.013        .61927E-02    .72160E-03
   2  Index         2.5354        3.1422        .10687        .82738E-04
   3  Normalizat    .96368        .14190        .93710E-01   -.75834E-04
   4  Prefactor     1.0258        .42837E-01    .41604E-01   -.23634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70419
  Index      = 2.53538
  Normalizat = 0.963677
  Prefactor  = 1.02584
 **********
 **   18 **HESSE 
 **********

 FCN=   6281.370     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7042        2.7135        .68991E-04   -1.5379    
   2  Index         2.5354        .68076        .53171E-02   -.51545    
   3  Normalizat    .96368        .28834        .41508E-03   -.94257    
   4  Prefactor     1.0258        .11378        .16369E-03   -.91873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4964e-10
Minuit parameter uncertainties:
  1  2.71367
  2  0.683567
  3  0.288809
  4  0.113807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413830': 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) = 6281.37005014
delta logL = 0.143218673003

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.704e+00  2.714e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.535e+00  6.836e-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.026e+00  1.138e-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:  9.637e-01  2.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.80
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.54 +/- 0.68
Photon Flux (Free Index): 1.24e-07 +/- 9.14e-08
Energy Flux (Free Index): 3.46e-05 +/- 2.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/413830/cmap_HighResolution_416880001_417139201_4FGL_J0424.7+0036_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.98e-08', energy_flux2='3.46e-05', photon_flux_error='5.80e-08', dlogl='1.43e-01', energy_flux='3.94e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-08-20 13:56:59.668087', photon_index_error2='0.68', photon_index2='2.54', ts='7.46', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.00', time_epoch_completed='1629493019.67', return_code='0', job_id='413830', GAL2='1.03', EG2='0.96', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='9.14e-08', ts2='7.80', photon_index='2.21' WHERE bin_id='685' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 413830: <4FGL_J0424.7+0036_daily_bin685> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin685 66.1945 0.6028 416880001 417139201 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 :                                   808.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             240.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

