/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 220 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 = 7655
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0416.9+0105_daily_bin272
RA = 64.2269, Dec = 1.088
tmin = 309830401, tmax = 310089601
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='345386', job_status='RUN', time_executed='2021-08-20 10:04:34.074958', time_epoch_executed='1629479074.07' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345386

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345386/ft1_4FGL_J0416.9+0105_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345386/ft2_4FGL_J0416.9+0105_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345386/ft1_4FGL_J0416.9+0105_daily_bin272.fits outfile=/scratch/kocevski/345386/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin272.fits ra=64.2269 dec=1.088 rad=12.0 tmin=309830401.0 tmax=310089601.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 3.46
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345386/ft2_4FGL_J0416.9+0105_daily_bin272.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/345386/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin272.fits evtable="EVENTS" outfile="/scratch/kocevski/345386/ft1_filtered_4FGL_J0416.9+0105_daily_bin272.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345386/ft1_filtered_4FGL_J0416.9+0105_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/345386/ft2_4FGL_J0416.9+0105_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/345386/ltcube_309830401_310089601_4FGL_J0416.9+0105_daily_bin272.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/345386/ft2_4FGL_J0416.9+0105_daily_bin272.fits
.....................!
real 11.82
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345386/ft1_filtered_4FGL_J0416.9+0105_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/345386/ft2_4FGL_J0416.9+0105_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/345386/ltcube_309830401_310089601_4FGL_J0416.9+0105_daily_bin272.fits outfile=/scratch/kocevski/345386/expmap_309830401_310089601_4FGL_J0416.9+0105_daily_bin272.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/345386/ltcube_309830401_310089601_4FGL_J0416.9+0105_daily_bin272.fits
.....................!
real 190.02
user 185.47
sys 4.24

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/345386/ft1_filtered_4FGL_J0416.9+0105_daily_bin272.fits scfile=/scratch/kocevski/345386/ft2_4FGL_J0416.9+0105_daily_bin272.fits outfile=/scratch/kocevski/345386/cmap_309830401_310089601_4FGL_J0416.9+0105_daily_bin272.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345386/ft1_filtered_4FGL_J0416.9+0105_daily_bin272.fits scfile=/scratch/kocevski/345386/ft2_4FGL_J0416.9+0105_daily_bin272.fits outfile=/scratch/kocevski/345386/cmap_HighResolution_309830401_310089601_4FGL_J0416.9+0105_daily_bin272.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5362       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9208       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.669       1.0000         .10000E-03   10000.    
     4 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3490       1.0000         .10000E-03   10000.    
     6 'norm      '    .38335       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39926E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.420       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .65859       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6154       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6654       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.735       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.128       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0621       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12139E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.1655       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86672       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98748       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=   7779.930     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2433 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5369        1.8583       -.15579E-06   -.21740E-03
   2  Prefactor     4.7256        133.24        .15146E-05   -.19439E-04
   3  Prefactor     25.648        21.686        .16337E-05   -.13937E-03
   4  norm          .10000E-03    15.288        .31229E-06** at limit **
   5  Prefactor     9.3468        24.261        .23019E-05   -.25023E-04
   6  norm          .39794        2.9321       -.93780E-06    .76509E-04
   7  Prefactor     .10000E-03    117.10        .11464E-04** at limit **
   8  norm          14.421        10.647        .12696E-05   -.91542E-04
   9  norm          .10000E-03    6.4050        .30770E-09** at limit **
  10  norm          .65804        1.0252        .15160E-07    .21253E-03
  11  Prefactor     1.6158        1.5840        .17284E-06    .24565E-03
  12  Prefactor     2.6407        27.028       -.24023E-04    .47418E-04
  13  Prefactor     47.716        50.162       -.22523E-05    .86361E-04
  14  Prefactor     .10000E-03    6.2149       -.45972E-07** at limit **
  15  norm          .10000E-03    1.3045        .28447E-06** at limit **
  16  Prefactor     45.089        50.950       -.60663E-05    .28424E-04
  17  norm          4.0634        2.8849        .45953E-07   -.33075E-03
  18  Prefactor     .10005E-03    6.1000        .18948E-05** at limit **
  19  Prefactor     .10000E-03    11.191       -.16058E-06** at limit **
  20  norm          2.1661        2.6652       -.32310E-06   -.62778E-03
  21  Normalizat    .86630        .24298        .18670E-05   -.10695E-03
  22  Prefactor     .98752        .86969E-01    .62093E-07   -.21974E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.53691
  Prefactor  = 4.72565
  Prefactor  = 25.6484
  norm       = 0.0001
  Prefactor  = 9.34682
  norm       = 0.397944
  Prefactor  = 0.0001
  norm       = 14.4209
  norm       = 0.0001
  norm       = 0.658044
  Prefactor  = 1.61584
  Prefactor  = 2.64066
  Prefactor  = 47.7164
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.089
  norm       = 4.06337
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  norm       = 2.16613
  Normalizat = 0.8663
  Prefactor  = 0.987517
 **********
 **   18 **HESSE 
 **********

 FCN=   7779.930     FROM HESSE     STATUS=OK           350 CALLS     2783 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5369        1.8548        .82831E-04   -1.5332    
   2  Prefactor     4.7256        131.59        .18131E-03   -1.5273    
   3  Prefactor     25.648        21.572        .79068E-04   -1.4695    
   4  norm          .10000E-03    15.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3468        24.222        .13107E-03   -1.5096    
   6  norm          .39794        15.239        .27743E-02   -1.5582    
   7  Prefactor     .10000E-03    122.12        .42529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.421        10.651        .10547E-03   -1.4948    
   9  norm          .10000E-03    6.4093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .65804        1.0226        .47608E-04   -1.5546    
  11  Prefactor     1.6158        1.5706        .99857E-04   -1.5454    
  12  Prefactor     2.6407        28.133        .24965E-03   -1.5383    
  13  Prefactor     47.716        49.786        .58037E-04   -1.4325    
  14  Prefactor     .10000E-03    6.2592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3488        .19701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.089        50.893        .59682E-04   -1.4364    
  17  norm          4.0634        2.8809        .11612E-03   -1.5305    
  18  Prefactor     .10005E-03    55.761        .40784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.1661        2.6582        .15208E-03   -1.5414    
  21  Normalizat    .86630        .25969        .42570E-03   -.97655    
  22  Prefactor     .98752        .95239E-01    .15663E-03   -.93147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6377e-09
Minuit parameter uncertainties:
  1  1.85485
  2  49.9954
  3  21.5782
  4  1.51741e-05
  5  24.2477
  6  4.9259
  7  5.03557e-05
  8  10.6524
  9  2.16463e-05
  10  1.02263
  11  1.57064
  12  17.2484
  13  49.8293
  14  4.46558e-06
  15  4.72969e-05
  16  50.942
  17  2.88099
  18  0.00347371
  19  1.75678e-06
  20  2.6583
  21  0.260068
  22  0.0952549
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  9.347e+00  2.425e+01  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:  9.875e-01  9.525e-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:  8.663e-01  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/345386/likelihoodResults_309830401_310089601_4FGL_J0416.9+0105_daily_bin272.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) = 7779.85818377
delta logL = 0.0718468882378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7779.8431755
delta logL = 0.0868551618141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9570       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3739       1.0000          .0000       10.000    
     3 'Normalizat'    .85837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98744       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=   7779.843     FROM MIGRAD    STATUS=FAILED        95 CALLS      304 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9552        38.594        .16452E-03   -.63780E-04
   2  Index         2.3740        2.0045        .11681E-01    .75219E-03
   3  Normalizat    .85799        .23805        .42748E-03   -.15087E-03
   4  Prefactor     .98761        .92660E-01    .15660E-03   -.58060E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7779.843     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      380 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9552        38.594        .32287E-03   -1.5220    
   2  Index         2.3740        2.0045        .12102E-02   -.55295    
   3  Normalizat    .85799        .23805        .40140E-03   -.97953    
   4  Prefactor     .98761        .92660E-01    .14557E-03   -.93144    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7779.843     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      416 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9551        18.627        .65809E-05   -.55972E-04
   2  Index         2.3740        1.2639        .23362E-02    .31092E-04
   3  Normalizat    .85799        .23586        .17099E-04   -.45078E-04
   4  Prefactor     .98761        .92331E-01    .31319E-04   -.16654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95512
  Index      = 2.37402
  Normalizat = 0.857987
  Prefactor  = 0.987611
 **********
 **   18 **HESSE 
 **********

 FCN=   7779.843     FROM HESSE     STATUS=OK            25 CALLS      441 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9551        17.761        .13162E-05   -1.5220    
   2  Index         2.3740        1.2057        .46725E-03   -.55295    
   3  Normalizat    .85799        .23572        .34198E-05   -.97953    
   4  Prefactor     .98761        .92312E-01    .62639E-05   -.93144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66128e-11
Minuit parameter uncertainties:
  1  17.7769
  2  1.22241
  3  0.236001
  4  0.0923272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345386': 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) = 7779.84317376
delta logL = 0.0868568965816

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.955e+00  1.778e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.374e+00  1.222e+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:  9.876e-01  9.233e-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:  8.580e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/345386/cmap_HighResolution_309830401_310089601_4FGL_J0416.9+0105_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-08-20 10:15:54.013884', job_id='345386', GAL2='0.99', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1629479754.01', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.69e-02', ts2='0.36', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='272' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 345386: <4FGL_J0416.9+0105_daily_bin272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin272 64.2269 1.088 309830401 310089601 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 :                                   680.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

