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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1535
RA = 64.2269, Dec = 1.088
tmin = 637200001, tmax = 637459201
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='352419', job_status='RUN', time_executed='2021-08-20 10:28:47.096589', time_epoch_executed='1629480527.1' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352419/ft1_4FGL_J0416.9+0105_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352419/ft2_4FGL_J0416.9+0105_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352419/ft1_4FGL_J0416.9+0105_daily_bin1535.fits outfile=/scratch/kocevski/352419/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1535.fits ra=64.2269 dec=1.088 rad=12.0 tmin=637200001.0 tmax=637459201.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 9.12
user 5.16
sys 3.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/352419/ft2_4FGL_J0416.9+0105_daily_bin1535.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/352419/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1535.fits evtable="EVENTS" outfile="/scratch/kocevski/352419/ft1_filtered_4FGL_J0416.9+0105_daily_bin1535.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 4.24
user 0.32
sys 3.89

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352419/ft1_filtered_4FGL_J0416.9+0105_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/352419/ft2_4FGL_J0416.9+0105_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/352419/ltcube_637200001_637459201_4FGL_J0416.9+0105_daily_bin1535.fits outfile=/scratch/kocevski/352419/expmap_637200001_637459201_4FGL_J0416.9+0105_daily_bin1535.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/352419/ltcube_637200001_637459201_4FGL_J0416.9+0105_daily_bin1535.fits
.....................!
real 196.60
user 186.42
sys 9.55

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/352419/ft1_filtered_4FGL_J0416.9+0105_daily_bin1535.fits scfile=/scratch/kocevski/352419/ft2_4FGL_J0416.9+0105_daily_bin1535.fits outfile=/scratch/kocevski/352419/cmap_637200001_637459201_4FGL_J0416.9+0105_daily_bin1535.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 4.17
user 0.37
sys 3.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352419/ft1_filtered_4FGL_J0416.9+0105_daily_bin1535.fits scfile=/scratch/kocevski/352419/ft2_4FGL_J0416.9+0105_daily_bin1535.fits outfile=/scratch/kocevski/352419/cmap_HighResolution_637200001_637459201_4FGL_J0416.9+0105_daily_bin1535.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 4.23
user 0.38
sys 3.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.843       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.150       1.0000         .10000E-03   10000.    
     6 'norm      '    .46138       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    49.384       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1321       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8768       1.0000         .10000E-03   10000.    
    15 'norm      '    .18602E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .31512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.931       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.072       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2066       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2451       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92109       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=   7062.142     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2379 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .61157        .17420E-07** at limit **
   2  Prefactor     .10000E-03    45.670       -.32825E-05** at limit **
   3  Prefactor     17.837        19.726       -.72989E-06   -.13447E-03
   4  norm          .10000E-03    11.182       -.27865E-06** at limit **
   5  Prefactor     10.148        22.598       -.45990E-06   -.35173E-04
   6  norm          .45753        2.9770        .16769E-06   -.29642E-03
   7  Prefactor     .10000E-03    12.891        .50708E-06** at limit **
   8  norm          .10000E-03    2.8187       -.35778E-07** at limit **
   9  norm          49.384        35.344        .51834E-06    .11495E-03
  10  norm          2.1321        1.3574       -.94020E-07   -.14788E-03
  11  Prefactor     .10000E-03    .77301       -.44078E-09** at limit **
  12  Prefactor     .10001E-03    29.727        .38155E-05** at limit **
  13  Prefactor     .10001E-03    29.774        .51257E-05** at limit **
  14  Prefactor     5.8758        9.9209        .28198E-05   -.54334E-03
  15  norm          .10021E-03    1.5303       -.51814E-06** at limit **
  16  Prefactor     .10000E-03    26.925       -.28885E-05** at limit **
  17  norm          .31102        1.4883       -.12491E-06   -.14364E-03
  18  Prefactor     13.932        10.277        .50463E-07    .99360E-04
  19  Prefactor     38.070        50.327       -.47969E-06   -.18962E-04
  20  norm          3.2066        2.3683        .11590E-07   -.12955E-04
  21  Normalizat    1.2451        .25253       -.81462E-06    .92813E-04
  22  Prefactor     .92112        .90914E-01    .11937E-06    .15192E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 17.8369
  norm       = 0.0001
  Prefactor  = 10.1482
  norm       = 0.457526
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 49.384
  norm       = 2.13207
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.00010001
  Prefactor  = 5.87581
  norm       = 0.000100211
  Prefactor  = 0.000100003
  norm       = 0.311024
  Prefactor  = 13.9323
  Prefactor  = 38.0705
  norm       = 3.20661
  Normalizat = 1.24506
  Prefactor  = 0.921122
 **********
 **   18 **HESSE 
 **********

 FCN=   7062.142     FROM HESSE     STATUS=OK           348 CALLS     2727 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .61784        .64147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.837        19.910        .94816E-04   -1.4863    
   4  norm          .10000E-03    11.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.148        22.608        .12577E-03   -1.5071    
   6  norm          .45753        11.198        .27258E-02   -1.5573    
   7  Prefactor     .10000E-03    12.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8208        .13779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          49.384        35.001        .57064E-04   -1.4301    
  10  norm          2.1321        1.3545        .72804E-04   -1.5416    
  11  Prefactor     .10000E-03    .77807        .71991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    30.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    31.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8758        11.256        .82829E-03   -1.5223    
  15  norm          .10021E-03    27.086        .18964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .31102        4.9788        .18927E-02   -1.5596    
  18  Prefactor     13.932        10.190        .10731E-03   -1.4961    
  19  Prefactor     38.070        50.368        .64957E-04   -1.4473    
  20  norm          3.2066        2.3627        .10749E-03   -1.5350    
  21  Normalizat    1.2451        .28451        .38749E-03   -.85222    
  22  Prefactor     .92112        .10269        .16735E-03   -.95407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73972e-08
Minuit parameter uncertainties:
  1  2.53342e-07
  2  0.000861901
  3  19.9176
  4  3.82078e-05
  5  22.6267
  6  4.52752
  7  7.9945e-05
  8  2.6611e-06
  9  35.0154
  10  1.35454
  11  7.19863e-07
  12  0.000865807
  13  0.00114882
  14  11.2604
  15  0.00477873
  16  0.00059926
  17  2.48864
  18  10.1916
  19  50.4247
  20  2.36276
  21  0.284868
  22  0.102711
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.015e+01  2.263e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  9.211e-01  1.027e-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:  1.245e+00  2.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/352419/likelihoodResults_637200001_637459201_4FGL_J0416.9+0105_daily_bin1535.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) = 7062.01942381
delta logL = 0.122280328582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7062.01689593
delta logL = 0.124808203392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7857       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4178       1.0000          .0000       10.000    
     3 'Normalizat'    1.2370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92085       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=   7062.017     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      328 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7664        20.898        .16697E-03    .19064E-05
   2  Index         2.4194        1.4299        .96961E-02    .25207E-04
   3  Normalizat    1.2372        .26433        .38844E-03   -.73169E-06
   4  Prefactor     .92107        .10017        .16730E-03   -.46888E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76644
  Index      = 2.41936
  Normalizat = 1.23716
  Prefactor  = 0.921072
 **********
 **   18 **HESSE 
 **********

 FCN=   7062.017     FROM HESSE     STATUS=OK            25 CALLS      353 TOTAL
                     EDM=   .28E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7664        15.505        .66790E-05   -1.5228    
   2  Index         2.4194        1.0700        .38785E-03   -.54232    
   3  Normalizat    1.2372        .26387        .15537E-04   -.85462    
   4  Prefactor     .92107        .10014        .66920E-05   -.95409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82407e-14
Minuit parameter uncertainties:
  1  15.5157
  2  1.08142
  3  0.264153
  4  0.10016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352419': 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) = 7062.01688233
delta logL = 0.124821803231

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.766e+00  1.552e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.419e+00  1.081e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  9.211e-01  1.002e-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:  1.237e+00  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 64.227 1.088

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/352419/cmap_HighResolution_637200001_637459201_4FGL_J0416.9+0105_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.49e-08', time_completed='2021-08-20 10:40:23.852686', job_id='352419', GAL2='0.92', fit_tolerance='1e-08', EG2='1.24', EG='1.25', time_epoch_completed='1629481223.85', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.25e-01', ts2='0.53', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1535' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:40:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 352419: <4FGL_J0416.9+0105_daily_bin1535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1535 64.2269 1.088 637200001 637459201 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 :                                   752.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             302.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

