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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin595
RA = 66.1945, Dec = 0.6028
tmin = 393552001, tmax = 393811201
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='413699', job_status='RUN', time_executed='2021-08-20 13:43:35.012979', time_epoch_executed='1629492215.01' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413699

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413699/ft1_4FGL_J0424.7+0036_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413699/ft2_4FGL_J0424.7+0036_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413699/ft1_4FGL_J0424.7+0036_daily_bin595.fits outfile=/scratch/kocevski/413699/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin595.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=393552001.0 tmax=393811201.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.40
user 3.27
sys 2.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413699/ft1_filtered_4FGL_J0424.7+0036_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/413699/ft2_4FGL_J0424.7+0036_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/413699/ltcube_393552001_393811201_4FGL_J0424.7+0036_daily_bin595.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/413699/ft2_4FGL_J0424.7+0036_daily_bin595.fits
.....................!
real 13.92
user 11.44
sys 2.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413699/ft1_filtered_4FGL_J0424.7+0036_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/413699/ft2_4FGL_J0424.7+0036_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/413699/ltcube_393552001_393811201_4FGL_J0424.7+0036_daily_bin595.fits outfile=/scratch/kocevski/413699/expmap_393552001_393811201_4FGL_J0424.7+0036_daily_bin595.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/413699/ltcube_393552001_393811201_4FGL_J0424.7+0036_daily_bin595.fits
.....................!
real 193.32
user 185.76
sys 7.18

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/413699/ft1_filtered_4FGL_J0424.7+0036_daily_bin595.fits scfile=/scratch/kocevski/413699/ft2_4FGL_J0424.7+0036_daily_bin595.fits outfile=/scratch/kocevski/413699/cmap_393552001_393811201_4FGL_J0424.7+0036_daily_bin595.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 2.43
user 0.39
sys 2.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413699/ft1_filtered_4FGL_J0424.7+0036_daily_bin595.fits scfile=/scratch/kocevski/413699/ft2_4FGL_J0424.7+0036_daily_bin595.fits outfile=/scratch/kocevski/413699/cmap_HighResolution_393552001_393811201_4FGL_J0424.7+0036_daily_bin595.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 2.39
user 0.38
sys 1.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413699/ft1_filtered_4FGL_J0424.7+0036_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/413699/ft2_4FGL_J0424.7+0036_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413699/Model_4FGL_J0424.7+0036_daily_bin595.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/413699/ft1_filtered_4FGL_J0424.7+0036_daily_bin595.fits.....................!
real 132.44
user 128.39
sys 3.74

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0225       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.464       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2215       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1895       1.0000         .10000E-03   10000.    
     9 'norm      '    4.5557       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29418E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58558       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    78.094       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11393E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1093       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.371       1.0000         .10000E-03   10000.    
    22 'norm      '    .72373E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.713       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0385       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96806       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=   8691.445     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2532 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0228        1.7257       -.65767E-07    .80720E-04
   2  Prefactor     .10000E-03    80.539        .42407E-05** at limit **
   3  Prefactor     22.461        16.253        .14675E-06    .13815E-04
   4  norm          .10000E-03    5.8220        .94069E-08** at limit **
   5  Prefactor     .10000E-03    14.558        .26537E-06** at limit **
   6  norm          4.2207        4.3320       -.19335E-06    .21365E-04
   7  Prefactor     .10000E-03    21.008       -.19017E-05** at limit **
   8  norm          3.1826        10.201       -.11244E-05    .11287E-03
   9  norm          4.5544        17.066       -.10424E-05   -.84480E-04
  10  norm          3.8347        1.5774       -.14177E-06   -.98296E-03
  11  Prefactor     .10000E-03    .97510        .71374E-06** at limit **
  12  Prefactor     .10000E-03    22.996        .10173E-04** at limit **
  13  Prefactor     3.0290        259.41        .39920E-05    .35884E-05
  14  Prefactor     .66960        44.135        .16830E-04   -.16142E-05
  15  norm          .10000E-03    .67862        .14045E-07** at limit **
  16  Prefactor     .10000E-03    46.133       -.38769E-05** at limit **
  17  norm          78.092        7.1246        .16814E-06    .79645E-03
  18  Prefactor     .10000E-03    2.3432       -.16073E-07** at limit **
  19  Prefactor     .10000E-03    22.164        .14288E-05** at limit **
  20  norm          1.1083        2.0134       -.10001E-05   -.88021E-04
  21  Prefactor     19.356        23.372        .63292E-06    .81555E-04
  22  norm          .10000E-03    .33470       -.90091E-07** at limit **
  23  Prefactor     41.723        34.353       -.40387E-06   -.58113E-04
  24  Normalizat    1.0382        .26065       -.12425E-05    .58391E-04
  25  Prefactor     .96813        .91664E-01    .40644E-06   -.90628E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0228
  Prefactor  = 0.000100002
  Prefactor  = 22.4605
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.22071
  Prefactor  = 0.000100001
  norm       = 3.18262
  norm       = 4.55436
  norm       = 3.83466
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.029
  Prefactor  = 0.669601
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 78.0923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10828
  Prefactor  = 19.3562
  norm       = 0.0001
  Prefactor  = 41.7234
  Normalizat = 1.03819
  Prefactor  = 0.968135
 **********
 **   18 **HESSE 
 **********

 FCN=   8691.445     FROM HESSE     STATUS=OK           439 CALLS     2971 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0228        1.7202        .10890E-03   -1.5424    
   2  Prefactor     .10000E-03    82.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.461        16.250        .84512E-04   -1.4760    
   4  norm          .10000E-03    5.8227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2207        4.3233        .18871E-03   -1.5297    
   7  Prefactor     .10000E-03    21.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1826        10.197        .22689E-03   -1.5351    
   9  norm          4.5544        17.053        .18860E-03   -1.5281    
  10  norm          3.8347        1.5675        .67481E-04   -1.5316    
  11  Prefactor     .10000E-03    .97909        .17738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    76.202        .54147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0290        258.20        .23243E-03   -1.5360    
  14  Prefactor     .66960        54.316        .44003E-02   -1.5544    
  15  norm          .10000E-03    .69083        .74947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          78.092        7.1246        .45443E-04   -1.3938    
  18  Prefactor     .10000E-03    2.3611        .13934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1083        2.0028        .17185E-03   -1.5497    
  21  Prefactor     19.356        23.384        .91001E-04   -1.4828    
  22  norm          .10000E-03    .33575        .17546E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     41.723        34.302        .62067E-04   -1.4415    
  24  Normalizat    1.0382        .28683        .45373E-03   -.91762    
  25  Prefactor     .96813        .10208        .18001E-03   -.93799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19508e-08
Minuit parameter uncertainties:
  1  1.72023
  2  0.000870517
  3  16.2534
  4  8.06804e-07
  5  7.89105e-06
  6  4.32363
  7  0.000260605
  8  10.2025
  9  17.0708
  10  1.5675
  11  2.26075e-05
  12  0.000918649
  13  56.1826
  14  12.072
  15  1.41868e-06
  16  0.000684526
  17  7.12473
  18  2.7663e-06
  19  0.00014447
  20  2.00291
  21  23.395
  22  4.46537e-07
  23  34.3178
  24  0.287256
  25  0.102101
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  2.261e-05  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.681e-01  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:  1.038e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413699/likelihoodResults_393552001_393811201_4FGL_J0424.7+0036_daily_bin595.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): 102
logL (Free Index) = 8691.44944092
delta logL = -0.00486626050406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8691.44457469
delta logL = -3.15012584906e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2121       1.0000          .0000       10.000    
     3 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96812       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=   8691.445     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .63702        .90712E-02** at limit **
   2  Index         2.2109        5.8307        .50000        .96716E-05
   3  Normalizat    1.0382        .55415E-02    .10238        .30372E-04
   4  Prefactor     .96814        .21417E-02    .45867E-01   -.37388E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21091
  Normalizat = 1.03818
  Prefactor  = 0.968135
 **********
 **   18 **HESSE 
 **********

 FCN=   8691.445     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.770        .17742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2109        5.2710        .50000       -.59176    
   3  Normalizat    1.0382        .70199E-01    .45373E-03   -.91762    
   4  Prefactor     .96814        .27166E-01    .18001E-03   -.93799    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.57853e-07
Minuit parameter uncertainties:
  1  1.26861e-07
  2  320.444
  3  0.0702057
  4  0.0271666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413699': 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): 102
logL (Free Index) = 8691.44457465
delta logL = 5.63704816159e-09

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.269e-07  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.211e+00  3.204e+02  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.681e-01  2.717e-02  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  1.038e+00  7.021e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.195 0.603

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/413699/cmap_HighResolution_393552001_393811201_4FGL_J0424.7+0036_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2021-08-20 13:57:13.521536', job_id='413699', GAL2='0.97', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1629493033.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.64e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='595' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:57:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 413699: <4FGL_J0424.7+0036_daily_bin595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin595 66.1945 0.6028 393552001 393811201 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 :                                   847.28 sec.
    Max Memory :                                 1206 MB
    Average Memory :                             311.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

