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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin316
RA = 64.2269, Dec = 1.088
tmin = 321235201, tmax = 321494401
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='345451', job_status='RUN', time_executed='2021-08-20 10:02:40.175058', time_epoch_executed='1629478960.18' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345451

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345451/ft1_4FGL_J0416.9+0105_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345451/ft2_4FGL_J0416.9+0105_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345451/ft1_4FGL_J0416.9+0105_daily_bin316.fits outfile=/scratch/kocevski/345451/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin316.fits ra=64.2269 dec=1.088 rad=12.0 tmin=321235201.0 tmax=321494401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.22
user 3.39
sys 0.77

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345451/ft1_filtered_4FGL_J0416.9+0105_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/345451/ft2_4FGL_J0416.9+0105_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/345451/ltcube_321235201_321494401_4FGL_J0416.9+0105_daily_bin316.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/345451/ft2_4FGL_J0416.9+0105_daily_bin316.fits
.....................!
real 12.47
user 11.45
sys 0.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345451/ft1_filtered_4FGL_J0416.9+0105_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/345451/ft2_4FGL_J0416.9+0105_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/345451/ltcube_321235201_321494401_4FGL_J0416.9+0105_daily_bin316.fits outfile=/scratch/kocevski/345451/expmap_321235201_321494401_4FGL_J0416.9+0105_daily_bin316.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/345451/ltcube_321235201_321494401_4FGL_J0416.9+0105_daily_bin316.fits
.....................!
real 190.88
user 185.97
sys 4.59

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/345451/ft1_filtered_4FGL_J0416.9+0105_daily_bin316.fits scfile=/scratch/kocevski/345451/ft2_4FGL_J0416.9+0105_daily_bin316.fits outfile=/scratch/kocevski/345451/cmap_321235201_321494401_4FGL_J0416.9+0105_daily_bin316.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.12
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345451/ft1_filtered_4FGL_J0416.9+0105_daily_bin316.fits scfile=/scratch/kocevski/345451/ft2_4FGL_J0416.9+0105_daily_bin316.fits outfile=/scratch/kocevski/345451/cmap_HighResolution_321235201_321494401_4FGL_J0416.9+0105_daily_bin316.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.13
user 0.39
sys 0.73

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .27865E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36893       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6537       1.0000         .10000E-03   10000.    
    10 'norm      '    .17551E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73471       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70852       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5682       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.495       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1743       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1556       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9144       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79897       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0791       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=   9951.310     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     2842 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7183        1.3826        .80450E-04    .12662E-03
   2  Prefactor     68.163        44.172        .24298E-03   -.26033E-03
   3  Prefactor     .10000E-03    14.219        .18142E-02** at limit **
   4  norm          .10004E-03    9.1249        .10773    ** at limit **
   5  Prefactor     .25156        15.983        .12621        .22646E-03
   6  norm          .10000E-03    1.2243        .10764E-02** at limit **
   7  Prefactor     .10000E-03    9.6536        .18142E-02** at limit **
   8  norm          .10000E-03    6.2148        .18142E-02** at limit **
   9  norm          5.6682        17.085        .16894E-03   -.19246E-04
  10  norm          .10000E-03    3.3828        .11323E-02** at limit **
  11  Prefactor     .73322        1.4769        .14609E-03   -.11691E-02
  12  Prefactor     .10000E-03    5.0959        .18142E-02** at limit **
  13  Prefactor     16.962        37.085        .97434E-04   -.90544E-04
  14  Prefactor     .71041        16.679        .41013E-02    .47285E-03
  15  norm          2.5681        2.4469        .14362E-03    .25678E-03
  16  Prefactor     16.496        30.443        .98616E-04    .25362E-05
  17  norm          1.1741        1.3082        .11848E-03    .39628E-03
  18  Prefactor     4.1500        6.7414        .19772E-03    .13754E-04
  19  Prefactor     .10000E-03    41.066        .18142E-02** at limit **
  20  norm          4.9139        2.0694        .44987E-03    .21855E-03
  21  Normalizat    .79907        .22351        .43054E-03   -.14328E-03
  22  Prefactor     1.0791        .86799E-01    .15437E-03   -.14159E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.71829
  Prefactor  = 68.1634
  Prefactor  = 0.0001
  norm       = 0.000100043
  Prefactor  = 0.251557
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.6682
  norm       = 0.000100005
  Prefactor  = 0.73322
  Prefactor  = 0.0001
  Prefactor  = 16.9623
  Prefactor  = 0.710413
  norm       = 2.5681
  Prefactor  = 16.4961
  norm       = 1.17407
  Prefactor  = 4.15
  Prefactor  = 0.0001
  norm       = 4.9139
  Normalizat = 0.799075
  Prefactor  = 1.07911
 **********
 **   18 **HESSE 
 **********

 FCN=   9951.310     FROM HESSE     STATUS=OK           344 CALLS     3186 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7183        1.3822        .32180E-05   -1.5378    
   2  Prefactor     68.163        44.158        .97193E-05   -1.4055    
   3  Prefactor     .10000E-03    14.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10004E-03    8.9704        .10988       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .25156        15.705        .12820       -1.5608    
   6  norm          .10000E-03    1.2243        .21527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.2170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6682        17.079        .67577E-05   -1.5232    
  10  norm          .10000E-03    3.4329        .22645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .73322        1.4751        .58438E-05   -1.5537    
  12  Prefactor     .10000E-03    5.0961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.962        37.007        .38974E-05   -1.4884    
  14  Prefactor     .71041        16.374        .16405E-03   -1.5539    
  15  norm          2.5681        2.4463        .57449E-05   -1.5387    
  16  Prefactor     16.496        30.431        .39446E-05   -1.4895    
  17  norm          1.1741        1.3082        .47394E-05   -1.5491    
  18  Prefactor     4.1500        6.7384        .39544E-04   -1.5301    
  19  Prefactor     .10000E-03    41.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9139        2.0692        .17995E-04   -1.5265    
  21  Normalizat    .79907        .22124        .17221E-04   -1.0010    
  22  Prefactor     1.0791        .86566E-01    .30873E-04   -.90137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9575e-09
Minuit parameter uncertainties:
  1  1.38218
  2  44.1794
  3  3.44769e-05
  4  0.00124645
  5  3.97559
  6  5.73863e-06
  7  8.14407e-06
  8  7.83886e-05
  9  17.0938
  10  0.000259209
  11  1.47517
  12  3.70913e-06
  13  37.0569
  14  6.82282
  15  2.44639
  16  30.4597
  17  1.30819
  18  6.73964
  19  4.28553e-05
  20  2.06925
  21  0.221488
  22  0.0865768
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.516e-01  3.976e+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

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  1.079e+00  8.658e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  7.991e-01  2.215e-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: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345451/likelihoodResults_321235201_321494401_4FGL_J0416.9+0105_daily_bin316.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) = 9951.30975071
delta logL = 0.000125974838738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9950.93500287
delta logL = 0.374873817482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25955E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.3660       1.0000          .0000       10.000    
     3 'Normalizat'    .74776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0877       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=   9950.935     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      290 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25061E-01    .33259        .41198E-02    .99696E-02
   2  Index         4.3776        1.4905        .87025E-01    .31568E-03
   3  Normalizat    .74786        .33915E-01    .10009        .41638E-04
   4  Prefactor     1.0876        .14010E-01    .38074E-01   -.19818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0250614
  Index      = 4.37765
  Normalizat = 0.747859
  Prefactor  = 1.08759
 **********
 **   18 **HESSE 
 **********

 FCN=   9950.935     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      323 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25061E-01    1.7452        .18384E-04   -1.5676    
   2  Index         4.3776        4.1672        .48638E-02   -.12479    
   3  Normalizat    .74786        .16829        .44365E-03   -1.0203    
   4  Prefactor     1.0876        .68133E-01    .15379E-03   -.89864    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91572e-06
Minuit parameter uncertainties:
  1  0.417446
  2  4.94732
  3  0.168402
  4  0.0681383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345451': 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) = 9950.93498938
delta logL = 0.37488730587

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.506e-02  4.174e-01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  4.378e+00  4.947e+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.088e+00  6.814e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  7.479e-01  1.684e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/345451/cmap_HighResolution_321235201_321494401_4FGL_J0416.9+0105_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-08-20 10:16:22.281930', job_id='345451', GAL2='1.09', fit_tolerance='1e-08', EG2='0.75', EG='0.80', time_epoch_completed='1629479782.28', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.75e-01', ts2='0.80', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='316' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:16:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 345451: <4FGL_J0416.9+0105_daily_bin316> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin316 64.2269 1.088 321235201 321494401 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 :                                   831.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             327.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

