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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin677
RA = 61.8921, Dec = 7.6998
tmin = 414806401, tmax = 415065601
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='271219', job_status='RUN', time_executed='2021-08-20 05:52:51.496908', time_epoch_executed='1629463971.5' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271219/ft1_4FGL_J0407.5+0741_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271219/ft2_4FGL_J0407.5+0741_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271219/ft1_4FGL_J0407.5+0741_daily_bin677.fits outfile=/scratch/kocevski/271219/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin677.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=414806401.0 tmax=415065601.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 5.02
user 4.27
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271219/ft2_4FGL_J0407.5+0741_daily_bin677.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/271219/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/271219/ft1_filtered_4FGL_J0407.5+0741_daily_bin677.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.94
user 0.26
sys 0.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271219/ft1_filtered_4FGL_J0407.5+0741_daily_bin677.fits" evtable="EVENTS" scfile=/scratch/kocevski/271219/ft2_4FGL_J0407.5+0741_daily_bin677.fits sctable="SC_DATA" outfile=/scratch/kocevski/271219/ltcube_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.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/271219/ft2_4FGL_J0407.5+0741_daily_bin677.fits
.....................!
real 9.71
user 8.87
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271219/ft1_filtered_4FGL_J0407.5+0741_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/271219/ft2_4FGL_J0407.5+0741_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/271219/ltcube_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.fits outfile=/scratch/kocevski/271219/expmap_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.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/271219/ltcube_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.fits
.....................!
real 144.92
user 140.81
sys 3.88

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/271219/ft1_filtered_4FGL_J0407.5+0741_daily_bin677.fits scfile=/scratch/kocevski/271219/ft2_4FGL_J0407.5+0741_daily_bin677.fits outfile=/scratch/kocevski/271219/cmap_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.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 0.98
user 0.31
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271219/ft1_filtered_4FGL_J0407.5+0741_daily_bin677.fits scfile=/scratch/kocevski/271219/ft2_4FGL_J0407.5+0741_daily_bin677.fits outfile=/scratch/kocevski/271219/cmap_HighResolution_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.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 0.95
user 0.30
sys 0.64

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271219/ft1_filtered_4FGL_J0407.5+0741_daily_bin677.fits', '/scratch/kocevski/271219/ft2_4FGL_J0407.5+0741_daily_bin677.fits', expMap='/scratch/kocevski/271219/expmap_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.fits', expCube='/scratch/kocevski/271219/ltcube_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271219/Model_4FGL_J0407.5+0741_daily_bin677.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/271219/ft1_filtered_4FGL_J0407.5+0741_daily_bin677.fits
Spacecraft file(s): /scratch/kocevski/271219/ft2_4FGL_J0407.5+0741_daily_bin677.fits
Exposure map: /scratch/kocevski/271219/expmap_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.fits
Exposure cube: /scratch/kocevski/271219/ltcube_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271219/Model_4FGL_J0407.5+0741_daily_bin677.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) = 11205.5767119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.464       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9476       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .55262       1.0000         .10000E-03   10000.    
    11 'norm      '    .19204       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49514       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.765       1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.717       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2068       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.651       1.0000         .10000E-03   10000.    
    18 'norm      '    .69167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7843       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3923       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92088       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0228       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11205.57     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     2773 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.233        13.104        .11953E-03   -.66575E-05
   2  norm          .10000E-03    2.6994        .16958E-02** at limit **
   3  norm          6.2165        2.2622        .92312E-04   -.23153E-04
   4  Prefactor     .10000E-03    129.36        .18142E-02** at limit **
   5  Prefactor     .10000E-03    35.827        .18142E-02** at limit **
   6  norm          .10000E-03    10.826        .18142E-02** at limit **
   7  Prefactor     21.463        22.429        .43227E-03    .89420E-06
   8  norm          3.9471        3.7645        .19241E-03   -.36751E-04
   9  Prefactor     .10000E-03    24.590        .18142E-02** at limit **
  10  norm          .43466        24.241        .12120        .23781E-03
  11  norm          .19253        .76113        .17289E-03    .27421E-03
  12  Prefactor     .49561        1.5692        .20427E-03   -.17320E-03
  13  Prefactor     13.774        20.172        .10796E-03   -.31803E-04
  14  Prefactor     56.694        47.303        .53267E-04    .61468E-05
  15  Prefactor     7.2052        12.692        .74709E-03   -.32504E-04
  16  norm          .10000E-03    1.3675        .23847E-03** at limit **
  17  Prefactor     18.650        25.279        .92741E-04   -.17162E-05
  18  norm          .69315        2.5210        .30101E-03    .20168E-04
  19  Prefactor     3.7845        5.9574        .20751E-03   -.28050E-04
  20  norm          2.3924        2.0862        .13776E-03   -.12214E-04
  21  Normalizat    .92068        .27411        .52136E-03   -.58003E-04
  22  Prefactor     1.0228        .73092E-01    .14140E-03   -.21741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2329
  norm       = 0.0001
  norm       = 6.21647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.4628
  norm       = 3.9471
  Prefactor  = 0.0001
  norm       = 0.434657
  norm       = 0.192535
  Prefactor  = 0.495608
  Prefactor  = 13.7739
  Prefactor  = 56.6943
  Prefactor  = 7.20523
  norm       = 0.0001
  Prefactor  = 18.6505
  norm       = 0.693152
  Prefactor  = 3.78449
  norm       = 2.39243
  Normalizat = 0.920681
  Prefactor  = 1.02285
 **********
 **   18 **HESSE 
 **********

 FCN=   11205.57     FROM HESSE     STATUS=OK           330 CALLS     3103 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.233        13.104        .47814E-05   -1.5038    
   2  norm          .10000E-03    2.6997        .33916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2165        2.2622        .36925E-05   -1.5209    
   4  Prefactor     .10000E-03    129.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.463        22.424        .17291E-04   -1.4781    
   8  norm          3.9471        3.7638        .76965E-05   -1.5311    
   9  Prefactor     .10000E-03    24.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .43466        22.579        .12673       -1.5576    
  11  norm          .19253        .76054        .69156E-05   -1.5620    
  12  Prefactor     .49561        1.5659        .81709E-05   -1.5567    
  13  Prefactor     13.774        20.161        .43183E-05   -1.4966    
  14  Prefactor     56.694        47.253        .10653E-04   -1.4201    
  15  Prefactor     7.2052        12.689        .29884E-04   -1.5171    
  16  norm          .10000E-03    1.3675        .47695E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.650        25.281        .37097E-05   -1.4844    
  18  norm          .69315        2.5200        .12040E-04   -1.5541    
  19  Prefactor     3.7845        5.9566        .83006E-05   -1.5319    
  20  norm          2.3924        2.0861        .55103E-05   -1.5399    
  21  Normalizat    .92068        .27410        .20854E-04   -.95737    
  22  Prefactor     1.0228        .73102E-01    .56559E-05   -.91972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91341e-10
Minuit parameter uncertainties:
  1  13.1074
  2  7.57246e-08
  3  2.26224
  4  0.000258733
  5  1.60138e-05
  6  1.04769e-06
  7  22.4325
  8  3.76401
  9  3.19422e-05
  10  6.26722
  11  0.760576
  12  1.56607
  13  20.1711
  14  47.2838
  15  12.6939
  16  1.19976e-05
  17  25.2958
  18  2.52036
  19  5.95754
  20  2.08615
  21  0.274514
  22  0.0731089
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.000e-04  1.601e-05  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.023e+00  7.311e-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:  9.207e-01  2.745e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271219/likelihoodResults_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.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) = 11205.5653934
delta logL = -0.000132958464746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11205.5652606
delta logL = -2.4235851015e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3819       1.0000          .0000       10.000    
     3 'Normalizat'    .92068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0228       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=   11205.57     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      256 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6538.9        .90712E-02** at limit **
   2  Index         2.3339        8.8049        .50000        .14677E-04
   3  Normalizat    .92068        .77802E-01    .11755       -.45020E-03
   4  Prefactor     1.0228        .22101E-01    .31996E-01   -.95956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.33388
  Normalizat = 0.920675
  Prefactor  = 1.02285
 **********
 **   18 **HESSE 
 **********

 FCN=   11205.57     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6275.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3339        7.0523        .50000       -.56241    
   3  Normalizat    .92068        .65551E-01    .52136E-03   -.95737    
   4  Prefactor     1.0228        .18832E-01    .14140E-03   -.91972    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.03761e-08
Minuit parameter uncertainties:
  1  0.00265248
  2  38.721
  3  0.0655563
  4  0.0188321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271219': 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) = 11205.5652605
delta logL = -8.03647708381e-08

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.000e-04  2.652e-03  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.334e+00  3.872e+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.023e+00  1.883e-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:  9.207e-01  6.556e-02  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/271219/cmap_HighResolution_414806401_415065601_4FGL_J0407.5+0741_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-20 06:04:07.887818', job_id='271219', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1629464647.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-8.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='677' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:04:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 271219: <4FGL_J0407.5+0741_daily_bin677> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin677> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 05:50:36 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:50:38 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:50:38 2021
Terminated at Fri Aug 20 06:04:08 2021
Results reported at Fri Aug 20 06:04:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin677 61.8921 7.6998 414806401 415065601 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 :                                   680.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

