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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin981
RA = 64.2269, Dec = 1.088
tmin = 493603201, tmax = 493862401
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='349506', job_status='RUN', time_executed='2021-08-20 10:18:16.353969', time_epoch_executed='1629479896.35' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349506

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349506/ft1_4FGL_J0416.9+0105_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349506/ft2_4FGL_J0416.9+0105_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349506/ft1_4FGL_J0416.9+0105_daily_bin981.fits outfile=/scratch/kocevski/349506/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin981.fits ra=64.2269 dec=1.088 rad=12.0 tmin=493603201.0 tmax=493862401.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.36
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349506/ft1_filtered_4FGL_J0416.9+0105_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/349506/ft2_4FGL_J0416.9+0105_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/349506/ltcube_493603201_493862401_4FGL_J0416.9+0105_daily_bin981.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/349506/ft2_4FGL_J0416.9+0105_daily_bin981.fits
.....................!
real 11.85
user 11.25
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349506/ft1_filtered_4FGL_J0416.9+0105_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/349506/ft2_4FGL_J0416.9+0105_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/349506/ltcube_493603201_493862401_4FGL_J0416.9+0105_daily_bin981.fits outfile=/scratch/kocevski/349506/expmap_493603201_493862401_4FGL_J0416.9+0105_daily_bin981.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/349506/ltcube_493603201_493862401_4FGL_J0416.9+0105_daily_bin981.fits
.....................!
real 190.99
user 185.64
sys 5.04

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/349506/ft1_filtered_4FGL_J0416.9+0105_daily_bin981.fits scfile=/scratch/kocevski/349506/ft2_4FGL_J0416.9+0105_daily_bin981.fits outfile=/scratch/kocevski/349506/cmap_493603201_493862401_4FGL_J0416.9+0105_daily_bin981.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.73
user 0.35
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349506/ft1_filtered_4FGL_J0416.9+0105_daily_bin981.fits scfile=/scratch/kocevski/349506/ft2_4FGL_J0416.9+0105_daily_bin981.fits outfile=/scratch/kocevski/349506/cmap_HighResolution_493603201_493862401_4FGL_J0416.9+0105_daily_bin981.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.74
user 0.38
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.9832       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68876       1.0000         .10000E-03   10000.    
     8 'norm      '    13.612       1.0000         .10000E-03   10000.    
     9 'norm      '    18.187       1.0000         .10000E-03   10000.    
    10 'norm      '    .93615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0053       1.0000         .10000E-03   10000.    
    17 'norm      '    8.5630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43643       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5185       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98562       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0677       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=   9459.218     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2400 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5919        1.3793       -.20537E-07   -.61701E-03
   2  Prefactor     .10000E-03    13.192       -.12080E-04** at limit **
   3  Prefactor     .10000E-03    4.9896        .12369E-06** at limit **
   4  norm          .10000E-03    5.9575        .10140E-07** at limit **
   5  Prefactor     .10000E-03    6.6020        .22862E-07** at limit **
   6  norm          5.9825        4.6948       -.30206E-06   -.19194E-03
   7  Prefactor     .70373        15.730       -.26969E-05    .25961E-03
   8  norm          13.613        11.415        .63925E-05   -.34997E-04
   9  norm          18.183        25.822        .11915E-06   -.16607E-04
  10  norm          .93690        1.1302       -.28017E-06   -.22374E-02
  11  Prefactor     1.5164        1.3903        .61127E-08   -.20792E-03
  12  Prefactor     .10000E-03    13.092        .11778E-04** at limit **
  13  Prefactor     .10000E-03    19.100       -.28133E-06** at limit **
  14  Prefactor     .10000E-03    20.155        .26848E-06** at limit **
  15  norm          .10000E-03    .59220       -.15726E-07** at limit **
  16  Prefactor     6.0077        28.326       -.31093E-05   -.25055E-05
  17  norm          8.5629        2.7699        .58724E-07   -.39968E-04
  18  Prefactor     .10000E-03    1.8059       -.90838E-07** at limit **
  19  Prefactor     .31530        33.934       -.23148E-05    .11069E-03
  20  norm          2.5180        2.2902       -.44712E-07   -.57706E-03
  21  Normalizat    .98592        .22366       -.26068E-05    .23658E-03
  22  Prefactor     1.0677        .82168E-01    .63992E-06    .31520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.98253
  Prefactor  = 0.703732
  norm       = 13.6127
  norm       = 18.1832
  norm       = 0.936898
  Prefactor  = 1.51637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.00767
  norm       = 8.5629
  Prefactor  = 0.0001
  Prefactor  = 0.315298
  norm       = 2.51803
  Normalizat = 0.985924
  Prefactor  = 1.06769
 **********
 **   18 **HESSE 
 **********

 FCN=   9459.218     FROM HESSE     STATUS=OK           356 CALLS     2756 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5919        1.3707        .10146E-03   -1.5456    
   2  Prefactor     .10000E-03    13.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.9597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.9825        4.6537        .16416E-03   -1.5219    
   7  Prefactor     .70373        192.40        .72028E-02   -1.5540    
   8  norm          13.613        11.400        .10857E-03   -1.4970    
   9  norm          18.183        25.677        .93916E-04   -1.4855    
  10  norm          .93690        1.0251        .10397E-02   -1.5514    
  11  Prefactor     1.5164        1.3749        .10031E-03   -1.5462    
  12  Prefactor     .10000E-03    13.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .59780        .73060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0077        28.407        .16385E-03   -1.5218    
  17  norm          8.5629        2.7722        .87427E-04   -1.5123    
  18  Prefactor     .10000E-03    1.8120        .12760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .31530        34.418        .14702       -1.5596    
  20  norm          2.5180        2.2868        .13443E-03   -1.5391    
  21  Normalizat    .98592        .24340        .41950E-03   -.93504    
  22  Prefactor     1.0677        .90891E-01    .16047E-03   -.90506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57976e-09
Minuit parameter uncertainties:
  1  1.37075
  2  1.00333e-05
  3  6.94899e-06
  4  1.77042e-06
  5  1.30399e-06
  6  4.654
  7  23.3468
  8  11.4014
  9  25.6927
  10  1.02507
  11  1.37489
  12  8.14842e-07
  13  1.20243e-05
  14  0.000325011
  15  3.24189e-07
  16  26.1476
  17  2.77225
  18  3.43806e-06
  19  6.59133
  20  2.28692
  21  0.243676
  22  0.090904
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.304e-06  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.068e+00  9.090e-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:  9.859e-01  2.437e-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: 3.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349506/likelihoodResults_493603201_493862401_4FGL_J0416.9+0105_daily_bin981.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) = 9459.21887418
delta logL = -0.000719669800674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9459.21815438
delta logL = 1.32000423037e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8444       1.0000          .0000       10.000    
     3 'Normalizat'    .98588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       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=   9459.218     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    34.373        .18142E-02** at limit **
   2  Index         1.7980        5.8653        .50000        .30257E-04
   3  Normalizat    .98592        .12774E-01    .41950E-03    .19946E-04
   4  Prefactor     1.0677        .51022E-02    .16047E-03    .55969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100863
  Index      = 1.79804
  Normalizat = 0.985921
  Prefactor  = 1.06769
 **********
 **   18 **HESSE 
 **********

 FCN=   9459.218     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10086E-03    155.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7980        6.5908        .50000       -.69501    
   3  Normalizat    .98592        .27756E-01    .16780E-04   -.93504    
   4  Prefactor     1.0677        .11086E-01    .64188E-05   -.90506    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32042e-08
Minuit parameter uncertainties:
  1  0.0232546
  2  214.507
  3  0.0277562
  4  0.0110859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349506': 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) = 9459.2181539
delta logL = 6.1676473706e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.009e-04  2.325e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.798e+00  2.145e+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.068e+00  1.109e-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:  9.859e-01  2.776e-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/349506/cmap_HighResolution_493603201_493862401_4FGL_J0416.9+0105_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-03', job_status='DONE', photon_flux_upper_limit='3.76e-08', time_completed='2021-08-20 10:30:47.410707', job_id='349506', GAL2='1.07', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1629480647.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='981' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:30:47 PDT 2021


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

Job <4FGL_J0416.9+0105_daily_bin981> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:27 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:29 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:15:29 2021
Terminated at Fri Aug 20 10:30:47 2021
Results reported at Fri Aug 20 10:30:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin981 64.2269 1.088 493603201 493862401 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

