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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin545
RA = 61.8921, Dec = 7.6998
tmin = 380592001, tmax = 380851201
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='271028', job_status='RUN', time_executed='2021-08-20 05:53:09.164290', time_epoch_executed='1629463989.16' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271028/ft1_4FGL_J0407.5+0741_daily_bin545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271028/ft2_4FGL_J0407.5+0741_daily_bin545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271028/ft1_4FGL_J0407.5+0741_daily_bin545.fits outfile=/scratch/kocevski/271028/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin545.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=380592001.0 tmax=380851201.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 7.81
user 4.51
sys 3.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271028/ft1_filtered_4FGL_J0407.5+0741_daily_bin545.fits" evtable="EVENTS" scfile=/scratch/kocevski/271028/ft2_4FGL_J0407.5+0741_daily_bin545.fits sctable="SC_DATA" outfile=/scratch/kocevski/271028/ltcube_380592001_380851201_4FGL_J0407.5+0741_daily_bin545.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/271028/ft2_4FGL_J0407.5+0741_daily_bin545.fits
.....................!
real 18.55
user 14.77
sys 3.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271028/ft1_filtered_4FGL_J0407.5+0741_daily_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/271028/ft2_4FGL_J0407.5+0741_daily_bin545.fits sctable="SC_DATA" expcube=/scratch/kocevski/271028/ltcube_380592001_380851201_4FGL_J0407.5+0741_daily_bin545.fits outfile=/scratch/kocevski/271028/expmap_380592001_380851201_4FGL_J0407.5+0741_daily_bin545.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/271028/ltcube_380592001_380851201_4FGL_J0407.5+0741_daily_bin545.fits
.....................!
real 195.16
user 185.37
sys 9.14

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/271028/ft1_filtered_4FGL_J0407.5+0741_daily_bin545.fits scfile=/scratch/kocevski/271028/ft2_4FGL_J0407.5+0741_daily_bin545.fits outfile=/scratch/kocevski/271028/cmap_380592001_380851201_4FGL_J0407.5+0741_daily_bin545.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 3.49
user 0.36
sys 3.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271028/ft1_filtered_4FGL_J0407.5+0741_daily_bin545.fits scfile=/scratch/kocevski/271028/ft2_4FGL_J0407.5+0741_daily_bin545.fits outfile=/scratch/kocevski/271028/cmap_HighResolution_380592001_380851201_4FGL_J0407.5+0741_daily_bin545.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 3.48
user 0.38
sys 3.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33755E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.312       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2011       1.0000         .10000E-03   10000.    
    10 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .35443       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.673       1.0000         .10000E-03   10000.    
    16 'norm      '    .10747E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.749       1.0000         .10000E-03   10000.    
    18 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24659E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6385       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0211       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95915       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=   9364.494     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2501 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10164E-03    7.2517        .17423E-05** at limit **
   2  norm          .10000E-03    2.0003        .25138E-07** at limit **
   3  norm          2.4672        2.2326        .12484E-07   -.43754E-03
   4  Prefactor     26.386        35.920        .25507E-04    .11269E-03
   5  Prefactor     .10094E-03    12.145       -.33358E-05** at limit **
   6  norm          .10000E-03    11.404        .18332E-07** at limit **
   7  Prefactor     .10000E-03    15.782        .11820E-05** at limit **
   8  norm          .10000E-03    1.4157       -.35565E-07** at limit **
   9  Prefactor     6.2110        14.490        .94409E-05    .65240E-04
  10  norm          .10000E-03    17.994       -.52302E-05** at limit **
  11  norm          .35491        .84341       -.20878E-06   -.18830E-02
  12  Prefactor     .89087        1.5117       -.24064E-06   -.13404E-02
  13  Prefactor     .10017E-03    13.695       -.16793E-05** at limit **
  14  Prefactor     .10000E-03    19.233        .20389E-05** at limit **
  15  Prefactor     22.672        13.946       -.10391E-05   -.66768E-05
  16  norm          .10000E-03    1.2194        .16926E-06** at limit **
  17  Prefactor     60.742        40.993       -.19551E-05   -.11529E-04
  18  norm          .10000E-03    2.0417        .21922E-06** at limit **
  19  Prefactor     .10001E-03    3.3561        .72740E-06** at limit **
  20  norm          3.6382        2.3431       -.26079E-08   -.66973E-03
  21  Normalizat    1.0209        .26626       -.31503E-05    .10611E-03
  22  Prefactor     .95920        .70370E-01    .15652E-06    .25124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101636
  norm       = 0.0001
  norm       = 2.46723
  Prefactor  = 26.3864
  Prefactor  = 0.00010094
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.21104
  norm       = 0.0001
  norm       = 0.354908
  Prefactor  = 0.890867
  Prefactor  = 0.000100175
  Prefactor  = 0.0001
  Prefactor  = 22.6717
  norm       = 0.0001
  Prefactor  = 60.742
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 3.63824
  Normalizat = 1.02093
  Prefactor  = 0.959201
 **********
 **   18 **HESSE 
 **********

 FCN=   9364.494     FROM HESSE     STATUS=OK           362 CALLS     2863 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10164E-03    112.45        .49901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0062        .13366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4672        2.2275        .13200E-03   -1.5394    
   4  Prefactor     26.386        36.035        .78097E-04   -1.4680    
   5  Prefactor     .10094E-03    15.384        .94118E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4171        .11242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2110        14.460        .16121E-03   -1.5209    
  10  norm          .10000E-03    18.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .35491        .86474        .12722E-02   -1.5589    
  12  Prefactor     .89087        1.1947        .14345E-02   -1.5519    
  13  Prefactor     .10017E-03    85.946        .63997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.672        13.954        .84121E-04   -1.4755    
  16  norm          .10000E-03    6.8939        .19209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     60.742        40.909        .51479E-04   -1.4148    
  18  norm          .10000E-03    6.0563        .26518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    19.180        .33558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6382        2.3305        .11409E-03   -1.5326    
  21  Normalizat    1.0209        .27368        .47549E-03   -.92332    
  22  Prefactor     .95920        .76660E-01    .13902E-03   -.94102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7655e-08
Minuit parameter uncertainties:
  1  0.0271787
  2  2.25844e-07
  3  2.22755
  4  36.0644
  5  0.00760915
  6  3.86215e-06
  7  1.28049e-05
  8  2.20627e-06
  9  14.4683
  10  3.37708e-05
  11  0.864769
  12  1.19468
  13  0.00776032
  14  2.88583e-05
  15  13.9558
  16  9.40842e-05
  17  40.9276
  18  0.000102715
  19  0.000683706
  20  2.33053
  21  0.274061
  22  0.0766686
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.009e-04  7.609e-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:  9.592e-01  7.667e-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.021e+00  2.741e-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.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271028/likelihoodResults_380592001_380851201_4FGL_J0407.5+0741_daily_bin545.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) = 9364.49364533
delta logL = -2.97005299217e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9364.49364533
delta logL = -2.96997623082e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3114       1.0000          .0000       10.000    
     3 'Normalizat'    1.0209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95920       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=   9364.486     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      300 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32066        5.1675        .60729E-01   -.81122E-03
   2  Index         3.3480        .49700        .50000       -.84241E-06
   3  Normalizat    1.0134        .14690E-01    .10762       -.21801E-03
   4  Prefactor     .95996        .41970E-02    .31449E-01   -.10492E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.320657
  Index      = 3.34801
  Normalizat = 1.01337
  Prefactor  = 0.959956
 **********
 **   18 **HESSE 
 **********

 FCN=   9364.486     FROM HESSE     STATUS=OK            33 CALLS      333 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32066        8.2355        .19914E-02   -1.5821    
   2  Index         3.3480        3.5920        .46208E-02   -.33672    
   3  Normalizat    1.0134        .27136        .47707E-03   -.92584    
   4  Prefactor     .95996        .75929E-01    .13897E-03   -.94076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68281e-10
Minuit parameter uncertainties:
  1  3.25007
  2  4.08253
  3  0.271734
  4  0.0759377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271028': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9364.48648653
delta logL = 0.007129100155

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  3.207e-01  3.250e+00  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  3.348e+00  4.083e+00  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.600e-01  7.594e-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.013e+00  2.717e-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/271028/cmap_HighResolution_380592001_380851201_4FGL_J0407.5+0741_daily_bin545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-20 06:06:59.211421', job_id='271028', GAL2='0.96', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1629464819.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.13e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='545' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:06:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 271028: <4FGL_J0407.5+0741_daily_bin545> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin545 61.8921 7.6998 380592001 380851201 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 :                                   871.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            997 sec.

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

