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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin545
RA = 66.1945, Dec = 0.6028
tmin = 380592001, tmax = 380851201
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='413627', job_status='RUN', time_executed='2021-08-20 13:43:48.502737', time_epoch_executed='1629492228.5' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413627/ft1_4FGL_J0424.7+0036_daily_bin545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413627/ft2_4FGL_J0424.7+0036_daily_bin545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413627/ft1_4FGL_J0424.7+0036_daily_bin545.fits outfile=/scratch/kocevski/413627/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin545.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=380592001.0 tmax=380851201.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.45
user 4.51
sys 0.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413627/ft1_filtered_4FGL_J0424.7+0036_daily_bin545.fits" evtable="EVENTS" scfile=/scratch/kocevski/413627/ft2_4FGL_J0424.7+0036_daily_bin545.fits sctable="SC_DATA" outfile=/scratch/kocevski/413627/ltcube_380592001_380851201_4FGL_J0424.7+0036_daily_bin545.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/413627/ft2_4FGL_J0424.7+0036_daily_bin545.fits
.....................!
real 12.43
user 11.33
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413627/ft1_filtered_4FGL_J0424.7+0036_daily_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/413627/ft2_4FGL_J0424.7+0036_daily_bin545.fits sctable="SC_DATA" expcube=/scratch/kocevski/413627/ltcube_380592001_380851201_4FGL_J0424.7+0036_daily_bin545.fits outfile=/scratch/kocevski/413627/expmap_380592001_380851201_4FGL_J0424.7+0036_daily_bin545.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/413627/ltcube_380592001_380851201_4FGL_J0424.7+0036_daily_bin545.fits
.....................!
real 191.98
user 185.18
sys 6.49

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/413627/ft1_filtered_4FGL_J0424.7+0036_daily_bin545.fits scfile=/scratch/kocevski/413627/ft2_4FGL_J0424.7+0036_daily_bin545.fits outfile=/scratch/kocevski/413627/cmap_380592001_380851201_4FGL_J0424.7+0036_daily_bin545.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.18
user 0.35
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413627/ft1_filtered_4FGL_J0424.7+0036_daily_bin545.fits scfile=/scratch/kocevski/413627/ft2_4FGL_J0424.7+0036_daily_bin545.fits outfile=/scratch/kocevski/413627/cmap_HighResolution_380592001_380851201_4FGL_J0424.7+0036_daily_bin545.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.19
user 0.38
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413627/ft1_filtered_4FGL_J0424.7+0036_daily_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/413627/ft2_4FGL_J0424.7+0036_daily_bin545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413627/Model_4FGL_J0424.7+0036_daily_bin545.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/413627/ft1_filtered_4FGL_J0424.7+0036_daily_bin545.fits.....................!
real 103.35
user 101.10
sys 2.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.402       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2887       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6394       1.0000         .10000E-03   10000.    
     8 'norm      '    15.806       1.0000         .10000E-03   10000.    
     9 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .28204       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .93917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.701       1.0000         .10000E-03   10000.    
    15 'norm      '    .94001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.325       1.0000         .10000E-03   10000.    
    17 'norm      '    .87081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75870       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11367E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.1740       1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.472       1.0000         .10000E-03   10000.    
    22 'norm      '    .10286E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92353       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95056       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=   7044.835     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3830 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9634        1.9221        .17409E-06   -.79458E-05
   2  Prefactor     32.401        40.078        .21585E-06   -.17143E-04
   3  Prefactor     2.2833        35.636        .18885E-05   -.10262E-04
   4  norm          .10000E-03    7.2192       -.39653E-09** at limit **
   5  Prefactor     .10000E-03    16.648        .35510E-06** at limit **
   6  norm          .10000E-03    1.3455       -.31170E-07** at limit **
   7  Prefactor     7.6381        15.601        .40780E-07   -.24762E-04
   8  norm          15.807        10.853        .21341E-06   -.38729E-04
   9  norm          .10000E-03    20.836       -.18984E-06** at limit **
  10  norm          .28230        .86066        .58294E-06   -.40272E-04
  11  Prefactor     .93840        1.4771       -.14243E-07   -.38206E-03
  12  Prefactor     1.3484        82.324        .79146E-06   -.49219E-05
  13  Prefactor     .10000E-03    20.327       -.56154E-06** at limit **
  14  Prefactor     19.699        12.387       -.77902E-07   -.14175E-03
  15  norm          .10000E-03    1.4223        .50488E-07** at limit **
  16  Prefactor     66.327        43.394        .21314E-07   -.12573E-05
  17  norm          .87209        2.7064        .11827E-05   -.15211E-03
  18  Prefactor     .78032        4.0067        .27512E-06   -.11515E-03
  19  Prefactor     .10000E-03    40.386        .45745E-05** at limit **
  20  norm          7.1726        3.2126       -.28119E-08   -.21604E-03
  21  Prefactor     47.491        37.822        .16889E-06   -.10488E-03
  22  norm          .10000E-03    .27621        .57060E-06** at limit **
  23  Prefactor     .10000E-03    48.109       -.26954E-05** at limit **
  24  Normalizat    .92329        .26001       -.31363E-05   -.21947E-03
  25  Prefactor     .95062        .91348E-01    .49246E-08   -.56353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96337
  Prefactor  = 32.4012
  Prefactor  = 2.28327
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.63815
  norm       = 15.8073
  norm       = 0.0001
  norm       = 0.282305
  Prefactor  = 0.938403
  Prefactor  = 1.34836
  Prefactor  = 0.0001
  Prefactor  = 19.6988
  norm       = 0.0001
  Prefactor  = 66.3272
  norm       = 0.872092
  Prefactor  = 0.780322
  Prefactor  = 0.000100003
  norm       = 7.1726
  Prefactor  = 47.4906
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.923294
  Prefactor  = 0.950624
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.835     FROM HESSE     STATUS=OK           437 CALLS     4267 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9634        1.9178        .11041E-03   -1.5428    
   2  Prefactor     32.401        39.961        .70393E-04   -1.4569    
   3  Prefactor     2.2833        35.589        .27135E-03   -1.5406    
   4  norm          .10000E-03    7.2252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3472        .95055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6381        15.569        .14509E-03   -1.5155    
   8  norm          15.807        10.865        .10074E-03   -1.4913    
   9  norm          .10000E-03    20.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28230        .83200        .12775E-03   -1.5602    
  11  Prefactor     .93840        1.2144        .11885E-02   -1.5514    
  12  Prefactor     1.3484        63.613        .38193E-03   -1.5476    
  13  Prefactor     .10000E-03    20.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.699        12.404        .90237E-04   -1.4820    
  15  norm          .10000E-03    26.949        .16484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     66.327        43.451        .49281E-04   -1.4077    
  17  norm          .87209        2.7075        .21927E-03   -1.5521    
  18  Prefactor     .78032        17.352        .30631E-02   -1.5531    
  19  Prefactor     .10000E-03    41.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.1726        3.2116        .94016E-04   -1.5172    
  21  Prefactor     47.491        37.403        .58196E-04   -1.4329    
  22  norm          .10000E-03    .32651        .79336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92329        .28919        .40713E-03   -.95646    
  25  Prefactor     .95062        .10367        .15881E-03   -.94394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69865e-08
Minuit parameter uncertainties:
  1  1.91781
  2  39.9945
  3  18.0413
  4  2.04717e-06
  5  6.22316e-05
  6  9.39221e-07
  7  15.5771
  8  10.8663
  9  3.49566e-05
  10  0.832038
  11  1.2144
  12  18.5431
  13  9.954e-05
  14  12.4056
  15  6.44622e-05
  16  43.4719
  17  2.7079
  18  7.36132
  19  0.000667464
  20  3.21171
  21  37.4217
  22  1.23317e-05
  23  0.000637648
  24  0.289679
  25  0.103693
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  9.384e-01  1.214e+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.506e-01  1.037e-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:  9.233e-01  2.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 2.36e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/413627/likelihoodResults_380592001_380851201_4FGL_J0424.7+0036_daily_bin545.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) = 7044.80635182
delta logL = 0.0285502421384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7044.80141972
delta logL = 0.033482342099

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0677       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9810       1.0000          .0000       10.000    
     3 'Normalizat'    .92840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94971       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=   7044.801     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0674        36.511        .25272E-01    .13185E-02
   2  Index         1.9811        5.9297        .25899        .60732E-04
   3  Normalizat    .92841        .54902E-01    .91691E-01   -.11455E-03
   4  Prefactor     .94974        .20977E-01    .45636E-01   -.41806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06737
  Index      = 1.98106
  Normalizat = 0.928409
  Prefactor  = 0.949744
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.801     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0674        1.4147        .12902E-02   -1.5501    
   2  Index         1.9811        .88226        .12196E-01   -.64825    
   3  Normalizat    .92841        .25056        .40612E-03   -.95469    
   4  Prefactor     .94974        .99601E-01    .15887E-03   -.94424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59004e-10
Minuit parameter uncertainties:
  1  1.41474
  2  0.889632
  3  0.250871
  4  0.0996197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413627': 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) = 7044.80141955
delta logL = 0.0334825176906

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.067e+00  1.415e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.981e+00  8.896e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  9.497e-01  9.962e-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:  9.284e-01  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.98 +/- 0.89
Photon Flux (Free Index): 1.82e-08 +/- 3.04e-08
Energy Flux (Free Index): 1.32e-05 +/- 2.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/413627/cmap_HighResolution_380592001_380851201_4FGL_J0424.7+0036_daily_bin545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', comment='SUCCESS', photon_flux='2.36e-08', energy_flux2='1.32e-05', photon_flux_error='3.05e-08', dlogl='3.35e-02', energy_flux='1.03e-05', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-08-20 13:56:42.773886', photon_index_error2='0.89', photon_index2='1.98', ts='1.03', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.29e-05', EG='0.92', time_epoch_completed='1629493002.77', return_code='0', job_id='413627', GAL2='0.95', EG2='0.93', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.04e-08', ts2='1.09', photon_index='2.21' WHERE bin_id='545' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 413627: <4FGL_J0424.7+0036_daily_bin545> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin545 66.1945 0.6028 380592001 380851201 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 :                                   784.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            972 sec.

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

