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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin689
RA = 66.1945, Dec = 0.6028
tmin = 417916801, tmax = 418176001
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='413835', job_status='RUN', time_executed='2021-08-20 13:43:56.457887', time_epoch_executed='1629492236.46' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413835/ft1_4FGL_J0424.7+0036_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413835/ft2_4FGL_J0424.7+0036_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413835/ft1_4FGL_J0424.7+0036_daily_bin689.fits outfile=/scratch/kocevski/413835/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin689.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=417916801.0 tmax=418176001.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 10.45
user 7.00
sys 3.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413835/ft2_4FGL_J0424.7+0036_daily_bin689.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/413835/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin689.fits evtable="EVENTS" outfile="/scratch/kocevski/413835/ft1_filtered_4FGL_J0424.7+0036_daily_bin689.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.57
user 0.33
sys 3.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413835/ft1_filtered_4FGL_J0424.7+0036_daily_bin689.fits" evtable="EVENTS" scfile=/scratch/kocevski/413835/ft2_4FGL_J0424.7+0036_daily_bin689.fits sctable="SC_DATA" outfile=/scratch/kocevski/413835/ltcube_417916801_418176001_4FGL_J0424.7+0036_daily_bin689.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/413835/ft2_4FGL_J0424.7+0036_daily_bin689.fits
.....................!
real 15.37
user 11.47
sys 3.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413835/ft1_filtered_4FGL_J0424.7+0036_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/413835/ft2_4FGL_J0424.7+0036_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/413835/ltcube_417916801_418176001_4FGL_J0424.7+0036_daily_bin689.fits outfile=/scratch/kocevski/413835/expmap_417916801_418176001_4FGL_J0424.7+0036_daily_bin689.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/413835/ltcube_417916801_418176001_4FGL_J0424.7+0036_daily_bin689.fits
.....................!
real 193.81
user 184.95
sys 8.48

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/413835/ft1_filtered_4FGL_J0424.7+0036_daily_bin689.fits scfile=/scratch/kocevski/413835/ft2_4FGL_J0424.7+0036_daily_bin689.fits outfile=/scratch/kocevski/413835/cmap_417916801_418176001_4FGL_J0424.7+0036_daily_bin689.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.63
user 0.38
sys 3.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413835/ft1_filtered_4FGL_J0424.7+0036_daily_bin689.fits scfile=/scratch/kocevski/413835/ft2_4FGL_J0424.7+0036_daily_bin689.fits outfile=/scratch/kocevski/413835/cmap_HighResolution_417916801_418176001_4FGL_J0424.7+0036_daily_bin689.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.62
user 0.39
sys 3.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413835/ft1_filtered_4FGL_J0424.7+0036_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/413835/ft2_4FGL_J0424.7+0036_daily_bin689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413835/Model_4FGL_J0424.7+0036_daily_bin689.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/413835/ft1_filtered_4FGL_J0424.7+0036_daily_bin689.fits.....................!
real 100.14
user 94.58
sys 5.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1518       1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.257       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12897E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1139       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1888       1.0000         .10000E-03   10000.    
     8 'norm      '    80.917       1.0000         .10000E-03   10000.    
     9 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3028       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.009       1.0000         .10000E-03   10000.    
    13 'Prefactor '    77.908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46159       1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.029       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4257       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0886       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14689E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.6076       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.675       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76609       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92362       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=   6420.091     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3005 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1523        1.3833       -.95207E-07   -.10069E-03
   2  Prefactor     69.264        79.540       -.79621E-06   -.23116E-04
   3  Prefactor     .10000E-03    19.287        .35484E-05** at limit **
   4  norm          2.1109        26.004        .69678E-06    .12197E-04
   5  Prefactor     .10000E-03    10.209       -.10416E-06** at limit **
   6  norm          4.1131        4.1109        .38281E-07    .99622E-05
   7  Prefactor     9.2909        47.237       -.30313E-05    .40788E-05
   8  norm          80.905        20.335       -.14212E-06   -.15653E-04
   9  norm          .10000E-03    20.084       -.37606E-06** at limit **
  10  norm          .10000E-03    .44020       -.22991E-06** at limit **
  11  Prefactor     1.3014        1.5814       -.10199E-06   -.12779E-03
  12  Prefactor     39.004        33.282        .86822E-06    .84829E-04
  13  Prefactor     77.907        70.920        .65142E-06    .26258E-04
  14  Prefactor     .62089        11.927        .12661E-05   -.46112E-03
  15  norm          .10000E-03    2.6473       -.51531E-06** at limit **
  16  Prefactor     37.023        35.296        .19265E-06    .68400E-05
  17  norm          4.4255        3.0287       -.59056E-07    .95438E-04
  18  Prefactor     4.0936        9.1721        .58424E-06    .11450E-03
  19  Prefactor     .10000E-03    82.794       -.16483E-05** at limit **
  20  norm          5.6084        2.5895       -.47351E-07    .73438E-04
  21  Prefactor     .10000E-03    35.215       -.67371E-06** at limit **
  22  norm          .10000E-03    .34168       -.35651E-06** at limit **
  23  Prefactor     52.673        33.476       -.22593E-06    .45057E-05
  24  Normalizat    .76551        .30103        .63649E-05    .10455E-03
  25  Prefactor     .92371        .10646       -.13989E-05    .41025E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15231
  Prefactor  = 69.264
  Prefactor  = 0.000100001
  norm       = 2.11094
  Prefactor  = 0.0001
  norm       = 4.11314
  Prefactor  = 9.2909
  norm       = 80.9048
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.30142
  Prefactor  = 39.0045
  Prefactor  = 77.9065
  Prefactor  = 0.620885
  norm       = 0.0001
  Prefactor  = 37.0227
  norm       = 4.42555
  Prefactor  = 4.09362
  Prefactor  = 0.0001
  norm       = 5.60836
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.6734
  Normalizat = 0.765505
  Prefactor  = 0.923708
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.091     FROM HESSE     STATUS=OK           429 CALLS     3434 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1523        1.3664        .10011E-03   -1.5493    
   2  Prefactor     69.264        79.859        .48233E-04   -1.4042    
   3  Prefactor     .10000E-03    19.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1109        25.946        .28429E-03   -1.5417    
   5  Prefactor     .10000E-03    10.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1131        4.1049        .15701E-03   -1.5302    
   7  Prefactor     9.2909        46.952        .13221E-03   -1.5098    
   8  norm          80.905        20.242        .44649E-04   -1.3907    
   9  norm          .10000E-03    20.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .45036        .51978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3014        1.5522        .10055E-03   -1.5480    
  12  Prefactor     39.004        33.034        .64174E-04   -1.4458    
  13  Prefactor     77.907        70.097        .45496E-04   -1.3940    
  14  Prefactor     .62089        56.159        .44425E-02   -1.5550    
  15  norm          .10000E-03    2.7295        .25460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.023        35.284        .65862E-04   -1.4490    
  17  norm          4.4255        3.0200        .10463E-03   -1.5287    
  18  Prefactor     4.0936        9.1152        .19938E-03   -1.5303    
  19  Prefactor     .10000E-03    83.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.6084        2.5885        .82666E-04   -1.5234    
  21  Prefactor     .10000E-03    35.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .55275        .88529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     52.673        33.483        .55262E-04   -1.4255    
  24  Normalizat    .76551        .32236        .45404E-03   -1.0136    
  25  Prefactor     .92371        .11425        .16328E-03   -.95318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13788e-09
Minuit parameter uncertainties:
  1  1.36645
  2  79.983
  3  0.000208915
  4  14.809
  5  9.60695e-06
  6  4.10515
  7  41.824
  8  20.2435
  9  2.89439e-05
  10  5.32402e-06
  11  1.55224
  12  33.0497
  13  70.1715
  14  11.8204
  15  3.05675e-05
  16  35.3035
  17  3.0201
  18  9.11832
  19  0.000239615
  20  2.58852
  21  8.05364e-05
  22  5.95466e-06
  23  33.4945
  24  0.323166
  25  0.114282
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.301e+00  1.552e+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.237e-01  1.143e-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:  7.655e-01  3.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.71e-05

TS (Fixed Index): 1.77
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413835/likelihoodResults_417916801_418176001_4FGL_J0424.7+0036_daily_bin689.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) = 6419.83872347
delta logL = 0.252560198854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6419.83615031
delta logL = 0.255133360659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3857       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6472       1.0000          .0000       10.000    
     3 'Normalizat'    .77987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92175       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=   6419.836     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3856        92.030        .92361E-02    .51960E-03
   2  Index         1.6471        6.1295        .28321        .59439E-04
   3  Normalizat    .77993        .26277        .10160        .35552E-03
   4  Prefactor     .92172        .69667E-01    .45282E-01    .10560E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38555
  Index      = 1.64712
  Normalizat = 0.779928
  Prefactor  = 0.921717
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.836     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3856        1.6538        .10351E-03   -1.5473    
   2  Index         1.6471        .75331        .11697E-01   -.73498    
   3  Normalizat    .77993        .27498        .45031E-03   -1.0082    
   4  Prefactor     .92172        .10875        .16345E-03   -.95386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76067e-10
Minuit parameter uncertainties:
  1  1.6539
  2  0.758591
  3  0.275473
  4  0.108771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413835': 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) = 6419.83615025
delta logL = 0.255133418227

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.386e+00  1.654e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.647e+00  7.586e-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.217e-01  1.088e-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:  7.799e-01  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.65 +/- 0.76
Photon Flux (Free Index): 1.50e-08 +/- 2.51e-08
Energy Flux (Free Index): 2.90e-05 +/- 4.84e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/413835/cmap_HighResolution_417916801_418176001_4FGL_J0424.7+0036_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='2.90e-05', photon_flux_error='3.90e-08', dlogl='2.55e-01', energy_flux='1.44e-05', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-08-20 13:56:10.695959', photon_index_error2='0.76', photon_index2='1.65', ts='1.77', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='4.84e-05', EG='0.77', time_epoch_completed='1629492970.7', return_code='0', job_id='413835', GAL2='0.92', EG2='0.78', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='2.51e-08', ts2='2.28', photon_index='2.21' WHERE bin_id='689' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 413835: <4FGL_J0424.7+0036_daily_bin689> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin689 66.1945 0.6028 417916801 418176001 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 :                                   781.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

