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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin322
RA = 66.1945, Dec = 0.6028
tmin = 322790401, tmax = 323049601
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='412261', job_status='RUN', time_executed='2021-08-20 13:38:14.535605', time_epoch_executed='1629491894.54' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412261

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412261/ft1_4FGL_J0424.7+0036_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412261/ft2_4FGL_J0424.7+0036_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412261/ft1_4FGL_J0424.7+0036_daily_bin322.fits outfile=/scratch/kocevski/412261/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin322.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=322790401.0 tmax=323049601.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 20.17
user 11.57
sys 8.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412261/ft2_4FGL_J0424.7+0036_daily_bin322.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/412261/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/412261/ft1_filtered_4FGL_J0424.7+0036_daily_bin322.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 8.86
user 0.31
sys 8.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412261/ft1_filtered_4FGL_J0424.7+0036_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/412261/ft2_4FGL_J0424.7+0036_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/412261/ltcube_322790401_323049601_4FGL_J0424.7+0036_daily_bin322.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/412261/ft2_4FGL_J0424.7+0036_daily_bin322.fits
.....................!
real 20.17
user 10.40
sys 9.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412261/ft1_filtered_4FGL_J0424.7+0036_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/412261/ft2_4FGL_J0424.7+0036_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/412261/ltcube_322790401_323049601_4FGL_J0424.7+0036_daily_bin322.fits outfile=/scratch/kocevski/412261/expmap_322790401_323049601_4FGL_J0424.7+0036_daily_bin322.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/412261/ltcube_322790401_323049601_4FGL_J0424.7+0036_daily_bin322.fits
.....................!
real 200.91
user 185.72
sys 14.85

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/412261/ft1_filtered_4FGL_J0424.7+0036_daily_bin322.fits scfile=/scratch/kocevski/412261/ft2_4FGL_J0424.7+0036_daily_bin322.fits outfile=/scratch/kocevski/412261/cmap_322790401_323049601_4FGL_J0424.7+0036_daily_bin322.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 8.60
user 0.35
sys 8.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412261/ft1_filtered_4FGL_J0424.7+0036_daily_bin322.fits scfile=/scratch/kocevski/412261/ft2_4FGL_J0424.7+0036_daily_bin322.fits outfile=/scratch/kocevski/412261/cmap_HighResolution_322790401_323049601_4FGL_J0424.7+0036_daily_bin322.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 8.74
user 0.37
sys 8.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412261/ft1_filtered_4FGL_J0424.7+0036_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/412261/ft2_4FGL_J0424.7+0036_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412261/Model_4FGL_J0424.7+0036_daily_bin322.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/412261/ft1_filtered_4FGL_J0424.7+0036_daily_bin322.fits.......................!
real 43.90
user 31.75
sys 12.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2295       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.314       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.646       1.0000         .10000E-03   10000.    
     6 'norm      '    10.634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.924       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2597       1.0000         .10000E-03   10000.    
     9 'norm      '    44.192       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3548       1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.402       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18964E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10585E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.463       1.0000         .10000E-03   10000.    
    17 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    93.686       1.0000         .10000E-03   10000.    
    20 'norm      '    .10717E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .54381       1.0000         .10000E-03   10000.    
    23 'Prefactor '    191.47       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76845       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85596       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=   1748.039     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2894 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2323        5.1798        .25584E-06   -.12753E-04
   2  Prefactor     .10000E-03    48.988        .62911E-06** at limit **
   3  Prefactor     25.290        34.843        .20228E-05    .25516E-04
   4  norm          .10000E-03    23.859       -.11737E-06** at limit **
   5  Prefactor     26.672        50.296        .50373E-06    .16178E-04
   6  norm          10.637        10.445       -.63288E-06    .22667E-04
   7  Prefactor     71.917        64.741        .18156E-05   -.41629E-05
   8  norm          3.3553        107.21        .10190E-05   -.18658E-04
   9  norm          44.149        77.778       -.49002E-05    .50446E-05
  10  norm          .10000E-03    1.1405       -.18066E-06** at limit **
  11  Prefactor     4.3555        4.2691       -.29546E-05    .17486E-03
  12  Prefactor     67.383        64.903       -.12665E-05    .11863E-04
  13  Prefactor     .10006E-03    1630.2       -.42788E-04** at limit **
  14  Prefactor     .10000E-03    27.096       -.71920E-06** at limit **
  15  norm          .10000E-03    7.3243        .82003E-06** at limit **
  16  Prefactor     46.476        62.594        .10317E-05    .43876E-05
  17  norm          .10000E-03    16.995       -.84033E-06** at limit **
  18  Prefactor     .10000E-03    14.642        .66771E-06** at limit **
  19  Prefactor     93.670        113.08        .17723E-05   -.14536E-04
  20  norm          .10000E-03    3.9995       -.47911E-06** at limit **
  21  Prefactor     .10000E-03    46.571        .35973E-07** at limit **
  22  norm          .54513        1.3410        .47801E-06    .27715E-03
  23  Prefactor     191.37        137.96        .60339E-06   -.37716E-04
  24  Normalizat    .76652        .53941       -.67949E-05   -.51757E-05
  25  Prefactor     .85659        .18001       -.22491E-05   -.51003E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.23233
  Prefactor  = 0.0001
  Prefactor  = 25.2903
  norm       = 0.0001
  Prefactor  = 26.6716
  norm       = 10.6367
  Prefactor  = 71.9165
  norm       = 3.35532
  norm       = 44.1491
  norm       = 0.0001
  Prefactor  = 4.35546
  Prefactor  = 67.383
  Prefactor  = 0.000100064
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 46.4756
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 93.6704
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.545127
  Prefactor  = 191.37
  Normalizat = 0.766525
  Prefactor  = 0.856585
 **********
 **   18 **HESSE 
 **********

 FCN=   1748.039     FROM HESSE     STATUS=OK           423 CALLS     3317 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2323        5.1794        .91084E-04   -1.5250    
   2  Prefactor     .10000E-03    49.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.290        34.987        .79618E-04   -1.4702    
   4  norm          .10000E-03    23.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.672        50.290        .77606E-04   -1.4675    
   6  norm          10.637        10.447        .12286E-03   -1.5056    
   7  Prefactor     71.917        65.065        .47337E-04   -1.4010    
   8  norm          3.3553        111.06        .22431E-03   -1.5342    
   9  norm          44.149        77.631        .60308E-04   -1.4378    
  10  norm          .10000E-03    1.1423        .43545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3555        4.2505        .40398E-03   -1.5291    
  12  Prefactor     67.383        64.720        .48888E-04   -1.4064    
  13  Prefactor     .10006E-03    1628.6        .36470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.4355        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.476        62.639        .58822E-04   -1.4343    
  17  norm          .10000E-03    17.540        .33420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.689        .15617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     93.670        111.87        .41521E-04   -1.3769    
  20  norm          .10000E-03    4.0102        .81555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .54513        1.2610        .71785E-03   -1.5560    
  23  Prefactor     191.37        138.04        .14594E-03   -1.2932    
  24  Normalizat    .76652        .58569        .46313E-03   -1.0132    
  25  Prefactor     .85659        .20090        .16121E-03   -.97675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4674e-10
Minuit parameter uncertainties:
  1  5.17987
  2  0.000113994
  3  35.0156
  4  3.67672e-05
  5  50.3702
  6  10.4487
  7  65.1298
  8  38.6852
  9  77.8093
  10  1.32096e-05
  11  4.25077
  12  64.7874
  13  0.0210767
  14  0.000265004
  15  0.000128215
  16  62.7281
  17  0.000572877
  18  5.83353e-05
  19  112.121
  20  1.96846e-05
  21  9.04114e-05
  22  1.26107
  23  138.274
  24  0.590597
  25  0.20107
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  4.355e+00  4.251e+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:  8.566e-01  2.011e-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.665e-01  5.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.74
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 1.07e-07
Energy Flux (Fixed Index): 4.80e-05 +/- 4.69e-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) = 1747.68536335
delta logL = 0.353490030384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1747.68322346
delta logL = 0.355629924664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6411       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5046       1.0000          .0000       10.000    
     3 'Normalizat'    .82079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84753       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=   1747.683     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6436        4.7043        .46705E-02   -.65594E-04
   2  Index         1.5051        .64855        .17886       -.10675E-04
   3  Normalizat    .82095        .46148        .10137        .11490E-04
   4  Prefactor     .84752        .16978        .44333E-01   -.99843E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.64365
  Index      = 1.50513
  Normalizat = 0.820946
  Prefactor  = 0.847524
 **********
 **   18 **HESSE 
 **********

 FCN=   1747.683     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6436        4.9626        .88640E-04   -1.5277    
   2  Index         1.5051        .73055        .73551E-02   -.77396    
   3  Normalizat    .82095        .50055        .44931E-03   -.99296    
   4  Prefactor     .84752        .18540        .16205E-03   -.98000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10576e-10
Minuit parameter uncertainties:
  1  4.96305
  2  0.735727
  3  0.503402
  4  0.185536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412261': 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) = 1747.68322299
delta logL = 0.355630394033

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  4.644e+00  4.963e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.505e+00  7.357e-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:  8.475e-01  1.855e-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:  8.209e-01  5.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.45
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.51 +/- 0.74
Photon Flux (Free Index): 4.36e-08 +/- 6.06e-08
Energy Flux (Free Index): 1.36e-04 +/- 2.47e-04

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/412261/cmap_HighResolution_322790401_323049601_4FGL_J0424.7+0036_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='1.36e-04', photon_flux_error='1.07e-07', dlogl='3.56e-01', energy_flux='4.80e-05', photon_flux2='4.36e-08', job_status='DONE', time_completed='2021-08-20 13:47:25.258231', photon_index_error2='0.74', photon_index2='1.51', ts='5.74', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.47e-04', EG='0.77', time_epoch_completed='1629492445.26', return_code='0', job_id='412261', GAL2='0.85', EG2='0.82', return_code2='0', energy_flux_error='4.69e-05', photon_flux_error2='6.06e-08', ts2='6.45', photon_index='2.21' WHERE bin_id='322' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:47:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 412261: <4FGL_J0424.7+0036_daily_bin322> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin322> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:47 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:35:49 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:35:49 2021
Terminated at Fri Aug 20 13:47:27 2021
Results reported at Fri Aug 20 13:47:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin322 66.1945 0.6028 322790401 323049601 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 :                                   675.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

