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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1501
RA = 64.2269, Dec = 1.088
tmin = 628387201, tmax = 628646401
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='352367', job_status='RUN', time_executed='2021-08-20 10:28:47.820081', time_epoch_executed='1629480527.82' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352367/ft1_4FGL_J0416.9+0105_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352367/ft2_4FGL_J0416.9+0105_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352367/ft1_4FGL_J0416.9+0105_daily_bin1501.fits outfile=/scratch/kocevski/352367/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1501.fits ra=64.2269 dec=1.088 rad=12.0 tmin=628387201.0 tmax=628646401.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.90
user 3.34
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352367/ft1_filtered_4FGL_J0416.9+0105_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/352367/ft2_4FGL_J0416.9+0105_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/352367/ltcube_628387201_628646401_4FGL_J0416.9+0105_daily_bin1501.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/352367/ft2_4FGL_J0416.9+0105_daily_bin1501.fits
.....................!
real 12.30
user 11.57
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352367/ft1_filtered_4FGL_J0416.9+0105_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/352367/ft2_4FGL_J0416.9+0105_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/352367/ltcube_628387201_628646401_4FGL_J0416.9+0105_daily_bin1501.fits outfile=/scratch/kocevski/352367/expmap_628387201_628646401_4FGL_J0416.9+0105_daily_bin1501.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/352367/ltcube_628387201_628646401_4FGL_J0416.9+0105_daily_bin1501.fits
.....................!
real 191.26
user 185.27
sys 5.63

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/352367/ft1_filtered_4FGL_J0416.9+0105_daily_bin1501.fits scfile=/scratch/kocevski/352367/ft2_4FGL_J0416.9+0105_daily_bin1501.fits outfile=/scratch/kocevski/352367/cmap_628387201_628646401_4FGL_J0416.9+0105_daily_bin1501.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.87
user 0.36
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352367/ft1_filtered_4FGL_J0416.9+0105_daily_bin1501.fits scfile=/scratch/kocevski/352367/ft2_4FGL_J0416.9+0105_daily_bin1501.fits outfile=/scratch/kocevski/352367/cmap_HighResolution_628387201_628646401_4FGL_J0416.9+0105_daily_bin1501.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.88
user 0.37
sys 0.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77041       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53839       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.708       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2182       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .42407       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .71490       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28552E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3417       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3290       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.964       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1641       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74996       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0857       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=   8946.723     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2469 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77072        1.1064       -.15552E-05   -.59535E-03
   2  Prefactor     .10002E-03    72.100       -.60982E-05** at limit **
   3  Prefactor     .40405        28.867       -.18528E-04    .17843E-04
   4  norm          .10000E-03    14.752       -.16882E-06** at limit **
   5  Prefactor     19.716        29.144       -.95460E-06    .24739E-04
   6  norm          .10000E-03    1.4214       -.25685E-06** at limit **
   7  Prefactor     8.2755        30.306       -.25612E-05   -.19049E-03
   8  norm          .10000E-03    5.2762       -.23485E-06** at limit **
   9  norm          .10000E-03    9.2351        .18382E-06** at limit **
  10  norm          .42346        1.1526        .51749E-07    .73707E-03
  11  Prefactor     .71562        1.4213       -.52442E-06    .37220E-03
  12  Prefactor     .10000E-03    27.775       -.15424E-05** at limit **
  13  Prefactor     68.835        57.337        .61324E-06    .39619E-03
  14  Prefactor     .10000E-03    51.586       -.30970E-04** at limit **
  15  norm          5.3411        2.9315       -.14140E-06    .58277E-03
  16  Prefactor     5.3165        63.902        .86522E-06    .86169E-04
  17  norm          1.7770        1.8163       -.19854E-06    .12753E-03
  18  Prefactor     .10000E-03    3.4167        .14930E-06** at limit **
  19  Prefactor     10.952        36.185        .11830E-05    .11637E-03
  20  norm          1.1640        1.5467       -.24940E-06   -.92977E-04
  21  Normalizat    .74993        .22143       -.14045E-05    .43640E-03
  22  Prefactor     1.0857        .86448E-01    .16773E-05   -.13394E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.770722
  Prefactor  = 0.000100022
  Prefactor  = 0.404049
  norm       = 0.0001
  Prefactor  = 19.7157
  norm       = 0.0001
  Prefactor  = 8.27552
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.423461
  Prefactor  = 0.715622
  Prefactor  = 0.0001
  Prefactor  = 68.8354
  Prefactor  = 0.000100002
  norm       = 5.34111
  Prefactor  = 5.31647
  norm       = 1.77702
  Prefactor  = 0.0001
  Prefactor  = 10.9516
  norm       = 1.16401
  Normalizat = 0.749926
  Prefactor  = 1.08575
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77072        1.1238        .24658E-03   -1.5532    
   2  Prefactor     .10002E-03    72.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .40405        16.984        .92308E-01   -1.5581    
   4  norm          .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.716        29.045        .90221E-04   -1.4820    
   6  norm          .10000E-03    1.4267        .11008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.2755        30.500        .13985E-03   -1.5133    
   8  norm          .10000E-03    5.3633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.2434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .42346        1.0927        .14083E-03   -1.5578    
  11  Prefactor     .71562        1.4335        .15613E-02   -1.5539    
  12  Prefactor     .10000E-03    27.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     68.835        55.517        .48368E-04   -1.4047    
  14  Prefactor     .10000E-03    55.562        .36542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3411        2.9191        .11333E-03   -1.5246    
  16  Prefactor     5.3165        64.387        .17410E-03   -1.5247    
  17  norm          1.7770        1.8002        .12143E-03   -1.5441    
  18  Prefactor     .10000E-03    3.4344        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.952        36.182        .12099E-03   -1.5046    
  20  norm          1.1640        1.5162        .13094E-03   -1.5492    
  21  Normalizat    .74993        .22917        .44860E-03   -1.0195    
  22  Prefactor     1.0857        .91615E-01    .15347E-03   -.89923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70902e-09
Minuit parameter uncertainties:
  1  1.12384
  2  0.00256247
  3  5.24011
  4  5.29929e-05
  5  29.066
  6  4.83572e-06
  7  30.5579
  8  1.50304e-05
  9  1.90718e-05
  10  1.09278
  11  1.43352
  12  1.08654e-05
  13  55.5588
  14  0.000710936
  15  2.91915
  16  37.0527
  17  1.80022
  18  5.94043e-06
  19  36.2543
  20  1.51627
  21  0.229464
  22  0.0916278
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.972e+01  2.907e+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:  1.086e+00  9.163e-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.499e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/352367/likelihoodResults_628387201_628646401_4FGL_J0416.9+0105_daily_bin1501.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) = 8945.41344384
delta logL = 1.30998977608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8945.37719854
delta logL = 1.34623508085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0810       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1148       1.0000          .0000       10.000    
     3 'Normalizat'    .68398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0928       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=   8945.377     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      275 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0797        29.368        .57768E-02    .75192E-03
   2  Index         3.1150        1.5591        .92752E-01    .31106E-03
   3  Normalizat    .68394        .68937E-01    .10524        .13388E-03
   4  Prefactor     1.0929        .26514E-01    .37865E-01    .27410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07967
  Index      = 3.11503
  Normalizat = 0.683938
  Prefactor  = 1.09286
 **********
 **   18 **HESSE 
 **********

 FCN=   8945.377     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      306 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0797        61.218        .10085E-03   -1.5357    
   2  Index         3.1150        2.8124        .31868E-02   -.38655    
   3  Normalizat    .68394        .22487        .46664E-03   -1.0453    
   4  Prefactor     1.0929        .88149E-01    .15279E-03   -.89695    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.93069e-10
Minuit parameter uncertainties:
  1  27.4933
  2  3.02242
  3  0.225171
  4  0.0881603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352367': 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) = 8945.37719849
delta logL = 1.34623512877

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.080e+00  2.749e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.115e+00  3.022e+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.093e+00  8.816e-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:  6.839e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 64.227 1.088
Photon Index (Free Index): 3.12 +/- 3.02
Photon Flux (Free Index): 1.15e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.17e-05 +/- 2.00e-05

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/352367/cmap_HighResolution_628387201_628646401_4FGL_J0416.9+0105_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', energy_flux2='2.17e-05', dlogl='1.35e+00', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-08-20 10:41:08.790107', photon_index_error2='3.02', photon_index2='3.12', ts='0.65', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.37e-08', energy_flux_error2='2.00e-05', EG='0.75', time_epoch_completed='1629481268.79', return_code='0', job_id='352367', GAL2='1.09', EG2='0.68', return_code2='102', photon_flux_error2='1.01e-07', ts2='3.42', photon_index='1.88' WHERE bin_id='1501' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:41:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 352367: <4FGL_J0416.9+0105_daily_bin1501> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1501 64.2269 1.088 628387201 628646401 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 :                                   745.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            939 sec.

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

