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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin928
RA = 61.8921, Dec = 7.6998
tmin = 479865601, tmax = 480124801
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='271558', job_status='RUN', time_executed='2021-08-20 05:53:32.921481', time_epoch_executed='1629464012.92' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271558/ft1_4FGL_J0407.5+0741_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271558/ft2_4FGL_J0407.5+0741_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271558/ft1_4FGL_J0407.5+0741_daily_bin928.fits outfile=/scratch/kocevski/271558/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin928.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=479865601.0 tmax=480124801.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.21
user 3.22
sys 0.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271558/ft2_4FGL_J0407.5+0741_daily_bin928.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/271558/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin928.fits evtable="EVENTS" outfile="/scratch/kocevski/271558/ft1_filtered_4FGL_J0407.5+0741_daily_bin928.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.25
user 0.32
sys 0.92

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271558/ft1_filtered_4FGL_J0407.5+0741_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/271558/ft2_4FGL_J0407.5+0741_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/271558/ltcube_479865601_480124801_4FGL_J0407.5+0741_daily_bin928.fits outfile=/scratch/kocevski/271558/expmap_479865601_480124801_4FGL_J0407.5+0741_daily_bin928.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/271558/ltcube_479865601_480124801_4FGL_J0407.5+0741_daily_bin928.fits
.....................!
real 192.94
user 187.59
sys 5.02

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/271558/ft1_filtered_4FGL_J0407.5+0741_daily_bin928.fits scfile=/scratch/kocevski/271558/ft2_4FGL_J0407.5+0741_daily_bin928.fits outfile=/scratch/kocevski/271558/cmap_479865601_480124801_4FGL_J0407.5+0741_daily_bin928.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.28
user 0.37
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271558/ft1_filtered_4FGL_J0407.5+0741_daily_bin928.fits scfile=/scratch/kocevski/271558/ft2_4FGL_J0407.5+0741_daily_bin928.fits outfile=/scratch/kocevski/271558/cmap_HighResolution_479865601_480124801_4FGL_J0407.5+0741_daily_bin928.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.29
user 0.39
sys 0.89

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6905       1.0000         .10000E-03   10000.    
     3 'norm      '    .76950       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.847       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3555       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1229       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.398       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1769       1.0000         .10000E-03   10000.    
    11 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .23417       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4686       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2841       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1146       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99350       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=   10805.84     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2419 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0308        .55704E-07** at limit **
   2  norm          5.6905        5.6068        .39148E-07    .55503E-05
   3  norm          .77003        1.7649        .80438E-07   -.82175E-04
   4  Prefactor     57.837        48.020       -.54129E-05    .10684E-04
   5  Prefactor     4.3554        12.049       -.20981E-05    .11831E-04
   6  norm          .10000E-03    12.128        .36460E-07** at limit **
   7  Prefactor     .10000E-03    10.509       -.11928E-06** at limit **
   8  norm          2.1239        1.1612        .88685E-07   -.11723E-02
   9  Prefactor     44.399        30.400        .17577E-05    .13051E-03
  10  norm          2.1631        89.447        .19908E-04    .39102E-04
  11  norm          .10000E-03    .41088       -.16432E-06** at limit **
  12  Prefactor     .10000E-03    .73183       -.11482E-06** at limit **
  13  Prefactor     28.074        27.471        .40114E-05    .39714E-03
  14  Prefactor     .10000E-03    198.91       -.60105E-05** at limit **
  15  Prefactor     .10000E-03    6.4783        .19801E-08** at limit **
  16  norm          .23965        1.3539       -.12630E-05    .77945E-03
  17  Prefactor     .10000E-03    75.421       -.80668E-06** at limit **
  18  norm          6.4645        3.9505       -.97394E-07    .21905E-03
  19  Prefactor     .10000E-03    2.6187       -.58803E-09** at limit **
  20  norm          4.2842        2.0896        .90793E-08    .12325E-03
  21  Normalizat    1.1143        .25728       -.11033E-05    .20343E-03
  22  Prefactor     .99355        .67442E-01    .52032E-07    .38616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.69049
  norm       = 0.770029
  Prefactor  = 57.837
  Prefactor  = 4.35544
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12394
  Prefactor  = 44.3989
  norm       = 2.16312
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0744
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.239648
  Prefactor  = 0.0001
  norm       = 6.46455
  Prefactor  = 0.0001
  norm       = 4.28423
  Normalizat = 1.11428
  Prefactor  = 0.993546
 **********
 **   18 **HESSE 
 **********

 FCN=   10805.84     FROM HESSE     STATUS=OK           342 CALLS     2761 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6905        5.6119        .16839E-03   -1.5231    
   3  norm          .77003        1.7395        .20011E-03   -1.5532    
   4  Prefactor     57.837        47.868        .52747E-04   -1.4185    
   5  Prefactor     4.3554        12.021        .19300E-03   -1.5291    
   6  norm          .10000E-03    12.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1239        4.8333        .14152E-02   -1.5416    
   9  Prefactor     44.399        30.379        .60169E-04   -1.4374    
  10  norm          2.1631        87.600        .27905E-03   -1.5414    
  11  norm          .10000E-03    .68406        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .74385        .86769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.074        29.387        .75577E-04   -1.4648    
  14  Prefactor     .10000E-03    203.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .23965        9.5147        .20049E-02   -1.5610    
  17  Prefactor     .10000E-03    75.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4645        3.9506        .15446E-03   -1.5199    
  19  Prefactor     .10000E-03    2.6416        .16424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2842        2.0883        .10162E-03   -1.5294    
  21  Normalizat    1.1143        .27892        .49255E-03   -.89295    
  22  Prefactor     .99355        .73859E-01    .14510E-03   -.92945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80312e-09
Minuit parameter uncertainties:
  1  7.81835e-06
  2  5.61243
  3  1.73961
  4  47.8997
  5  12.0277
  6  1.01752e-06
  7  2.28836e-05
  8  4.83414
  9  30.3896
  10  27.5737
  11  6.52446e-06
  12  9.95185e-06
  13  29.4017
  14  0.00111744
  15  2.64012e-06
  16  3.01993
  17  1.64253e-05
  18  3.95075
  19  2.90401e-07
  20  2.08833
  21  0.279285
  22  0.0738667
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  4.355e+00  1.203e+01  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.935e-01  7.387e-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.114e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/271558/likelihoodResults_479865601_480124801_4FGL_J0407.5+0741_daily_bin928.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): 0
logL (Free Index) = 10805.8386493
delta logL = 0.00544274885942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10805.8375725
delta logL = 0.00651955704961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8050       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4774       1.0000          .0000       10.000    
     3 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99373       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=   10805.84     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      262 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8031        12.428        .20693E-03   -.39733E-03
   2  Index         2.4790        1.5338        .53485E-02   -.25549E-03
   3  Normalizat    1.1121        .25860        .49295E-03   -.55290E-03
   4  Prefactor     .99380        .72743E-01    .14508E-03   -.16970E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80312
  Index      = 2.47899
  Normalizat = 1.11209
  Prefactor  = 0.993798
 **********
 **   18 **HESSE 
 **********

 FCN=   10805.84     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8031        11.930        .82771E-05   -1.5318    
   2  Index         2.4790        1.4746        .21394E-03   -.52846    
   3  Normalizat    1.1121        .25866        .19718E-04   -.89365    
   4  Prefactor     .99380        .72757E-01    .29016E-04   -.92937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54972e-09
Minuit parameter uncertainties:
  1  11.9372
  2  1.50492
  3  0.258956
  4  0.0727646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271558': 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) = 10805.8375713
delta logL = 0.00652078089115

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  3.803e+00  1.194e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.479e+00  1.505e+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.938e-01  7.276e-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.112e+00  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/271558/cmap_HighResolution_479865601_480124801_4FGL_J0407.5+0741_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-08-20 06:07:36.632597', job_id='271558', GAL2='0.99', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629464856.63', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.52e-03', ts2='0.17', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='928' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:07:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 271558: <4FGL_J0407.5+0741_daily_bin928> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin928 61.8921 7.6998 479865601 480124801 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 :                                   852.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

