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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin748
RA = 64.2269, Dec = 1.088
tmin = 433209601, tmax = 433468801
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='348172', job_status='RUN', time_executed='2021-08-20 10:11:43.651493', time_epoch_executed='1629479503.65' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348172/ft1_4FGL_J0416.9+0105_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348172/ft2_4FGL_J0416.9+0105_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348172/ft1_4FGL_J0416.9+0105_daily_bin748.fits outfile=/scratch/kocevski/348172/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin748.fits ra=64.2269 dec=1.088 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.55
user 5.71
sys 0.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348172/ft1_filtered_4FGL_J0416.9+0105_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/348172/ft2_4FGL_J0416.9+0105_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/348172/ltcube_433209601_433468801_4FGL_J0416.9+0105_daily_bin748.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/348172/ft2_4FGL_J0416.9+0105_daily_bin748.fits
.....................!
real 12.72
user 11.68
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348172/ft1_filtered_4FGL_J0416.9+0105_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/348172/ft2_4FGL_J0416.9+0105_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/348172/ltcube_433209601_433468801_4FGL_J0416.9+0105_daily_bin748.fits outfile=/scratch/kocevski/348172/expmap_433209601_433468801_4FGL_J0416.9+0105_daily_bin748.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/348172/ltcube_433209601_433468801_4FGL_J0416.9+0105_daily_bin748.fits
.....................!
real 191.18
user 185.35
sys 5.50

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/348172/ft1_filtered_4FGL_J0416.9+0105_daily_bin748.fits scfile=/scratch/kocevski/348172/ft2_4FGL_J0416.9+0105_daily_bin748.fits outfile=/scratch/kocevski/348172/cmap_433209601_433468801_4FGL_J0416.9+0105_daily_bin748.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.36
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348172/ft1_filtered_4FGL_J0416.9+0105_daily_bin748.fits scfile=/scratch/kocevski/348172/ft2_4FGL_J0416.9+0105_daily_bin748.fits outfile=/scratch/kocevski/348172/cmap_HighResolution_433209601_433468801_4FGL_J0416.9+0105_daily_bin748.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.12
user 0.37
sys 0.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8864       1.0000         .10000E-03   10000.    
     4 'norm      '    13.696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11663E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5167       1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.982       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2652       1.0000         .10000E-03   10000.    
     9 'norm      '    47.531       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4007       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4032       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.474       1.0000         .10000E-03   10000.    
    15 'norm      '    24.118       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7123       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31134       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0127       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84405       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1086       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=   10660.53     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2469 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1273        2.0663        .51439E-08    .37923E-04
   2  Prefactor     .10000E-03    27.954        .59998E-07** at limit **
   3  Prefactor     9.8904        15.131       -.49243E-05    .41238E-05
   4  norm          13.671        14.754       -.90610E-06    .49371E-05
   5  Prefactor     .10000E-03    12.248       -.10581E-06** at limit **
   6  norm          1.5158        1.1828        .18566E-06   -.17498E-02
   7  Prefactor     62.974        31.848        .17558E-05    .46604E-04
   8  norm          1.2564        19.210        .47668E-08   -.75615E-05
   9  norm          47.534        25.135        .73013E-05    .21493E-03
  10  norm          1.4006        1.0020       -.34047E-06    .29142E-03
  11  Prefactor     .10000E-03    .63226       -.78410E-06** at limit **
  12  Prefactor     .10000E-03    7.0138       -.55198E-07** at limit **
  13  Prefactor     3.3797        75.562        .23463E-04    .61242E-04
  14  Prefactor     15.477        9.9775       -.48867E-06    .63492E-04
  15  norm          24.116        4.4165       -.12117E-06    .28530E-03
  16  Prefactor     6.7268        78.918       -.33049E-04    .12469E-06
  17  norm          1.7809        1.6004       -.13256E-06   -.52575E-04
  18  Prefactor     .10000E-03    4.6389        .11213E-06** at limit **
  19  Prefactor     .10641E-03    31.333        .32734E-06** at limit **
  20  norm          6.0143        2.3633       -.10612E-08    .22457E-04
  21  Normalizat    .84438        .23771       -.16392E-05    .11839E-03
  22  Prefactor     1.1086        .88745E-01    .60223E-06    .11725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.12733
  Prefactor  = 0.0001
  Prefactor  = 9.8904
  norm       = 13.6714
  Prefactor  = 0.0001
  norm       = 1.51578
  Prefactor  = 62.9743
  norm       = 1.25642
  norm       = 47.534
  norm       = 1.40063
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.37971
  Prefactor  = 15.4775
  norm       = 24.1157
  Prefactor  = 6.7268
  norm       = 1.78086
  Prefactor  = 0.0001
  Prefactor  = 0.000106408
  norm       = 6.01426
  Normalizat = 0.844384
  Prefactor  = 1.10863
 **********
 **   18 **HESSE 
 **********

 FCN=   10660.53     FROM HESSE     STATUS=OK           360 CALLS     2829 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1273        2.0664        .67556E-04   -1.5104    
   2  Prefactor     .10000E-03    27.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8904        15.108        .12744E-03   -1.5079    
   4  norm          13.671        14.794        .10823E-03   -1.4968    
   5  Prefactor     .10000E-03    12.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5158        5.1547        .17354E-02   -1.5462    
   7  Prefactor     62.974        31.858        .50564E-04   -1.4119    
   8  norm          1.2564        19.064        .39607E-03   -1.5484    
   9  norm          47.534        25.148        .58161E-04   -1.4328    
  10  norm          1.4006        .99625        .81182E-04   -1.5471    
  11  Prefactor     .10000E-03    1.2846        .15713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3797        74.479        .21930E-03   -1.5340    
  14  Prefactor     15.477        9.9829        .10182E-03   -1.4921    
  15  norm          24.116        4.4117        .81567E-04   -1.4725    
  16  Prefactor     6.7268        78.307        .15488E-03   -1.5189    
  17  norm          1.7809        1.5861        .11907E-03   -1.5441    
  18  Prefactor     .10000E-03    4.6718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10641E-03    30.271        .15653       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0143        2.3633        .96260E-04   -1.5217    
  21  Normalizat    .84438        .25268        .48366E-03   -.98443    
  22  Prefactor     1.1086        .96175E-01    .17354E-03   -.89191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74592e-09
Minuit parameter uncertainties:
  1  2.0664
  2  4.82605e-05
  3  15.1136
  4  14.7979
  5  3.50785e-05
  6  5.15616
  7  31.8665
  8  9.79148
  9  25.1533
  10  0.996266
  11  9.3277e-05
  12  1.64181e-05
  13  31.7756
  14  9.98394
  15  4.41172
  16  45.9777
  17  1.58616
  18  2.38195e-05
  19  0.0278693
  20  2.36331
  21  0.253034
  22  0.0961903
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.508e-05  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.109e+00  9.619e-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:  8.444e-01  2.530e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348172/likelihoodResults_433209601_433468801_4FGL_J0416.9+0105_daily_bin748.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) = 10660.5265476
delta logL = -0.000388543841837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10660.5261589
delta logL = 1.72203726834e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8421       1.0000          .0000       10.000    
     3 'Normalizat'    .84438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1086       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=   10660.53     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    54.064        .18142E-02** at limit **
   2  Index         1.7985        6.6294        .50000        .16450E-04
   3  Normalizat    .84438        .11860E-01    .48366E-03   -.54204E-04
   4  Prefactor     1.1086        .48521E-02    .17354E-03   -.46150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100618
  Index      = 1.79848
  Normalizat = 0.844384
  Prefactor  = 1.10863
 **********
 **   18 **HESSE 
 **********

 FCN=   10660.53     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10062E-03    248.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7985        7.5139        .50000       -.69489    
   3  Normalizat    .84438        .25915E-01    .19346E-04   -.98443    
   4  Prefactor     1.1086        .10602E-01    .34709E-04   -.89191    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.93978e-09
Minuit parameter uncertainties:
  1  0.024908
  2  228.014
  3  0.025915
  4  0.0106019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348172': 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) = 10660.5261587
delta logL = 3.54533767677e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.006e-04  2.491e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.798e+00  2.280e+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.109e+00  1.060e-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:  8.444e-01  2.591e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/348172/cmap_HighResolution_433209601_433468801_4FGL_J0416.9+0105_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-08-20 10:25:45.281811', job_id='348172', GAL2='1.11', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1629480345.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='748' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:25:45 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin748 64.2269 1.088 433209601 433468801 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 :                                   849.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

