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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin204
RA = 66.1945, Dec = 0.6028
tmin = 292204801, tmax = 292464001
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='412073', job_status='RUN', time_executed='2021-08-20 13:37:59.474890', time_epoch_executed='1629491879.47' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412073/ft1_4FGL_J0424.7+0036_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412073/ft2_4FGL_J0424.7+0036_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412073/ft1_4FGL_J0424.7+0036_daily_bin204.fits outfile=/scratch/kocevski/412073/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin204.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=292204801.0 tmax=292464001.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.05
user 9.35
sys 0.65

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412073/ft1_filtered_4FGL_J0424.7+0036_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/412073/ft2_4FGL_J0424.7+0036_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/412073/ltcube_292204801_292464001_4FGL_J0424.7+0036_daily_bin204.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/412073/ft2_4FGL_J0424.7+0036_daily_bin204.fits
.....................!
real 12.02
user 11.06
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412073/ft1_filtered_4FGL_J0424.7+0036_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/412073/ft2_4FGL_J0424.7+0036_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/412073/ltcube_292204801_292464001_4FGL_J0424.7+0036_daily_bin204.fits outfile=/scratch/kocevski/412073/expmap_292204801_292464001_4FGL_J0424.7+0036_daily_bin204.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/412073/ltcube_292204801_292464001_4FGL_J0424.7+0036_daily_bin204.fits
.....................!
real 190.68
user 185.29
sys 4.94

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/412073/ft1_filtered_4FGL_J0424.7+0036_daily_bin204.fits scfile=/scratch/kocevski/412073/ft2_4FGL_J0424.7+0036_daily_bin204.fits outfile=/scratch/kocevski/412073/cmap_292204801_292464001_4FGL_J0424.7+0036_daily_bin204.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 0.93
user 0.36
sys 0.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412073/ft1_filtered_4FGL_J0424.7+0036_daily_bin204.fits scfile=/scratch/kocevski/412073/ft2_4FGL_J0424.7+0036_daily_bin204.fits outfile=/scratch/kocevski/412073/cmap_HighResolution_292204801_292464001_4FGL_J0424.7+0036_daily_bin204.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 0.94
user 0.39
sys 0.54

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412073/ft1_filtered_4FGL_J0424.7+0036_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/412073/ft2_4FGL_J0424.7+0036_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412073/Model_4FGL_J0424.7+0036_daily_bin204.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/412073/ft1_filtered_4FGL_J0424.7+0036_daily_bin204.fits.....................!
real 100.75
user 98.68
sys 1.75

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.022       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6782       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .31193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.4624       1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .84243       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6115       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.240       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6821       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6232       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6101       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .79449       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16071E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87199       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0887       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=   7293.534     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2951 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .61902        .17267E-07** at limit **
   2  Prefactor     18.026        41.579       -.63447E-06   -.26247E-04
   3  Prefactor     1.6793        23.910        .15686E-05    .36148E-03
   4  norm          2.5028        37.836        .23245E-06   -.62924E-04
   5  Prefactor     .10000E-03    63.319       -.45280E-07** at limit **
   6  norm          .29884        36.893       -.15872E-04    .94713E-04
   7  Prefactor     .10000E-03    17.631        .75810E-07** at limit **
   8  norm          8.4544        16.461       -.12327E-06   -.14847E-03
   9  norm          .10000E-03    10.722        .34794E-06** at limit **
  10  norm          .84685        1.5858        .32838E-06    .33918E-03
  11  Prefactor     3.6108        2.5944        .33989E-06    .14094E-03
  12  Prefactor     .10000E-03    11.487        .15603E-06** at limit **
  13  Prefactor     49.082        65.932       -.47408E-05   -.12395E-03
  14  Prefactor     3.6763        11.435        .10383E-05   -.26457E-05
  15  norm          1.6231        2.4510        .10537E-06    .18303E-03
  16  Prefactor     .10000E-03    13.183       -.14065E-06** at limit **
  17  norm          22.474        4.4105        .58244E-07   -.25860E-03
  18  Prefactor     .10000E-03    4.2108        .55586E-07** at limit **
  19  Prefactor     .10000E-03    9.6554       -.59532E-07** at limit **
  20  norm          2.6088        2.4621       -.54278E-07   -.14889E-03
  21  Prefactor     .10000E-03    8.4799        .41373E-07** at limit **
  22  norm          .79442        .58536        .10868E-07    .15625E-03
  23  Prefactor     .10000E-03    156.79        .81464E-06** at limit **
  24  Normalizat    .87169        .27304       -.16708E-06   -.23845E-03
  25  Prefactor     1.0888        .98886E-01   -.10751E-06   -.63923E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 18.026
  Prefactor  = 1.67926
  norm       = 2.50278
  Prefactor  = 0.0001
  norm       = 0.298844
  Prefactor  = 0.0001
  norm       = 8.45442
  norm       = 0.0001
  norm       = 0.846853
  Prefactor  = 3.61078
  Prefactor  = 0.0001
  Prefactor  = 49.0819
  Prefactor  = 3.67634
  norm       = 1.6231
  Prefactor  = 0.0001
  norm       = 22.4744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.60882
  Prefactor  = 0.0001
  norm       = 0.794425
  Prefactor  = 0.0001
  Normalizat = 0.871691
  Prefactor  = 1.08878
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.534     FROM HESSE     STATUS=OK           433 CALLS     3384 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .62697        .65601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.026        41.624        .94346E-04   -1.4859    
   3  Prefactor     1.6793        26.044        .16262E-02   -1.5449    
   4  norm          2.5028        37.469        .25754E-03   -1.5392    
   5  Prefactor     .10000E-03    63.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .29884        38.384        .37865E-02   -1.5599    
   7  Prefactor     .10000E-03    17.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.4544        16.486        .13780E-03   -1.5126    
   9  norm          .10000E-03    10.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .84685        1.3861        .12037E-02   -1.5524    
  11  Prefactor     3.6108        2.5579        .98164E-04   -1.5328    
  12  Prefactor     .10000E-03    11.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.082        65.983        .28574E-03   -1.4306    
  14  Prefactor     3.6763        11.246        .21048E-03   -1.5324    
  15  norm          1.6231        2.4298        .15645E-03   -1.5453    
  16  Prefactor     .10000E-03    13.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.474        4.4132        .74219E-04   -1.4759    
  18  Prefactor     .10000E-03    4.2507        .17108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.6716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6088        2.4504        .12400E-03   -1.5385    
  21  Prefactor     .10000E-03    8.4865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .79442        .56580        .54287E-03   -1.5530    
  23  Prefactor     .10000E-03    160.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87169        .29467        .45070E-03   -.97462    
  25  Prefactor     1.0888        .10802        .16317E-03   -.89826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8147e-09
Minuit parameter uncertainties:
  1  1.44721e-06
  2  41.6913
  3  13.2328
  4  19.3817
  5  3.79694e-05
  6  6.77698
  7  1.14581e-05
  8  16.4951
  9  4.47917e-05
  10  1.38619
  11  2.55797
  12  4.83716e-05
  13  66.0813
  14  11.2524
  15  2.42995
  16  6.89618e-06
  17  4.41331
  18  9.6401e-06
  19  1.33832e-06
  20  2.45048
  21  4.95621e-06
  22  0.565802
  23  0.000244717
  24  0.295217
  25  0.108043
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.611e+00  2.558e+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.089e+00  1.080e-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.717e-01  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.32
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 9.09e-08 +/- 6.43e-08
Energy Flux (Fixed Index): 3.98e-05 +/- 2.82e-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) = 7293.11856888
delta logL = 0.415856231137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7293.11096618
delta logL = 0.423458932331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9883       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8477       1.0000          .0000       10.000    
     3 'Normalizat'    .79771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1036       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=   7293.111     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      238 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9884        12.355        .73462E-02    .14009E-02
   2  Index         2.8478        2.2691        .12005        .17476E-03
   3  Normalizat    .79762        .10023        .10555        .50499E-04
   4  Prefactor     1.1037        .33816E-01    .37450E-01   -.18101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98837
  Index      = 2.84781
  Normalizat = 0.797623
  Prefactor  = 1.10366
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.111     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9884        2.9519        .56201E-04   -1.5426    
   2  Index         2.8478        .92667        .41942E-02   -.44498    
   3  Normalizat    .79762        .27829        .46793E-03   -1.0016    
   4  Prefactor     1.1037        .10658        .16207E-03   -.89350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66104e-08
Minuit parameter uncertainties:
  1  2.95207
  2  0.933307
  3  0.278792
  4  0.1066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412073': 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) = 7293.11096604
delta logL = 0.42345907451

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.988e+00  2.952e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.848e+00  9.333e-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.104e+00  1.066e-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.976e-01  2.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.36
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.85 +/- 0.93
Photon Flux (Free Index): 1.70e-07 +/- 1.20e-07
Energy Flux (Free Index): 3.68e-05 +/- 1.83e-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/412073/cmap_HighResolution_292204801_292464001_4FGL_J0424.7+0036_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.09e-08', energy_flux2='3.68e-05', photon_flux_error='6.43e-08', dlogl='4.23e-01', energy_flux='3.98e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-08-20 13:49:36.483188', photon_index_error2='0.93', photon_index2='2.85', ts='7.32', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='0.87', time_epoch_completed='1629492576.48', return_code='0', job_id='412073', GAL2='1.10', EG2='0.80', return_code2='0', energy_flux_error='2.82e-05', photon_flux_error2='1.20e-07', ts2='8.36', photon_index='2.21' WHERE bin_id='204' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:49:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 412073: <4FGL_J0424.7+0036_daily_bin204> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin204> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:32 2021
Job was executed on host(s) <bullet0250>, 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:49:37 2021
Results reported at Fri Aug 20 13:49:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin204 66.1945 0.6028 292204801 292464001 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

