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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin1180
RA = 64.1373, Dec = -18.8724
tmin = 545184001, tmax = 545443201
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='342322', job_status='RUN', time_executed='2021-08-20 09:53:04.148647', time_epoch_executed='1629478384.15' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342322/ft1_4FGL_J0416.5-1852_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342322/ft1_4FGL_J0416.5-1852_daily_bin1180.fits outfile=/scratch/kocevski/342322/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1180.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=545184001.0 tmax=545443201.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 7.75
user 3.78
sys 3.58

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.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/342322/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1180.fits evtable="EVENTS" outfile="/scratch/kocevski/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.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 4.29
user 0.34
sys 3.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/342322/ltcube_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.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/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits
.....................!
real 16.71
user 12.63
sys 4.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/342322/ltcube_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.fits outfile=/scratch/kocevski/342322/expmap_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.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/342322/ltcube_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.fits
.....................!
real 196.68
user 186.53
sys 9.71

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 149 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.5-1852 @ 64.1373 -18.8724

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.fits scfile=/scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits outfile=/scratch/kocevski/342322/cmap_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.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.1373 yref=-18.8724 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 3.74
user 0.39
sys 3.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.fits scfile=/scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits outfile=/scratch/kocevski/342322/cmap_HighResolution_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.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.1373 yref=-18.8724 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 3.84
user 0.41
sys 3.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342322/Model_4FGL_J0416.5-1852_daily_bin1180.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/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.fits.....................!
real 110.00
user 104.24
sys 5.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.fits', '/scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits', expMap='/scratch/kocevski/342322/expmap_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.fits', expCube='/scratch/kocevski/342322/ltcube_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/342322/Model_4FGL_J0416.5-1852_daily_bin1180.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.5-1852'

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.793e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/342322/ft1_filtered_4FGL_J0416.5-1852_daily_bin1180.fits
Spacecraft file(s): /scratch/kocevski/342322/ft2_4FGL_J0416.5-1852_daily_bin1180.fits
Exposure map: /scratch/kocevski/342322/expmap_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.fits
Exposure cube: /scratch/kocevski/342322/ltcube_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/342322/Model_4FGL_J0416.5-1852_daily_bin1180.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) = 4415.9918248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.204       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5920       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26753       1.0000         .10000E-03   10000.    
     6 'norm      '    6.7381       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .59975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0153       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5018       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .37922       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5311       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4415.702     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2446 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.456        41.646       -.23074E-06    .52492E-05
   2  Prefactor     38.302        64.038        .85388E-06    .62439E-04
   3  Prefactor     2.5946        3.3701       -.31635E-06    .38518E-04
   4  Prefactor     11.017        9.2229       -.21140E-05    .13947E-03
   5  Prefactor     .22434        5.3923        .35997E-06    .10792E-02
   6  norm          6.7371        1.9561       -.79077E-08    .17117E-03
   7  Prefactor     .10000E-03    14.928        .17044E-06** at limit **
   8  norm          .60039        1.6890        .12740E-06    .12040E-03
   9  Prefactor     .10000E-03    18.029        .71167E-07** at limit **
  10  Prefactor     3.0159        5.1972        .10429E-06   -.17704E-04
  11  norm          .10000E-03    30.969       -.18204E-06** at limit **
  12  Prefactor     26.506        33.072       -.10296E-05    .28696E-04
  13  Prefactor     .10000E-03    14.591        .28245E-09** at limit **
  14  Prefactor     .10000E-03    3.5163       -.10757E-06** at limit **
  15  Prefactor     7.5050        19.447        .25217E-06   -.53805E-06
  16  Prefactor     .10000E-03    20.887       -.36624E-07** at limit **
  17  norm          .10000E-03    60.857        .17717E-06** at limit **
  18  Prefactor     .10000E-03    6.9491       -.16787E-06** at limit **
  19  Prefactor     .10000E-03    22.585        .30747E-07** at limit **
  20  norm          .37920        .17624        .64280E-08   -.42204E-04
  21  Normalizat    1.5314        .26343        .70486E-06   -.42250E-04
  22  Prefactor     .76903        .18892       -.12719E-05    .61939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.4563
  Prefactor  = 38.3021
  Prefactor  = 2.59456
  Prefactor  = 11.0168
  Prefactor  = 0.224343
  norm       = 6.73707
  Prefactor  = 0.0001
  norm       = 0.600387
  Prefactor  = 0.0001
  Prefactor  = 3.01593
  norm       = 0.0001
  Prefactor  = 26.5063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.50498
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.379203
  Normalizat = 1.53143
  Prefactor  = 0.769035
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.702     FROM HESSE     STATUS=OK           344 CALLS     2790 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.456        41.653        .52922E-04   -1.4191    
   2  Prefactor     38.302        63.942        .32422E-03   -1.4469    
   3  Prefactor     2.5946        3.4349        .12934E-03   -1.5386    
   4  Prefactor     11.017        15.378        .12091E-03   -1.5044    
   5  Prefactor     .22434        181.11        .25165E-02   -1.5613    
   6  norm          6.7371        1.9765        .46114E-04   -1.5189    
   7  Prefactor     .10000E-03    14.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .60039        1.6179        .13055E-03   -1.5553    
   9  Prefactor     .10000E-03    18.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0159        5.1362        .18117E-03   -1.5361    
  11  norm          .10000E-03    31.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.506        33.044        .77812E-04   -1.4678    
  13  Prefactor     .10000E-03    14.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5342        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5050        19.461        .14642E-03   -1.5160    
  16  Prefactor     .10000E-03    20.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    60.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0352        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .37920        .17633        .18361E-04   -1.5585    
  21  Normalizat    1.5314        .30828        .27347E-03   -.76899    
  22  Prefactor     .76903        .21708        .27669E-03   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61493e-08
Minuit parameter uncertainties:
  1  41.6737
  2  64.0569
  3  3.43517
  4  15.3833
  5  12.7846
  6  1.97657
  7  1.4022e-05
  8  1.61805
  9  2.56663e-05
  10  5.13699
  11  5.91424e-05
  12  33.0667
  13  2.28726e-05
  14  4.48047e-06
  15  19.4776
  16  4.17192e-05
  17  0.000147527
  18  1.30241e-05
  19  3.3808e-05
  20  0.176328
  21  0.308664
  22  0.217324
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  4.480e-06  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  7.690e-01  2.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
478   Normalization:  1.531e+00  3.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.137 -18.872
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342322/likelihoodResults_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.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) = 4415.70356819
delta logL = -0.00134223358782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4415.70222597
delta logL = -1.63208824233e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4009       1.0000          .0000       10.000    
     3 'Normalizat'    1.5314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76906       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4415.688     FROM MIGRAD    STATUS=FAILED       161 CALLS      317 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93393E-02    2.7410        .45793E-02   -.51080E-02
   2  Index         5.6436        3.5525        .50000        .52154E-06
   3  Normalizat    1.5116        .75136E-01    .27347E-03   -.24153E-04
   4  Prefactor     .77817        .47497E-01    .27669E-03   -.11258E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4415.688     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      394 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93393E-02    2.7410        .73037E-04   -.51080E-02
   2  Index         5.6436        3.5525        .58153E-02    .52154E-06
   3  Normalizat    1.5116        .75136E-01    .95442E-04   -.24153E-04
   4  Prefactor     .77817        .47497E-01    .50593E-04   -.11258E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4415.688     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      441 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93394E-02    .15876         .0000       -.22670E-01
   2  Index         5.6436        3.7491         .0000        .11683E-05
   3  Normalizat    1.5116        .30660         .0000       -.47808E-05
   4  Prefactor     .77817        .21981         .0000       -.34925E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00933941
  Index      = 5.64362
  Normalizat = 1.51164
  Prefactor  = 0.778168
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.688     FROM HESSE     STATUS=OK            27 CALLS      468 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93394E-02    .34982        .51530E-04   -1.5727    
   2  Index         5.6436        7.5796        .24833E-03    .12908    
   3  Normalizat    1.5116        .30707        .21877E-05   -.77452    
   4  Prefactor     .77817        .22045        .22135E-05   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03339e-10
Minuit parameter uncertainties:
  1  0.113705
  2  6.22823
  3  0.307453
  4  0.220702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342322': 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) = 4415.68768532
delta logL = 0.0145406393876

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  9.339e-03  1.137e-01  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  5.644e+00  6.228e+00  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  7.782e-01  2.207e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
478   Normalization:  1.512e+00  3.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.137 -18.872

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/342322/cmap_HighResolution_545184001_545443201_4FGL_J0416.5-1852_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-08-20 10:03:38.843252', job_id='342322', GAL2='0.78', fit_tolerance='1e-08', EG2='1.51', EG='1.53', time_epoch_completed='1629479018.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.45e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1180' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:03:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 342322: <4FGL_J0416.5-1852_daily_bin1180> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin1180> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 09:50:33 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:50:34 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:50:34 2021
Terminated at Fri Aug 20 10:03:40 2021
Results reported at Fri Aug 20 10:03:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1180 64.1373 -18.8724 545184001 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.5-1852 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

