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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1277
RA = 64.2269, Dec = 1.088
tmin = 570326401, tmax = 570585601
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='351030', job_status='RUN', time_executed='2021-08-20 10:25:35.855621', time_epoch_executed='1629480335.86' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351030

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351030/ft1_4FGL_J0416.9+0105_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351030/ft2_4FGL_J0416.9+0105_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351030/ft1_4FGL_J0416.9+0105_daily_bin1277.fits outfile=/scratch/kocevski/351030/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1277.fits ra=64.2269 dec=1.088 rad=12.0 tmin=570326401.0 tmax=570585601.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 8.80
user 3.32
sys 5.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351030/ft2_4FGL_J0416.9+0105_daily_bin1277.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/351030/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1277.fits evtable="EVENTS" outfile="/scratch/kocevski/351030/ft1_filtered_4FGL_J0416.9+0105_daily_bin1277.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 5.64
user 0.37
sys 5.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351030/ft1_filtered_4FGL_J0416.9+0105_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/351030/ft2_4FGL_J0416.9+0105_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/351030/ltcube_570326401_570585601_4FGL_J0416.9+0105_daily_bin1277.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/351030/ft2_4FGL_J0416.9+0105_daily_bin1277.fits
.....................!
real 23.07
user 16.96
sys 6.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351030/ft1_filtered_4FGL_J0416.9+0105_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/351030/ft2_4FGL_J0416.9+0105_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/351030/ltcube_570326401_570585601_4FGL_J0416.9+0105_daily_bin1277.fits outfile=/scratch/kocevski/351030/expmap_570326401_570585601_4FGL_J0416.9+0105_daily_bin1277.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/351030/ltcube_570326401_570585601_4FGL_J0416.9+0105_daily_bin1277.fits
.....................!
real 201.40
user 188.36
sys 11.81

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/351030/ft1_filtered_4FGL_J0416.9+0105_daily_bin1277.fits scfile=/scratch/kocevski/351030/ft2_4FGL_J0416.9+0105_daily_bin1277.fits outfile=/scratch/kocevski/351030/cmap_570326401_570585601_4FGL_J0416.9+0105_daily_bin1277.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 5.58
user 0.39
sys 5.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351030/ft1_filtered_4FGL_J0416.9+0105_daily_bin1277.fits scfile=/scratch/kocevski/351030/ft2_4FGL_J0416.9+0105_daily_bin1277.fits outfile=/scratch/kocevski/351030/cmap_HighResolution_570326401_570585601_4FGL_J0416.9+0105_daily_bin1277.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 5.54
user 0.45
sys 5.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0261       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7569       1.0000         .10000E-03   10000.    
     4 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    82.537       1.0000         .10000E-03   10000.    
     8 'norm      '    25.812       1.0000         .10000E-03   10000.    
     9 'norm      '    .11275E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.300       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.474       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10919E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    124.04       1.0000         .10000E-03   10000.    
    17 'norm      '    .87662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.059       1.0000         .10000E-03   10000.    
    20 'norm      '    4.3294       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63503       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0922       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=   4393.483     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2427 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0267        3.3028       -.10582E-06    .52714E-04
   2  Prefactor     .10000E-03    23.564        .17830E-06** at limit **
   3  Prefactor     7.7572        13.962        .20333E-05    .63413E-04
   4  norm          .10000E-03    16.113       -.50349E-07** at limit **
   5  Prefactor     .10000E-03    76.014       -.18704E-05** at limit **
   6  norm          .10000E-03    3.1684       -.17947E-06** at limit **
   7  Prefactor     82.528        53.988       -.15066E-05    .34226E-04
   8  norm          25.815        17.791       -.10060E-07    .18930E-03
   9  norm          .10000E-03    72.542       -.13418E-05** at limit **
  10  norm          .10000E-03    1.1060       -.31542E-05** at limit **
  11  Prefactor     .10000E-03    2.0936       -.22369E-05** at limit **
  12  Prefactor     43.303        44.196        .30614E-06    .26672E-03
  13  Prefactor     27.401        71.857        .26865E-05    .23677E-03
  14  Prefactor     .10000E-03    8.1391       -.80646E-06** at limit **
  15  norm          .10001E-03    2.5222       -.58223E-06** at limit **
  16  Prefactor     124.10        82.437        .56240E-05    .34650E-03
  17  norm          .87753        4.0211       -.18240E-06    .31499E-03
  18  Prefactor     .10000E-03    4.4988        .50035E-06** at limit **
  19  Prefactor     22.082        53.479        .33482E-05    .14187E-03
  20  norm          4.3298        4.6296       -.36918E-07    .11940E-03
  21  Normalizat    .63473        .35680        .10687E-04    .38859E-03
  22  Prefactor     1.0922        .12163       -.21909E-05    .10591E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0267
  Prefactor  = 0.0001
  Prefactor  = 7.75725
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.5284
  norm       = 25.815
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 43.3031
  Prefactor  = 27.4015
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 124.096
  norm       = 0.877526
  Prefactor  = 0.0001
  Prefactor  = 22.082
  norm       = 4.32978
  Normalizat = 0.634728
  Prefactor  = 1.09217
 **********
 **   18 **HESSE 
 **********

 FCN=   4393.483     FROM HESSE     STATUS=OK           334 CALLS     2761 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0267        3.2949        .10418E-03   -1.5307    
   2  Prefactor     .10000E-03    23.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7572        13.936        .71989E-03   -1.5151    
   4  norm          .10000E-03    16.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    76.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1728        .11522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     82.528        54.042        .44212E-04   -1.3889    
   8  norm          25.815        17.804        .78848E-04   -1.4691    
   9  norm          .10000E-03    72.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2410        .11866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1496        .18732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.303        42.427        .60924E-04   -1.4391    
  13  Prefactor     27.401        72.623        .76430E-04   -1.4661    
  14  Prefactor     .10000E-03    8.1757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    33.404        .19070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     124.10        83.532        .18070E-03   -1.3475    
  17  norm          .87753        3.8783        .24005E-03   -1.5521    
  18  Prefactor     .10000E-03    4.5120        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.082        53.426        .85283E-04   -1.4768    
  20  norm          4.3298        4.6156        .14005E-03   -1.5292    
  21  Normalizat    .63473        .36356        .54788E-03   -1.0653    
  22  Prefactor     1.0922        .12578        .15560E-03   -.89717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84463e-09
Minuit parameter uncertainties:
  1  3.29508
  2  2.50866e-05
  3  13.9414
  4  6.85149e-06
  5  0.000109214
  6  1.59037e-06
  7  54.0737
  8  17.8074
  9  0.000340122
  10  8.9666e-05
  11  1.31181e-05
  12  42.4562
  13  72.8589
  14  2.18218e-05
  15  0.00131344
  16  83.611
  17  3.68981
  18  1.05627e-05
  19  53.5417
  20  4.61595
  21  0.364947
  22  0.125813
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.092e-04  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.092e+00  1.258e-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:  6.347e-01  3.649e-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: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351030/likelihoodResults_570326401_570585601_4FGL_J0416.9+0105_daily_bin1277.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) = 4393.48266218
delta logL = -6.23287069175e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4393.48260362
delta logL = -3.76842672267e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13213E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0740       1.0000          .0000       10.000    
     3 'Normalizat'    .63472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0922       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=   4393.483     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      250 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10216E-03    13.871        .10284E-01** at limit **
   2  Index         2.0882        6.4178        .50000       -.80136E-05
   3  Normalizat    .63472        .27119E-02    .12344        .14122E-03
   4  Prefactor     1.0922        .99325E-03    .37892E-01    .20828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102161
  Index      = 2.0882
  Normalizat = 0.634724
  Prefactor  = 1.09217
 **********
 **   18 **HESSE 
 **********

 FCN=   4393.483     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10216E-03    1007.9        .41136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0882        8.6962        .50000       -.62163    
   3  Normalizat    .63472        .23222E-01    .54786E-03   -1.0653    
   4  Prefactor     1.0922        .85454E-02    .15561E-03   -.89717    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63765e-07
Minuit parameter uncertainties:
  1  0.0949938
  2  197.27
  3  0.0232226
  4  0.00854543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351030': 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) = 4393.48259951
delta logL = 3.39667167282e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.022e-04  9.499e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.088e+00  1.973e+02  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.092e+00  8.545e-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:  6.347e-01  2.322e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/351030/cmap_HighResolution_570326401_570585601_4FGL_J0416.9+0105_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-08-20 10:35:49.818936', job_id='351030', GAL2='1.09', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1629480949.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1277' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:35:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0131>
Subject: Job 351030: <4FGL_J0416.9+0105_daily_bin1277> in cluster <slac> Done

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

Your job looked like:

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

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

