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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin219
RA = 64.2269, Dec = 1.088
tmin = 296092801, tmax = 296352001
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='345310', job_status='RUN', time_executed='2021-08-20 10:03:21.643200', time_epoch_executed='1629479001.64' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345310/ft1_4FGL_J0416.9+0105_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345310/ft2_4FGL_J0416.9+0105_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345310/ft1_4FGL_J0416.9+0105_daily_bin219.fits outfile=/scratch/kocevski/345310/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin219.fits ra=64.2269 dec=1.088 rad=12.0 tmin=296092801.0 tmax=296352001.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.38
user 2.21
sys 2.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345310/ft1_filtered_4FGL_J0416.9+0105_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/345310/ft2_4FGL_J0416.9+0105_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/345310/ltcube_296092801_296352001_4FGL_J0416.9+0105_daily_bin219.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/345310/ft2_4FGL_J0416.9+0105_daily_bin219.fits
.....................!
real 14.57
user 12.03
sys 2.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345310/ft1_filtered_4FGL_J0416.9+0105_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/345310/ft2_4FGL_J0416.9+0105_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/345310/ltcube_296092801_296352001_4FGL_J0416.9+0105_daily_bin219.fits outfile=/scratch/kocevski/345310/expmap_296092801_296352001_4FGL_J0416.9+0105_daily_bin219.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/345310/ltcube_296092801_296352001_4FGL_J0416.9+0105_daily_bin219.fits
.....................!
real 192.85
user 184.80
sys 7.64

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/345310/ft1_filtered_4FGL_J0416.9+0105_daily_bin219.fits scfile=/scratch/kocevski/345310/ft2_4FGL_J0416.9+0105_daily_bin219.fits outfile=/scratch/kocevski/345310/cmap_296092801_296352001_4FGL_J0416.9+0105_daily_bin219.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 2.44
user 0.37
sys 2.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345310/ft1_filtered_4FGL_J0416.9+0105_daily_bin219.fits scfile=/scratch/kocevski/345310/ft2_4FGL_J0416.9+0105_daily_bin219.fits outfile=/scratch/kocevski/345310/cmap_HighResolution_296092801_296352001_4FGL_J0416.9+0105_daily_bin219.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 2.44
user 0.39
sys 2.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6709       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6130       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.388       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.566       1.0000         .10000E-03   10000.    
    10 'norm      '    .94348       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.704       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0211       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.5098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5143       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .37285       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4833       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98946       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=   9976.255     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2394 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6713        1.7538        .47455E-07   -.47024E-05
   2  Prefactor     .10000E-03    47.302        .88698E-06** at limit **
   3  Prefactor     9.6135        12.825        .16270E-06   -.11979E-05
   4  norm          .10000E-03    5.0468        .13589E-07** at limit **
   5  Prefactor     .10000E-03    22.056       -.86339E-07** at limit **
   6  norm          .10000E-03    1.2893       -.92118E-08** at limit **
   7  Prefactor     18.387        24.032        .12329E-06   -.17809E-05
   8  norm          .10000E-03    2.8158        .52996E-08** at limit **
   9  norm          18.565        21.388        .85264E-06    .71467E-04
  10  norm          .94521        .87787       -.44244E-06   -.75045E-03
  11  Prefactor     .10000E-03    .94072       -.91765E-06** at limit **
  12  Prefactor     .10000E-03    8.7625       -.11426E-06** at limit **
  13  Prefactor     52.653        45.688       -.26983E-05   -.17176E-03
  14  Prefactor     2.0226        8.4713        .13366E-05    .17990E-04
  15  norm          .10000E-03    .86085       -.43226E-07** at limit **
  16  Prefactor     .10000E-03    42.365       -.83180E-06** at limit **
  17  norm          8.5103        3.1375       -.49031E-09   -.27358E-04
  18  Prefactor     6.5147        7.9234        .10755E-06   -.71954E-05
  19  Prefactor     .10000E-03    56.724        .60904E-06** at limit **
  20  norm          .37309        2.1351        .23075E-05   -.17351E-03
  21  Normalizat    1.4830        .23906        .16983E-05   -.52003E-04
  22  Prefactor     .98954        .84840E-01   -.79400E-06    .17223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67134
  Prefactor  = 0.0001
  Prefactor  = 9.61349
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.3873
  norm       = 0.0001
  norm       = 18.5646
  norm       = 0.945213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.6533
  Prefactor  = 2.02256
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.51033
  Prefactor  = 6.51468
  Prefactor  = 0.0001
  norm       = 0.373095
  Normalizat = 1.48298
  Prefactor  = 0.989543
 **********
 **   18 **HESSE 
 **********

 FCN=   9976.255     FROM HESSE     STATUS=OK           342 CALLS     2736 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6713        1.7520        .10164E-03   -1.5381    
   2  Prefactor     .10000E-03    47.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6135        12.820        .12925E-03   -1.5088    
   4  norm          .10000E-03    5.0477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2923        .11073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.387        24.049        .93401E-04   -1.4850    
   8  norm          .10000E-03    2.8217        .16366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.565        21.453        .92953E-04   -1.4846    
  10  norm          .94521        .81726        .86980E-03   -1.5514    
  11  Prefactor     .10000E-03    .93391        .18524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.653        46.375        .55246E-04   -1.4255    
  14  Prefactor     2.0226        8.5910        .29109E-03   -1.5424    
  15  norm          .10000E-03    .87350        .90431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.5103        3.1511        .99937E-04   -1.5124    
  18  Prefactor     6.5147        7.9207        .15724E-03   -1.5197    
  19  Prefactor     .10000E-03    57.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .37309        2.1676        .27972E-03   -1.5586    
  21  Normalizat    1.4830        .26859        .38634E-03   -.78258    
  22  Prefactor     .98954        .95806E-01    .17536E-03   -.93079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0023e-10
Minuit parameter uncertainties:
  1  1.75199
  2  0.000130894
  3  12.8239
  4  4.68205e-07
  5  2.8728e-05
  6  2.10502e-06
  7  24.0614
  8  1.47507e-06
  9  21.4615
  10  0.817267
  11  1.36838e-05
  12  2.91136e-06
  13  46.4066
  14  8.33871
  15  4.71988e-07
  16  0.000143067
  17  3.15121
  18  7.92195
  19  6.35317e-05
  20  1.79845
  21  0.268846
  22  0.0958228
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.873e-05  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.895e-01  9.582e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.483e+00  2.688e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345310/likelihoodResults_296092801_296352001_4FGL_J0416.9+0105_daily_bin219.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) = 9976.2551517
delta logL = -0.000215086703975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9976.25493637
delta logL = 2.44666807703e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9585       1.0000          .0000       10.000    
     3 'Normalizat'    1.4830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98954       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=   9976.255     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    373.43        .90712E-02** at limit **
   2  Index         2.0006        8.8996        .50000       -.15742E-04
   3  Normalizat    1.4830        .24063E-01    .87258E-01   -.72781E-04
   4  Prefactor     .98954        .92142E-02    .46136E-01   -.20287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.0006
  Normalizat = 1.48298
  Prefactor  = 0.989543
 **********
 **   18 **HESSE 
 **********

 FCN=   9976.255     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    415.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0006        8.9887        .50000       -.64335    
   3  Normalizat    1.4830        .25261E-01    .38634E-03   -.78258    
   4  Prefactor     .98954        .96881E-02    .17536E-03   -.93079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.37222e-09
Minuit parameter uncertainties:
  1  0.00125528
  2  15.9032
  3  0.0252611
  4  0.00968814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345310': 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) = 9976.25493622
delta logL = 3.98862539441e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.255e-03  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.001e+00  1.590e+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:  9.895e-01  9.688e-03  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.483e+00  2.526e-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/345310/cmap_HighResolution_296092801_296352001_4FGL_J0416.9+0105_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2021-08-20 10:16:51.812055', job_id='345310', GAL2='0.99', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1629479811.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='219' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:16:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 345310: <4FGL_J0416.9+0105_daily_bin219> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin219> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 10:00:39 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:00:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:00:41 2021
Terminated at Fri Aug 20 10:16:52 2021
Results reported at Fri Aug 20 10:16:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin219 64.2269 1.088 296092801 296352001 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 :                                   840.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

