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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin598
RA = 64.2269, Dec = 1.088
tmin = 394329601, tmax = 394588801
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='346886', job_status='RUN', time_executed='2021-08-20 10:07:28.851306', time_epoch_executed='1629479248.85' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346886

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346886/ft1_4FGL_J0416.9+0105_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346886/ft2_4FGL_J0416.9+0105_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346886/ft1_4FGL_J0416.9+0105_daily_bin598.fits outfile=/scratch/kocevski/346886/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin598.fits ra=64.2269 dec=1.088 rad=12.0 tmin=394329601.0 tmax=394588801.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 8.76
user 7.17
sys 1.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346886/ft2_4FGL_J0416.9+0105_daily_bin598.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/346886/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/346886/ft1_filtered_4FGL_J0416.9+0105_daily_bin598.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.82
user 0.33
sys 1.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346886/ft1_filtered_4FGL_J0416.9+0105_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/346886/ft2_4FGL_J0416.9+0105_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/346886/ltcube_394329601_394588801_4FGL_J0416.9+0105_daily_bin598.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/346886/ft2_4FGL_J0416.9+0105_daily_bin598.fits
.....................!
real 12.73
user 10.94
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346886/ft1_filtered_4FGL_J0416.9+0105_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/346886/ft2_4FGL_J0416.9+0105_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/346886/ltcube_394329601_394588801_4FGL_J0416.9+0105_daily_bin598.fits outfile=/scratch/kocevski/346886/expmap_394329601_394588801_4FGL_J0416.9+0105_daily_bin598.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/346886/ltcube_394329601_394588801_4FGL_J0416.9+0105_daily_bin598.fits
.....................!
real 194.90
user 187.33
sys 7.17

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/346886/ft1_filtered_4FGL_J0416.9+0105_daily_bin598.fits scfile=/scratch/kocevski/346886/ft2_4FGL_J0416.9+0105_daily_bin598.fits outfile=/scratch/kocevski/346886/cmap_394329601_394588801_4FGL_J0416.9+0105_daily_bin598.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 1.77
user 0.37
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346886/ft1_filtered_4FGL_J0416.9+0105_daily_bin598.fits scfile=/scratch/kocevski/346886/ft2_4FGL_J0416.9+0105_daily_bin598.fits outfile=/scratch/kocevski/346886/cmap_HighResolution_394329601_394588801_4FGL_J0416.9+0105_daily_bin598.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 1.77
user 0.36
sys 1.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0332       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    26.034       1.0000         .10000E-03   10000.    
     9 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.553       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.682       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2459       1.0000         .10000E-03   10000.    
    16 'Prefactor '    95.985       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2205       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.3651       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0775       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89094       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=   7527.494     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2355 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47367        1.2299       -.78480E-06   -.20871E-02
   2  Prefactor     .10000E-03    71.989        .47712E-04** at limit **
   3  Prefactor     .10000E-03    4.7685       -.39121E-07** at limit **
   4  norm          .10000E-03    7.0742        .92270E-07** at limit **
   5  Prefactor     .10000E-03    33.512        .11676E-04** at limit **
   6  norm          4.0334        3.1367       -.72627E-06    .13987E-03
   7  Prefactor     .10001E-03    86.341       -.53131E-04** at limit **
   8  norm          26.036        11.895       -.17573E-07    .10583E-04
   9  norm          .10000E-03    13.912        .10850E-05** at limit **
  10  norm          2.5535        1.3439       -.54048E-07   -.26411E-03
  11  Prefactor     .10000E-03    .78267       -.17793E-07** at limit **
  12  Prefactor     33.542        28.942       -.46257E-05    .20107E-03
  13  Prefactor     39.685        37.415        .24135E-05    .64330E-05
  14  Prefactor     .10000E-03    9.8136       -.62292E-06** at limit **
  15  norm          3.2467        3.4687        .47884E-06   -.16784E-03
  16  Prefactor     95.976        51.341       -.66849E-05    .64678E-04
  17  norm          9.2208        3.2643       -.34593E-06   -.22358E-02
  18  Prefactor     .10000E-03    4.2567        .11017E-06** at limit **
  19  Prefactor     .10000E-03    31.612       -.14274E-04** at limit **
  20  norm          9.3655        3.4466        .76203E-07   -.69870E-05
  21  Normalizat    1.0774        .23511        .13888E-05    .12936E-03
  22  Prefactor     .89097        .85722E-01    .58494E-06    .32722E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.473671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.03336
  Prefactor  = 0.000100013
  norm       = 26.0359
  norm       = 0.0001
  norm       = 2.55352
  Prefactor  = 0.0001
  Prefactor  = 33.5424
  Prefactor  = 39.6846
  Prefactor  = 0.0001
  norm       = 3.24673
  Prefactor  = 95.9756
  norm       = 9.22084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.36548
  Normalizat = 1.0774
  Prefactor  = 0.890969
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.494     FROM HESSE     STATUS=OK           338 CALLS     2693 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47367        1.2058        .14897E-03   -1.5570    
   2  Prefactor     .10000E-03    71.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.0820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0334        3.1371        .13144E-03   -1.5306    
   7  Prefactor     .10001E-03    86.578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.036        11.917        .78511E-04   -1.4687    
   9  norm          .10000E-03    13.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5535        1.3395        .68406E-04   -1.5388    
  11  Prefactor     .10000E-03    .79574        .74755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.542        28.611        .69179E-04   -1.4549    
  13  Prefactor     39.685        37.413        .63630E-04   -1.4447    
  14  Prefactor     .10000E-03    10.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2467        3.4268        .14174E-03   -1.5348    
  16  Prefactor     95.976        51.358        .20513E-03   -1.3745    
  17  norm          9.2208        3.2817        .44081E-03   -1.5101    
  18  Prefactor     .10000E-03    4.2885        .17474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.3655        3.4500        .93754E-04   -1.5096    
  21  Normalizat    1.0774        .26145        .39531E-03   -.90481    
  22  Prefactor     .89097        .96127E-01    .16517E-03   -.96457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42962e-09
Minuit parameter uncertainties:
  1  1.20583
  2  0.000260197
  3  4.63299e-07
  4  6.87674e-07
  5  5.98584e-05
  6  3.13724
  7  0.00212276
  8  11.918
  9  2.12979e-05
  10  1.33948
  11  1.18571e-06
  12  28.6226
  13  37.4351
  14  1.05327e-05
  15  3.42702
  16  51.382
  17  3.28175
  18  1.68787e-05
  19  2.41944e-05
  20  3.45012
  21  0.26176
  22  0.0961457
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.986e-05  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:  8.910e-01  9.615e-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.077e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 7.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346886/likelihoodResults_394329601_394588801_4FGL_J0416.9+0105_daily_bin598.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) = 7527.49423196
delta logL = -0.000141391024954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7527.49409064
delta logL = -7.42074917071e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11405E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0698       1.0000          .0000       10.000    
     3 'Normalizat'    1.0774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89097       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=   7527.494     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      245 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.0452        .90712E-02** at limit **
   2  Index         2.0735        6.0367        .50000       -.69317E-06
   3  Normalizat    1.0774        .15320E-02    .89259E-01   -.18211E-03
   4  Prefactor     .89097        .59092E-03    .44890E-01   -.16629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.07353
  Normalizat = 1.0774
  Prefactor  = 0.89097
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.494     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      276 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    77.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0735        5.4207        .50000       -.62524    
   3  Normalizat    1.0774        .93561E-02    .39531E-03   -.90481    
   4  Prefactor     .89097        .36167E-02    .16517E-03   -.96457    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11816e-10
Minuit parameter uncertainties:
  1  0.00147698
  2  179.234
  3  0.00935613
  4  0.00361673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346886': 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) = 7527.49409045
delta logL = 1.18062416732e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.477e-03  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.074e+00  1.792e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  8.910e-01  3.617e-03  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.077e+00  9.356e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.227 1.088

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/346886/cmap_HighResolution_394329601_394588801_4FGL_J0416.9+0105_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='7.13e-08', time_completed='2021-08-20 10:19:06.457300', job_id='346886', GAL2='0.89', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629479946.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='598' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 346886: <4FGL_J0416.9+0105_daily_bin598> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin598 64.2269 1.088 394329601 394588801 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 :                                   715.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

