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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1071
RA = 64.2269, Dec = 1.088
tmin = 516931201, tmax = 517190401
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='349636', job_status='RUN', time_executed='2021-08-20 10:19:30.424429', time_epoch_executed='1629479970.42' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349636/ft1_4FGL_J0416.9+0105_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349636/ft1_4FGL_J0416.9+0105_daily_bin1071.fits outfile=/scratch/kocevski/349636/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1071.fits ra=64.2269 dec=1.088 rad=12.0 tmin=516931201.0 tmax=517190401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.06
user 3.83
sys 1.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.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/349636/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1071.fits evtable="EVENTS" outfile="/scratch/kocevski/349636/ft1_filtered_4FGL_J0416.9+0105_daily_bin1071.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.55
user 0.36
sys 1.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349636/ft1_filtered_4FGL_J0416.9+0105_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/349636/ltcube_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.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/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.fits
.....................!
real 17.72
user 16.26
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349636/ft1_filtered_4FGL_J0416.9+0105_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/349636/ltcube_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.fits outfile=/scratch/kocevski/349636/expmap_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.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/349636/ltcube_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.fits
.....................!
real 196.01
user 189.03
sys 6.52

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/349636/ft1_filtered_4FGL_J0416.9+0105_daily_bin1071.fits scfile=/scratch/kocevski/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.fits outfile=/scratch/kocevski/349636/cmap_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.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 1.57
user 0.43
sys 1.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349636/ft1_filtered_4FGL_J0416.9+0105_daily_bin1071.fits scfile=/scratch/kocevski/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.fits outfile=/scratch/kocevski/349636/cmap_HighResolution_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.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 1.55
user 0.44
sys 1.10

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/349636/ft1_filtered_4FGL_J0416.9+0105_daily_bin1071.fits', '/scratch/kocevski/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.fits', expMap='/scratch/kocevski/349636/expmap_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.fits', expCube='/scratch/kocevski/349636/ltcube_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/349636/Model_4FGL_J0416.9+0105_daily_bin1071.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/349636/ft1_filtered_4FGL_J0416.9+0105_daily_bin1071.fits
Spacecraft file(s): /scratch/kocevski/349636/ft2_4FGL_J0416.9+0105_daily_bin1071.fits
Exposure map: /scratch/kocevski/349636/expmap_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.fits
Exposure cube: /scratch/kocevski/349636/ltcube_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/349636/Model_4FGL_J0416.9+0105_daily_bin1071.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) = 7545.35266012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4449       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.612       1.0000         .10000E-03   10000.    
     4 'norm      '    24.463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6966       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.149       1.0000         .10000E-03   10000.    
     9 'norm      '    54.063       1.0000         .10000E-03   10000.    
    10 'norm      '    .59092E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6703       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.581       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2925       1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.423       1.0000         .10000E-03   10000.    
    17 'norm      '    .81522       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.476       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1122       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .58242       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0911       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7545.336     FROM MIGRAD    STATUS=CONVERGED     59 CALLS     2021 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4441        2.0898       -.31527E-06   -.25147E-03
   2  Prefactor     72.280        1.4681       -.54198E-06    .59362E-02
   3  Prefactor     15.610        1.1482       -.60622E-06    .11046E-02
   4  norm          24.454        4.6286       -.39067E-05    .14077E-01
   5  Prefactor     .10002E-03    12.665       -.33428E-05** at limit **
   6  norm          3.6978        1.0660        .74069E-06    .29684E-03
   7  Prefactor     .10000E-03    8.0793       -.22611E-05** at limit **
   8  norm          13.145        1.0117        .61481E-07   -.17493E-04
   9  norm          54.062        1.1399       -.31905E-06    .24774E-02
  10  norm          .10029E-03    11.717        .29706E-04** at limit **
  11  Prefactor     3.6707        2.0155       -.52471E-06   -.29844E-03
  12  Prefactor     26.579        1.2882       -.65752E-06    .25199E-02
  13  Prefactor     .10006E-03    12.362        .65956E-05** at limit **
  14  Prefactor     .10000E-03    3.0401        .89436E-06** at limit **
  15  norm          3.2918        2.6803        .60070E-06    .18869E-03
  16  Prefactor     59.423        1.0276        .13170E-06   -.11420E-02
  17  norm          .81269        2.5481       -.14713E-06    .92852E-04
  18  Prefactor     .10000E-03    2.6133        .43397E-06** at limit **
  19  Prefactor     26.475        1.0604       -.29239E-06    .11444E-02
  20  norm          5.1114        1.0482       -.37002E-07   -.28450E-04
  21  Normalizat    .58309        .26497       -.31309E-05   -.30989E-04
  22  Prefactor     1.0909        .10238        .19843E-05   -.80917E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.44414
  Prefactor  = 72.2805
  Prefactor  = 15.6101
  norm       = 24.4538
  Prefactor  = 0.000100019
  norm       = 3.69778
  Prefactor  = 0.000100004
  norm       = 13.1448
  norm       = 54.0619
  norm       = 0.000100288
  Prefactor  = 3.67074
  Prefactor  = 26.5788
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  norm       = 3.29177
  Prefactor  = 59.4231
  norm       = 0.812687
  Prefactor  = 0.0001
  Prefactor  = 26.475
  norm       = 5.11138
  Normalizat = 0.583094
  Prefactor  = 1.09092
 **********
 **   18 **HESSE 
 **********

 FCN=   7545.336     FROM HESSE     STATUS=OK           402 CALLS     2423 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4441        2.1145        .43051E-02   -1.5241    
   2  Prefactor     72.280        61.880        .11805E-02   -1.4006    
   3  Prefactor     15.610        17.479        .25342E-02   -1.4918    
   4  norm          24.454        33.723        .20247E-02   -1.4719    
   5  Prefactor     .10002E-03    24.430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6978        5.4291        .52514E-02   -1.5323    
   7  Prefactor     .10000E-03    8.0762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.145        10.689        .27616E-02   -1.4983    
   9  norm          54.062        33.871        .13638E-02   -1.4236    
  10  norm          .10029E-03    .54567        .40899E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6707        2.1272        .52709E-02   -1.5325    
  12  Prefactor     26.579        27.514        .19426E-02   -1.4676    
  13  Prefactor     .10006E-03    23.888        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2918        3.0542        .55783E-02   -1.5345    
  16  Prefactor     59.423        39.014        .13012E-02   -1.4165    
  17  norm          .81269        2.6104        .12496E-01   -1.5528    
  18  Prefactor     .10000E-03    2.5956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.475        30.737        .19464E-02   -1.4678    
  20  norm          5.1114        3.1019        .44455E-02   -1.5256    
  21  Normalizat    .58309        .28415        .11811       -1.0871    
  22  Prefactor     1.0909        .99826E-01    .37934E-01   -.89757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20419e-06
Minuit parameter uncertainties:
  1  2.11458
  2  61.9352
  3  17.4844
  4  33.7488
  5  0.00134527
  6  5.42983
  7  0.000372369
  8  10.6904
  9  33.8833
  10  0.000793011
  11  2.12722
  12  27.5276
  13  0.00245094
  14  4.62726e-07
  15  3.05431
  16  39.0304
  17  2.6108
  18  1.22285e-06
  19  30.7555
  20  3.10204
  21  0.284859
  22  0.0998428
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.345e-03  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:  1.091e+00  9.984e-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:  5.831e-01  2.849e-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: 8.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349636/likelihoodResults_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.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) = 7545.33603296
delta logL = -0.000194856571397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7545.33583844
delta logL = -3.33388925355e-07

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     '    1.7987       1.0000          .0000       10.000    
     3 'Normalizat'    .58314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0909       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.

 FCN=   7545.336     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    313.85        .90712E-02** at limit **
   2  Index         1.8283        8.9916        .50000       -.11488E-04
   3  Normalizat    .58309        .24343E-01    .11811        .77582E-05
   4  Prefactor     1.0909        .97634E-02    .37942E-01   -.52879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8283
  Normalizat = 0.583093
  Prefactor  = 1.09092
 **********
 **   18 **HESSE 
 **********

 FCN=   7545.336     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    564.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8283        7.8884        .50000       -.68715    
   3  Normalizat    .58309        .33051E-01    .52384E-03   -1.0871    
   4  Prefactor     1.0909        .13308E-01    .15628E-03   -.89757    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71873e-09
Minuit parameter uncertainties:
  1  0.000754625
  2  19.5118
  3  0.033052
  4  0.0133078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349636': 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) = 7545.33583825
delta logL = -1.50711457536e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  7.546e-04  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.828e+00  1.951e+01  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:  1.091e+00  1.331e-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:  5.831e-01  3.305e-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/349636/cmap_HighResolution_516931201_517190401_4FGL_J0416.9+0105_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-08-20 10:31:00.145530', job_id='349636', GAL2='1.09', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1629480660.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1071' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:31:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 349636: <4FGL_J0416.9+0105_daily_bin1071> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1071> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:37 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:39 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:39 2021
Terminated at Fri Aug 20 10:31:00 2021
Results reported at Fri Aug 20 10:31:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1071 64.2269 1.088 516931201 517190401 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 :                                   702.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

