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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin530
RA = 64.2269, Dec = 1.088
tmin = 376704001, tmax = 376963201
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='346786', job_status='RUN', time_executed='2021-08-20 10:08:46.828124', time_epoch_executed='1629479326.83' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346786

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346786/ft1_4FGL_J0416.9+0105_daily_bin530.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346786/ft2_4FGL_J0416.9+0105_daily_bin530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346786/ft1_4FGL_J0416.9+0105_daily_bin530.fits outfile=/scratch/kocevski/346786/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin530.fits ra=64.2269 dec=1.088 rad=12.0 tmin=376704001.0 tmax=376963201.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.11
user 3.23
sys 0.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346786/ft2_4FGL_J0416.9+0105_daily_bin530.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/346786/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin530.fits evtable="EVENTS" outfile="/scratch/kocevski/346786/ft1_filtered_4FGL_J0416.9+0105_daily_bin530.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.11
user 0.31
sys 0.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346786/ft1_filtered_4FGL_J0416.9+0105_daily_bin530.fits" evtable="EVENTS" scfile=/scratch/kocevski/346786/ft2_4FGL_J0416.9+0105_daily_bin530.fits sctable="SC_DATA" outfile=/scratch/kocevski/346786/ltcube_376704001_376963201_4FGL_J0416.9+0105_daily_bin530.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/346786/ft2_4FGL_J0416.9+0105_daily_bin530.fits
.....................!
real 12.43
user 11.39
sys 0.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346786/ft1_filtered_4FGL_J0416.9+0105_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/346786/ft2_4FGL_J0416.9+0105_daily_bin530.fits sctable="SC_DATA" expcube=/scratch/kocevski/346786/ltcube_376704001_376963201_4FGL_J0416.9+0105_daily_bin530.fits outfile=/scratch/kocevski/346786/expmap_376704001_376963201_4FGL_J0416.9+0105_daily_bin530.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/346786/ltcube_376704001_376963201_4FGL_J0416.9+0105_daily_bin530.fits
.....................!
real 191.47
user 185.29
sys 5.86

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/346786/ft1_filtered_4FGL_J0416.9+0105_daily_bin530.fits scfile=/scratch/kocevski/346786/ft2_4FGL_J0416.9+0105_daily_bin530.fits outfile=/scratch/kocevski/346786/cmap_376704001_376963201_4FGL_J0416.9+0105_daily_bin530.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.17
user 0.36
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346786/ft1_filtered_4FGL_J0416.9+0105_daily_bin530.fits scfile=/scratch/kocevski/346786/ft2_4FGL_J0416.9+0105_daily_bin530.fits outfile=/scratch/kocevski/346786/cmap_HighResolution_376704001_376963201_4FGL_J0416.9+0105_daily_bin530.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.04
user 0.35
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94610E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0081       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12431       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.447       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .24211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7481       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2728       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8221       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .46319       1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.830       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2910       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97193       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0376       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=   9365.706     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2497 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94160E-01    .70608        .18740E-06   -.51802E-03
   2  Prefactor     .10000E-03    49.898        .32057E-06** at limit **
   3  Prefactor     6.0044        18.680        .20573E-05    .74416E-04
   4  norm          .10000E-03    7.0941       -.23178E-07** at limit **
   5  Prefactor     .10006E-03    16.436       -.22080E-06** at limit **
   6  norm          .10000E-03    2.0266       -.10313E-06** at limit **
   7  Prefactor     18.453        19.107       -.15540E-05   -.31405E-03
   8  norm          .10000E-03    2.2509        .54891E-08** at limit **
   9  norm          .10000E-03    12.514       -.11973E-06** at limit **
  10  norm          .24119        .78249        .89178E-06   -.15541E-03
  11  Prefactor     1.7495        1.9957        .53413E-07   -.47234E-03
  12  Prefactor     .10000E-03    20.593       -.30413E-06** at limit **
  13  Prefactor     66.334        54.991       -.13819E-05   -.11454E-03
  14  Prefactor     .10000E-03    3.2248       -.27138E-07** at limit **
  15  norm          5.2733        3.0868        .81291E-07   -.56101E-03
  16  Prefactor     .10000E-03    11.807       -.13005E-07** at limit **
  17  norm          4.8223        2.5405        .64170E-07   -.24261E-03
  18  Prefactor     .43769        7.5029        .17270E-05   -.58695E-03
  19  Prefactor     57.853        49.104       -.90771E-06   -.22933E-03
  20  norm          4.2909        2.0857        .26566E-07   -.51459E-04
  21  Normalizat    .97194        .21747       -.48091E-06   -.25650E-03
  22  Prefactor     1.0376        .82429E-01   -.16096E-06   -.52709E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0941602
  Prefactor  = 0.0001
  Prefactor  = 6.00437
  norm       = 0.0001
  Prefactor  = 0.000100057
  norm       = 0.0001
  Prefactor  = 18.4534
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.241191
  Prefactor  = 1.7495
  Prefactor  = 0.0001
  Prefactor  = 66.3335
  Prefactor  = 0.0001
  norm       = 5.27332
  Prefactor  = 0.0001
  norm       = 4.82227
  Prefactor  = 0.437689
  Prefactor  = 57.8526
  norm       = 4.29087
  Normalizat = 0.971944
  Prefactor  = 1.03765
 **********
 **   18 **HESSE 
 **********

 FCN=   9365.706     FROM HESSE     STATUS=OK           352 CALLS     2849 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94160E-01    1.9365        .15599E-02   -1.5647    
   2  Prefactor     .10000E-03    50.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0044        18.887        .16381E-03   -1.5218    
   4  norm          .10000E-03    7.1014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    17.511        .13263       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0450        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.453        19.835        .93252E-04   -1.4849    
   8  norm          .10000E-03    2.2535        .14178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .24119        .80779        .14909E-03   -1.5610    
  11  Prefactor     1.7495        1.9492        .12077E-03   -1.5443    
  12  Prefactor     .10000E-03    20.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     66.334        54.931        .49281E-04   -1.4077    
  14  Prefactor     .10000E-03    3.2336        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2733        3.0658        .12125E-03   -1.5249    
  16  Prefactor     .10000E-03    11.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8223        2.5395        .10498E-03   -1.5269    
  18  Prefactor     .43769        37.327        .42654E-02   -1.5576    
  19  Prefactor     57.853        49.100        .52755E-04   -1.4185    
  20  norm          4.2909        2.0842        .94363E-04   -1.5294    
  21  Normalizat    .97194        .23827        .42173E-03   -.93976    
  22  Prefactor     1.0376        .91493E-01    .16168E-03   -.91485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44623e-08
Minuit parameter uncertainties:
  1  0.85361
  2  3.44676e-05
  3  18.9062
  4  1.92515e-06
  5  0.0020034
  6  6.10783e-06
  7  19.842
  8  4.38623e-07
  9  1.0735e-05
  10  0.807827
  11  1.94925
  12  2.78463e-05
  13  54.9725
  14  1.87538e-06
  15  3.0659
  16  8.55904e-07
  17  2.53951
  18  8.08829
  19  49.1347
  20  2.08426
  21  0.238534
  22  0.0915069
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.001e-04  2.003e-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.038e+00  9.151e-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:  9.719e-01  2.385e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346786/likelihoodResults_376704001_376963201_4FGL_J0416.9+0105_daily_bin530.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) = 9365.70616051
delta logL = -5.22831396665e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9365.70616051
delta logL = -5.22699338035e-06

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     '    1.8761       1.0000          .0000       10.000    
     3 'Normalizat'    .97195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0376       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9365.648     FROM MIGRAD    STATUS=FAILED       208 CALLS      391 TOTAL
                     EDM=   .22E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55949        210.34        .19926E-03   -.74741E-04
   2  Index         3.1629        6.0143        .15909E-01    .16450E-02
   3  Normalizat    .95612        .16105        .42468E-03   -.33961E-03
   4  Prefactor     1.0386        .56409E-01    .16158E-03   -.22020E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9365.648     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      484 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55949        210.34        .30440E-03   -.74741E-04
   2  Index         3.1629        6.0143        .31039E-02    .16450E-02
   3  Normalizat    .95612        .16105        .16794E-03   -.33961E-03
   4  Prefactor     1.0386        .56409E-01    .46937E-04   -.22020E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9365.648     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      548 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55956        50.971        .15941E-05    .58845E-04
   2  Index         3.1628        6.5307        .63637E-03   -.45377E-05
   3  Normalizat    .95612        .23708        .33974E-05   -.19542E-03
   4  Prefactor     1.0386        .91782E-01    .64632E-05    .56288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.559556
  Index      = 3.16283
  Normalizat = 0.956124
  Prefactor  = 1.03858
 **********
 **   18 **HESSE 
 **********

 FCN=   9365.648     FROM HESSE     STATUS=OK            23 CALLS      571 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55956        24.221        .37094E-06   -1.5558    
   2  Index         3.1628        3.8194        .25455E-04   -.37625    
   3  Normalizat    .95612        .23501        .67948E-06   -.94515    
   4  Prefactor     1.0386        .90999E-01    .12926E-05   -.91454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3052e-10
Minuit parameter uncertainties:
  1  7.36545
  2  4.48168
  3  0.235267
  4  0.091013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346786': 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) = 9365.64782589
delta logL = 0.0583294011576

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.596e-01  7.365e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.163e+00  4.482e+00  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.039e+00  9.101e-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:  9.561e-01  2.353e-01  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/346786/cmap_HighResolution_376704001_376963201_4FGL_J0416.9+0105_daily_bin530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-08-20 10:21:54.708440', job_id='346786', GAL2='1.04', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1629480114.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.83e-02', ts2='0.12', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='530' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:21:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 346786: <4FGL_J0416.9+0105_daily_bin530> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin530 64.2269 1.088 376704001 376963201 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 :                                   797.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

