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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin524
RA = 61.8921, Dec = 7.6998
tmin = 375148801, tmax = 375408001
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='269949', job_status='RUN', time_executed='2021-08-20 05:46:42.195722', time_epoch_executed='1629463602.2' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269949/ft1_4FGL_J0407.5+0741_daily_bin524.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269949/ft1_4FGL_J0407.5+0741_daily_bin524.fits outfile=/scratch/kocevski/269949/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin524.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=375148801.0 tmax=375408001.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.84
user 4.34
sys 2.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.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/269949/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin524.fits evtable="EVENTS" outfile="/scratch/kocevski/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.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 2.77
user 0.33
sys 2.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.fits" evtable="EVENTS" scfile=/scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits sctable="SC_DATA" outfile=/scratch/kocevski/269949/ltcube_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.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/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits
.....................!
real 14.11
user 11.21
sys 2.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/269949/ltcube_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.fits outfile=/scratch/kocevski/269949/expmap_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.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/269949/ltcube_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.fits
.....................!
real 194.66
user 185.92
sys 8.40

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 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0407.5+0741 @ 61.8921 7.6998

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.fits scfile=/scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits outfile=/scratch/kocevski/269949/cmap_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.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=61.8921 yref=7.6998 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 2.72
user 0.37
sys 2.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.fits scfile=/scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits outfile=/scratch/kocevski/269949/cmap_HighResolution_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.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=61.8921 yref=7.6998 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 2.75
user 0.38
sys 2.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/269949/Model_4FGL_J0407.5+0741_daily_bin524.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/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.fits.....................!
real 134.46
user 130.04
sys 4.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.fits', '/scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits', expMap='/scratch/kocevski/269949/expmap_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.fits', expCube='/scratch/kocevski/269949/ltcube_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/269949/Model_4FGL_J0407.5+0741_daily_bin524.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0407.5+0741'

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  5.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.311e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/269949/ft1_filtered_4FGL_J0407.5+0741_daily_bin524.fits
Spacecraft file(s): /scratch/kocevski/269949/ft2_4FGL_J0407.5+0741_daily_bin524.fits
Exposure map: /scratch/kocevski/269949/expmap_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.fits
Exposure cube: /scratch/kocevski/269949/ltcube_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/269949/Model_4FGL_J0407.5+0741_daily_bin524.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) = 10026.9335649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6265       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24148E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.517       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    50.473       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11291E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .16096E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4289       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1925       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .18194E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87508       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0703       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10026.92     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2428 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4970       -.96133E-08** at limit **
   2  norm          3.6264        3.6173        .32943E-06    .35076E-03
   3  norm          .10000E-03    .77638       -.34619E-08** at limit **
   4  Prefactor     .10000E-03    21.193        .12492E-04** at limit **
   5  Prefactor     .10002E-03    9.5222        .29436E-06** at limit **
   6  norm          .10000E-03    7.0159        .29582E-06** at limit **
   7  Prefactor     19.513        26.288        .15922E-05   -.39393E-04
   8  norm          .10000E-03    2.7948       -.43672E-07** at limit **
   9  Prefactor     .10000E-03    23.704       -.11953E-04** at limit **
  10  norm          50.454        29.915       -.23787E-05   -.31804E-03
  11  norm          .10000E-03    .26731       -.33201E-08** at limit **
  12  Prefactor     .10000E-03    .56461        .63248E-07** at limit **
  13  Prefactor     .10084E-03    18.671        .50762E-05** at limit **
  14  Prefactor     .10000E-03    16.189       -.25642E-05** at limit **
  15  Prefactor     .10000E-03    8.3234        .11350E-05** at limit **
  16  norm          .10000E-03    1.1794       -.99469E-07** at limit **
  17  Prefactor     3.3475        70.443       -.67791E-04   -.31891E-04
  18  norm          3.1926        3.0957       -.18872E-06   -.69313E-03
  19  Prefactor     .10000E-03    2.6820        .43954E-07** at limit **
  20  norm          .10000E-03    .90299        .21462E-06** at limit **
  21  Normalizat    .87494        .24608        .79189E-06   -.30811E-03
  22  Prefactor     1.0703        .68913E-01    .45266E-06   -.80293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.62645
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 19.5126
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 50.4545
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 3.34751
  norm       = 3.19256
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.874941
  Prefactor  = 1.07034
 **********
 **   18 **HESSE 
 **********

 FCN=   10026.92     FROM HESSE     STATUS=OK           340 CALLS     2768 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6264        3.6277        .18587E-03   -1.5327    
   3  norm          .10000E-03    .79335        .86127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    49.978        .59215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.0166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.513        26.272        .90662E-04   -1.4824    
   8  norm          .10000E-03    2.9109        .32692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          50.454        29.473        .56448E-04   -1.4286    
  11  norm          .10000E-03    .26937        .50532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .56917        .73365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10084E-03    127.49        .75756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.7874        .19743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3475        71.157        .21844E-03   -1.5342    
  18  norm          3.1926        3.0909        .16766E-03   -1.5351    
  19  Prefactor     .10000E-03    2.6967        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.9498        .18342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87494        .25918        .51305E-03   -.97346    
  22  Prefactor     1.0703        .75293E-01    .13658E-03   -.90420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22085e-09
Minuit parameter uncertainties:
  1  3.2021e-06
  2  3.62791
  3  1.37653e-06
  4  2.61104e-05
  5  0.00216559
  6  4.91273e-07
  7  26.2873
  8  2.80137e-06
  9  6.88744e-05
  10  29.4814
  11  1.46914e-07
  12  1.0908e-06
  13  0.0207182
  14  3.77612e-06
  15  1.27185e-05
  16  0.000276049
  17  30.9088
  18  3.09102
  19  1.31355e-05
  20  2.94687e-05
  21  0.259547
  22  0.0753005
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.000e-04  2.166e-03  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.311e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
457    Prefactor:  1.070e+00  7.530e-02  0.000e+00  1.000e+01 ( 1.000e+00)
458        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
459        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
456   Normalization:  8.749e-01  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.892 7.700
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/269949/likelihoodResults_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.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) = 10026.9217781
delta logL = -9.35201405809e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10026.7412335
delta logL = 0.18045107686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34680E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.9645       1.0000          .0000       10.000    
     3 'Normalizat'    .83397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10026.74     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      335 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33395E-01    .48861        .71788E-02    .10181E-01
   2  Index         4.9798        1.5690        .20136        .14635E-03
   3  Normalizat    .83415        .29202E-01    .11823        .56699E-04
   4  Prefactor     1.0764        .85528E-02    .38565E-01   -.76103E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0333947
  Index      = 4.97975
  Normalizat = 0.834154
  Prefactor  = 1.07636
 **********
 **   18 **HESSE 
 **********

 FCN=   10026.74     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      368 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33395E-01    5.4620        .31471E-04   -1.5671    
   2  Index         4.9798        7.1424        .71853E-02   -.40493E-02
   3  Normalizat    .83415        .20725        .52445E-03   -.98814    
   4  Prefactor     1.0764        .59976E-01    .13624E-03   -.90226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.60126e-10
Minuit parameter uncertainties:
  1  0.852974
  2  10.5012
  3  0.207446
  4  0.0599799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269949': 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) = 10026.7412272
delta logL = 0.180457324432

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  3.339e-02  8.530e-01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  4.980e+00  1.050e+01  0.000e+00  1.000e+01 (-1.000e+00)
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
457    Prefactor:  1.076e+00  5.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
458        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
459        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
456   Normalization:  8.342e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 61.892 7.700

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/269949/cmap_HighResolution_375148801_375408001_4FGL_J0407.5+0741_daily_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-20 06:00:38.029960', job_id='269949', GAL2='1.08', fit_tolerance='1e-08', EG2='0.83', EG='0.87', time_epoch_completed='1629464438.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.80e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='524' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 269949: <4FGL_J0407.5+0741_daily_bin524> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin524> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 05:45:54 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:45:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 05:45:56 2021
Terminated at Fri Aug 20 06:00:38 2021
Results reported at Fri Aug 20 06:00:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin524 61.8921 7.6998 375148801 375408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0407.5+0741 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   867.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             344.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

