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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin420
RA = 66.1945, Dec = 0.6028
tmin = 348192001, tmax = 348451201
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='412386', job_status='RUN', time_executed='2021-08-20 13:38:38.551355', time_epoch_executed='1629491918.55' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412386/ft1_4FGL_J0424.7+0036_daily_bin420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412386/ft2_4FGL_J0424.7+0036_daily_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412386/ft1_4FGL_J0424.7+0036_daily_bin420.fits outfile=/scratch/kocevski/412386/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin420.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=348192001.0 tmax=348451201.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.65
user 3.20
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412386/ft1_filtered_4FGL_J0424.7+0036_daily_bin420.fits" evtable="EVENTS" scfile=/scratch/kocevski/412386/ft2_4FGL_J0424.7+0036_daily_bin420.fits sctable="SC_DATA" outfile=/scratch/kocevski/412386/ltcube_348192001_348451201_4FGL_J0424.7+0036_daily_bin420.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/412386/ft2_4FGL_J0424.7+0036_daily_bin420.fits
.....................!
real 12.14
user 11.50
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412386/ft1_filtered_4FGL_J0424.7+0036_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/412386/ft2_4FGL_J0424.7+0036_daily_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/412386/ltcube_348192001_348451201_4FGL_J0424.7+0036_daily_bin420.fits outfile=/scratch/kocevski/412386/expmap_348192001_348451201_4FGL_J0424.7+0036_daily_bin420.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/412386/ltcube_348192001_348451201_4FGL_J0424.7+0036_daily_bin420.fits
.....................!
real 193.40
user 187.34
sys 5.74

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/412386/ft1_filtered_4FGL_J0424.7+0036_daily_bin420.fits scfile=/scratch/kocevski/412386/ft2_4FGL_J0424.7+0036_daily_bin420.fits outfile=/scratch/kocevski/412386/cmap_348192001_348451201_4FGL_J0424.7+0036_daily_bin420.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.76
user 0.35
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412386/ft1_filtered_4FGL_J0424.7+0036_daily_bin420.fits scfile=/scratch/kocevski/412386/ft2_4FGL_J0424.7+0036_daily_bin420.fits outfile=/scratch/kocevski/412386/cmap_HighResolution_348192001_348451201_4FGL_J0424.7+0036_daily_bin420.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.78
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412386/ft1_filtered_4FGL_J0424.7+0036_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/412386/ft2_4FGL_J0424.7+0036_daily_bin420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412386/Model_4FGL_J0424.7+0036_daily_bin420.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/412386/ft1_filtered_4FGL_J0424.7+0036_daily_bin420.fits.....................!
real 104.64
user 102.89
sys 1.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8657       1.0000         .10000E-03   10000.    
     2 'Prefactor '    78.657       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .76130       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.795       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9404       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57669E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10857E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.344       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.149       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3912       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .62799       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.5523       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2863       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81008       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=   7205.032     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2923 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8655        1.8444       -.11713E-06   -.91550E-04
   2  Prefactor     78.645        51.362       -.12148E-04   -.28452E-04
   3  Prefactor     .10000E-03    4.4638        .14571E-06** at limit **
   4  norm          .58406        17.460       -.50828E-05    .35706E-03
   5  Prefactor     .10000E-03    13.850       -.16081E-05** at limit **
   6  norm          .10000E-03    1.3383        .17500E-07** at limit **
   7  Prefactor     12.792        16.007       -.13290E-05   -.11881E-03
   8  norm          .10000E-03    6.6351        .85176E-06** at limit **
   9  norm          .10000E-03    16.171       -.90311E-05** at limit **
  10  norm          3.9406        1.4070       -.88224E-07    .14006E-03
  11  Prefactor     .10000E-03    .65980       -.14817E-06** at limit **
  12  Prefactor     .10001E-03    58.983        .53923E-04** at limit **
  13  Prefactor     .10000E-03    18.550        .32747E-05** at limit **
  14  Prefactor     .10000E-03    5.3719       -.40400E-06** at limit **
  15  norm          .10000E-03    1.4315       -.73292E-06** at limit **
  16  Prefactor     50.341        37.902       -.41574E-05   -.32567E-04
  17  norm          .10000E-03    .95147       -.59476E-07** at limit **
  18  Prefactor     22.148        9.5855       -.32086E-06   -.24485E-03
  19  Prefactor     .10000E-03    9.2372       -.31288E-05** at limit **
  20  norm          1.3899        1.9728        .62427E-06   -.39227E-03
  21  Prefactor     .10000E-03    12.329        .81205E-05** at limit **
  22  norm          .62805        .53120       -.88427E-07   -.83664E-03
  23  Prefactor     9.5387        33.830       -.26031E-04   -.16563E-04
  24  Normalizat    1.2864        .22764        .30728E-05   -.21336E-03
  25  Prefactor     .81012        .85054E-01    .68641E-06   -.23042E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.86555
  Prefactor  = 78.6449
  Prefactor  = 0.0001
  norm       = 0.584061
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7922
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.94064
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 50.3408
  norm       = 0.0001
  Prefactor  = 22.1476
  Prefactor  = 0.0001
  norm       = 1.38992
  Prefactor  = 0.0001
  norm       = 0.628047
  Prefactor  = 9.53874
  Normalizat = 1.28637
  Prefactor  = 0.810121
 **********
 **   18 **HESSE 
 **********

 FCN=   7205.032     FROM HESSE     STATUS=OK           425 CALLS     3348 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8655        1.8435        .89394E-04   -1.5369    
   2  Prefactor     78.645        51.467        .45281E-04   -1.3932    
   3  Prefactor     .10000E-03    4.4704        .17514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .58406        155.52        .68331E-02   -1.5555    
   5  Prefactor     .10000E-03    13.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3398        .95878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.792        16.014        .11198E-03   -1.4992    
   8  norm          .10000E-03    6.6804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9406        1.3936        .56953E-04   -1.5311    
  11  Prefactor     .10000E-03    1.0657        .13200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    59.630        .42170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9225        .19469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.341        37.933        .56520E-04   -1.4288    
  17  norm          .10000E-03    .96565        .80787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.148        9.5481        .85108E-04   -1.4766    
  19  Prefactor     .10000E-03    9.2456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3899        1.9325        .13163E-03   -1.5472    
  21  Prefactor     .10000E-03    12.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .62805        .52541        .55052E-04   -1.5549    
  23  Prefactor     9.5387        33.691        .12966E-03   -1.5090    
  24  Normalizat    1.2864        .25400        .35087E-03   -.83974    
  25  Prefactor     .81012        .95868E-01    .16734E-03   -.99356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06597e-08
Minuit parameter uncertainties:
  1  1.8435
  2  51.496
  3  1.61578e-05
  4  19.11
  5  1.00814e-05
  6  2.90193e-07
  7  16.0195
  8  2.18977e-05
  9  4.51256e-05
  10  1.3936
  11  1.52426e-05
  12  0.00164993
  13  2.15485e-05
  14  1.38918e-05
  15  0.000123604
  16  37.9513
  17  4.63154e-06
  18  9.54879
  19  5.43385e-06
  20  1.93262
  21  1.20479e-05
  22  0.52541
  23  33.7579
  24  0.254249
  25  0.0958877
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.524e-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:  8.101e-01  9.589e-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.286e+00  2.542e-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: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412386/likelihoodResults_348192001_348451201_4FGL_J0424.7+0036_daily_bin420.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) = 7205.03624024
delta logL = -0.00446896301855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7205.03177221
delta logL = -9.40068275668e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10724E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1715       1.0000          .0000       10.000    
     3 'Normalizat'    1.2867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80997       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=   7205.028     FROM MIGRAD    STATUS=CONVERGED    194 CALLS      357 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68528E-01    83.071        .28249E-01   -.21685E-02
   2  Index         1.2563        8.2478        .50000       -.83617E-04
   3  Normalizat    1.2862        .71561E-01    .79274E-01   -.11776E-03
   4  Prefactor     .80996        .27710E-01    .43847E-01   -.29835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0685275
  Index      = 1.25629
  Normalizat = 1.28616
  Prefactor  = 0.809957
 **********
 **   18 **HESSE 
 **********

 FCN=   7205.028     FROM HESSE     STATUS=OK            33 CALLS      390 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68528E-01    2.7505        .15259E-02   -1.5760    
   2  Index         1.2563        2.1425        .40575E-01   -.84616    
   3  Normalizat    1.2862        .24174        .35089E-03   -.83980    
   4  Prefactor     .80996        .94532E-01    .16735E-03   -.99362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37481e-09
Minuit parameter uncertainties:
  1  0.867699
  2  2.32968
  3  0.24195
  4  0.0945505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412386': 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) = 7205.02834299
delta logL = 0.00342828665453

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  6.853e-02  8.677e-01  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.256e+00  2.330e+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:  8.100e-01  9.455e-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.286e+00  2.419e-01  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/412386/cmap_HighResolution_348192001_348451201_4FGL_J0424.7+0036_daily_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-08-20 13:50:43.678037', job_id='412386', GAL2='0.81', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1629492643.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.43e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='420' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 412386: <4FGL_J0424.7+0036_daily_bin420> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin420> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:36:00 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:36:01 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:36:01 2021
Terminated at Fri Aug 20 13:50:44 2021
Results reported at Fri Aug 20 13:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin420 66.1945 0.6028 348192001 348451201 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 :                                   727.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

