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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin172
RA = 66.1945, Dec = 0.6028
tmin = 283910401, tmax = 284169601
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='412021', job_status='RUN', time_executed='2021-08-20 13:38:36.795067', time_epoch_executed='1629491916.8' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412021/ft1_4FGL_J0424.7+0036_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412021/ft2_4FGL_J0424.7+0036_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412021/ft1_4FGL_J0424.7+0036_daily_bin172.fits outfile=/scratch/kocevski/412021/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin172.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=283910401.0 tmax=284169601.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 6.91
user 3.36
sys 3.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412021/ft2_4FGL_J0424.7+0036_daily_bin172.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/412021/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/412021/ft1_filtered_4FGL_J0424.7+0036_daily_bin172.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.89
user 0.35
sys 3.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412021/ft1_filtered_4FGL_J0424.7+0036_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/412021/ft2_4FGL_J0424.7+0036_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/412021/ltcube_283910401_284169601_4FGL_J0424.7+0036_daily_bin172.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/412021/ft2_4FGL_J0424.7+0036_daily_bin172.fits
.....................!
real 16.10
user 11.73
sys 4.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412021/ft1_filtered_4FGL_J0424.7+0036_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/412021/ft2_4FGL_J0424.7+0036_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/412021/ltcube_283910401_284169601_4FGL_J0424.7+0036_daily_bin172.fits outfile=/scratch/kocevski/412021/expmap_283910401_284169601_4FGL_J0424.7+0036_daily_bin172.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/412021/ltcube_283910401_284169601_4FGL_J0424.7+0036_daily_bin172.fits
.....................!
real 196.06
user 186.30
sys 9.20

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/412021/ft1_filtered_4FGL_J0424.7+0036_daily_bin172.fits scfile=/scratch/kocevski/412021/ft2_4FGL_J0424.7+0036_daily_bin172.fits outfile=/scratch/kocevski/412021/cmap_283910401_284169601_4FGL_J0424.7+0036_daily_bin172.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.78
user 0.39
sys 3.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412021/ft1_filtered_4FGL_J0424.7+0036_daily_bin172.fits scfile=/scratch/kocevski/412021/ft2_4FGL_J0424.7+0036_daily_bin172.fits outfile=/scratch/kocevski/412021/cmap_HighResolution_283910401_284169601_4FGL_J0424.7+0036_daily_bin172.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.83
user 0.40
sys 3.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412021/ft1_filtered_4FGL_J0424.7+0036_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/412021/ft2_4FGL_J0424.7+0036_daily_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412021/Model_4FGL_J0424.7+0036_daily_bin172.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/412021/ft1_filtered_4FGL_J0424.7+0036_daily_bin172.fits.....................!
real 124.41
user 118.42
sys 5.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0095       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.418       1.0000         .10000E-03   10000.    
     4 'norm      '    11.075       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.414       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.569       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.123       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8248       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24708E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.240       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13245E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9828       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.548       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4754       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13640E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.3420       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71163       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90627       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=   8206.513     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2992 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0094        1.0798       -.13533E-07   -.14365E-03
   2  Prefactor     22.080        36.807        .14059E-05    .89057E-05
   3  Prefactor     37.426        21.899       -.10802E-05    .51177E-04
   4  norm          11.075        10.870        .27458E-07    .17691E-05
   5  Prefactor     14.413        20.502        .18280E-06    .15930E-04
   6  norm          .10000E-03    1.3974       -.10714E-07** at limit **
   7  Prefactor     15.489        32.353        .64873E-05    .78942E-04
   8  norm          .10000E-03    3.1729       -.21437E-07** at limit **
   9  norm          16.119        23.825        .62866E-06    .92497E-04
  10  norm          6.5637        1.7133        .43562E-07    .45413E-03
  11  Prefactor     2.8245        2.0454        .71255E-07    .24856E-03
  12  Prefactor     .10000E-03    89.675       -.13918E-04** at limit **
  13  Prefactor     26.248        52.913       -.69820E-06    .40447E-04
  14  Prefactor     .10001E-03    4.6224       -.44263E-06** at limit **
  15  norm          4.9820        3.2292        .19199E-06    .86662E-03
  16  Prefactor     .10000E-03    32.038        .20484E-05** at limit **
  17  norm          14.548        3.7565        .83775E-07    .25786E-03
  18  Prefactor     2.4711        7.1988        .46919E-05   -.12527E-03
  19  Prefactor     .10000E-03    147.08        .15210E-04** at limit **
  20  norm          .10000E-03    .92539        .33774E-07** at limit **
  21  Prefactor     .10000E-03    29.196       -.25469E-05** at limit **
  22  norm          3.3418        .91734       -.57964E-07   -.72476E-03
  23  Prefactor     .10000E-03    43.133        .22854E-05** at limit **
  24  Normalizat    .71197        .22897       -.16815E-05    .67452E-04
  25  Prefactor     .90621        .84952E-01   -.83580E-07    .25834E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00937
  Prefactor  = 22.08
  Prefactor  = 37.426
  norm       = 11.0747
  Prefactor  = 14.4127
  norm       = 0.0001
  Prefactor  = 15.4886
  norm       = 0.0001
  norm       = 16.1191
  norm       = 6.56366
  Prefactor  = 2.82448
  Prefactor  = 0.000100001
  Prefactor  = 26.2481
  Prefactor  = 0.000100012
  norm       = 4.982
  Prefactor  = 0.0001
  norm       = 14.5482
  Prefactor  = 2.47111
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.34179
  Prefactor  = 0.0001
  Normalizat = 0.711974
  Prefactor  = 0.906207
 **********
 **   18 **HESSE 
 **********

 FCN=   8206.513     FROM HESSE     STATUS=OK           437 CALLS     3429 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0094        .95687        .94630E-03   -1.5507    
   2  Prefactor     22.080        36.780        .85222E-04   -1.4768    
   3  Prefactor     37.426        21.857        .65520E-04   -1.4484    
   4  norm          11.075        10.872        .12039E-03   -1.5042    
   5  Prefactor     14.413        20.493        .52749E-03   -1.4949    
   6  norm          .10000E-03    1.4016        .10455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.489        32.524        .10151E-03   -1.4921    
   8  norm          .10000E-03    3.1803        .15757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.119        23.796        .99747E-04   -1.4905    
  10  norm          6.5637        1.7020        .55452E-04   -1.5196    
  11  Prefactor     2.8245        2.0304        .96129E-04   -1.5372    
  12  Prefactor     .10000E-03    93.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.248        52.608        .78204E-04   -1.4683    
  14  Prefactor     .10001E-03    24.361        .36349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9820        3.2180        .12077E-03   -1.5262    
  16  Prefactor     .10000E-03    32.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.548        3.7524        .82092E-04   -1.4945    
  18  Prefactor     2.4711        7.2330        .12994E-02   -1.5394    
  19  Prefactor     .10000E-03    147.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4840        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.3418        .91510        .43597E-04   -1.5342    
  23  Prefactor     .10000E-03    43.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71197        .24120        .45721E-03   -1.0342    
  25  Prefactor     .90621        .93137E-01    .16239E-03   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78441e-10
Minuit parameter uncertainties:
  1  0.956886
  2  36.8176
  3  21.8619
  4  10.8741
  5  20.5028
  6  8.15062e-08
  7  32.5609
  8  1.3611e-06
  9  23.8097
  10  1.70206
  11  2.03047
  12  0.000659288
  13  52.7016
  14  0.001098
  15  3.21812
  16  5.56786e-05
  17  3.75251
  18  7.23555
  19  0.000926494
  20  7.41351e-06
  21  2.44181e-05
  22  0.915109
  23  1.94264e-05
  24  0.241561
  25  0.0931534
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.824e+00  2.030e+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.062e-01  9.315e-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:  7.120e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.89
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 7.11e-08 +/- 5.11e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 2.24e-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) = 8205.47979796
delta logL = 1.03340589371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8205.45894826
delta logL = 1.05425559155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9682       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4783       1.0000          .0000       10.000    
     3 'Normalizat'    .73398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90437       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=   8205.459     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9674        2.2584        .58921E-02    .40866E-03
   2  Index         1.4776        .36039        .22830       -.14020E-03
   3  Normalizat    .73370        .20891        .10190        .72048E-04
   4  Prefactor     .90446        .83260E-01    .45061E-01   -.32637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96744
  Index      = 1.4776
  Normalizat = 0.733697
  Prefactor  = 0.904458
 **********
 **   18 **HESSE 
 **********

 FCN=   8205.459     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9674        2.5990        .11067E-03   -1.5363    
   2  Index         1.4776        .48683        .85715E-02   -.78169    
   3  Normalizat    .73370        .22715        .45169E-03   -1.0258    
   4  Prefactor     .90446        .91034E-01    .16271E-03   -.95985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65311e-11
Minuit parameter uncertainties:
  1  2.59914
  2  0.488372
  3  0.227445
  4  0.0910492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412021': 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) = 8205.45894626
delta logL = 1.05425759315

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.967e+00  2.599e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.478e+00  4.884e-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.045e-01  9.105e-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:  7.337e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.04
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.48 +/- 0.49
Photon Flux (Free Index): 2.73e-08 +/- 3.06e-08
Energy Flux (Free Index): 9.30e-05 +/- 9.95e-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/412021/cmap_HighResolution_283910401_284169601_4FGL_J0424.7+0036_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.11e-08', energy_flux2='9.30e-05', photon_flux_error='5.11e-08', dlogl='1.05e+00', energy_flux='3.12e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2021-08-20 13:51:27.339965', photon_index_error2='0.49', photon_index2='1.48', ts='5.89', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='9.95e-05', EG='0.71', time_epoch_completed='1629492687.34', return_code='0', job_id='412021', GAL2='0.90', EG2='0.73', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='3.06e-08', ts2='8.04', photon_index='2.21' WHERE bin_id='172' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:51:27 PDT 2021


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

Job <4FGL_J0424.7+0036_daily_bin172> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:28 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:35:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:35:30 2021
Terminated at Fri Aug 20 13:51:28 2021
Results reported at Fri Aug 20 13:51:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin172 66.1945 0.6028 283910401 284169601 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 :                                   820.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

