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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin739
RA = 66.1945, Dec = 0.6028
tmin = 430876801, tmax = 431136001
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='414957', job_status='RUN', time_executed='2021-08-20 13:47:42.594951', time_epoch_executed='1629492462.59' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414957/ft1_4FGL_J0424.7+0036_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414957/ft2_4FGL_J0424.7+0036_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414957/ft1_4FGL_J0424.7+0036_daily_bin739.fits outfile=/scratch/kocevski/414957/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin739.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=430876801.0 tmax=431136001.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.16
user 5.30
sys 0.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414957/ft2_4FGL_J0424.7+0036_daily_bin739.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/414957/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin739.fits evtable="EVENTS" outfile="/scratch/kocevski/414957/ft1_filtered_4FGL_J0424.7+0036_daily_bin739.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 1.14
user 0.38
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414957/ft1_filtered_4FGL_J0424.7+0036_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/414957/ft2_4FGL_J0424.7+0036_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/414957/ltcube_430876801_431136001_4FGL_J0424.7+0036_daily_bin739.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/414957/ft2_4FGL_J0424.7+0036_daily_bin739.fits
.....................!
real 17.98
user 16.72
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414957/ft1_filtered_4FGL_J0424.7+0036_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/414957/ft2_4FGL_J0424.7+0036_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/414957/ltcube_430876801_431136001_4FGL_J0424.7+0036_daily_bin739.fits outfile=/scratch/kocevski/414957/expmap_430876801_431136001_4FGL_J0424.7+0036_daily_bin739.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/414957/ltcube_430876801_431136001_4FGL_J0424.7+0036_daily_bin739.fits
.....................!
real 198.80
user 191.51
sys 6.61

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/414957/ft1_filtered_4FGL_J0424.7+0036_daily_bin739.fits scfile=/scratch/kocevski/414957/ft2_4FGL_J0424.7+0036_daily_bin739.fits outfile=/scratch/kocevski/414957/cmap_430876801_431136001_4FGL_J0424.7+0036_daily_bin739.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 1.14
user 0.39
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414957/ft1_filtered_4FGL_J0424.7+0036_daily_bin739.fits scfile=/scratch/kocevski/414957/ft2_4FGL_J0424.7+0036_daily_bin739.fits outfile=/scratch/kocevski/414957/cmap_HighResolution_430876801_431136001_4FGL_J0424.7+0036_daily_bin739.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 1.18
user 0.43
sys 0.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414957/ft1_filtered_4FGL_J0424.7+0036_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/414957/ft2_4FGL_J0424.7+0036_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414957/Model_4FGL_J0424.7+0036_daily_bin739.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/414957/ft1_filtered_4FGL_J0424.7+0036_daily_bin739.fits.....................!
real 122.73
user 119.22
sys 2.86

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74381       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.647       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.916       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1181       1.0000         .10000E-03   10000.    
     8 'norm      '    12.476       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10276E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10905E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    130.45       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.3759       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50038       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.4001       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5908       1.0000         .10000E-03   10000.    
    22 'norm      '    8.6795       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69995       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2197       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=   7712.368     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2573 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74419        1.6845        .33846E-06    .11388E-02
   2  Prefactor     .10000E-03    98.154        .33790E-05** at limit **
   3  Prefactor     .10000E-03    6.9124        .26052E-06** at limit **
   4  norm          10.647        15.605        .19977E-06    .21283E-04
   5  Prefactor     .10000E-03    15.850       -.32928E-06** at limit **
   6  norm          11.915        6.5824       -.15136E-06    .40788E-03
   7  Prefactor     5.1142        29.656        .21719E-05    .40757E-04
   8  norm          12.478        11.552        .33993E-06    .54879E-04
   9  norm          .10000E-03    22.874       -.24985E-06** at limit **
  10  norm          .10000E-03    1.2229       -.16608E-05** at limit **
  11  Prefactor     .10000E-03    1.7119       -.29927E-05** at limit **
  12  Prefactor     .10000E-03    13.070        .57690E-09** at limit **
  13  Prefactor     130.34        65.787       -.24191E-05    .10578E-03
  14  Prefactor     .10000E-03    4.6831        .33658E-06** at limit **
  15  norm          7.3756        3.5369        .48156E-07    .30758E-03
  16  Prefactor     .10000E-03    40.631        .33253E-05** at limit **
  17  norm          .50143        1.9028        .14796E-05    .65907E-03
  18  Prefactor     .10000E-03    3.0971        .24932E-06** at limit **
  19  Prefactor     .10000E-03    56.081       -.44694E-05** at limit **
  20  norm          7.4004        3.0142        .12609E-06    .38039E-04
  21  Prefactor     7.5723        96.496        .78465E-05    .51987E-04
  22  norm          8.6798        1.6432       -.41581E-07    .11366E-02
  23  Prefactor     .10000E-03    13.777        .10665E-05** at limit **
  24  Normalizat    .69986        .30725       -.53569E-05    .31289E-04
  25  Prefactor     1.2197        .11385       -.27909E-06   -.25030E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.74419
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 10.6469
  Prefactor  = 0.0001
  norm       = 11.9153
  Prefactor  = 5.11421
  norm       = 12.4775
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 130.335
  Prefactor  = 0.0001
  norm       = 7.37556
  Prefactor  = 0.0001
  norm       = 0.501434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.40041
  Prefactor  = 7.57228
  norm       = 8.67982
  Prefactor  = 0.0001
  Normalizat = 0.699859
  Prefactor  = 1.21966
 **********
 **   18 **HESSE 
 **********

 FCN=   7712.368     FROM HESSE     STATUS=OK           431 CALLS     3004 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74419        1.4075        .16562E-02   -1.5535    
   2  Prefactor     .10000E-03    98.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.9295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.647        15.603        .12279E-03   -1.5055    
   5  Prefactor     .10000E-03    15.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.915        6.5291        .11605E-03   -1.5017    
   7  Prefactor     5.1142        29.775        .17771E-03   -1.5256    
   8  norm          12.478        11.546        .11341E-03   -1.5001    
   9  norm          .10000E-03    23.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0027        .15334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8502        .17828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     130.34        65.834        .17626E-03   -1.3420    
  14  Prefactor     .10000E-03    4.7065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.3756        3.5252        .10792E-03   -1.5165    
  16  Prefactor     .10000E-03    40.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .50143        2.9912        .21108E-02   -1.5566    
  18  Prefactor     .10000E-03    3.1146        .15097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4004        3.0059        .92154E-04   -1.5164    
  21  Prefactor     7.5723        98.773        .14556E-03   -1.5158    
  22  norm          8.6798        1.6514        .39439E-04   -1.5119    
  23  Prefactor     .10000E-03    13.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69986        .31406        .53776E-03   -1.0390    
  25  Prefactor     1.2197        .11942        .17000E-03   -.85728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30209e-09
Minuit parameter uncertainties:
  1  1.40758
  2  0.000963903
  3  4.10056e-05
  4  15.6093
  5  4.4336e-05
  6  6.52946
  7  24.6982
  8  11.5483
  9  9.55671e-05
  10  0.000198777
  11  4.47282e-05
  12  0.000103551
  13  65.8711
  14  3.79612e-05
  15  3.52531
  16  2.53119e-05
  17  2.44932
  18  2.44793e-05
  19  0.00012834
  20  3.00596
  21  54.8079
  22  1.65144
  23  2.56336e-05
  24  0.314873
  25  0.119451
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  4.473e-05  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.220e+00  1.195e-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:  6.999e-01  3.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414957/likelihoodResults_430876801_431136001_4FGL_J0424.7+0036_daily_bin739.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): 102
logL (Free Index) = 7712.370679
delta logL = -0.00258020411093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7712.36809891
delta logL = -1.087983037e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2265       1.0000          .0000       10.000    
     3 'Normalizat'    .69984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2197       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=   7712.368     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      224 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .70117        .34268E-01** at limit **
   2  Index         2.2394        3.0162        .50000       -.59578E-04
   3  Normalizat    .69985        .57329E-02    .12121       -.71244E-04
   4  Prefactor     1.2197        .23457E-02    .34181E-01   -.24357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23942
  Normalizat = 0.699855
  Prefactor  = 1.21966
 **********
 **   18 **HESSE 
 **********

 FCN=   7712.368     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      257 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    363.13        .17761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2394        5.8621        .50000       -.58490    
   3  Normalizat    .69985        .15087        .53772E-03   -1.0390    
   4  Prefactor     1.2197        .61658E-01    .17000E-03   -.85728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.77026e-07
Minuit parameter uncertainties:
  1  0.000179653
  2  58.4063
  3  0.150962
  4  0.0616612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414957': 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): 102
logL (Free Index) = 7712.36809842
delta logL = 3.75721356249e-07

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.797e-04  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.239e+00  5.841e+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.220e+00  6.166e-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:  6.999e-01  1.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.195 0.603

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/414957/cmap_HighResolution_430876801_431136001_4FGL_J0424.7+0036_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-08-20 14:00:56.200859', job_id='414957', GAL2='1.22', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1629493256.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='3.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='739' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 414957: <4FGL_J0424.7+0036_daily_bin739> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin739> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:45:17 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:45:18 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:45:18 2021
Terminated at Fri Aug 20 14:00:56 2021
Results reported at Fri Aug 20 14:00:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin739 66.1945 0.6028 430876801 431136001 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 :                                   797.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            939 sec.

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

