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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1221
RA = 64.2269, Dec = 1.088
tmin = 555811201, tmax = 556070401
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='350946', job_status='RUN', time_executed='2021-08-20 10:22:40.088196', time_epoch_executed='1629480160.09' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350946/ft1_4FGL_J0416.9+0105_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350946/ft2_4FGL_J0416.9+0105_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350946/ft1_4FGL_J0416.9+0105_daily_bin1221.fits outfile=/scratch/kocevski/350946/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1221.fits ra=64.2269 dec=1.088 rad=12.0 tmin=555811201.0 tmax=556070401.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.79
user 3.33
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350946/ft2_4FGL_J0416.9+0105_daily_bin1221.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/350946/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/350946/ft1_filtered_4FGL_J0416.9+0105_daily_bin1221.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.69
user 0.32
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350946/ft1_filtered_4FGL_J0416.9+0105_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/350946/ft2_4FGL_J0416.9+0105_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/350946/ltcube_555811201_556070401_4FGL_J0416.9+0105_daily_bin1221.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/350946/ft2_4FGL_J0416.9+0105_daily_bin1221.fits
.....................!
real 11.76
user 11.18
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350946/ft1_filtered_4FGL_J0416.9+0105_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/350946/ft2_4FGL_J0416.9+0105_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/350946/ltcube_555811201_556070401_4FGL_J0416.9+0105_daily_bin1221.fits outfile=/scratch/kocevski/350946/expmap_555811201_556070401_4FGL_J0416.9+0105_daily_bin1221.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/350946/ltcube_555811201_556070401_4FGL_J0416.9+0105_daily_bin1221.fits
.....................!
real 192.49
user 187.24
sys 4.93

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/350946/ft1_filtered_4FGL_J0416.9+0105_daily_bin1221.fits scfile=/scratch/kocevski/350946/ft2_4FGL_J0416.9+0105_daily_bin1221.fits outfile=/scratch/kocevski/350946/cmap_555811201_556070401_4FGL_J0416.9+0105_daily_bin1221.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=64.2269 yref=1.088 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.72
user 0.37
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350946/ft1_filtered_4FGL_J0416.9+0105_daily_bin1221.fits scfile=/scratch/kocevski/350946/ft2_4FGL_J0416.9+0105_daily_bin1221.fits outfile=/scratch/kocevski/350946/cmap_HighResolution_555811201_556070401_4FGL_J0416.9+0105_daily_bin1221.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=64.2269 yref=1.088 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.73
user 0.36
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3459       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.315       1.0000         .10000E-03   10000.    
     4 'norm      '    41.259       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11926E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    35.717       1.0000         .10000E-03   10000.    
     9 'norm      '    24.110       1.0000         .10000E-03   10000.    
    10 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11411E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9966       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7224       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3545       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11155E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.756       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92732       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0118       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=   4516.047     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2368 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3450        2.8166       -.38585E-06    .80298E-04
   2  Prefactor     .10000E-03    33.002        .55325E-06** at limit **
   3  Prefactor     23.303        18.955       -.27231E-06   -.26188E-05
   4  norm          41.289        33.341       -.39984E-06   -.38085E-04
   5  Prefactor     .10000E-03    88.852       -.14734E-05** at limit **
   6  norm          12.415        9.1958        .38763E-06    .17960E-03
   7  Prefactor     .10000E-03    94.454       -.73605E-06** at limit **
   8  norm          35.731        20.567       -.13150E-06    .67011E-04
   9  norm          24.196        43.003        .21983E-05   -.40962E-04
  10  norm          .10000E-03    1.1669       -.37268E-07** at limit **
  11  Prefactor     .10000E-03    4.0212        .29453E-05** at limit **
  12  Prefactor     9.9896        73.643        .96318E-06    .39108E-04
  13  Prefactor     .10000E-03    87.228       -.73057E-06** at limit **
  14  Prefactor     4.7338        16.444        .11324E-05    .98057E-04
  15  norm          3.3544        6.5073       -.10314E-06    .11851E-03
  16  Prefactor     .10000E-03    57.983       -.37707E-06** at limit **
  17  norm          .10000E-03    3.6464       -.24761E-06** at limit **
  18  Prefactor     .10005E-03    13.959        .57175E-05** at limit **
  19  Prefactor     .10000E-03    18.253        .39626E-07** at limit **
  20  norm          29.754        8.0544       -.14518E-06   -.69725E-04
  21  Normalizat    .92761        .35226        .36939E-05    .14328E-03
  22  Prefactor     1.0119        .11562        .20914E-06    .48515E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34496
  Prefactor  = 0.0001
  Prefactor  = 23.3031
  norm       = 41.2891
  Prefactor  = 0.0001
  norm       = 12.4151
  Prefactor  = 0.000100003
  norm       = 35.7311
  norm       = 24.1958
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 9.9896
  Prefactor  = 0.0001
  Prefactor  = 4.73379
  norm       = 3.35441
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  norm       = 29.754
  Normalizat = 0.927608
  Prefactor  = 1.01186
 **********
 **   18 **HESSE 
 **********

 FCN=   4516.047     FROM HESSE     STATUS=OK           342 CALLS     2710 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3450        2.7975        .15281E-03   -1.5476    
   2  Prefactor     .10000E-03    32.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.303        18.970        .82956E-04   -1.4742    
   4  norm          41.289        33.314        .62407E-04   -1.4422    
   5  Prefactor     .10000E-03    88.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.415        9.1871        .11371E-03   -1.5003    
   7  Prefactor     .10000E-03    95.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          35.731        20.591        .67056E-04   -1.4512    
   9  norm          24.196        42.896        .81579E-04   -1.4724    
  10  norm          .10000E-03    1.7906        .13822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0648        .19544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9896        69.248        .12674E-03   -1.5076    
  13  Prefactor     .10000E-03    87.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7338        16.445        .18517E-03   -1.5273    
  15  norm          3.3544        6.2506        .17064E-03   -1.5342    
  16  Prefactor     .10000E-03    58.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7442        .25081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    26.753        .31155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.754        8.0523        .73448E-04   -1.4616    
  21  Normalizat    .92761        .38173        .46730E-03   -.95497    
  22  Prefactor     1.0119        .12849        .15885E-03   -.92335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56338e-09
Minuit parameter uncertainties:
  1  2.7978
  2  4.72261e-05
  3  18.975
  4  33.3294
  5  0.000369841
  6  9.18812
  7  0.000983417
  8  20.5947
  9  42.951
  10  2.15367e-05
  11  0.000231949
  12  52.6897
  13  0.000172164
  14  16.4603
  15  6.25186
  16  0.000244142
  17  2.8885e-05
  18  0.00222332
  19  1.04507e-05
  20  8.05256
  21  0.38285
  22  0.128526
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.698e-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.012e+00  1.285e-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.276e-01  3.828e-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.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350946/likelihoodResults_555811201_556070401_4FGL_J0416.9+0105_daily_bin1221.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) = 4516.04732731
delta logL = -5.34336022611e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4515.65680095
delta logL = 0.390472926005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1915       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4048       1.0000          .0000       10.000    
     3 'Normalizat'    .84293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0224       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=   4515.657     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      296 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1893        32.893        .10429E-01    .69437E-03
   2  Index         3.4057        2.5157        .74068E-01    .18082E-03
   3  Normalizat    .84253        .91488E-01    .10989        .20219E-04
   4  Prefactor     1.0223        .32234E-01    .41912E-01   -.10896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18932
  Index      = 3.40568
  Normalizat = 0.842534
  Prefactor  = 1.02234
 **********
 **   18 **HESSE 
 **********

 FCN=   4515.657     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      329 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1893        82.381        .84557E-04   -1.5490    
   2  Index         3.4057        6.6827        .41208E-02   -.32453    
   3  Normalizat    .84253        .32774        .48725E-03   -.98510    
   4  Prefactor     1.0223        .11463        .15796E-03   -.91988    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02255e-09
Minuit parameter uncertainties:
  1  19.8244
  2  5.30469
  3  0.328514
  4  0.114661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350946': 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) = 4515.65679836
delta logL = 0.390475512929

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.189e+00  1.982e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.406e+00  5.305e+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.022e+00  1.147e-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.425e-01  3.285e-01  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/350946/cmap_HighResolution_555811201_556070401_4FGL_J0416.9+0105_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-08-20 10:31:20.112873', job_id='350946', GAL2='1.02', fit_tolerance='1e-08', EG2='0.84', EG='0.93', time_epoch_completed='1629480680.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.90e-01', ts2='0.83', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1221' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:31:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 350946: <4FGL_J0416.9+0105_daily_bin1221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1221 64.2269 1.088 555811201 556070401 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 :                                   522.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            647 sec.

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

