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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin403
RA = 66.1945, Dec = 0.6028
tmin = 343785601, tmax = 344044801
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='412369', job_status='RUN', time_executed='2021-08-20 13:36:10.655008', time_epoch_executed='1629491770.66' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412369

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412369/ft1_4FGL_J0424.7+0036_daily_bin403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412369/ft2_4FGL_J0424.7+0036_daily_bin403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412369/ft1_4FGL_J0424.7+0036_daily_bin403.fits outfile=/scratch/kocevski/412369/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin403.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=343785601.0 tmax=344044801.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 3.38
user 3.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412369/ft2_4FGL_J0424.7+0036_daily_bin403.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/412369/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin403.fits evtable="EVENTS" outfile="/scratch/kocevski/412369/ft1_filtered_4FGL_J0424.7+0036_daily_bin403.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 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412369/ft1_filtered_4FGL_J0424.7+0036_daily_bin403.fits" evtable="EVENTS" scfile=/scratch/kocevski/412369/ft2_4FGL_J0424.7+0036_daily_bin403.fits sctable="SC_DATA" outfile=/scratch/kocevski/412369/ltcube_343785601_344044801_4FGL_J0424.7+0036_daily_bin403.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/412369/ft2_4FGL_J0424.7+0036_daily_bin403.fits
.....................!
real 11.72
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412369/ft1_filtered_4FGL_J0424.7+0036_daily_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/412369/ft2_4FGL_J0424.7+0036_daily_bin403.fits sctable="SC_DATA" expcube=/scratch/kocevski/412369/ltcube_343785601_344044801_4FGL_J0424.7+0036_daily_bin403.fits outfile=/scratch/kocevski/412369/expmap_343785601_344044801_4FGL_J0424.7+0036_daily_bin403.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/412369/ltcube_343785601_344044801_4FGL_J0424.7+0036_daily_bin403.fits
.....................!
real 189.48
user 185.07
sys 4.07

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/412369/ft1_filtered_4FGL_J0424.7+0036_daily_bin403.fits scfile=/scratch/kocevski/412369/ft2_4FGL_J0424.7+0036_daily_bin403.fits outfile=/scratch/kocevski/412369/cmap_343785601_344044801_4FGL_J0424.7+0036_daily_bin403.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 0.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412369/ft1_filtered_4FGL_J0424.7+0036_daily_bin403.fits scfile=/scratch/kocevski/412369/ft2_4FGL_J0424.7+0036_daily_bin403.fits outfile=/scratch/kocevski/412369/cmap_HighResolution_343785601_344044801_4FGL_J0424.7+0036_daily_bin403.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 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412369/ft1_filtered_4FGL_J0424.7+0036_daily_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/412369/ft2_4FGL_J0424.7+0036_daily_bin403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412369/Model_4FGL_J0424.7+0036_daily_bin403.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/412369/ft1_filtered_4FGL_J0424.7+0036_daily_bin403.fits.....................!
real 114.28
user 112.73
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.025       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9911       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.020       1.0000         .10000E-03   10000.    
     8 'norm      '    .10690E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    32.064       1.0000         .10000E-03   10000.    
    10 'norm      '    5.5308       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4395       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.2399       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4253       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4170       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2083       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94940       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=   8432.686     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2910 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.024        3.0677       -.20462E-06    .15357E-03
   2  Prefactor     37.570        60.050       -.29257E-04    .38548E-04
   3  Prefactor     3.9845        21.024       -.78983E-05   -.76818E-05
   4  norm          .10000E-03    16.384       -.10947E-04** at limit **
   5  Prefactor     .10000E-03    13.927        .69596E-05** at limit **
   6  norm          .10000E-03    1.6605       -.40853E-07** at limit **
   7  Prefactor     47.008        31.896        .71849E-05    .77557E-04
   8  norm          .10039E-03    5.8185       -.43841E-05** at limit **
   9  norm          32.083        29.394       -.38387E-04   -.19146E-03
  10  norm          5.5318        1.6086        .20173E-06    .29996E-03
  11  Prefactor     .26848        1.6375        .34170E-05   -.69773E-03
  12  Prefactor     .10000E-03    12.589       -.56154E-05** at limit **
  13  Prefactor     .10000E-03    10.037        .88797E-06** at limit **
  14  Prefactor     .10000E-03    6.9436       -.25994E-07** at limit **
  15  norm          .10000E-03    1.0827        .10345E-06** at limit **
  16  Prefactor     .10000E-03    21.425        .83186E-05** at limit **
  17  norm          6.4394        3.1874       -.23152E-06   -.14438E-03
  18  Prefactor     .10000E-03    2.7774       -.11172E-06** at limit **
  19  Prefactor     .10000E-03    8.7855       -.12600E-06** at limit **
  20  norm          1.2391        2.1258       -.10437E-05   -.13645E-02
  21  Prefactor     .10000E-03    14.152        .55477E-05** at limit **
  22  norm          1.4252        .69657       -.16391E-06   -.45993E-03
  23  Prefactor     6.4160        24.799       -.30015E-05    .37514E-05
  24  Normalizat    1.2084        .25137        .58317E-05    .43655E-03
  25  Prefactor     .94946        .91920E-01    .23314E-05    .31635E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0244
  Prefactor  = 37.5704
  Prefactor  = 3.98454
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 47.0077
  norm       = 0.000100386
  norm       = 32.0834
  norm       = 5.53176
  Prefactor  = 0.268483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.43941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23905
  Prefactor  = 0.0001
  norm       = 1.42517
  Prefactor  = 6.41597
  Normalizat = 1.20844
  Prefactor  = 0.949455
 **********
 **   18 **HESSE 
 **********

 FCN=   8432.686     FROM HESSE     STATUS=OK           419 CALLS     3329 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.024        3.0688        .81590E-04   -1.5044    
   2  Prefactor     37.570        59.771        .65172E-04   -1.4481    
   3  Prefactor     3.9845        20.758        .20188E-03   -1.5309    
   4  norm          .10000E-03    16.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6647        .11553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.008        31.856        .58474E-04   -1.4336    
   8  norm          .10039E-03    31.866        .41811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.083        28.902        .70763E-04   -1.4575    
  10  norm          5.5318        1.6011        .59277E-04   -1.5238    
  11  Prefactor     .26848        1.5447        .21302E-03   -1.5604    
  12  Prefactor     .10000E-03    12.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1116        .18647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4394        3.1972        .10766E-03   -1.5200    
  18  Prefactor     .10000E-03    2.8058        .14943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.7932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2391        2.0964        .16390E-03   -1.5485    
  21  Prefactor     .10000E-03    14.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4252        .69169        .51715E-04   -1.5469    
  23  Prefactor     6.4160        24.671        .15844E-03   -1.5201    
  24  Normalizat    1.2084        .27707        .40681E-03   -.86342    
  25  Prefactor     .94946        .10391        .17554E-03   -.94434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38512e-08
Minuit parameter uncertainties:
  1  3.06882
  2  59.8665
  3  18.1989
  4  1.23594e-05
  5  0.000186718
  6  1.1481e-06
  7  31.868
  8  0.00701359
  9  28.9145
  10  1.60112
  11  1.28779
  12  0.000155506
  13  2.99899e-05
  14  1.64089e-05
  15  7.52006e-06
  16  7.07578e-05
  17  3.1973
  18  1.80077e-05
  19  1.51085e-05
  20  2.09654
  21  2.88312e-05
  22  0.69169
  23  24.7101
  24  0.277404
  25  0.103929
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.685e-01  1.288e+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.495e-01  1.039e-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.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412369/likelihoodResults_343785601_344044801_4FGL_J0424.7+0036_daily_bin403.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) = 8432.68444343
delta logL = 0.00170792430799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8432.6840148
delta logL = 0.00213655865264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30382       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1023       1.0000          .0000       10.000    
     3 'Normalizat'    1.2090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94931       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8432.684     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      256 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30505        1.7267        .22045E-03    .14853E-04
   2  Index         2.1071        1.5731        .87243E-02    .24524E-05
   3  Normalizat    1.2089        .25977        .40674E-03   -.51429E-05
   4  Prefactor     .94930        .10154        .17556E-03   -.87812E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.30505
  Index      = 2.10711
  Normalizat = 1.2089
  Prefactor  = 0.949304
 **********
 **   18 **HESSE 
 **********

 FCN=   8432.684     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30505        1.6457        .88178E-05   -1.5598    
   2  Index         2.1071        1.5382        .34897E-03   -.61698    
   3  Normalizat    1.2089        .25991        .16270E-04   -.86328    
   4  Prefactor     .94930        .10159        .35111E-04   -.94439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56109e-13
Minuit parameter uncertainties:
  1  1.41692
  2  1.5772
  3  0.260187
  4  0.101606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412369': 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) = 8432.6840087
delta logL = 0.00214265978866

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.050e-01  1.417e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.107e+00  1.577e+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.493e-01  1.016e-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.209e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/412369/cmap_HighResolution_343785601_344044801_4FGL_J0424.7+0036_daily_bin403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-20 13:48:58.469343', job_id='412369', GAL2='0.95', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1629492538.47', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.14e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='403' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:48:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 412369: <4FGL_J0424.7+0036_daily_bin403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin403 66.1945 0.6028 343785601 344044801 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 :                                   767.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

