/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 8 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_bin856
RA = 64.2269, Dec = 1.088
tmin = 461203201, tmax = 461462401
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='348331', job_status='RUN', time_executed='2021-08-20 10:11:25.059768', time_epoch_executed='1629479485.06' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348331/ft1_4FGL_J0416.9+0105_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348331/ft2_4FGL_J0416.9+0105_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348331/ft1_4FGL_J0416.9+0105_daily_bin856.fits outfile=/scratch/kocevski/348331/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin856.fits ra=64.2269 dec=1.088 rad=12.0 tmin=461203201.0 tmax=461462401.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.34
user 3.20
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348331/ft2_4FGL_J0416.9+0105_daily_bin856.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/348331/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin856.fits evtable="EVENTS" outfile="/scratch/kocevski/348331/ft1_filtered_4FGL_J0416.9+0105_daily_bin856.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.40
user 0.32
sys 1.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348331/ft1_filtered_4FGL_J0416.9+0105_daily_bin856.fits" evtable="EVENTS" scfile=/scratch/kocevski/348331/ft2_4FGL_J0416.9+0105_daily_bin856.fits sctable="SC_DATA" outfile=/scratch/kocevski/348331/ltcube_461203201_461462401_4FGL_J0416.9+0105_daily_bin856.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/348331/ft2_4FGL_J0416.9+0105_daily_bin856.fits
.....................!
real 13.04
user 11.64
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348331/ft1_filtered_4FGL_J0416.9+0105_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/348331/ft2_4FGL_J0416.9+0105_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/348331/ltcube_461203201_461462401_4FGL_J0416.9+0105_daily_bin856.fits outfile=/scratch/kocevski/348331/expmap_461203201_461462401_4FGL_J0416.9+0105_daily_bin856.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/348331/ltcube_461203201_461462401_4FGL_J0416.9+0105_daily_bin856.fits
.....................!
real 194.24
user 187.38
sys 6.53

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/348331/ft1_filtered_4FGL_J0416.9+0105_daily_bin856.fits scfile=/scratch/kocevski/348331/ft2_4FGL_J0416.9+0105_daily_bin856.fits outfile=/scratch/kocevski/348331/cmap_461203201_461462401_4FGL_J0416.9+0105_daily_bin856.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.43
user 0.38
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348331/ft1_filtered_4FGL_J0416.9+0105_daily_bin856.fits scfile=/scratch/kocevski/348331/ft2_4FGL_J0416.9+0105_daily_bin856.fits outfile=/scratch/kocevski/348331/cmap_HighResolution_461203201_461462401_4FGL_J0416.9+0105_daily_bin856.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.44
user 0.38
sys 1.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5455       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0354       1.0000         .10000E-03   10000.    
     4 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11992E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.365       1.0000         .10000E-03   10000.    
     9 'norm      '    .10430E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .26571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8281       1.0000         .10000E-03   10000.    
    15 'norm      '    8.2843       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.128       1.0000         .10000E-03   10000.    
    17 'norm      '    .37574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4513       1.0000         .10000E-03   10000.    
    19 'Prefactor '    77.221       1.0000         .10000E-03   10000.    
    20 'norm      '    14.199       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0830       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1156       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=   12103.81     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2388 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7025        2.2088        .82940E-07   -.80434E-04
   2  Prefactor     3.4170        161.24        .60450E-06   -.11931E-04
   3  Prefactor     6.0331        14.789       -.59791E-06   -.28855E-04
   4  norm          .10000E-03    5.1824        .46553E-07** at limit **
   5  Prefactor     .10000E-03    19.381        .15553E-06** at limit **
   6  norm          .10000E-03    1.7058        .78520E-07** at limit **
   7  Prefactor     .10000E-03    18.770       -.20967E-06** at limit **
   8  norm          15.363        9.3906        .18727E-06   -.64867E-04
   9  norm          .10000E-03    6.6357        .48803E-07** at limit **
  10  norm          .26576        .62929        .44475E-06   -.51920E-03
  11  Prefactor     1.3333        1.1941       -.64644E-07   -.43536E-03
  12  Prefactor     .10000E-03    13.318        .11666E-07** at limit **
  13  Prefactor     .10000E-03    10.976       -.49238E-08** at limit **
  14  Prefactor     9.8314        6.9354       -.98895E-07   -.96952E-04
  15  norm          8.2832        3.0772       -.35482E-07   -.15912E-03
  16  Prefactor     16.175        26.897       -.28414E-06   -.49763E-04
  17  norm          .37669        1.4176        .51802E-06   -.32274E-03
  18  Prefactor     2.4552        5.8893        .97323E-06   -.28217E-04
  19  Prefactor     77.221        40.523       -.91571E-07   -.25638E-04
  20  norm          14.198        3.4013       -.32872E-07   -.25796E-03
  21  Normalizat    1.0826        .22846       -.37239E-05   -.12831E-03
  22  Prefactor     1.1156        .83276E-01    .55237E-06   -.49488E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.70246
  Prefactor  = 3.41698
  Prefactor  = 6.03309
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.363
  norm       = 0.0001
  norm       = 0.265761
  Prefactor  = 1.33328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.83139
  norm       = 8.28322
  Prefactor  = 16.1746
  norm       = 0.376691
  Prefactor  = 2.45522
  Prefactor  = 77.2212
  norm       = 14.1978
  Normalizat = 1.08262
  Prefactor  = 1.11562
 **********
 **   18 **HESSE 
 **********

 FCN=   12103.81     FROM HESSE     STATUS=OK           350 CALLS     2738 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7025        2.2116        .73463E-04   -1.5085    
   2  Prefactor     3.4170        160.91        .21466E-03   -1.5338    
   3  Prefactor     6.0331        14.686        .16344E-03   -1.5217    
   4  norm          .10000E-03    5.1855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7244        .14021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.363        9.3985        .10218E-03   -1.4924    
   9  norm          .10000E-03    6.6493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .26576        .69311        .12147E-02   -1.5605    
  11  Prefactor     1.3333        1.1633        .10761E-03   -1.5477    
  12  Prefactor     .10000E-03    13.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.8314        6.9416        .12782E-03   -1.5081    
  15  norm          8.2832        3.0700        .11064E-03   -1.5132    
  16  Prefactor     16.175        26.875        .99730E-04   -1.4903    
  17  norm          .37669        2.6301        .22898E-02   -1.5585    
  18  Prefactor     2.4552        5.8897        .26126E-03   -1.5395    
  19  Prefactor     77.221        40.465        .45697E-04   -1.3948    
  20  norm          14.198        3.3985        .95170E-04   -1.4954    
  21  Normalizat    1.0826        .23827        .44751E-03   -.90312    
  22  Prefactor     1.1156        .88613E-01    .17417E-03   -.88969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55953e-08
Minuit parameter uncertainties:
  1  2.2116
  2  47.031
  3  14.6948
  4  9.59077e-07
  5  7.88868e-06
  6  1.16913e-06
  7  3.69386e-05
  8  9.39936
  9  2.69231e-06
  10  0.693126
  11  1.16332
  12  2.0712e-05
  13  3.86583e-08
  14  6.94213
  15  3.07004
  16  26.8952
  17  1.99056
  18  5.89108
  19  40.4789
  20  3.39858
  21  0.238506
  22  0.0886244
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  7.889e-06  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.116e+00  8.862e-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.083e+00  2.385e-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: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348331/likelihoodResults_461203201_461462401_4FGL_J0416.9+0105_daily_bin856.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) = 12103.8093677
delta logL = -0.000244630549787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12103.809123
delta logL = 2.48746800935e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9877       1.0000          .0000       10.000    
     3 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1156       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=   12103.81     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6621        .90712E-02** at limit **
   2  Index         1.9873        8.2487        .50000        .21873E-06
   3  Normalizat    1.0826        .28128E-02    .10098        .20333E-04
   4  Prefactor     1.1156        .11144E-02    .37021E-01   -.59194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98731
  Normalizat = 1.08262
  Prefactor  = 1.11562
 **********
 **   18 **HESSE 
 **********

 FCN=   12103.81     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9873        6.7280        .50000       -.64668    
   3  Normalizat    1.0826        .87489E-02    .44751E-03   -.90312    
   4  Prefactor     1.1156        .34767E-02    .17417E-03   -.88969    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2574e-11
Minuit parameter uncertainties:
  1  9.12751e-06
  2  60.4556
  3  0.00874893
  4  0.0034767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348331': 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) = 12103.809123
delta logL = 2.668457455e-08

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  9.128e-06  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.987e+00  6.046e+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.116e+00  3.477e-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.083e+00  8.749e-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/348331/cmap_HighResolution_461203201_461462401_4FGL_J0416.9+0105_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-08-20 10:26:21.243615', job_id='348331', GAL2='1.12', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629480381.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='856' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:26:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 348331: <4FGL_J0416.9+0105_daily_bin856> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin856> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 10:10:53 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:10:54 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:10:54 2021
Terminated at Fri Aug 20 10:26:22 2021
Results reported at Fri Aug 20 10:26:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin856 64.2269 1.088 461203201 461462401 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 :                                   910.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             361.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

