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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1564
RA = 64.2269, Dec = 1.088
tmin = 644716801, tmax = 644976001
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='352466', job_status='RUN', time_executed='2021-08-20 10:32:00.851145', time_epoch_executed='1629480720.85' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352466

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352466/ft1_4FGL_J0416.9+0105_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352466/ft2_4FGL_J0416.9+0105_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352466/ft1_4FGL_J0416.9+0105_daily_bin1564.fits outfile=/scratch/kocevski/352466/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1564.fits ra=64.2269 dec=1.088 rad=12.0 tmin=644716801.0 tmax=644976001.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 12.15
user 2.65
sys 9.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352466/ft1_filtered_4FGL_J0416.9+0105_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/352466/ft2_4FGL_J0416.9+0105_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/352466/ltcube_644716801_644976001_4FGL_J0416.9+0105_daily_bin1564.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/352466/ft2_4FGL_J0416.9+0105_daily_bin1564.fits
.....................!
real 24.34
user 13.18
sys 10.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352466/ft1_filtered_4FGL_J0416.9+0105_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/352466/ft2_4FGL_J0416.9+0105_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/352466/ltcube_644716801_644976001_4FGL_J0416.9+0105_daily_bin1564.fits outfile=/scratch/kocevski/352466/expmap_644716801_644976001_4FGL_J0416.9+0105_daily_bin1564.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/352466/ltcube_644716801_644976001_4FGL_J0416.9+0105_daily_bin1564.fits
.....................!
real 203.56
user 185.06
sys 16.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/352466/ft1_filtered_4FGL_J0416.9+0105_daily_bin1564.fits scfile=/scratch/kocevski/352466/ft2_4FGL_J0416.9+0105_daily_bin1564.fits outfile=/scratch/kocevski/352466/cmap_644716801_644976001_4FGL_J0416.9+0105_daily_bin1564.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 8.68
user 0.39
sys 8.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352466/ft1_filtered_4FGL_J0416.9+0105_daily_bin1564.fits scfile=/scratch/kocevski/352466/ft2_4FGL_J0416.9+0105_daily_bin1564.fits outfile=/scratch/kocevski/352466/cmap_HighResolution_644716801_644976001_4FGL_J0416.9+0105_daily_bin1564.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 9.67
user 0.39
sys 9.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73762       1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .93572E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.3025       1.0000         .10000E-03   10000.    
    16 'Prefactor '    684.60       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.565       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88119       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0996       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=   3348.094     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2387 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73605        2.2194        .48004E-06   -.93467E-04
   2  Prefactor     52.066        89.408       -.88400E-06   -.25472E-04
   3  Prefactor     .10000E-03    35.063        .22075E-05** at limit **
   4  norm          .10000E-03    11.695        .18777E-07** at limit **
   5  Prefactor     .10000E-03    27.327       -.32881E-05** at limit **
   6  norm          .10528E-03    6.5877       -.20694E-05** at limit **
   7  Prefactor     .10000E-03    57.809       -.26980E-05** at limit **
   8  norm          .10000E-03    16.759        .68588E-07** at limit **
   9  norm          .10000E-03    51.882        .54931E-06** at limit **
  10  norm          2.0620        2.3707        .19062E-05   -.96513E-04
  11  Prefactor     6.1206        4.8224       -.60465E-06    .14313E-03
  12  Prefactor     .10001E-03    101.93        .49133E-05** at limit **
  13  Prefactor     .10000E-03    81.181       -.28575E-05** at limit **
  14  Prefactor     .10000E-03    25.771        .18133E-05** at limit **
  15  norm          9.3044        12.583        .33880E-06   -.27740E-04
  16  Prefactor     684.66        488.44        .22047E-05    .12533E-04
  17  norm          .10000E-03    2.6597       -.19822E-07** at limit **
  18  Prefactor     18.507        42.054       -.17362E-05   -.57248E-04
  19  Prefactor     .10000E-03    96.469        .25649E-05** at limit **
  20  norm          .10000E-03    3.6136        .24197E-07** at limit **
  21  Normalizat    .88231        .34706       -.58801E-06    .57497E-04
  22  Prefactor     1.0992        .15355       -.18897E-06    .14648E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.736045
  Prefactor  = 52.0658
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000105277
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.06204
  Prefactor  = 6.12056
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 9.30438
  Prefactor  = 684.662
  norm       = 0.0001
  Prefactor  = 18.5072
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 0.882307
  Prefactor  = 1.09922
 **********
 **   18 **HESSE 
 **********

 FCN=   3348.094     FROM HESSE     STATUS=OK           340 CALLS     2727 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73605        2.1991        .13564E-03   -1.5536    
   2  Prefactor     52.066        89.876        .55576E-04   -1.4264    
   3  Prefactor     .10000E-03    35.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10528E-03    13.307        .45533E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    58.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    51.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0620        2.4832        .44129E-03   -1.5421    
  11  Prefactor     6.1206        4.8091        .10222E-03   -1.5213    
  12  Prefactor     .10001E-03    103.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    81.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.3044        12.567        .13140E-03   -1.5098    
  16  Prefactor     684.66        489.73        .79198E-04   -1.0413    
  17  norm          .10000E-03    2.6811        .92128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.507        42.251        .92955E-04   -1.4847    
  19  Prefactor     .10000E-03    96.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6568        .10739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88231        .37754        .42623E-03   -.97085    
  22  Prefactor     1.0992        .17030        .17196E-03   -.89491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81463e-10
Minuit parameter uncertainties:
  1  2.19937
  2  90.1108
  3  0.000412508
  4  2.50308e-06
  5  0.000541962
  6  0.0167626
  7  0.000654074
  8  1.50215e-05
  9  0.000107133
  10  2.48334
  11  4.80938
  12  0.00150274
  13  0.000843753
  14  0.000191086
  15  12.5705
  16  492.851
  17  3.18677e-06
  18  42.319
  19  0.000796882
  20  2.85834e-08
  21  0.378677
  22  0.170389
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.420e-04  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.099e+00  1.704e-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.823e-01  3.787e-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: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/352466/likelihoodResults_644716801_644976001_4FGL_J0416.9+0105_daily_bin1564.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) = 3348.09400015
delta logL = -0.00016975174276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3348.09383099
delta logL = -5.91368007008e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2338       1.0000          .0000       10.000    
     3 'Normalizat'    .88230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0992       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=   3348.094     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      234 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8417        .90712E-02** at limit **
   2  Index         2.2160        8.4409        .50000        .65679E-05
   3  Normalizat    .88231        .48172E-02    .96194E-01    .14953E-04
   4  Prefactor     1.0992        .21556E-02    .37616E-01    .15044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21597
  Normalizat = 0.882307
  Prefactor  = 1.09922
 **********
 **   18 **HESSE 
 **********

 FCN=   3348.094     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2160        6.0648        .50000       -.59054    
   3  Normalizat    .88231        .19595E-01    .42623E-03   -.97085    
   4  Prefactor     1.0992        .87959E-02    .17196E-03   -.89491    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.30403e-08
Minuit parameter uncertainties:
  1  0.000270158
  2  185.966
  3  0.0195954
  4  0.0087959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352466': 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) = 3348.09383081
delta logL = -4.12449480791e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.702e-04  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.216e+00  1.860e+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:  1.099e+00  8.796e-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:  8.823e-01  1.960e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/352466/cmap_HighResolution_644716801_644976001_4FGL_J0416.9+0105_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-08-20 10:41:47.226801', job_id='352466', GAL2='1.10', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629481307.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-4.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1564' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:41:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 352466: <4FGL_J0416.9+0105_daily_bin1564> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1564> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 20 10:25:38 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:25:39 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:25:39 2021
Terminated at Fri Aug 20 10:41:49 2021
Results reported at Fri Aug 20 10:41:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1564 64.2269 1.088 644716801 644976001 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 :                                   723.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             214.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

