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


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1086
RA = 64.0722, Dec = -43.8879
tmin = 520819201, tmax = 521078401
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='330669', job_status='RUN', time_executed='2021-08-20 09:11:55.127704', time_epoch_executed='1629475915.13' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330669/ft1_4FGL_J0416.2-4353_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330669/ft1_4FGL_J0416.2-4353_daily_bin1086.fits outfile=/scratch/kocevski/330669/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1086.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=520819201.0 tmax=521078401.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 2.67
user 2.45
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.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/330669/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1086.fits evtable="EVENTS" outfile="/scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.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.41
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/330669/ltcube_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.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/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits
.....................!
real 9.18
user 8.87
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/330669/ltcube_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.fits outfile=/scratch/kocevski/330669/expmap_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.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/330669/ltcube_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.fits
.....................!
real 145.82
user 141.70
sys 3.87

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 194 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0416.2-4353 @ 64.0722 -43.8879

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.fits scfile=/scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits outfile=/scratch/kocevski/330669/cmap_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.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.0722 yref=-43.8879 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.48
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.fits scfile=/scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits outfile=/scratch/kocevski/330669/cmap_HighResolution_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.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.0722 yref=-43.8879 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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330669/Model_4FGL_J0416.2-4353_daily_bin1086.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.fits.....................!
real 95.96
user 94.76
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.fits', '/scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits', expMap='/scratch/kocevski/330669/expmap_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.fits', expCube='/scratch/kocevski/330669/ltcube_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/330669/Model_4FGL_J0416.2-4353_daily_bin1086.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.2-4353'

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  4.485e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/330669/ft1_filtered_4FGL_J0416.2-4353_daily_bin1086.fits
Spacecraft file(s): /scratch/kocevski/330669/ft2_4FGL_J0416.2-4353_daily_bin1086.fits
Exposure map: /scratch/kocevski/330669/expmap_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.fits
Exposure cube: /scratch/kocevski/330669/ltcube_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/330669/Model_4FGL_J0416.2-4353_daily_bin1086.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) = 5875.31873563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .63098E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .19005       1.0000         .10000E-03   10000.    
     8 'norm      '    .32528       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.705       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92814       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.687       1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.964       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10873E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2258       1.0000         .10000E-03   10000.    
    17 'norm      '    20.056       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2606       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3823       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3558       1.0000         .10000E-03   10000.    
    22 'Prefactor '    132.17       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+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=   5875.312     FROM MIGRAD    STATUS=CONVERGED   1158 CALLS     3827 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.603        21.346        .98378E-04   -.91918E-04
   2  Prefactor     .10000E-03    7.6264        .18142E-02** at limit **
   3  norm          .10023E-03    35.725        .19039E-02** at limit **
   4  norm          .10000E-03    .32339        .76693E-03** at limit **
   5  Prefactor     .10000E-03    12.259        .18142E-02** at limit **
   6  Prefactor     .10000E-03    22.963        .18142E-02** at limit **
   7  norm          .19010        .35393        .54767E-04    .15166E-02
   8  norm          .32083        42.633        .37641E-02    .34303E-03
   9  Prefactor     27.692        16.613        .76112E-04   -.30023E-04
  10  Prefactor     .86666        276.57        .64906E-02   -.77465E-04
  11  Prefactor     30.679        19.377        .72329E-04    .40867E-05
  12  norm          .10000E-03    1.7263        .97617E-03** at limit **
  13  Prefactor     14.967        15.312        .10354E-03   -.63355E-04
  14  norm          3.1680        1.0509        .36784E-04   -.20429E-03
  15  Prefactor     .10000E-03    27.462        .18142E-02** at limit **
  16  Prefactor     2.2269        3.5844        .16128E-03   -.26653E-03
  17  norm          20.059        12.507        .89435E-04   -.12280E-03
  18  norm          1.2598        1.5109        .94291E-04   -.24608E-03
  19  Prefactor     7.3810        4.4578        .95191E-04   -.43353E-03
  20  Prefactor     .10000E-03    15.929        .18142E-02** at limit **
  21  norm          2.3575        5.3615        .23810E-03   -.19424E-03
  22  Prefactor     132.20        73.061        .17513E-03   -.53492E-04
  23  Prefactor     .10000E-03    10.445        .18142E-02** at limit **
  24  Prefactor     .10000E-03    12.352        .18142E-02** at limit **
  25  Prefactor     .10000E-03    1.0893        .77261E-03** at limit **
  26  Normalizat    1.0621        .22938        .24015E-03   -.34882E-03
  27  Prefactor     .88153        .24244        .29237E-03   -.22634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.603
  Prefactor  = 0.0001
  norm       = 0.000100234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.190095
  norm       = 0.32083
  Prefactor  = 27.6921
  Prefactor  = 0.86666
  Prefactor  = 30.6788
  norm       = 0.0001
  Prefactor  = 14.9671
  norm       = 3.16803
  Prefactor  = 0.0001
  Prefactor  = 2.22691
  norm       = 20.0594
  norm       = 1.25978
  Prefactor  = 7.38096
  Prefactor  = 0.0001
  norm       = 2.35752
  Prefactor  = 132.204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06207
  Prefactor  = 0.881525
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.312     FROM HESSE     STATUS=OK           464 CALLS     4291 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.603        21.340        .19676E-04   -1.4893    
   2  Prefactor     .10000E-03    7.6280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10023E-03    37.175        .76156E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .32353        .15339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .19010        .34969        .21907E-05   -1.5621    
   8  norm          .32083        41.741        .15056E-03   -1.5595    
   9  Prefactor     27.692        16.609        .30445E-05   -1.4655    
  10  Prefactor     .86666        277.73        .25962E-03   -1.5522    
  11  Prefactor     30.679        19.345        .28932E-05   -1.4600    
  12  norm          .10000E-03    1.7265        .19523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.967        15.300        .41416E-05   -1.4934    
  14  norm          3.1680        1.0506        .14714E-05   -1.5352    
  15  Prefactor     .10000E-03    27.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2269        3.5796        .64510E-05   -1.5410    
  17  norm          20.059        12.504        .35774E-05   -1.4812    
  18  norm          1.2598        1.5109        .37716E-05   -1.5483    
  19  Prefactor     7.3810        4.4557        .38077E-05   -1.5165    
  20  Prefactor     .10000E-03    15.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3575        5.3580        .95240E-05   -1.5401    
  22  Prefactor     132.20        73.044        .70050E-05   -1.3403    
  23  Prefactor     .10000E-03    10.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.0894        .15452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0621        .22926        .48031E-04   -.90979    
  27  Prefactor     .88153        .24265        .11695E-04   -.96790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64072e-09
Minuit parameter uncertainties:
  1  21.3499
  2  1.65946e-05
  3  0.00590108
  4  7.70379e-08
  5  1.85201e-05
  6  0.000100892
  7  0.349696
  8  7.32306
  9  16.6117
  10  31.1739
  11  19.3488
  12  2.10996e-06
  13  15.3043
  14  1.05065
  15  4.69823e-05
  16  3.57992
  17  12.5056
  18  1.51094
  19  4.4559
  20  4.74135e-05
  21  5.35906
  22  73.0943
  23  5.61878e-06
  24  3.80984e-06
  25  3.36676e-06
  26  0.229471
  27  0.242944
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  8.667e-01  3.117e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  8.815e-01  2.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.062e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 64.072 -43.888
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330669/likelihoodResults_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.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) = 5875.31241366
delta logL = 2.26845104407e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5875.31128822
delta logL = 0.00114811600906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8204       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2381       1.0000          .0000       10.000    
     3 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88071       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5875.311     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      305 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7852        6536.8        .77373E-02    .69717E-04
   2  Index         2.2357        6.3041        .50000       -.12048E-04
   3  Normalizat    1.0623        .22859E-01    .39793E-01    .56314E-04
   4  Prefactor     .88083        .25703E-01    .66121E-01    .35474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78525
  Index      = 2.23566
  Normalizat = 1.06234
  Prefactor  = 0.880827
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.311     FROM HESSE     STATUS=OK            33 CALLS      338 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7852        158.90        .30949E-03   -1.5441    
   2  Index         2.2357        6.0292        .37444E-01   -.58580    
   3  Normalizat    1.0623        .21062        .24012E-03   -.90970    
   4  Prefactor     .88083        .23703        .14624E-02   -.96814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60113e-10
Minuit parameter uncertainties:
  1  33.7777
  2  5.21683
  3  0.210788
  4  0.237308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330669': 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) = 5875.31128743
delta logL = 0.00114891521753

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.785e+00  3.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.236e+00  5.217e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  8.808e-01  2.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.062e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 64.072 -43.888

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/330669/cmap_HighResolution_520819201_521078401_4FGL_J0416.2-4353_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-08-20 09:23:19.453862', job_id='330669', GAL2='0.88', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629476599.45', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.15e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1086' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:23:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 330669: <4FGL_J0416.2-4353_daily_bin1086> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1086> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 09:10:35 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:10:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 09:10:36 2021
Terminated at Fri Aug 20 09:23:19 2021
Results reported at Fri Aug 20 09:23:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1086 64.0722 -43.8879 520819201 521078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.2-4353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.45 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

