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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin1225
RA = 64.1373, Dec = -18.8724
tmin = 556848001, tmax = 557107201
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='342387', job_status='RUN', time_executed='2021-08-20 09:51:05.869473', time_epoch_executed='1629478265.87' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342387/ft1_4FGL_J0416.5-1852_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342387/ft1_4FGL_J0416.5-1852_daily_bin1225.fits outfile=/scratch/kocevski/342387/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1225.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=556848001.0 tmax=557107201.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 4.16
user 3.34
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.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/342387/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.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 1.10
user 0.33
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/342387/ltcube_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.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/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits
.....................!
real 12.83
user 11.81
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/342387/ltcube_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.fits outfile=/scratch/kocevski/342387/expmap_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.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/342387/ltcube_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.fits
.....................!
real 191.73
user 185.35
sys 6.06

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/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.fits scfile=/scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits outfile=/scratch/kocevski/342387/cmap_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.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 1.09
user 0.38
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.fits scfile=/scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits outfile=/scratch/kocevski/342387/cmap_HighResolution_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.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 1.11
user 0.37
sys 0.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342387/Model_4FGL_J0416.5-1852_daily_bin1225.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/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.fits.....................!
real 201.36
user 198.98
sys 2.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.fits', '/scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits', expMap='/scratch/kocevski/342387/expmap_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.fits', expCube='/scratch/kocevski/342387/ltcube_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/342387/Model_4FGL_J0416.5-1852_daily_bin1225.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/342387/ft1_filtered_4FGL_J0416.5-1852_daily_bin1225.fits
Spacecraft file(s): /scratch/kocevski/342387/ft2_4FGL_J0416.5-1852_daily_bin1225.fits
Exposure map: /scratch/kocevski/342387/expmap_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.fits
Exposure cube: /scratch/kocevski/342387/ltcube_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/342387/Model_4FGL_J0416.5-1852_daily_bin1225.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) = 8998.99050787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2148       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7699       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8427       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.311       1.0000         .10000E-03   10000.    
     8 'norm      '    .80456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57880       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5936       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.273       1.0000         .10000E-03   10000.    
    17 'norm      '    28.657       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2194       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.344       1.0000         .10000E-03   10000.    
    20 'norm      '    .62493       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1653       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86423       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=   8998.988     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2371 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.751        .80120E-07** at limit **
   2  Prefactor     .10000E-03    8.9811        .90970E-08** at limit **
   3  Prefactor     1.2146        1.3366        .68123E-08   -.35724E-04
   4  Prefactor     4.6968        3.5878       -.27120E-06   -.13039E-03
   5  Prefactor     2.7700        2.6836        .18434E-06   -.10416E-02
   6  norm          3.8427        1.0619        .16036E-07   -.10053E-04
   7  Prefactor     30.310        18.955       -.53174E-06   -.21884E-04
   8  norm          .80364        1.0395       -.12443E-09   -.11319E-03
   9  Prefactor     .10000E-03    5.6609       -.18395E-06** at limit **
  10  Prefactor     .57419        1.7364       -.31413E-07   -.24252E-03
  11  norm          .10000E-03    5.5637        .20276E-06** at limit **
  12  Prefactor     .10000E-03    4.8091        .11354E-07** at limit **
  13  Prefactor     5.5932        5.6652        .32341E-06   -.16461E-02
  14  Prefactor     .10000E-03    1.6956       -.17580E-07** at limit **
  15  Prefactor     2.0650        7.7219        .21966E-05   -.10175E-02
  16  Prefactor     17.274        16.594        .26573E-06    .67867E-05
  17  norm          28.635        69.254       -.29078E-04   -.99007E-04
  18  Prefactor     1.2196        2.8368       -.63951E-08   -.24136E-03
  19  Prefactor     25.344        27.502        .50131E-06    .11821E-04
  20  norm          .62493        .16478       -.39338E-08   -.66459E-04
  21  Normalizat    1.1653        .15558       -.27040E-06    .16563E-04
  22  Prefactor     .86422        .11682        .80249E-07   -.52564E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21461
  Prefactor  = 4.69683
  Prefactor  = 2.77004
  norm       = 3.84273
  Prefactor  = 30.3101
  norm       = 0.803643
  Prefactor  = 0.0001
  Prefactor  = 0.574194
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.59318
  Prefactor  = 0.0001
  Prefactor  = 2.06504
  Prefactor  = 17.2735
  norm       = 28.6348
  Prefactor  = 1.21957
  Prefactor  = 25.3444
  norm       = 0.624929
  Normalizat = 1.16534
  Prefactor  = 0.864217
 **********
 **   18 **HESSE 
 **********

 FCN=   8998.988     FROM HESSE     STATUS=OK           354 CALLS     2725 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2146        1.3157        .10989E-03   -1.5488    
   4  Prefactor     4.6968        3.5793        .14343E-03   -1.5274    
   5  Prefactor     2.7700        2.6998        .71405E-03   -1.5375    
   6  norm          3.8427        1.0629        .48973E-04   -1.5316    
   7  Prefactor     30.310        18.965        .72774E-04   -1.4606    
   8  norm          .80364        .88112        .98998E-03   -1.5529    
   9  Prefactor     .10000E-03    5.6685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .57419        2.1536        .19571E-02   -1.5556    
  11  norm          .10000E-03    5.6471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5932        6.2725        .84931E-03   -1.5235    
  14  Prefactor     .10000E-03    1.7517        .24102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0650        18.071        .14376E-02   -1.5421    
  16  Prefactor     17.274        16.616        .96369E-04   -1.4876    
  17  norm          28.635        69.751        .74841E-04   -1.4637    
  18  Prefactor     1.2196        2.7865        .23579E-03   -1.5487    
  19  Prefactor     25.344        27.551        .79572E-04   -1.4701    
  20  norm          .62493        .16484        .18855E-04   -1.5550    
  21  Normalizat    1.1653        .18426        .25460E-03   -.87681    
  22  Prefactor     .86422        .13581        .22816E-03   -.97403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56279e-08
Minuit parameter uncertainties:
  1  2.9414e-06
  2  9.84673e-07
  3  1.31577
  4  3.57943
  5  2.69988
  6  1.06294
  7  18.9688
  8  0.881139
  9  4.85015e-07
  10  2.15391
  11  1.88496e-06
  12  3.66824e-07
  13  6.27319
  14  2.60233e-07
  15  12.2224
  16  16.6208
  17  69.9511
  18  2.78681
  19  27.5646
  20  0.164843
  21  0.184363
  22  0.135866
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.602e-07  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:  8.642e-01  1.359e-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.165e+00  1.844e-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: 4.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342387/likelihoodResults_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.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) = 8998.99090825
delta logL = -0.00272235844204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8998.98818643
delta logL = -5.45147486264e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3894       1.0000          .0000       10.000    
     3 'Normalizat'    1.1653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86431       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.

 FCN=   8998.988     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    156.16        .24134E-03** at limit **
   2  Index         2.3707        6.0081        .50000        .18684E-04
   3  Normalizat    1.1653        .41569E-01    .25460E-03    .47779E-04
   4  Prefactor     .86422        .32766E-01    .22816E-03    .64776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100108
  Index      = 2.37072
  Normalizat = 1.16534
  Prefactor  = 0.864217
 **********
 **   18 **HESSE 
 **********

 FCN=   8998.988     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    411.24        .48267E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3707        7.4327        .50000       -.55372    
   3  Normalizat    1.1653        .13046        .10184E-04   -.87681    
   4  Prefactor     .86422        .10252        .91263E-05   -.97403    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.51597e-08
Minuit parameter uncertainties:
  1  0.0134181
  2  868.068
  3  0.130492
  4  0.102543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342387': 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) = 8998.9881858
delta logL = 9.10640665097e-08

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.001e-04  1.342e-02  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.371e+00  8.681e+02  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:  8.642e-01  1.025e-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.165e+00  1.305e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/342387/cmap_HighResolution_556848001_557107201_4FGL_J0416.5-1852_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-08-20 10:05:05.897843', job_id='342387', GAL2='0.86', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1629479105.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1225' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:05:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 342387: <4FGL_J0416.5-1852_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1225 64.1373 -18.8724 556848001 557107201 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 :                                   847.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             405.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

