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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1004
RA = 64.2269, Dec = 1.088
tmin = 499564801, tmax = 499824001
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='349539', job_status='RUN', time_executed='2021-08-20 10:18:12.328507', time_epoch_executed='1629479892.33' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349539/ft1_4FGL_J0416.9+0105_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349539/ft2_4FGL_J0416.9+0105_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349539/ft1_4FGL_J0416.9+0105_daily_bin1004.fits outfile=/scratch/kocevski/349539/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1004.fits ra=64.2269 dec=1.088 rad=12.0 tmin=499564801.0 tmax=499824001.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 5.01
user 4.77
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349539/ft1_filtered_4FGL_J0416.9+0105_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/349539/ft2_4FGL_J0416.9+0105_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/349539/ltcube_499564801_499824001_4FGL_J0416.9+0105_daily_bin1004.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/349539/ft2_4FGL_J0416.9+0105_daily_bin1004.fits
.....................!
real 11.96
user 11.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349539/ft1_filtered_4FGL_J0416.9+0105_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/349539/ft2_4FGL_J0416.9+0105_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/349539/ltcube_499564801_499824001_4FGL_J0416.9+0105_daily_bin1004.fits outfile=/scratch/kocevski/349539/expmap_499564801_499824001_4FGL_J0416.9+0105_daily_bin1004.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/349539/ltcube_499564801_499824001_4FGL_J0416.9+0105_daily_bin1004.fits
.....................!
real 189.61
user 184.92
sys 4.39

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/349539/ft1_filtered_4FGL_J0416.9+0105_daily_bin1004.fits scfile=/scratch/kocevski/349539/ft2_4FGL_J0416.9+0105_daily_bin1004.fits outfile=/scratch/kocevski/349539/cmap_499564801_499824001_4FGL_J0416.9+0105_daily_bin1004.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 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349539/ft1_filtered_4FGL_J0416.9+0105_daily_bin1004.fits scfile=/scratch/kocevski/349539/ft2_4FGL_J0416.9+0105_daily_bin1004.fits outfile=/scratch/kocevski/349539/cmap_HighResolution_499564801_499824001_4FGL_J0416.9+0105_daily_bin1004.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 0.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7021       1.0000         .10000E-03   10000.    
     6 'norm      '    3.4616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    29.147       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3292       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9383       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5611       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.903       1.0000         .10000E-03   10000.    
    20 'norm      '    .91661       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82577       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0796       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=   6944.130     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2372 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2643        1.6078       -.35291E-06   -.99494E-03
   2  Prefactor     13.575        27.000       -.17958E-05    .31029E-05
   3  Prefactor     .10000E-03    8.0326        .50981E-08** at limit **
   4  norm          .10000E-03    10.477       -.34998E-05** at limit **
   5  Prefactor     3.6969        36.600       -.42170E-05   -.62878E-04
   6  norm          3.4624        5.5765       -.50506E-05   -.45716E-03
   7  Prefactor     .10000E-03    20.122       -.27073E-04** at limit **
   8  norm          29.152        15.424       -.14914E-05    .40070E-04
   9  norm          .10000E-03    23.540        .27464E-04** at limit **
  10  norm          .10000E-03    .52837        .14799E-06** at limit **
  11  Prefactor     .10000E-03    .88496        .14144E-06** at limit **
  12  Prefactor     11.822        25.018       -.47755E-05   -.58027E-04
  13  Prefactor     .10000E-03    75.189       -.10908E-04** at limit **
  14  Prefactor     .10000E-03    4.9641        .46509E-07** at limit **
  15  norm          1.3295        2.9098        .18733E-06   -.79291E-03
  16  Prefactor     .10000E-03    12.437        .74792E-05** at limit **
  17  norm          1.9382        2.0240       -.21038E-06   -.46993E-03
  18  Prefactor     7.5618        7.7108        .52993E-07   -.13977E-03
  19  Prefactor     46.902        39.727       -.99008E-06   -.72967E-06
  20  norm          .91667        1.8541       -.61176E-06   -.13007E-02
  21  Normalizat    .82559        .25471        .42997E-05   -.99621E-05
  22  Prefactor     1.0797        .93635E-01   -.70215E-07    .14687E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26428
  Prefactor  = 13.5748
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.69695
  norm       = 3.46236
  Prefactor  = 0.0001
  norm       = 29.1517
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32945
  Prefactor  = 0.0001
  norm       = 1.93821
  Prefactor  = 7.56178
  Prefactor  = 46.902
  norm       = 0.916673
  Normalizat = 0.825592
  Prefactor  = 1.07969
 **********
 **   18 **HESSE 
 **********

 FCN=   6944.130     FROM HESSE     STATUS=OK           346 CALLS     2718 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2643        1.5871        .11417E-03   -1.5483    
   2  Prefactor     13.575        26.997        .10871E-03   -1.4971    
   3  Prefactor     .10000E-03    8.0616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6969        36.442        .20989E-03   -1.5323    
   6  norm          3.4624        5.6092        .21736E-03   -1.5336    
   7  Prefactor     .10000E-03    19.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          29.152        15.485        .74210E-04   -1.4628    
   9  norm          .10000E-03    23.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .54369        .11792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3122        .15029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.822        24.026        .11646E-03   -1.5020    
  13  Prefactor     .10000E-03    75.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9821        .18124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3295        2.7521        .16962E-03   -1.5477    
  16  Prefactor     .10000E-03    12.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9382        2.0097        .11581E-03   -1.5430    
  18  Prefactor     7.5618        7.6725        .14584E-03   -1.5158    
  19  Prefactor     46.902        39.698        .58547E-04   -1.4337    
  20  norm          .91667        1.8165        .15639E-03   -1.5516    
  21  Normalizat    .82559        .27349        .43799E-03   -.99126    
  22  Prefactor     1.0797        .10220        .15548E-03   -.90118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62966e-09
Minuit parameter uncertainties:
  1  1.58712
  2  27.0214
  3  1.15192e-06
  4  1.38654e-05
  5  23.2324
  6  5.61001
  7  6.90697e-05
  8  15.4871
  9  7.89611e-06
  10  9.60039e-06
  11  1.43478e-05
  12  24.0453
  13  0.000159636
  14  2.05262e-05
  15  2.75237
  16  1.385e-06
  17  2.00982
  18  7.67352
  19  39.7206
  20  1.81661
  21  0.273952
  22  0.102218
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  1.080e+00  1.022e-01  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:  8.256e-01  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/349539/likelihoodResults_499564801_499824001_4FGL_J0416.9+0105_daily_bin1004.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): 0
logL (Free Index) = 6943.88186287
delta logL = 0.248119480701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6943.88181007
delta logL = 0.2481722814

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6943.882     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      287 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.320        25.235        .10987E-03    .54426E-04
   2  Index         .99834        .89925        .18458E-01    .33876E-04
   3  Normalizat    .82529        .24982        .43790E-03    .11935E-03
   4  Prefactor     1.0792        .10108        .15547E-03    .15182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3195
  Index      = 0.998345
  Normalizat = 0.825293
  Prefactor  = 1.07924
 **********
 **   18 **HESSE 
 **********

 FCN=   6943.882     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.320        25.861        .43949E-05   -1.4978    
   2  Index         .99834        .92101        .73833E-03   -.92785    
   3  Normalizat    .82529        .24990        .17516E-04   -.99137    
   4  Prefactor     1.0792        .10111        .31094E-04   -.90133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40236e-10
Minuit parameter uncertainties:
  1  25.8824
  2  0.936155
  3  0.250245
  4  0.101128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349539': 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) = 6943.88180944
delta logL = 0.248172911151

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  1.079e+00  1.011e-01  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:  8.253e-01  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/349539/cmap_HighResolution_499564801_499824001_4FGL_J0416.9+0105_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-08-20 10:28:50.912403', job_id='349539', GAL2='1.08', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629480530.91', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.48e-01', ts2='0.53', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1004' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:28:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 349539: <4FGL_J0416.9+0105_daily_bin1004> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1004> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:30 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:31 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:15:31 2021
Terminated at Fri Aug 20 10:28:51 2021
Results reported at Fri Aug 20 10:28:51 2021

Your job looked like:

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

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

