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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1376
RA = 64.2269, Dec = 1.088
tmin = 595987201, tmax = 596246401
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='351179', job_status='RUN', time_executed='2021-08-20 10:23:16.113217', time_epoch_executed='1629480196.11' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351179/ft1_4FGL_J0416.9+0105_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351179/ft2_4FGL_J0416.9+0105_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351179/ft1_4FGL_J0416.9+0105_daily_bin1376.fits outfile=/scratch/kocevski/351179/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1376.fits ra=64.2269 dec=1.088 rad=12.0 tmin=595987201.0 tmax=596246401.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.97
user 3.00
sys 0.95

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351179/ft1_filtered_4FGL_J0416.9+0105_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/351179/ft2_4FGL_J0416.9+0105_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/351179/ltcube_595987201_596246401_4FGL_J0416.9+0105_daily_bin1376.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/351179/ft2_4FGL_J0416.9+0105_daily_bin1376.fits
.....................!
real 15.33
user 14.08
sys 1.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351179/ft1_filtered_4FGL_J0416.9+0105_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/351179/ft2_4FGL_J0416.9+0105_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/351179/ltcube_595987201_596246401_4FGL_J0416.9+0105_daily_bin1376.fits outfile=/scratch/kocevski/351179/expmap_595987201_596246401_4FGL_J0416.9+0105_daily_bin1376.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/351179/ltcube_595987201_596246401_4FGL_J0416.9+0105_daily_bin1376.fits
.....................!
real 192.39
user 185.50
sys 6.49

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/351179/ft1_filtered_4FGL_J0416.9+0105_daily_bin1376.fits scfile=/scratch/kocevski/351179/ft2_4FGL_J0416.9+0105_daily_bin1376.fits outfile=/scratch/kocevski/351179/cmap_595987201_596246401_4FGL_J0416.9+0105_daily_bin1376.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.30
user 0.37
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351179/ft1_filtered_4FGL_J0416.9+0105_daily_bin1376.fits scfile=/scratch/kocevski/351179/ft2_4FGL_J0416.9+0105_daily_bin1376.fits outfile=/scratch/kocevski/351179/cmap_HighResolution_595987201_596246401_4FGL_J0416.9+0105_daily_bin1376.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.30
user 0.38
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.929       1.0000         .10000E-03   10000.    
     4 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.299       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.093       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2122       1.0000         .10000E-03   10000.    
     9 'norm      '    49.683       1.0000         .10000E-03   10000.    
    10 'norm      '    .10820E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29482E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.497       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.053       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1136       1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3000       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6093       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93366       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1529       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=   6149.495     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2428 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9580        .32448E-07** at limit **
   2  Prefactor     .10000E-03    48.859        .87133E-05** at limit **
   3  Prefactor     29.934        30.653       -.78721E-06   -.19484E-04
   4  norm          .10000E-03    18.998       -.34446E-06** at limit **
   5  Prefactor     41.250        64.588        .36095E-05    .24058E-03
   6  norm          .10000E-03    3.9649       -.76347E-07** at limit **
   7  Prefactor     50.100        57.013        .48699E-06    .58340E-04
   8  norm          1.2148        28.560        .27701E-05   -.17561E-04
   9  norm          49.615        51.865        .33939E-05    .37369E-03
  10  norm          .10000E-03    .78484       -.19299E-05** at limit **
  11  Prefactor     .10004E-03    1.3920       -.17370E-05** at limit **
  12  Prefactor     25.486        25.917        .29782E-05    .26852E-03
  13  Prefactor     34.945        61.506        .46382E-05    .35419E-03
  14  Prefactor     3.1052        8.6966        .14327E-05    .30738E-03
  15  norm          .10000E-03    2.3635        .25307E-06** at limit **
  16  Prefactor     .10000E-03    43.928       -.90346E-05** at limit **
  17  norm          8.2996        3.4870        .15746E-06    .93908E-03
  18  Prefactor     .10000E-03    3.0670        .22857E-07** at limit **
  19  Prefactor     .10000E-03    26.782        .10328E-05** at limit **
  20  norm          1.6096        2.1319        .98864E-07   -.76458E-05
  21  Normalizat    .93363        .29520        .17458E-05    .37484E-03
  22  Prefactor     1.1528        .11870       -.18270E-06    .94136E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 29.934
  norm       = 0.0001
  Prefactor  = 41.2501
  norm       = 0.0001
  Prefactor  = 50.0999
  norm       = 1.21476
  norm       = 49.6149
  norm       = 0.000100002
  Prefactor  = 0.000100042
  Prefactor  = 25.4856
  Prefactor  = 34.9451
  Prefactor  = 3.10521
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 8.29961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60959
  Normalizat = 0.933631
  Prefactor  = 1.15281
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.495     FROM HESSE     STATUS=OK           338 CALLS     2766 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0451        .21378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.934        30.712        .73236E-04   -1.4613    
   4  norm          .10000E-03    19.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.250        64.755        .62377E-04   -1.4423    
   6  norm          .10000E-03    4.0547        .15238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.100        57.063        .56661E-04   -1.4291    
   8  norm          1.2148        28.231        .41072E-03   -1.5488    
   9  norm          49.615        51.679        .56893E-04   -1.4298    
  10  norm          .10000E-03    1.0951        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    5.6965        .16218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.486        25.940        .79333E-04   -1.4698    
  13  Prefactor     34.945        62.796        .67687E-04   -1.4525    
  14  Prefactor     3.1052        8.6365        .22979E-03   -1.5356    
  15  norm          .10000E-03    2.4372        .23493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.2996        3.4827        .87890E-04   -1.5132    
  18  Prefactor     .10000E-03    3.0719        .13412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6096        2.1089        .12632E-03   -1.5454    
  21  Normalizat    .93363        .31665        .44570E-03   -.95288    
  22  Prefactor     1.1528        .13052        .17452E-03   -.87796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05974e-08
Minuit parameter uncertainties:
  1  9.36637e-06
  2  0.000857936
  3  30.7286
  4  2.33265e-05
  5  64.8658
  6  8.89948e-06
  7  57.1255
  8  11.7179
  9  51.7262
  10  8.83303e-05
  11  0.000980538
  12  25.9512
  13  62.9151
  14  8.63999
  15  3.19802e-05
  16  0.000892241
  17  3.48282
  18  5.32144e-06
  19  5.5331e-05
  20  2.10897
  21  0.317286
  22  0.130557
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.125e+01  6.487e+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.153e+00  1.306e-01  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.336e-01  3.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351179/likelihoodResults_595987201_596246401_4FGL_J0416.9+0105_daily_bin1376.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) = 6148.45901437
delta logL = 1.03584792971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6148.44084688
delta logL = 1.05401542474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.545       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8516       1.0000          .0000       10.000    
     3 'Normalizat'    .86743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1557       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=   6148.441     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      262 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.545        133.54        .30847E-02    .76550E-03
   2  Index         2.8517        1.8931        .85816E-01    .19081E-03
   3  Normalizat    .86741        .10612        .10355        .27930E-04
   4  Prefactor     1.1557        .42014E-01    .35773E-01    .88191E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5445
  Index      = 2.8517
  Normalizat = 0.867406
  Prefactor  = 1.15571
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.441     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.545        233.20        .12339E-03   -1.5058    
   2  Index         2.8517        2.9731        .30757E-02   -.44412    
   3  Normalizat    .86741        .32889        .45900E-03   -.97615    
   4  Prefactor     1.1557        .14241        .17392E-03   -.87705    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5872e-07
Minuit parameter uncertainties:
  1  99.6195
  2  3.24541
  3  0.329648
  4  0.142459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351179': 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) = 6148.44084681
delta logL = 1.05401549465

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.054e+01  9.962e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.852e+00  3.245e+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.156e+00  1.425e-01  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.674e-01  3.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.85 +/- 3.25
Photon Flux (Free Index): 1.73e-07 +/- 1.55e-07
Energy Flux (Free Index): 3.75e-05 +/- 5.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/351179/cmap_HighResolution_595987201_596246401_4FGL_J0416.9+0105_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', energy_flux2='3.75e-05', dlogl='1.05e+00', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-08-20 10:33:21.783145', photon_index_error2='3.25', photon_index2='2.85', ts='0.57', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='5.93e-05', EG='0.93', time_epoch_completed='1629480801.78', return_code='0', job_id='351179', GAL2='1.16', EG2='0.87', return_code2='102', photon_flux_error2='1.55e-07', ts2='2.71', photon_index='1.88' WHERE bin_id='1376' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:33:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 351179: <4FGL_J0416.9+0105_daily_bin1376> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1376> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:52 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:53 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:20:53 2021
Terminated at Fri Aug 20 10:33:22 2021
Results reported at Fri Aug 20 10:33:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1376 64.2269 1.088 595987201 596246401 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 :                                   617.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            750 sec.

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

