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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1106
RA = 64.2269, Dec = 1.088
tmin = 526003201, tmax = 526262401
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='349685', job_status='RUN', time_executed='2021-08-20 10:18:23.399469', time_epoch_executed='1629479903.4' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349685

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349685/ft1_4FGL_J0416.9+0105_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349685/ft1_4FGL_J0416.9+0105_daily_bin1106.fits outfile=/scratch/kocevski/349685/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1106.fits ra=64.2269 dec=1.088 rad=12.0 tmin=526003201.0 tmax=526262401.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.06
user 3.52
sys 0.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.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/349685/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1106.fits evtable="EVENTS" outfile="/scratch/kocevski/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.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.79
user 0.32
sys 0.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/349685/ltcube_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.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/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits
.....................!
real 12.44
user 11.72
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/349685/ltcube_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.fits outfile=/scratch/kocevski/349685/expmap_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.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/349685/ltcube_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.fits
.....................!
real 192.12
user 186.41
sys 5.35

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 J0416.9+0105 @ 64.2269 1.088

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.fits scfile=/scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits outfile=/scratch/kocevski/349685/cmap_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.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=64.2269 yref=1.088 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.85
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.fits scfile=/scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits outfile=/scratch/kocevski/349685/cmap_HighResolution_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.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=64.2269 yref=1.088 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.82
user 0.38
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/349685/Model_4FGL_J0416.9+0105_daily_bin1106.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/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.fits.....................!
real 123.46
user 121.56
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.fits', '/scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits', expMap='/scratch/kocevski/349685/expmap_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.fits', expCube='/scratch/kocevski/349685/ltcube_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/349685/Model_4FGL_J0416.9+0105_daily_bin1106.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.9+0105'

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.655e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/349685/ft1_filtered_4FGL_J0416.9+0105_daily_bin1106.fits
Spacecraft file(s): /scratch/kocevski/349685/ft2_4FGL_J0416.9+0105_daily_bin1106.fits
Exposure map: /scratch/kocevski/349685/expmap_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.fits
Exposure cube: /scratch/kocevski/349685/ltcube_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/349685/Model_4FGL_J0416.9+0105_daily_bin1106.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) = 8299.77798798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8797       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.999       1.0000         .10000E-03   10000.    
     8 'norm      '    .12691E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0755       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.9805       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39168       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0305       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6804       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3507       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8299.762     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2396 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0333        2.1959       -.55942E-07    .97029E-05
   2  Prefactor     3.0802        146.96        .41157E-05   -.31980E-05
   3  Prefactor     .10000E-03    3.3494        .50320E-06** at limit **
   4  norm          .10000E-03    8.0675       -.18463E-06** at limit **
   5  Prefactor     .10000E-03    6.8644        .42372E-07** at limit **
   6  norm          2.8800        4.0353        .78874E-06    .77549E-03
   7  Prefactor     16.008        21.034       -.43540E-06   -.79467E-04
   8  norm          .10003E-03    5.0096        .31529E-05** at limit **
   9  norm          .10000E-03    26.615       -.74299E-06** at limit **
  10  norm          .10000E-03    .40408       -.11476E-06** at limit **
  11  Prefactor     .10000E-03    .57108        .97258E-07** at limit **
  12  Prefactor     7.0723        20.350       -.67158E-07    .39222E-04
  13  Prefactor     .10000E-03    21.447       -.28190E-06** at limit **
  14  Prefactor     .10000E-03    6.5536       -.63498E-06** at limit **
  15  norm          5.9809        3.1049       -.20349E-06    .12376E-03
  16  Prefactor     .10000E-03    16.080       -.13578E-06** at limit **
  17  norm          .38718        1.4340       -.89576E-06   -.28473E-03
  18  Prefactor     1.0284        6.9365        .68428E-05   -.58088E-03
  19  Prefactor     .10000E-03    15.363       -.22754E-06** at limit **
  20  norm          7.6806        3.1325        .10293E-06    .22637E-03
  21  Normalizat    1.3509        .21449        .27704E-05    .50903E-03
  22  Prefactor     .81300        .76982E-01    .16994E-06    .67568E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.0333
  Prefactor  = 3.08018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88003
  Prefactor  = 16.0079
  norm       = 0.000100026
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.07229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.98091
  Prefactor  = 0.0001
  norm       = 0.387181
  Prefactor  = 1.02843
  Prefactor  = 0.0001
  norm       = 7.68056
  Normalizat = 1.35093
  Prefactor  = 0.813001
 **********
 **   18 **HESSE 
 **********

 FCN=   8299.762     FROM HESSE     STATUS=OK           346 CALLS     2742 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0333        2.2041        .67481E-04   -1.5141    
   2  Prefactor     3.0802        148.36        .22935E-03   -1.5357    
   3  Prefactor     .10000E-03    3.3288        .16225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.0989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8800        4.0212        .20825E-03   -1.5369    
   7  Prefactor     16.008        21.053        .10013E-03   -1.4908    
   8  norm          .10003E-03    13.382        .32918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    26.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .59535        .10775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0965        .13248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0723        20.241        .15081E-03   -1.5176    
  13  Prefactor     .10000E-03    21.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9809        3.0934        .10160E-03   -1.5219    
  16  Prefactor     .10000E-03    16.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38718        5.4928        .18776E-02   -1.5584    
  18  Prefactor     1.0284        8.5165        .24604E-02   -1.5505    
  19  Prefactor     .10000E-03    15.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.6806        3.1322        .97753E-04   -1.5154    
  21  Normalizat    1.3509        .24668        .34537E-03   -.82059    
  22  Prefactor     .81300        .86420E-01    .16477E-03   -.99251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41178e-09
Minuit parameter uncertainties:
  1  2.20409
  2  42.8669
  3  6.78989e-05
  4  4.61515e-06
  5  4.24857e-06
  6  4.02162
  7  21.0631
  8  0.0011809
  9  9.98835e-05
  10  3.79834e-05
  11  3.40162e-05
  12  20.2603
  13  8.16997e-06
  14  6.84531e-06
  15  3.09353
  16  1.02649e-05
  17  2.9166
  18  5.91985
  19  1.21773e-06
  20  3.1323
  21  0.246896
  22  0.0864348
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  4.249e-06  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  8.130e-01  8.643e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.351e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 3.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349685/likelihoodResults_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.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) = 8299.76219664
delta logL = -0.000693080761266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8299.76150336
delta logL = 1.93078449229e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8466       1.0000          .0000       10.000    
     3 'Normalizat'    1.3509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+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=   8299.762     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    50.354        .18142E-02** at limit **
   2  Index         1.7882        5.8858        .50000        .27369E-04
   3  Normalizat    1.3509        .15310E-01    .34536E-03   -.32918E-06
   4  Prefactor     .81300        .58688E-02    .16477E-03   -.55198E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010151
  Index      = 1.78815
  Normalizat = 1.35093
  Prefactor  = 0.813001
 **********
 **   18 **HESSE 
 **********

 FCN=   8299.762     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10151E-03    222.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7882        5.7184        .50000       -.69759    
   3  Normalizat    1.3509        .33097E-01    .13815E-04   -.82059    
   4  Prefactor     .81300        .12686E-01    .65907E-05   -.99251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12861e-08
Minuit parameter uncertainties:
  1  0.0368013
  2  363.056
  3  0.0330977
  4  0.0126864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349685': 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) = 8299.76150297
delta logL = 5.89476258028e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.015e-04  3.680e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.788e+00  3.631e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  8.130e-01  1.269e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.351e+00  3.310e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.227 1.088

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/349685/cmap_HighResolution_526003201_526262401_4FGL_J0416.9+0105_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', job_status='DONE', photon_flux_upper_limit='3.96e-08', time_completed='2021-08-20 10:30:17.326731', job_id='349685', GAL2='0.81', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1629480617.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='5.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1106' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:30:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 349685: <4FGL_J0416.9+0105_daily_bin1106> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1106> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:40 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:15:41 2021
Terminated at Fri Aug 20 10:30:18 2021
Results reported at Fri Aug 20 10:30:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1106 64.2269 1.088 526003201 526262401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.9+0105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   717.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

