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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin203
RA = 66.1945, Dec = 0.6028
tmin = 291945601, tmax = 292204801
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='412071', job_status='RUN', time_executed='2021-08-20 13:39:29.958297', time_epoch_executed='1629491969.96' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412071

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412071/ft1_4FGL_J0424.7+0036_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412071/ft2_4FGL_J0424.7+0036_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412071/ft1_4FGL_J0424.7+0036_daily_bin203.fits outfile=/scratch/kocevski/412071/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin203.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=291945601.0 tmax=292204801.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 8.81
user 3.57
sys 5.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412071/ft1_filtered_4FGL_J0424.7+0036_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/412071/ft2_4FGL_J0424.7+0036_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/412071/ltcube_291945601_292204801_4FGL_J0424.7+0036_daily_bin203.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/412071/ft2_4FGL_J0424.7+0036_daily_bin203.fits
.....................!
real 17.27
user 11.42
sys 5.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412071/ft1_filtered_4FGL_J0424.7+0036_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/412071/ft2_4FGL_J0424.7+0036_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/412071/ltcube_291945601_292204801_4FGL_J0424.7+0036_daily_bin203.fits outfile=/scratch/kocevski/412071/expmap_291945601_292204801_4FGL_J0424.7+0036_daily_bin203.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/412071/ltcube_291945601_292204801_4FGL_J0424.7+0036_daily_bin203.fits
.....................!
real 198.37
user 186.77
sys 11.13

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/412071/ft1_filtered_4FGL_J0424.7+0036_daily_bin203.fits scfile=/scratch/kocevski/412071/ft2_4FGL_J0424.7+0036_daily_bin203.fits outfile=/scratch/kocevski/412071/cmap_291945601_292204801_4FGL_J0424.7+0036_daily_bin203.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 5.29
user 0.36
sys 4.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412071/ft1_filtered_4FGL_J0424.7+0036_daily_bin203.fits scfile=/scratch/kocevski/412071/ft2_4FGL_J0424.7+0036_daily_bin203.fits outfile=/scratch/kocevski/412071/cmap_HighResolution_291945601_292204801_4FGL_J0424.7+0036_daily_bin203.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 5.29
user 0.38
sys 4.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412071/ft1_filtered_4FGL_J0424.7+0036_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/412071/ft2_4FGL_J0424.7+0036_daily_bin203.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412071/Model_4FGL_J0424.7+0036_daily_bin203.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/412071/ft1_filtered_4FGL_J0424.7+0036_daily_bin203.fits.....................!
real 119.45
user 111.36
sys 7.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96195       1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.887       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.914       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.597       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.041       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.898       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9940       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.647       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.834       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.925       1.0000         .10000E-03   10000.    
    17 'norm      '    12.022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.504       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.365       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84579       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0148       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=   7627.314     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2933 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96189        1.7833        .58817E-07   -.21741E-03
   2  Prefactor     92.883        58.188        .58096E-06    .12284E-04
   3  Prefactor     18.914        19.969        .25034E-07   -.97397E-05
   4  norm          .10000E-03    6.8886        .62993E-08** at limit **
   5  Prefactor     29.575        44.191        .39703E-05    .82149E-04
   6  norm          3.0175        5.8709        .41602E-05   -.20687E-03
   7  Prefactor     51.042        33.839       -.12995E-06   -.25841E-04
   8  norm          .10000E-03    4.7449       -.10818E-07** at limit **
   9  norm          13.900        24.160       -.63467E-06   -.21024E-04
  10  norm          2.9748        1.6051       -.26576E-06   -.66504E-05
  11  Prefactor     1.9939        1.8299        .25712E-07   -.23699E-04
  12  Prefactor     .10000E-03    22.663        .59212E-07** at limit **
  13  Prefactor     12.662        42.871       -.39622E-05   -.50938E-04
  14  Prefactor     19.834        12.955       -.54877E-07    .15011E-04
  15  norm          1.4100        2.6931        .33553E-06    .35258E-04
  16  Prefactor     62.924        55.903        .64437E-07   -.84111E-05
  17  norm          12.022        3.4726        .91431E-07   -.45577E-05
  18  Prefactor     .10000E-03    3.2683        .11064E-06** at limit **
  19  Prefactor     26.507        30.845       -.64543E-06   -.67451E-04
  20  norm          .10000E-03    .58171       -.81818E-08** at limit **
  21  Prefactor     .10000E-03    66.552        .11548E-05** at limit **
  22  norm          .10000E-03    .19887        .13968E-06** at limit **
  23  Prefactor     10.364        21.766        .30670E-06    .18493E-05
  24  Normalizat    .84582        .25528       -.19323E-05   -.51270E-04
  25  Prefactor     1.0148        .96139E-01    .29186E-06    .93246E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.961892
  Prefactor  = 92.8831
  Prefactor  = 18.9136
  norm       = 0.0001
  Prefactor  = 29.5752
  norm       = 3.01747
  Prefactor  = 51.0421
  norm       = 0.0001
  norm       = 13.8996
  norm       = 2.97482
  Prefactor  = 1.99391
  Prefactor  = 0.0001
  Prefactor  = 12.6618
  Prefactor  = 19.8336
  norm       = 1.40995
  Prefactor  = 62.9238
  norm       = 12.0219
  Prefactor  = 0.0001
  Prefactor  = 26.5075
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 10.3635
  Normalizat = 0.845818
  Prefactor  = 1.01476
 **********
 **   18 **HESSE 
 **********

 FCN=   7627.314     FROM HESSE     STATUS=OK           433 CALLS     3366 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96189        1.6417        .15100E-02   -1.5512    
   2  Prefactor     92.883        58.165        .41698E-04   -1.3777    
   3  Prefactor     18.914        19.956        .92093E-04   -1.4838    
   4  norm          .10000E-03    6.8901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.575        44.130        .73645E-04   -1.4620    
   6  norm          3.0175        5.8959        .11681E-02   -1.5361    
   7  Prefactor     51.042        33.801        .56135E-04   -1.4278    
   8  norm          .10000E-03    4.7563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.900        24.101        .10744E-03   -1.4962    
  10  norm          2.9748        1.5975        .71798E-04   -1.5363    
  11  Prefactor     1.9939        1.8157        .10129E-03   -1.5426    
  12  Prefactor     .10000E-03    22.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.662        42.662        .11264E-03   -1.4996    
  14  Prefactor     19.834        12.988        .89934E-04   -1.4817    
  15  norm          1.4100        2.6628        .18524E-03   -1.5470    
  16  Prefactor     62.924        56.036        .50586E-04   -1.4120    
  17  norm          12.022        3.4730        .82241E-04   -1.5014    
  18  Prefactor     .10000E-03    3.2921        .15413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.507        30.697        .77815E-04   -1.4678    
  20  norm          .10000E-03    .58775        .65012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    67.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .24758        .75482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.364        21.757        .12446E-03   -1.5064    
  24  Normalizat    .84582        .27267        .44913E-03   -.98391    
  25  Prefactor     1.0148        .10581        .16738E-03   -.92239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22507e-09
Minuit parameter uncertainties:
  1  1.64177
  2  58.2003
  3  19.9632
  4  4.36346e-07
  5  44.1789
  6  5.89703
  7  33.8139
  8  1.72899e-06
  9  24.1181
  10  1.59755
  11  1.81572
  12  1.06599e-05
  13  42.765
  14  12.9902
  15  2.66303
  16  56.083
  17  3.47308
  18  1.13152e-05
  19  30.7151
  20  2.04801e-07
  21  0.000576153
  22  3.33695e-06
  23  21.7734
  24  0.273112
  25  0.10583
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.994e+00  1.816e+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.015e+00  1.058e-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:  8.458e-01  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.15
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.02e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 2.00e-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) = 7626.91093194
delta logL = 0.402592110295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7626.89070378
delta logL = 0.422820271678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5992       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5144       1.0000          .0000       10.000    
     3 'Normalizat'    .86882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0131       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=   7626.891     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5970        1.7586        .83820E-02   -.28363E-03
   2  Index         1.5135        .54356        .29647       -.55223E-04
   3  Normalizat    .86879        .22989        .10024        .54911E-04
   4  Prefactor     1.0131        .92996E-01    .42907E-01    .67210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59697
  Index      = 1.51355
  Normalizat = 0.868794
  Prefactor  = 1.01311
 **********
 **   18 **HESSE 
 **********

 FCN=   7626.891     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5970        1.9858        .10393E-03   -1.5455    
   2  Index         1.5135        .73053        .11267E-01   -.77161    
   3  Normalizat    .86879        .24826        .44421E-03   -.97566    
   4  Prefactor     1.0131        .10130        .16761E-03   -.92294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09697e-09
Minuit parameter uncertainties:
  1  1.98584
  2  0.735687
  3  0.248588
  4  0.101318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412071': 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) = 7626.89070301
delta logL = 0.422821037729

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.597e+00  1.986e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.514e+00  7.357e-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.013e+00  1.013e-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:  8.688e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.51 +/- 0.74
Photon Flux (Free Index): 1.51e-08 +/- 2.57e-08
Energy Flux (Free Index): 4.56e-05 +/- 6.64e-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/412071/cmap_HighResolution_291945601_292204801_4FGL_J0424.7+0036_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.02e-08', energy_flux2='4.56e-05', photon_flux_error='4.57e-08', dlogl='4.23e-01', energy_flux='2.20e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-08-20 13:51:59.354478', photon_index_error2='0.74', photon_index2='1.51', ts='5.15', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='6.64e-05', EG='0.85', time_epoch_completed='1629492719.35', return_code='0', job_id='412071', GAL2='1.01', EG2='0.87', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='2.57e-08', ts2='6.01', photon_index='2.21' WHERE bin_id='203' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 412071: <4FGL_J0424.7+0036_daily_bin203> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin203> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:31 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:35:33 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:33 2021
Terminated at Fri Aug 20 13:52:00 2021
Results reported at Fri Aug 20 13:52:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin203 66.1945 0.6028 291945601 292204801 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 :                                   824.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

