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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin510
RA = 66.1945, Dec = 0.6028
tmin = 371520001, tmax = 371779201
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='413574', job_status='RUN', time_executed='2021-08-20 13:43:31.000425', time_epoch_executed='1629492211.0' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413574

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413574/ft1_4FGL_J0424.7+0036_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413574/ft2_4FGL_J0424.7+0036_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413574/ft1_4FGL_J0424.7+0036_daily_bin510.fits outfile=/scratch/kocevski/413574/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin510.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=371520001.0 tmax=371779201.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 4.17
sys 1.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413574/ft1_filtered_4FGL_J0424.7+0036_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/413574/ft2_4FGL_J0424.7+0036_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/413574/ltcube_371520001_371779201_4FGL_J0424.7+0036_daily_bin510.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/413574/ft2_4FGL_J0424.7+0036_daily_bin510.fits
.....................!
real 13.21
user 11.79
sys 1.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413574/ft1_filtered_4FGL_J0424.7+0036_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/413574/ft2_4FGL_J0424.7+0036_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/413574/ltcube_371520001_371779201_4FGL_J0424.7+0036_daily_bin510.fits outfile=/scratch/kocevski/413574/expmap_371520001_371779201_4FGL_J0424.7+0036_daily_bin510.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/413574/ltcube_371520001_371779201_4FGL_J0424.7+0036_daily_bin510.fits
.....................!
real 191.52
user 185.53
sys 5.66

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/413574/ft1_filtered_4FGL_J0424.7+0036_daily_bin510.fits scfile=/scratch/kocevski/413574/ft2_4FGL_J0424.7+0036_daily_bin510.fits outfile=/scratch/kocevski/413574/cmap_371520001_371779201_4FGL_J0424.7+0036_daily_bin510.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=66.1945 yref=0.6028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.47
user 0.39
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413574/ft1_filtered_4FGL_J0424.7+0036_daily_bin510.fits scfile=/scratch/kocevski/413574/ft2_4FGL_J0424.7+0036_daily_bin510.fits outfile=/scratch/kocevski/413574/cmap_HighResolution_371520001_371779201_4FGL_J0424.7+0036_daily_bin510.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=66.1945 yref=0.6028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.48
user 0.38
sys 1.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413574/ft1_filtered_4FGL_J0424.7+0036_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/413574/ft2_4FGL_J0424.7+0036_daily_bin510.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413574/Model_4FGL_J0424.7+0036_daily_bin510.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/413574/ft1_filtered_4FGL_J0424.7+0036_daily_bin510.fits.....................!
real 122.15
user 119.37
sys 2.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13420E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6925       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0307       1.0000         .10000E-03   10000.    
     4 'norm      '    8.1727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.771       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.377       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3205       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94503       1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.345       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12405E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9720       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.2868       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.699       1.0000         .10000E-03   10000.    
    22 'norm      '    .46660       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2062       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90779       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=   8530.908     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2975 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .85897        .46854E-01** at limit **
   2  Prefactor     7.6886        96.690        .36146E-02    .48926E-03
   3  Prefactor     1.0273        11.133        .12502        .29464E-03
   4  norm          8.1728        9.5703        .35060E-02   -.46899E-03
   5  Prefactor     14.768        17.704        .26054E-02   -.35867E-03
   6  norm          .10000E-03    1.1988        .90712E-02** at limit **
   7  Prefactor     37.377        32.960        .16389E-02    .44116E-03
   8  norm          .10000E-03    5.5756        .90712E-02** at limit **
   9  norm          .10000E-03    13.834        .90712E-02** at limit **
  10  norm          2.3199        1.2428        .67319E-02    .15813E-03
  11  Prefactor     .94544        1.6232        .28725E-01    .11948E-02
  12  Prefactor     53.352        30.782        .13729E-02   -.33952E-03
  13  Prefactor     .10000E-03    171.59        .90712E-02** at limit **
  14  Prefactor     .10000E-03    10.977        .90712E-02** at limit **
  15  norm          2.9709        3.0451        .58881E-02    .63550E-03
  16  Prefactor     .10000E-03    35.456        .90712E-02** at limit **
  17  norm          .10000E-03    .45765        .90712E-02** at limit **
  18  Prefactor     .10000E-03    8.5656        .90712E-02** at limit **
  19  Prefactor     .10000E-03    30.174        .90712E-02** at limit **
  20  norm          1.2869        1.5818        .97677E-02    .93601E-03
  21  Prefactor     25.704        37.375        .19755E-02   -.41792E-03
  22  norm          .46670        .72497        .17250E-01    .18677E-02
  23  Prefactor     .10000E-03    5.7894        .90712E-02** at limit **
  24  Normalizat    1.2062        .20894        .82885E-01   -.78918E-05
  25  Prefactor     .90778        .80230E-01    .45104E-01   -.33491E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.68865
  Prefactor  = 1.02731
  norm       = 8.17281
  Prefactor  = 14.7684
  norm       = 0.0001
  Prefactor  = 37.3766
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.31987
  Prefactor  = 0.945444
  Prefactor  = 53.3521
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.97093
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28688
  Prefactor  = 25.7038
  norm       = 0.466702
  Prefactor  = 0.0001
  Normalizat = 1.2062
  Prefactor  = 0.90778
 **********
 **   18 **HESSE 
 **********

 FCN=   8530.908     FROM HESSE     STATUS=OK           425 CALLS     3400 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4276        .16475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6886        93.378        .14458E-03   -1.5153    
   3  Prefactor     1.0273        61.564        .53010E-02   -1.5505    
   4  norm          8.1728        9.5702        .70120E-03   -1.5136    
   5  Prefactor     14.768        17.661        .10422E-03   -1.4939    
   6  norm          .10000E-03    1.2007        .98737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.377        32.657        .65555E-04   -1.4484    
   8  norm          .10000E-03    5.6027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3199        1.2091        .68771E-04   -1.5403    
  11  Prefactor     .94544        1.3679        .13859E-02   -1.5514    
  12  Prefactor     53.352        30.399        .54915E-04   -1.4246    
  13  Prefactor     .10000E-03    173.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9709        3.0061        .13611E-03   -1.5363    
  16  Prefactor     .10000E-03    35.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .46062        .60996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2869        1.5539        .12363E-03   -1.5481    
  21  Prefactor     25.704        35.124        .79021E-04   -1.4694    
  22  norm          .46670        .62301        .79190E-03   -1.5571    
  23  Prefactor     .10000E-03    5.7908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2062        .22751        .36694E-03   -.86412    
  25  Prefactor     .90778        .89386E-01    .16641E-03   -.95870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92701e-08
Minuit parameter uncertainties:
  1  5.87329e-06
  2  53.6935
  3  15.9217
  4  9.57201
  5  17.6668
  6  2.03234e-06
  7  32.6725
  8  6.43816e-06
  9  4.61043e-06
  10  1.2091
  11  1.36799
  12  30.408
  13  0.000691917
  14  5.36588e-06
  15  3.00621
  16  7.97073e-06
  17  3.55756e-07
  18  4.94482e-06
  19  7.13001e-05
  20  1.55397
  21  35.152
  22  0.623014
  23  5.68746e-06
  24  0.227699
  25  0.0894002
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  9.454e-01  1.368e+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.078e-01  8.940e-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.206e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413574/likelihoodResults_371520001_371779201_4FGL_J0424.7+0036_daily_bin510.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) = 8530.89057137
delta logL = 0.0173503765072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8530.88374445
delta logL = 0.0241772894879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77270       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5097       1.0000          .0000       10.000    
     3 'Normalizat'    1.1969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90959       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=   8530.884     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77041        10.609        .24198E-01    .13855E-02
   2  Index         2.5139        2.3199        .23501        .20422E-04
   3  Normalizat    1.1969        .32062E-01    .83142E-01   -.33979E-04
   4  Prefactor     .90958        .12722E-01    .45127E-01   -.52013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.770406
  Index      = 2.51392
  Normalizat = 1.19687
  Prefactor  = 0.909584
 **********
 **   18 **HESSE 
 **********

 FCN=   8530.884     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77041        3.3798        .11276E-02   -1.5532    
   2  Index         2.5139        2.9845        .97620E-02   -.52039    
   3  Normalizat    1.1969        .24015        .36809E-03   -.86700    
   4  Prefactor     .90958        .91049E-01    .16626E-03   -.95807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11042e-08
Minuit parameter uncertainties:
  1  3.22735
  2  3.29132
  3  0.24037
  4  0.0910638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413574': 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) = 8530.88374024
delta logL = 0.0241814994333

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  7.704e-01  3.227e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.514e+00  3.291e+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.096e-01  9.106e-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.197e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.72
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/413574/cmap_HighResolution_371520001_371779201_4FGL_J0424.7+0036_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-08-20 13:56:53.581119', job_id='413574', GAL2='0.91', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1629493013.58', return_code2='0', ts='0.72', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.42e-02', ts2='0.78', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='510' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 413574: <4FGL_J0424.7+0036_daily_bin510> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin510> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 13:40:27 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:40:28 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:28 2021
Terminated at Fri Aug 20 13:56:54 2021
Results reported at Fri Aug 20 13:56:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin510 66.1945 0.6028 371520001 371779201 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 :                                   817.55 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

