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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin469
RA = 64.2269, Dec = 1.088
tmin = 360892801, tmax = 361152001
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='346699', job_status='RUN', time_executed='2021-08-20 10:09:10.855365', time_epoch_executed='1629479350.86' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346699

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346699/ft1_4FGL_J0416.9+0105_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346699/ft2_4FGL_J0416.9+0105_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346699/ft1_4FGL_J0416.9+0105_daily_bin469.fits outfile=/scratch/kocevski/346699/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin469.fits ra=64.2269 dec=1.088 rad=12.0 tmin=360892801.0 tmax=361152001.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 12.59
user 3.29
sys 9.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346699/ft1_filtered_4FGL_J0416.9+0105_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/346699/ft2_4FGL_J0416.9+0105_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/346699/ltcube_360892801_361152001_4FGL_J0416.9+0105_daily_bin469.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/346699/ft2_4FGL_J0416.9+0105_daily_bin469.fits
.....................!
real 21.24
user 11.84
sys 9.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346699/ft1_filtered_4FGL_J0416.9+0105_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/346699/ft2_4FGL_J0416.9+0105_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/346699/ltcube_360892801_361152001_4FGL_J0416.9+0105_daily_bin469.fits outfile=/scratch/kocevski/346699/expmap_360892801_361152001_4FGL_J0416.9+0105_daily_bin469.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/346699/ltcube_360892801_361152001_4FGL_J0416.9+0105_daily_bin469.fits
.....................!
real 202.85
user 186.73
sys 15.77

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/346699/ft1_filtered_4FGL_J0416.9+0105_daily_bin469.fits scfile=/scratch/kocevski/346699/ft2_4FGL_J0416.9+0105_daily_bin469.fits outfile=/scratch/kocevski/346699/cmap_360892801_361152001_4FGL_J0416.9+0105_daily_bin469.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 9.37
user 0.38
sys 8.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346699/ft1_filtered_4FGL_J0416.9+0105_daily_bin469.fits scfile=/scratch/kocevski/346699/ft2_4FGL_J0416.9+0105_daily_bin469.fits outfile=/scratch/kocevski/346699/cmap_HighResolution_360892801_361152001_4FGL_J0416.9+0105_daily_bin469.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 9.25
user 0.39
sys 8.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4982       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.002       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0935       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.579       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1189       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0555       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5021       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12900E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.901       1.0000         .10000E-03   10000.    
    17 'norm      '    9.1628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6298       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.066       1.0000         .10000E-03   10000.    
    20 'norm      '    18.777       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0808       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0042       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=   8263.669     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2050 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4981        1.7056        .24926E-07   -.44470E-04
   2  Prefactor     .10000E-03    35.324        .80006E-07** at limit **
   3  Prefactor     .10000E-03    8.0597        .65124E-07** at limit **
   4  norm          .10000E-03    6.7516       -.21551E-08** at limit **
   5  Prefactor     51.995        33.552       -.84950E-07   -.16792E-03
   6  norm          2.0930        4.1174        .21118E-05   -.19644E-02
   7  Prefactor     .10000E-03    18.621        .58976E-06** at limit **
   8  norm          11.578        10.926       -.43374E-07    .12989E-04
   9  norm          4.1219        31.886        .50345E-06   -.52316E-04
  10  norm          2.9881        1.4042       -.98514E-07   -.31805E-03
  11  Prefactor     .10000E-03    .75719       -.74979E-07** at limit **
  12  Prefactor     3.0788        18.435       -.47458E-05   -.43947E-03
  13  Prefactor     2.5019        160.89       -.90706E-06   -.33800E-04
  14  Prefactor     .10000E-03    4.6541       -.13199E-06** at limit **
  15  norm          .10000E-03    1.7657        .20643E-05** at limit **
  16  Prefactor     32.907        34.491        .19479E-06    .33284E-04
  17  norm          9.1628        3.4880       -.43651E-07   -.10614E-02
  18  Prefactor     4.6304        4.8879       -.94294E-07   -.29693E-03
  19  Prefactor     39.074        31.964        .13813E-06    .76120E-04
  20  norm          18.777        4.3912       -.42691E-08   -.40249E-03
  21  Normalizat    1.0809        .24205        .58554E-06   -.37566E-03
  22  Prefactor     1.0042        .87366E-01   -.66410E-06   -.12084E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.9954
  norm       = 2.09304
  Prefactor  = 0.0001
  norm       = 11.5779
  norm       = 4.12185
  norm       = 2.98814
  Prefactor  = 0.0001
  Prefactor  = 3.07877
  Prefactor  = 2.50186
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 32.9068
  norm       = 9.16284
  Prefactor  = 4.63044
  Prefactor  = 39.0737
  norm       = 18.7774
  Normalizat = 1.08087
  Prefactor  = 1.00421
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.669     FROM HESSE     STATUS=OK           342 CALLS     2392 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4981        1.7073        .93385E-04   -1.5392    
   2  Prefactor     .10000E-03    35.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.7551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.995        33.447        .55616E-04   -1.4265    
   6  norm          2.0930        5.3687        .14264E-02   -1.5419    
   7  Prefactor     .10000E-03    18.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.578        10.955        .11773E-03   -1.5027    
   9  norm          4.1219        31.590        .19863E-03   -1.5302    
  10  norm          2.9881        1.4117        .67837E-04   -1.5362    
  11  Prefactor     .10000E-03    .76261        .76779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0788        21.623        .23209E-03   -1.5357    
  13  Prefactor     2.5019        157.62        .25835E-03   -1.5392    
  14  Prefactor     .10000E-03    4.6767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8682        .20455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.907        34.464        .69859E-04   -1.4560    
  17  norm          9.1628        3.4840        .97353E-04   -1.5102    
  18  Prefactor     4.6304        4.8846        .18705E-03   -1.5278    
  19  Prefactor     39.074        31.891        .64128E-04   -1.4457    
  20  norm          18.777        4.3936        .88454E-04   -1.4841    
  21  Normalizat    1.0809        .26808        .41991E-03   -.90369    
  22  Prefactor     1.0042        .97413E-01    .16736E-03   -.92589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47071e-09
Minuit parameter uncertainties:
  1  1.70734
  2  7.80896e-05
  3  1.15855e-05
  4  1.51372e-06
  5  33.459
  6  5.3699
  7  0.000172501
  8  10.9568
  9  22.8385
  10  1.41176
  11  3.78406e-06
  12  16.3266
  13  39.8249
  14  2.02945e-05
  15  0.000124414
  16  34.4851
  17  3.48403
  18  4.88501
  19  31.9051
  20  4.3937
  21  0.268418
  22  0.0974301
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.200e+01  3.346e+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.004e+00  9.743e-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:  1.081e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.72
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 5.05e-05 +/- 3.25e-05

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) = 8263.35853225
delta logL = 0.310581757311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8263.35673468
delta logL = 0.312379325296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.019       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2594       1.0000          .0000       10.000    
     3 'Normalizat'    1.0555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0071       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=   8263.357     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      253 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.985        351.65        .18282E-02    .11610E-03
   2  Index         2.2598        2.4499        .89885E-01    .22910E-03
   3  Normalizat    1.0555        .14462        .95717E-01    .25041E-04
   4  Prefactor     1.0072        .41465E-01    .43781E-01   -.72674E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9852
  Index      = 2.2598
  Normalizat = 1.05549
  Prefactor  = 1.00716
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.357     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.985        39.753        .36563E-03   -1.4612    
   2  Index         2.2598        .60347        .45084E-02   -.58002    
   3  Normalizat    1.0555        .24975        .42404E-03   -.91194    
   4  Prefactor     1.0072        .95646E-01    .16707E-03   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76601e-08
Minuit parameter uncertainties:
  1  39.7879
  2  0.605585
  3  0.250025
  4  0.0956626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346699': 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): 0
logL (Free Index) = 8263.35673413
delta logL = 0.312379880083

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.999e+01  3.979e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.260e+00  6.056e-01  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.007e+00  9.566e-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:  1.055e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.34
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.26 +/- 0.61
Photon Flux (Free Index): 8.49e-08 +/- 6.52e-08
Energy Flux (Free Index): 3.43e-05 +/- 2.61e-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/346699/cmap_HighResolution_360892801_361152001_4FGL_J0416.9+0105_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='3.43e-05', photon_flux_error='3.39e-08', dlogl='3.12e-01', energy_flux='5.05e-05', photon_flux2='8.49e-08', job_status='DONE', time_completed='2021-08-20 10:21:41.840528', photon_index_error2='0.61', photon_index2='2.26', ts='6.72', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='1.08', time_epoch_completed='1629480101.84', return_code='0', job_id='346699', GAL2='1.01', EG2='1.06', return_code2='0', energy_flux_error='3.25e-05', photon_flux_error2='6.52e-08', ts2='7.34', photon_index='1.88' WHERE bin_id='469' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:21:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 346699: <4FGL_J0416.9+0105_daily_bin469> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin469> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:05:32 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:05:33 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:05:33 2021
Terminated at Fri Aug 20 10:21:43 2021
Results reported at Fri Aug 20 10:21:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin469 64.2269 1.088 360892801 361152001 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 :                                   893.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

