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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1466
RA = 64.2269, Dec = 1.088
tmin = 619315201, tmax = 619574401
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='352312', job_status='RUN', time_executed='2021-08-20 10:27:23.344703', time_epoch_executed='1629480443.34' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352312/ft1_4FGL_J0416.9+0105_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352312/ft2_4FGL_J0416.9+0105_daily_bin1466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352312/ft1_4FGL_J0416.9+0105_daily_bin1466.fits outfile=/scratch/kocevski/352312/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1466.fits ra=64.2269 dec=1.088 rad=12.0 tmin=619315201.0 tmax=619574401.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.09
user 3.32
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352312/ft1_filtered_4FGL_J0416.9+0105_daily_bin1466.fits" evtable="EVENTS" scfile=/scratch/kocevski/352312/ft2_4FGL_J0416.9+0105_daily_bin1466.fits sctable="SC_DATA" outfile=/scratch/kocevski/352312/ltcube_619315201_619574401_4FGL_J0416.9+0105_daily_bin1466.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/352312/ft2_4FGL_J0416.9+0105_daily_bin1466.fits
.....................!
real 13.31
user 12.62
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352312/ft1_filtered_4FGL_J0416.9+0105_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/352312/ft2_4FGL_J0416.9+0105_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/352312/ltcube_619315201_619574401_4FGL_J0416.9+0105_daily_bin1466.fits outfile=/scratch/kocevski/352312/expmap_619315201_619574401_4FGL_J0416.9+0105_daily_bin1466.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/352312/ltcube_619315201_619574401_4FGL_J0416.9+0105_daily_bin1466.fits
.....................!
real 191.62
user 186.97
sys 4.23

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/352312/ft1_filtered_4FGL_J0416.9+0105_daily_bin1466.fits scfile=/scratch/kocevski/352312/ft2_4FGL_J0416.9+0105_daily_bin1466.fits outfile=/scratch/kocevski/352312/cmap_619315201_619574401_4FGL_J0416.9+0105_daily_bin1466.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.81
user 0.38
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352312/ft1_filtered_4FGL_J0416.9+0105_daily_bin1466.fits scfile=/scratch/kocevski/352312/ft2_4FGL_J0416.9+0105_daily_bin1466.fits outfile=/scratch/kocevski/352312/cmap_HighResolution_619315201_619574401_4FGL_J0416.9+0105_daily_bin1466.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.74
user 0.38
sys 0.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .81446E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4959       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7073       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1688       1.0000         .10000E-03   10000.    
     9 'norm      '    15.463       1.0000         .10000E-03   10000.    
    10 'norm      '    .50335       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5602       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3621       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10828E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.983       1.0000         .10000E-03   10000.    
    20 'norm      '    .58432       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84918       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0524       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=   10716.08     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2385 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9639        1.4909        .12525E-06   -.35542E-04
   2  Prefactor     .10011E-03    331.82       -.15696E-04** at limit **
   3  Prefactor     .10000E-03    9.5341       -.55768E-07** at limit **
   4  norm          .10000E-03    5.0324       -.33821E-07** at limit **
   5  Prefactor     7.4938        18.773        .41409E-06    .69710E-04
   6  norm          1.7065        4.1745        .42591E-06   -.38867E-03
   7  Prefactor     17.649        23.058        .37714E-06    .36647E-04
   8  norm          5.1686        7.7141        .48711E-06    .32449E-05
   9  norm          15.459        18.063        .53897E-06    .17106E-03
  10  norm          .50348        .91410        .11118E-05   -.87741E-03
  11  Prefactor     1.5607        1.3700        .10212E-07   -.16208E-03
  12  Prefactor     .10000E-03    4.7179        .92777E-07** at limit **
  13  Prefactor     14.263        49.223       -.33745E-05   -.34445E-04
  14  Prefactor     1.3621        3.8109        .12115E-05    .47839E-04
  15  norm          .10000E-03    .60443        .68569E-07** at limit **
  16  Prefactor     .10000E-03    152.03        .11146E-05** at limit **
  17  norm          4.4741        2.3170        .83529E-07   -.30727E-03
  18  Prefactor     .10000E-03    1.2524        .49067E-07** at limit **
  19  Prefactor     14.980        16.647        .56910E-06    .20671E-03
  20  norm          .58370        1.6724        .13631E-05   -.20707E-03
  21  Normalizat    .84921        .19714       -.24884E-05   -.75519E-05
  22  Prefactor     1.0524        .73413E-01   -.19857E-06   -.14104E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.96392
  Prefactor  = 0.000100112
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.49384
  norm       = 1.70646
  Prefactor  = 17.6487
  norm       = 5.16861
  norm       = 15.4594
  norm       = 0.503476
  Prefactor  = 1.56066
  Prefactor  = 0.0001
  Prefactor  = 14.263
  Prefactor  = 1.36205
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.47408
  Prefactor  = 0.0001
  Prefactor  = 14.9796
  norm       = 0.583701
  Normalizat = 0.849206
  Prefactor  = 1.0524
 **********
 **   18 **HESSE 
 **********

 FCN=   10716.08     FROM HESSE     STATUS=OK           350 CALLS     2735 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9639        1.4878        .85382E-04   -1.5364    
   2  Prefactor     .10011E-03    350.01        .41783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.0341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4938        18.766        .14648E-03   -1.5160    
   6  norm          1.7065        4.1124        .30005E-03   -1.5447    
   7  Prefactor     17.649        23.072        .95333E-04   -1.4868    
   8  norm          5.1686        7.7227        .17682E-03   -1.5253    
   9  norm          15.459        18.086        .10186E-03   -1.4921    
  10  norm          .50348        .90787        .22569E-03   -1.5566    
  11  Prefactor     1.5607        1.3487        .10025E-03   -1.5458    
  12  Prefactor     .10000E-03    4.7257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.263        48.694        .10605E-03   -1.4952    
  14  Prefactor     1.3621        3.7498        .32501E-03   -1.5475    
  15  norm          .10000E-03    .61200        .78583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    156.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4741        2.3086        .10387E-03   -1.5285    
  18  Prefactor     .10000E-03    1.2567        .11314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.980        16.711        .10347E-03   -1.4934    
  20  norm          .58370        1.6750        .21611E-03   -1.5555    
  21  Normalizat    .84921        .21385        .41624E-03   -.98269    
  22  Prefactor     1.0524        .80779E-01    .15473E-03   -.91003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19356e-10
Minuit parameter uncertainties:
  1  1.48777
  2  0.0126081
  3  3.12476e-05
  4  1.28213e-06
  5  18.7809
  6  4.11304
  7  23.0833
  8  7.72417
  9  18.0928
  10  0.907895
  11  1.34869
  12  6.22232e-06
  13  48.8303
  14  3.75044
  15  1.56592e-06
  16  0.000859187
  17  2.30868
  18  1.4322e-06
  19  16.716
  20  1.67512
  21  0.214061
  22  0.0807887
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  7.494e+00  1.878e+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:  1.052e+00  8.079e-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.492e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/352312/likelihoodResults_619315201_619574401_4FGL_J0416.9+0105_daily_bin1466.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) = 10715.9202398
delta logL = 0.157071893769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10715.8930852
delta logL = 0.184226456817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.411       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2177       1.0000          .0000       10.000    
     3 'Normalizat'    .84981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0529       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=   10715.89     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      262 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.403        22.283        .11371E-03    .59990E-06
   2  Index         1.2175        .95537        .20397E-01   -.44901E-05
   3  Normalizat    .84976        .19076        .41607E-03    .32461E-04
   4  Prefactor     1.0529        .78856E-01    .15469E-03   -.98772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4028
  Index      = 1.21748
  Normalizat = 0.849755
  Prefactor  = 1.05293
 **********
 **   18 **HESSE 
 **********

 FCN=   10715.89     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.403        22.925        .45482E-05   -1.5003    
   2  Index         1.2175        .98253        .81589E-03   -.85795    
   3  Normalizat    .84976        .19083        .16643E-04   -.98249    
   4  Prefactor     1.0529        .78885E-01    .61878E-05   -.90985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05334e-11
Minuit parameter uncertainties:
  1  22.9408
  2  0.997948
  3  0.19098
  4  0.0788939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352312': 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) = 10715.8930851
delta logL = 0.184226574031

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.240e+01  2.294e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.217e+00  9.979e-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.053e+00  7.889e-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.498e-01  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/352312/cmap_HighResolution_619315201_619574401_4FGL_J0416.9+0105_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-08-20 10:41:24.666899', job_id='352312', GAL2='1.05', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1629481284.67', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.84e-01', ts2='0.56', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1466' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:41:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 352312: <4FGL_J0416.9+0105_daily_bin1466> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1466> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 20 10:25:25 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:25:27 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:25:27 2021
Terminated at Fri Aug 20 10:41:25 2021
Results reported at Fri Aug 20 10:41:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1466 64.2269 1.088 619315201 619574401 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 :                                   843.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             347.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

