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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin794
RA = 61.8921, Dec = 7.6998
tmin = 445132801, tmax = 445392001
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='271388', job_status='RUN', time_executed='2021-08-20 05:53:07.390576', time_epoch_executed='1629463987.39' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='794'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271388

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271388/ft1_4FGL_J0407.5+0741_daily_bin794.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271388/ft2_4FGL_J0407.5+0741_daily_bin794.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271388/ft1_4FGL_J0407.5+0741_daily_bin794.fits outfile=/scratch/kocevski/271388/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin794.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=445132801.0 tmax=445392001.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 4.55
user 3.36
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271388/ft2_4FGL_J0407.5+0741_daily_bin794.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/271388/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin794.fits evtable="EVENTS" outfile="/scratch/kocevski/271388/ft1_filtered_4FGL_J0407.5+0741_daily_bin794.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.40
user 0.31
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271388/ft1_filtered_4FGL_J0407.5+0741_daily_bin794.fits" evtable="EVENTS" scfile=/scratch/kocevski/271388/ft2_4FGL_J0407.5+0741_daily_bin794.fits sctable="SC_DATA" outfile=/scratch/kocevski/271388/ltcube_445132801_445392001_4FGL_J0407.5+0741_daily_bin794.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/271388/ft2_4FGL_J0407.5+0741_daily_bin794.fits
.....................!
real 13.09
user 11.71
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271388/ft1_filtered_4FGL_J0407.5+0741_daily_bin794.fits evtable="EVENTS" scfile=/scratch/kocevski/271388/ft2_4FGL_J0407.5+0741_daily_bin794.fits sctable="SC_DATA" expcube=/scratch/kocevski/271388/ltcube_445132801_445392001_4FGL_J0407.5+0741_daily_bin794.fits outfile=/scratch/kocevski/271388/expmap_445132801_445392001_4FGL_J0407.5+0741_daily_bin794.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/271388/ltcube_445132801_445392001_4FGL_J0407.5+0741_daily_bin794.fits
.....................!
real 192.41
user 185.67
sys 6.13

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/271388/ft1_filtered_4FGL_J0407.5+0741_daily_bin794.fits scfile=/scratch/kocevski/271388/ft2_4FGL_J0407.5+0741_daily_bin794.fits outfile=/scratch/kocevski/271388/cmap_445132801_445392001_4FGL_J0407.5+0741_daily_bin794.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 1.45
user 0.38
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271388/ft1_filtered_4FGL_J0407.5+0741_daily_bin794.fits scfile=/scratch/kocevski/271388/ft2_4FGL_J0407.5+0741_daily_bin794.fits outfile=/scratch/kocevski/271388/cmap_HighResolution_445132801_445392001_4FGL_J0407.5+0741_daily_bin794.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 1.43
user 0.37
sys 1.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .83408       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11699E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.0807       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5613       1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.862       1.0000         .10000E-03   10000.    
    14 'Prefactor '    85.569       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.587       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6278       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4773       1.0000         .10000E-03   10000.    
    18 'norm      '    10.257       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7022       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2448       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92456       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10661.05     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2056 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.189        .15617E-04** at limit **
   2  norm          .10000E-03    1.5050       -.26469E-05** at limit **
   3  norm          .83401        1.3784       -.55206E-05   -.45832E-04
   4  Prefactor     29.076        50.442       -.89407E-04    .26463E-02
   5  Prefactor     .10000E-03    10.843       -.16125E-04** at limit **
   6  norm          9.0783        1.9769       -.66198E-05   -.45576E-02
   7  Prefactor     .10000E-03    9.0865       -.14355E-04** at limit **
   8  norm          .10000E-03    2.8282        .68629E-05** at limit **
   9  Prefactor     1.5488        9.8287        .53052E-04    .24942E-03
  10  norm          .10000E-03    7.3507       -.92596E-05** at limit **
  11  norm          .10000E-03    1.4917       -.25135E-05** at limit **
  12  Prefactor     .10000E-03    1.5529       -.19399E-05** at limit **
  13  Prefactor     34.927        28.612       -.32073E-04    .46564E-02
  14  Prefactor     85.590        5.4696        .30625E-05    .10383E-02
  15  Prefactor     24.595        6.8213        .16231E-04    .20128E-01
  16  norm          1.6193        3.1280        .71851E-05   -.23184E-04
  17  Prefactor     6.4872        2.7154        .24830E-05    .47058E-03
  18  norm          10.258        4.4937        .69293E-06    .12648E-03
  19  Prefactor     .10000E-03    3.5294        .96395E-06** at limit **
  20  norm          1.7018        2.2739        .53851E-06    .79092E-05
  21  Normalizat    1.2447        .28234        .36042E-04    .23788E-05
  22  Prefactor     .92461        .74973E-01   -.80266E-05    .85941E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.834007
  Prefactor  = 29.0759
  Prefactor  = 0.000100002
  norm       = 9.07831
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.54881
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.9273
  Prefactor  = 85.5896
  Prefactor  = 24.5947
  norm       = 1.61927
  Prefactor  = 6.48719
  norm       = 10.2575
  Prefactor  = 0.0001
  norm       = 1.70179
  Normalizat = 1.24471
  Prefactor  = 0.924608
 **********
 **   18 **HESSE 
 **********

 FCN=   10661.05     FROM HESSE     STATUS=OK           404 CALLS     2460 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .83401        1.5672        .35641E-01   -1.5525    
   4  Prefactor     29.076        55.140        .18519E-02   -1.4629    
   5  Prefactor     .10000E-03    10.772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.0783        12.422        .33251E-02   -1.5105    
   7  Prefactor     .10000E-03    9.0830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5488        86.743        .85132E-02   -1.5459    
  10  norm          .10000E-03    7.3428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .69671        .27175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .99464        .35198E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.927        32.212        .16968E-02   -1.4525    
  14  Prefactor     85.590        62.610        .10857E-02   -1.3855    
  15  Prefactor     24.595        15.512        .20196E-02   -1.4716    
  16  norm          1.6193        3.3186        .82881E-02   -1.5453    
  17  Prefactor     6.4872        70.899        .39423E-02   -1.5199    
  18  norm          10.258        4.5867        .31277E-02   -1.5067    
  19  Prefactor     .10000E-03    3.5121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7018        2.2943        .80594E-02   -1.5447    
  21  Normalizat    1.2447        .26713        .10552       -.85232    
  22  Prefactor     .92461        .67921E-01    .32902E-01   -.95286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05238e-07
Minuit parameter uncertainties:
  1  0.000449133
  2  2.64459e-07
  3  1.56729
  4  55.2364
  5  0.000321241
  6  12.4255
  7  0.000153181
  8  1.06876e-06
  9  23.2164
  10  1.08155e-05
  11  1.04132e-06
  12  8.25747e-07
  13  32.2276
  14  62.6584
  15  15.5145
  16  3.31894
  17  42.9566
  18  4.58683
  19  1.69184e-06
  20  2.29443
  21  0.267425
  22  0.0679277
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.000e-04  3.212e-04  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:  9.246e-01  6.793e-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:  1.245e+00  2.674e-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: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271388/likelihoodResults_445132801_445392001_4FGL_J0407.5+0741_daily_bin794.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) = 10661.0536137
delta logL = -0.000439284336608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10661.0531744
delta logL = 1.88629201148e-08

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 'Index     '    2.3010       1.0000          .0000       10.000    
     3 'Normalizat'    1.2447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92461       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=   10661.05     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      255 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    126.76        .18142E-02** at limit **
   2  Index         2.2635        8.8678        .50000        .63053E-05
   3  Normalizat    1.2447        .23330E-01    .46771E-03   -.87408E-04
   4  Prefactor     .92461        .64089E-02    .14538E-03   -.15217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100438
  Index      = 2.26355
  Normalizat = 1.24471
  Prefactor  = 0.924608
 **********
 **   18 **HESSE 
 **********

 FCN=   10661.05     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    573.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2635        7.5079        .50000       -.57912    
   3  Normalizat    1.2447        .52481E-01    .18708E-04   -.85232    
   4  Prefactor     .92461        .14414E-01    .58154E-05   -.95286    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.59283e-09
Minuit parameter uncertainties:
  1  0.0319793
  2  994.742
  3  0.0524835
  4  0.0144144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271388': 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) = 10661.0531744
delta logL = 6.20275386609e-08

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.004e-04  3.198e-02  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.264e+00  9.947e+02  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:  9.246e-01  1.441e-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:  1.245e+00  5.248e-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/271388/cmap_HighResolution_445132801_445392001_4FGL_J0407.5+0741_daily_bin794.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-08-20 06:06:32.252508', job_id='271388', GAL2='0.92', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1629464792.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='794' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:06:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 271388: <4FGL_J0407.5+0741_daily_bin794> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin794 61.8921 7.6998 445132801 445392001 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 :                                   815.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             327.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            944 sec.

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

