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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin1283
RA = 66.1945, Dec = 0.6028
tmin = 571881601, tmax = 572140801
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='417915', job_status='RUN', time_executed='2021-08-20 13:56:33.096492', time_epoch_executed='1629492993.1' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417915/ft1_4FGL_J0424.7+0036_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417915/ft2_4FGL_J0424.7+0036_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417915/ft1_4FGL_J0424.7+0036_daily_bin1283.fits outfile=/scratch/kocevski/417915/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1283.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=571881601.0 tmax=572140801.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.97
user 2.36
sys 3.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/417915/ft2_4FGL_J0424.7+0036_daily_bin1283.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/417915/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/417915/ft1_filtered_4FGL_J0424.7+0036_daily_bin1283.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 3.86
user 0.36
sys 3.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417915/ft1_filtered_4FGL_J0424.7+0036_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/417915/ft2_4FGL_J0424.7+0036_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/417915/ltcube_571881601_572140801_4FGL_J0424.7+0036_daily_bin1283.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/417915/ft2_4FGL_J0424.7+0036_daily_bin1283.fits
.....................!
real 18.37
user 14.27
sys 4.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417915/ft1_filtered_4FGL_J0424.7+0036_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/417915/ft2_4FGL_J0424.7+0036_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/417915/ltcube_571881601_572140801_4FGL_J0424.7+0036_daily_bin1283.fits outfile=/scratch/kocevski/417915/expmap_571881601_572140801_4FGL_J0424.7+0036_daily_bin1283.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/417915/ltcube_571881601_572140801_4FGL_J0424.7+0036_daily_bin1283.fits
.....................!
real 197.51
user 187.65
sys 9.41

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/417915/ft1_filtered_4FGL_J0424.7+0036_daily_bin1283.fits scfile=/scratch/kocevski/417915/ft2_4FGL_J0424.7+0036_daily_bin1283.fits outfile=/scratch/kocevski/417915/cmap_571881601_572140801_4FGL_J0424.7+0036_daily_bin1283.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 3.83
user 0.40
sys 3.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417915/ft1_filtered_4FGL_J0424.7+0036_daily_bin1283.fits scfile=/scratch/kocevski/417915/ft2_4FGL_J0424.7+0036_daily_bin1283.fits outfile=/scratch/kocevski/417915/cmap_HighResolution_571881601_572140801_4FGL_J0424.7+0036_daily_bin1283.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 3.84
user 0.40
sys 3.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/417915/ft1_filtered_4FGL_J0424.7+0036_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/417915/ft2_4FGL_J0424.7+0036_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/417915/Model_4FGL_J0424.7+0036_daily_bin1283.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/417915/ft1_filtered_4FGL_J0424.7+0036_daily_bin1283.fits.....................!
real 137.22
user 130.75
sys 6.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7671       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.700       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0423       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .15239E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7316       1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.582       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10924E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6425       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1692       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0602       1.0000         .10000E-03   10000.    
    22 'norm      '    .98058       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.913       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .57044       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1978       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=   9411.709     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2913 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7672        1.1634        .19976E-07    .29892E-05
   2  Prefactor     53.704        39.603       -.13050E-06   -.37789E-05
   3  Prefactor     3.0433        9.0477        .10039E-05    .13454E-03
   4  norm          2.4280        9.4949        .90440E-07    .36734E-05
   5  Prefactor     .10000E-03    6.9616       -.37389E-06** at limit **
   6  norm          .10000E-03    1.4178        .45841E-07** at limit **
   7  Prefactor     .10000E-03    8.1141        .32410E-06** at limit **
   8  norm          2.7347        7.0500        .11714E-05    .23186E-03
   9  norm          .10000E-03    14.553        .30137E-06** at limit **
  10  norm          .95083        .87690        .29450E-07    .83903E-04
  11  Prefactor     1.2856        1.0902        .10009E-07    .94715E-04
  12  Prefactor     49.569        23.162       -.14160E-05    .31875E-03
  13  Prefactor     .10000E-03    20.206        .30560E-06** at limit **
  14  Prefactor     .10000E-03    3.1306        .27179E-07** at limit **
  15  norm          .10002E-03    1.4811       -.21792E-06** at limit **
  16  Prefactor     .10000E-03    17.507       -.34958E-06** at limit **
  17  norm          1.6428        1.4082        .49136E-08    .69558E-04
  18  Prefactor     .10000E-03    4.0500        .33882E-06** at limit **
  19  Prefactor     .10000E-03    7.9458        .53704E-07** at limit **
  20  norm          3.1686        2.1942        .11614E-06    .99649E-04
  21  Prefactor     8.0565        30.798        .43941E-06    .42097E-05
  22  norm          .98057        .82994       -.42620E-08    .43268E-04
  23  Prefactor     33.938        33.335       -.16783E-05   -.49273E-04
  24  Normalizat    .57041        .23110       -.72295E-06    .64096E-04
  25  Prefactor     1.1978        .90716E-01   -.14084E-06    .16072E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7672
  Prefactor  = 53.7041
  Prefactor  = 3.04335
  norm       = 2.42801
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.73473
  norm       = 0.0001
  norm       = 0.950827
  Prefactor  = 1.28558
  Prefactor  = 49.5685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010002
  Prefactor  = 0.0001
  norm       = 1.64275
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.16863
  Prefactor  = 8.05653
  norm       = 0.980572
  Prefactor  = 33.9383
  Normalizat = 0.570411
  Prefactor  = 1.19775
 **********
 **   18 **HESSE 
 **********

 FCN=   9411.709     FROM HESSE     STATUS=OK           441 CALLS     3354 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7672        1.1582        .82260E-04   -1.5442    
   2  Prefactor     53.704        39.555        .54735E-04   -1.4241    
   3  Prefactor     3.0433        9.1167        .11631E-02   -1.5359    
   4  norm          2.4280        9.4677        .26273E-03   -1.5396    
   5  Prefactor     .10000E-03    6.9633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6398        .22410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7347        7.1771        .12318E-02   -1.5377    
   9  norm          .10000E-03    14.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95083        .83804        .81907E-03   -1.5513    
  11  Prefactor     1.2856        1.0917        .88992E-04   -1.5481    
  12  Prefactor     49.569        23.225        .56951E-04   -1.4299    
  13  Prefactor     .10000E-03    20.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1497        .16754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    6.4544        .18571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6428        1.4074        .10283E-03   -1.5452    
  18  Prefactor     .10000E-03    23.559        .37107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.9480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1686        2.1875        .11088E-03   -1.5352    
  21  Prefactor     8.0565        30.933        .14122E-03   -1.5140    
  22  norm          .98057        .80355        .66827E-03   -1.5510    
  23  Prefactor     33.938        33.389        .68812E-04   -1.4542    
  24  Normalizat    .57041        .23463        .50778E-03   -1.0926    
  25  Prefactor     1.1978        .94754E-01    .15310E-03   -.86400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28501e-09
Minuit parameter uncertainties:
  1  1.15823
  2  39.5748
  3  9.12088
  4  9.47357
  5  7.116e-06
  6  1.82712e-06
  7  9.66389e-06
  8  7.17935
  9  1.47445e-05
  10  0.838048
  11  1.09174
  12  23.2294
  13  1.70125e-05
  14  1.78198e-06
  15  0.000713843
  16  7.48894e-06
  17  1.40744
  18  0.000308296
  19  1.42601e-06
  20  2.18756
  21  30.9948
  22  0.803558
  23  33.407
  24  0.235041
  25  0.0947678
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.286e+00  1.092e+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:  1.198e+00  9.477e-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:  5.704e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.59
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.20e-05

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) = 9410.64415199
delta logL = 1.06504486792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9410.63009261
delta logL = 1.07910424488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1277       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3117       1.0000          .0000       10.000    
     3 'Normalizat'    .59204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1945       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=   9410.630     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1276        .97378        .11014E-01   -.35232E-03
   2  Index         1.3115        .39735        .28516       -.73022E-04
   3  Normalizat    .59206        .20889        .11253        .59640E-04
   4  Prefactor     1.1945        .88910E-01    .34762E-01   -.12940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12764
  Index      = 1.31153
  Normalizat = 0.59206
  Prefactor  = 1.19451
 **********
 **   18 **HESSE 
 **********

 FCN=   9410.630     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1276        1.1942        .86453E-04   -1.5496    
   2  Index         1.3115        .54138        .11097E-01   -.82965    
   3  Normalizat    .59206        .21778        .49903E-03   -1.0832    
   4  Prefactor     1.1945        .93189E-01    .15329E-03   -.86500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96286e-12
Minuit parameter uncertainties:
  1  1.19426
  2  0.543727
  3  0.218095
  4  0.0932022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417915': 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) = 9410.63009257
delta logL = 1.0791042851

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.128e+00  1.194e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.312e+00  5.437e-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:  1.195e+00  9.320e-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:  5.921e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.74
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.31 +/- 0.54
Photon Flux (Free Index): 9.49e-09 +/- 1.09e-08
Energy Flux (Free Index): 5.60e-05 +/- 7.44e-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/417915/cmap_HighResolution_571881601_572140801_4FGL_J0424.7+0036_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='5.60e-05', photon_flux_error='2.75e-08', dlogl='1.08e+00', energy_flux='1.42e-05', photon_flux2='9.49e-09', job_status='DONE', time_completed='2021-08-20 14:10:21.662689', photon_index_error2='0.54', photon_index2='1.31', ts='5.59', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='7.44e-05', EG='0.57', time_epoch_completed='1629493821.66', return_code='0', job_id='417915', GAL2='1.19', EG2='0.59', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.09e-08', ts2='7.74', photon_index='2.21' WHERE bin_id='1283' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:10:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 417915: <4FGL_J0424.7+0036_daily_bin1283> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin1283> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 13:55:22 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:55:24 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:55:24 2021
Terminated at Fri Aug 20 14:10:23 2021
Results reported at Fri Aug 20 14:10:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin1283 66.1945 0.6028 571881601 572140801 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 :                                   871.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             305.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

