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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin137
RA = 66.1945, Dec = 0.6028
tmin = 274838401, tmax = 275097601
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='410881', job_status='RUN', time_executed='2021-08-20 13:33:05.363434', time_epoch_executed='1629491585.36' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410881/ft1_4FGL_J0424.7+0036_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410881/ft2_4FGL_J0424.7+0036_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410881/ft1_4FGL_J0424.7+0036_daily_bin137.fits outfile=/scratch/kocevski/410881/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin137.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=274838401.0 tmax=275097601.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 5.04
user 4.04
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410881/ft2_4FGL_J0424.7+0036_daily_bin137.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/410881/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin137.fits evtable="EVENTS" outfile="/scratch/kocevski/410881/ft1_filtered_4FGL_J0424.7+0036_daily_bin137.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.19
user 0.34
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410881/ft1_filtered_4FGL_J0424.7+0036_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/410881/ft2_4FGL_J0424.7+0036_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/410881/ltcube_274838401_275097601_4FGL_J0424.7+0036_daily_bin137.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/410881/ft2_4FGL_J0424.7+0036_daily_bin137.fits
.....................!
real 16.63
user 15.26
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410881/ft1_filtered_4FGL_J0424.7+0036_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/410881/ft2_4FGL_J0424.7+0036_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/410881/ltcube_274838401_275097601_4FGL_J0424.7+0036_daily_bin137.fits outfile=/scratch/kocevski/410881/expmap_274838401_275097601_4FGL_J0424.7+0036_daily_bin137.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/410881/ltcube_274838401_275097601_4FGL_J0424.7+0036_daily_bin137.fits
.....................!
real 195.67
user 187.35
sys 6.59

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/410881/ft1_filtered_4FGL_J0424.7+0036_daily_bin137.fits scfile=/scratch/kocevski/410881/ft2_4FGL_J0424.7+0036_daily_bin137.fits outfile=/scratch/kocevski/410881/cmap_274838401_275097601_4FGL_J0424.7+0036_daily_bin137.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.20
user 0.39
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410881/ft1_filtered_4FGL_J0424.7+0036_daily_bin137.fits scfile=/scratch/kocevski/410881/ft2_4FGL_J0424.7+0036_daily_bin137.fits outfile=/scratch/kocevski/410881/cmap_HighResolution_274838401_275097601_4FGL_J0424.7+0036_daily_bin137.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.26
user 0.41
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7410       1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.527       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4863       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.031       1.0000         .10000E-03   10000.    
     9 'norm      '    .10748E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0172       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.604       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2101       1.0000         .10000E-03   10000.    
    15 'norm      '    .15911E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12227E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6436       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.624       1.0000         .10000E-03   10000.    
    20 'norm      '    .56788E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2454       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96768       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=   8047.507     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3009 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7413        1.9345        .37944E-07    .20753E-04
   2  Prefactor     69.518        56.296       -.20505E-05   -.58017E-04
   3  Prefactor     .10000E-03    20.188        .14951E-05** at limit **
   4  norm          16.898        18.475       -.30338E-06   -.24736E-04
   5  Prefactor     .10000E-03    11.862        .37890E-05** at limit **
   6  norm          2.4863        3.1391       -.41085E-07    .18351E-04
   7  Prefactor     .10000E-03    16.931       -.36616E-05** at limit **
   8  norm          31.054        16.370       -.10432E-05   -.17006E-03
   9  norm          .10000E-03    10.670       -.20051E-05** at limit **
  10  norm          3.6047        1.5908       -.33877E-07    .42120E-03
  11  Prefactor     2.0172        1.9364        .76204E-07    .46320E-03
  12  Prefactor     27.559        25.787        .14830E-05    .75386E-03
  13  Prefactor     .10000E-03    20.120        .99074E-06** at limit **
  14  Prefactor     2.2025        22.189        .57838E-06    .16033E-04
  15  norm          .10001E-03    2.6107       -.35477E-05** at limit **
  16  Prefactor     .10000E-03    20.270        .14793E-05** at limit **
  17  norm          2.8283        2.2316       -.23171E-07    .24091E-03
  18  Prefactor     5.6423        8.9528        .15729E-05    .64003E-03
  19  Prefactor     20.620        32.249       -.14918E-05    .42266E-04
  20  norm          .62598E-01    .83334        .37494E-06   -.12948E-02
  21  Prefactor     .10000E-03    16.189       -.28851E-05** at limit **
  22  norm          .10000E-03    .22925       -.97352E-08** at limit **
  23  Prefactor     .10000E-03    6.9733        .57762E-07** at limit **
  24  Normalizat    1.2450        .26394        .21555E-05    .47200E-03
  25  Prefactor     .96773        .92064E-01    .25531E-06    .12198E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74134
  Prefactor  = 69.5181
  Prefactor  = 0.0001
  norm       = 16.8977
  Prefactor  = 0.000100002
  norm       = 2.48634
  Prefactor  = 0.000100002
  norm       = 31.0535
  norm       = 0.000100001
  norm       = 3.60467
  Prefactor  = 2.01716
  Prefactor  = 27.5592
  Prefactor  = 0.0001
  Prefactor  = 2.20246
  norm       = 0.000100015
  Prefactor  = 0.0001
  norm       = 2.82827
  Prefactor  = 5.64229
  Prefactor  = 20.6202
  norm       = 0.062598
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.245
  Prefactor  = 0.967733
 **********
 **   18 **HESSE 
 **********

 FCN=   8047.507     FROM HESSE     STATUS=OK           429 CALLS     3438 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7413        1.9189        .12665E-03   -1.5444    
   2  Prefactor     69.518        56.622        .48140E-04   -1.4038    
   3  Prefactor     .10000E-03    20.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.898        18.478        .97406E-04   -1.4886    
   5  Prefactor     .10000E-03    12.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4863        3.1293        .17268E-03   -1.5393    
   7  Prefactor     .10000E-03    17.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.054        16.416        .71928E-04   -1.4593    
   9  norm          .10000E-03    10.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6047        1.5796        .68439E-04   -1.5328    
  11  Prefactor     2.0172        1.9171        .11380E-03   -1.5424    
  12  Prefactor     27.559        26.843        .76251E-04   -1.4658    
  13  Prefactor     .10000E-03    20.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2025        21.639        .27669E-03   -1.5411    
  15  norm          .10001E-03    4.1152        .23533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8283        2.2257        .11335E-03   -1.5372    
  18  Prefactor     5.6423        8.9981        .16910E-03   -1.5233    
  19  Prefactor     20.620        32.029        .88196E-04   -1.4799    
  20  norm          .62598E-01    10.215        .15556E-02   -1.5658    
  21  Prefactor     .10000E-03    16.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .42041        .82937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2450        .29832        .40019E-03   -.85223    
  25  Prefactor     .96773        .10501        .17378E-03   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21473e-08
Minuit parameter uncertainties:
  1  1.91896
  2  56.6658
  3  0.000190494
  4  18.4844
  5  0.000340921
  6  3.12947
  7  0.00036728
  8  16.4179
  9  0.000154776
  10  1.57963
  11  1.91721
  12  26.8546
  13  0.000115206
  14  13.8132
  15  0.000492272
  16  0.00016879
  17  2.22578
  18  9.0003
  19  32.0558
  20  1.59834
  21  0.0003019
  22  3.66173e-06
  23  1.00008e-06
  24  0.298731
  25  0.105031
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.017e+00  1.917e+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.677e-01  1.050e-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.245e+00  2.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 2.11e-05

TS (Fixed Index): 1.94
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410881/likelihoodResults_274838401_275097601_4FGL_J0424.7+0036_daily_bin137.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) = 8047.26352128
delta logL = 0.243886866569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8047.25381949
delta logL = 0.253588654987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2291       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7796       1.0000          .0000       10.000    
     3 'Normalizat'    1.2078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97535       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=   8047.254     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      246 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2287        17.644        .10145E-01    .81708E-03
   2  Index         2.7800        3.2325        .11780        .17649E-03
   3  Normalizat    1.2076        .83806E-01    .91468E-01    .20093E-04
   4  Prefactor     .97537        .29397E-01    .45958E-01   -.22826E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22872
  Index      = 2.77999
  Normalizat = 1.20764
  Prefactor  = 0.975373
 **********
 **   18 **HESSE 
 **********

 FCN=   8047.254     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2287        2.2633        .75261E-04   -1.5486    
   2  Index         2.7800        1.1067        .72026E-02   -.46006    
   3  Normalizat    1.2076        .27350        .40513E-03   -.86367    
   4  Prefactor     .97537        .10403        .17312E-03   -.93555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0858e-08
Minuit parameter uncertainties:
  1  2.26346
  2  1.11825
  3  0.273826
  4  0.104048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410881': 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) = 8047.2538193
delta logL = 0.253588846705

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.229e+00  2.263e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.780e+00  1.118e+00  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.754e-01  1.040e-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.208e+00  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.78 +/- 1.12
Photon Flux (Free Index): 9.13e-08 +/- 9.01e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.67e-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/410881/cmap_HighResolution_274838401_275097601_4FGL_J0424.7+0036_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='2.07e-05', photon_flux_error='4.82e-08', dlogl='2.54e-01', energy_flux='2.22e-05', photon_flux2='9.13e-08', job_status='DONE', time_completed='2021-08-20 13:46:37.167873', photon_index_error2='1.12', photon_index2='2.78', ts='1.94', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.67e-05', EG='1.25', time_epoch_completed='1629492397.17', return_code='0', job_id='410881', GAL2='0.98', EG2='1.21', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='9.01e-08', ts2='2.48', photon_index='2.21' WHERE bin_id='137' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 410881: <4FGL_J0424.7+0036_daily_bin137> in cluster <slac> Done

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

Your job looked like:

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

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

