/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_bin292
RA = 66.1945, Dec = 0.6028
tmin = 315014401, tmax = 315273601
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='412213', job_status='RUN', time_executed='2021-08-20 13:38:13.875264', time_epoch_executed='1629491893.88' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412213/ft1_4FGL_J0424.7+0036_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412213/ft2_4FGL_J0424.7+0036_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412213/ft1_4FGL_J0424.7+0036_daily_bin292.fits outfile=/scratch/kocevski/412213/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin292.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=315014401.0 tmax=315273601.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 12.00
user 3.36
sys 8.58

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412213/ft2_4FGL_J0424.7+0036_daily_bin292.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/412213/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin292.fits evtable="EVENTS" outfile="/scratch/kocevski/412213/ft1_filtered_4FGL_J0424.7+0036_daily_bin292.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.95
user 0.35
sys 8.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412213/ft1_filtered_4FGL_J0424.7+0036_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/412213/ft2_4FGL_J0424.7+0036_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/412213/ltcube_315014401_315273601_4FGL_J0424.7+0036_daily_bin292.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/412213/ft2_4FGL_J0424.7+0036_daily_bin292.fits
.....................!
real 22.51
user 12.72
sys 9.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412213/ft1_filtered_4FGL_J0424.7+0036_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/412213/ft2_4FGL_J0424.7+0036_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/412213/ltcube_315014401_315273601_4FGL_J0424.7+0036_daily_bin292.fits outfile=/scratch/kocevski/412213/expmap_315014401_315273601_4FGL_J0424.7+0036_daily_bin292.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/412213/ltcube_315014401_315273601_4FGL_J0424.7+0036_daily_bin292.fits
.....................!
real 203.30
user 186.37
sys 16.51

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/412213/ft1_filtered_4FGL_J0424.7+0036_daily_bin292.fits scfile=/scratch/kocevski/412213/ft2_4FGL_J0424.7+0036_daily_bin292.fits outfile=/scratch/kocevski/412213/cmap_315014401_315273601_4FGL_J0424.7+0036_daily_bin292.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.73
user 0.38
sys 8.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412213/ft1_filtered_4FGL_J0424.7+0036_daily_bin292.fits scfile=/scratch/kocevski/412213/ft2_4FGL_J0424.7+0036_daily_bin292.fits outfile=/scratch/kocevski/412213/cmap_HighResolution_315014401_315273601_4FGL_J0424.7+0036_daily_bin292.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.50
user 0.38
sys 8.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412213/ft1_filtered_4FGL_J0424.7+0036_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/412213/ft2_4FGL_J0424.7+0036_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412213/Model_4FGL_J0424.7+0036_daily_bin292.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/412213/ft1_filtered_4FGL_J0424.7+0036_daily_bin292.fits.....................!
real 108.09
user 95.74
sys 12.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3616       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14587E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.657       1.0000         .10000E-03   10000.    
     4 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4887       1.0000         .10000E-03   10000.    
     6 'norm      '    .16484E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11843E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.504       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5260       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8191       1.0000         .10000E-03   10000.    
    15 'norm      '    .69230E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.040       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7745       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13346E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .46570       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2117       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.489       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79830       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0448       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=   6746.839     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3031 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3610        2.6055        .17749E-07   -.11656E-04
   2  Prefactor     .10001E-03    293.12       -.11181E-04** at limit **
   3  Prefactor     35.650        20.707        .99528E-07    .65002E-04
   4  norm          .10000E-03    9.2342       -.75878E-08** at limit **
   5  Prefactor     4.4896        35.622        .68690E-05   -.67217E-04
   6  norm          .10000E-03    4.1199       -.11547E-07** at limit **
   7  Prefactor     .10000E-03    179.21        .89487E-06** at limit **
   8  norm          .10000E-03    6.2600        .20795E-07** at limit **
   9  norm          .10000E-03    20.185       -.26590E-06** at limit **
  10  norm          .10000E-03    .82201       -.86947E-07** at limit **
  11  Prefactor     2.0693        2.3224       -.35912E-07   -.67370E-04
  12  Prefactor     26.582        24.628       -.92610E-07   -.19189E-03
  13  Prefactor     8.5387        46.679        .13387E-05    .19973E-04
  14  Prefactor     8.8199        11.322       -.65795E-07   -.14629E-04
  15  norm          .10001E-03    1.5158       -.61675E-07** at limit **
  16  Prefactor     35.069        49.173        .37245E-05    .10040E-03
  17  norm          2.7747        2.4964        .55347E-07   -.90346E-04
  18  Prefactor     2.7890        6.2226        .73622E-06   -.68706E-04
  19  Prefactor     .10000E-03    77.991       -.23669E-05** at limit **
  20  norm          .46531        1.7997        .32667E-06   -.31211E-03
  21  Prefactor     .10000E-03    14.456        .52138E-07** at limit **
  22  norm          1.2117        .63764       -.10172E-08   -.53287E-04
  23  Prefactor     22.493        31.254       -.28022E-06   -.14812E-04
  24  Normalizat    .79844        .25766        .24526E-06   -.85614E-05
  25  Prefactor     1.0448        .96366E-01   -.38271E-06    .11201E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.36098
  Prefactor  = 0.000100009
  Prefactor  = 35.6504
  norm       = 0.0001
  Prefactor  = 4.4896
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.06929
  Prefactor  = 26.5818
  Prefactor  = 8.53873
  Prefactor  = 8.81991
  norm       = 0.000100013
  Prefactor  = 35.0686
  norm       = 2.77467
  Prefactor  = 2.789
  Prefactor  = 0.000100001
  norm       = 0.465306
  Prefactor  = 0.0001
  norm       = 1.21169
  Prefactor  = 22.4927
  Normalizat = 0.798438
  Prefactor  = 1.04482
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.839     FROM HESSE     STATUS=OK           441 CALLS     3472 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3610        2.6058        .80799E-04   -1.5203    
   2  Prefactor     .10001E-03    306.82        .40985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.650        20.695        .67113E-04   -1.4513    
   4  norm          .10000E-03    9.2444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4896        37.689        .95020E-03   -1.5284    
   6  norm          .10000E-03    13.807        .31443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    186.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.2901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5696        .13617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0693        2.2434        .11125E-03   -1.5420    
  12  Prefactor     26.582        27.248        .77815E-04   -1.4676    
  13  Prefactor     8.5387        45.830        .13729E-03   -1.5123    
  14  Prefactor     8.8199        11.264        .13497E-03   -1.5114    
  15  norm          .10001E-03    6.1387        .29502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.069        50.327        .67699E-04   -1.4523    
  17  norm          2.7747        2.4844        .11592E-03   -1.5375    
  18  Prefactor     2.7890        6.2278        .24383E-03   -1.5374    
  19  Prefactor     .10000E-03    80.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .46531        2.9401        .19449E-02   -1.5572    
  21  Prefactor     .10000E-03    14.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2117        .62935        .46167E-04   -1.5488    
  23  Prefactor     22.493        30.882        .84464E-04   -1.4759    
  24  Normalizat    .79844        .27623        .43286E-03   -1.0013    
  25  Prefactor     1.0448        .10513        .15741E-03   -.91250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37691e-08
Minuit parameter uncertainties:
  1  2.60589
  2  0.00339868
  3  20.6993
  4  7.63548e-09
  5  26.038
  6  2.22837e-05
  7  0.000194944
  8  6.89354e-07
  9  2.79754e-05
  10  9.24952e-06
  11  2.2435
  12  27.2607
  13  39.6113
  14  11.2666
  15  0.000562176
  16  50.3879
  17  2.48447
  18  6.22921
  19  0.000455252
  20  2.3392
  21  5.57302e-06
  22  0.629356
  23  30.9043
  24  0.276719
  25  0.105154
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.069e+00  2.244e+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.045e+00  1.052e-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.984e-01  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.21e-08 +/- 5.64e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 2.47e-05

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

Saving results to:
/scratch/kocevski/412213/likelihoodResults_315014401_315273601_4FGL_J0424.7+0036_daily_bin292.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) = 6746.82765426
delta logL = 0.0113710400319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6746.82239125
delta logL = 0.0166340551359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3216       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0949       1.0000          .0000       10.000    
     3 'Normalizat'    .80320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0437       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=   6746.822     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3209        73.342        .67301E-02    .58970E-03
   2  Index         2.0949        5.8888        .15112        .78364E-04
   3  Normalizat    .80319        .10952        .97424E-01    .29743E-04
   4  Prefactor     1.0437        .39550E-01    .40296E-01   -.51919E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.3209
  Index      = 2.09492
  Normalizat = 0.803192
  Prefactor  = 1.04368
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.822     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3209        2.6351        .11772E-03   -1.5403    
   2  Index         2.0949        .65251        .89617E-02   -.61998    
   3  Normalizat    .80319        .24795        .43171E-03   -.99950    
   4  Prefactor     1.0437        .10211        .15748E-03   -.91287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03287e-12
Minuit parameter uncertainties:
  1  2.6352
  2  0.655343
  3  0.248301
  4  0.102133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412213': 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) = 6746.82239119
delta logL = 0.0166341073773

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.321e+00  2.635e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.095e+00  6.553e-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.044e+00  1.021e-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.032e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.09 +/- 0.66
Photon Flux (Free Index): 4.76e-08 +/- 5.27e-08
Energy Flux (Free Index): 2.64e-05 +/- 3.51e-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/412213/cmap_HighResolution_315014401_315273601_4FGL_J0424.7+0036_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.21e-08', energy_flux2='2.64e-05', photon_flux_error='5.64e-08', dlogl='1.66e-02', energy_flux='2.28e-05', photon_flux2='4.76e-08', job_status='DONE', time_completed='2021-08-20 13:52:06.681258', photon_index_error2='0.66', photon_index2='2.09', ts='1.36', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='3.51e-05', EG='0.80', time_epoch_completed='1629492726.68', return_code='0', job_id='412213', GAL2='1.04', EG2='0.80', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='5.27e-08', ts2='1.39', photon_index='2.21' WHERE bin_id='292' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:52:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 412213: <4FGL_J0424.7+0036_daily_bin292> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin292> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:43 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:35:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:35:45 2021
Terminated at Fri Aug 20 13:52:10 2021
Results reported at Fri Aug 20 13:52:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin292 66.1945 0.6028 315014401 315273601 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 :                                   963.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            987 sec.

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

