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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin777
RA = 64.2269, Dec = 1.088
tmin = 440726401, tmax = 440985601
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='348215', job_status='RUN', time_executed='2021-08-20 10:11:37.080336', time_epoch_executed='1629479497.08' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348215/ft1_4FGL_J0416.9+0105_daily_bin777.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348215/ft2_4FGL_J0416.9+0105_daily_bin777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348215/ft1_4FGL_J0416.9+0105_daily_bin777.fits outfile=/scratch/kocevski/348215/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin777.fits ra=64.2269 dec=1.088 rad=12.0 tmin=440726401.0 tmax=440985601.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.33
user 3.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348215/ft1_filtered_4FGL_J0416.9+0105_daily_bin777.fits" evtable="EVENTS" scfile=/scratch/kocevski/348215/ft2_4FGL_J0416.9+0105_daily_bin777.fits sctable="SC_DATA" outfile=/scratch/kocevski/348215/ltcube_440726401_440985601_4FGL_J0416.9+0105_daily_bin777.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/348215/ft2_4FGL_J0416.9+0105_daily_bin777.fits
.....................!
real 11.68
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348215/ft1_filtered_4FGL_J0416.9+0105_daily_bin777.fits evtable="EVENTS" scfile=/scratch/kocevski/348215/ft2_4FGL_J0416.9+0105_daily_bin777.fits sctable="SC_DATA" expcube=/scratch/kocevski/348215/ltcube_440726401_440985601_4FGL_J0416.9+0105_daily_bin777.fits outfile=/scratch/kocevski/348215/expmap_440726401_440985601_4FGL_J0416.9+0105_daily_bin777.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/348215/ltcube_440726401_440985601_4FGL_J0416.9+0105_daily_bin777.fits
.....................!
real 191.29
user 186.38
sys 4.60

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/348215/ft1_filtered_4FGL_J0416.9+0105_daily_bin777.fits scfile=/scratch/kocevski/348215/ft2_4FGL_J0416.9+0105_daily_bin777.fits outfile=/scratch/kocevski/348215/cmap_440726401_440985601_4FGL_J0416.9+0105_daily_bin777.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348215/ft1_filtered_4FGL_J0416.9+0105_daily_bin777.fits scfile=/scratch/kocevski/348215/ft2_4FGL_J0416.9+0105_daily_bin777.fits outfile=/scratch/kocevski/348215/cmap_HighResolution_440726401_440985601_4FGL_J0416.9+0105_daily_bin777.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1878       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.986       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4510       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.605       1.0000         .10000E-03   10000.    
     8 'norm      '    19.619       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0762       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53359       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22379E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .24912       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5553       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5969       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.609       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.929       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1605       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0323       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=   8706.125     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2442 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1880        1.0908       -.94486E-07   -.23407E-03
   2  Prefactor     .10000E-03    14.945       -.99645E-05** at limit **
   3  Prefactor     .10000E-03    16.621        .87444E-06** at limit **
   4  norm          .10000E-03    11.912        .55713E-05** at limit **
   5  Prefactor     33.988        28.637        .21326E-05    .23862E-04
   6  norm          1.4510        2.6329       -.93597E-07   -.52105E-03
   7  Prefactor     50.603        34.992       -.15574E-05   -.63154E-04
   8  norm          19.610        14.741       -.24389E-05    .12375E-03
   9  norm          6.0727        18.172       -.62902E-05   -.58583E-04
  10  norm          .10000E-03    .36765       -.13735E-07** at limit **
  11  Prefactor     .53306        1.1496       -.23741E-06   -.16279E-02
  12  Prefactor     .10000E-03    19.677        .18869E-04** at limit **
  13  Prefactor     .10000E-03    15.253       -.84286E-05** at limit **
  14  Prefactor     .10017E-03    4.8745       -.60116E-06** at limit **
  15  norm          .26655        1.3773        .24551E-06   -.54982E-03
  16  Prefactor     6.5223        24.000       -.69416E-04   -.22838E-04
  17  norm          2.5964        2.4632       -.31914E-06   -.55946E-03
  18  Prefactor     13.604        8.4634        .45850E-06   -.14076E-03
  19  Prefactor     39.932        40.634        .36474E-05   -.87057E-05
  20  norm          1.1607        2.3382       -.78509E-06   -.14450E-02
  21  Normalizat    1.0023        .24488        .12269E-05    .62947E-04
  22  Prefactor     1.0323        .86155E-01    .14052E-05   -.22873E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.9876
  norm       = 1.45102
  Prefactor  = 50.6033
  norm       = 19.6103
  norm       = 6.07266
  norm       = 0.0001
  Prefactor  = 0.533065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100165
  norm       = 0.266554
  Prefactor  = 6.52227
  norm       = 2.59643
  Prefactor  = 13.6041
  Prefactor  = 39.9316
  norm       = 1.16069
  Normalizat = 1.00231
  Prefactor  = 1.03228
 **********
 **   18 **HESSE 
 **********

 FCN=   8706.125     FROM HESSE     STATUS=OK           354 CALLS     2796 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1880        1.0863        .90099E-04   -1.5490    
   2  Prefactor     .10000E-03    14.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.988        28.505        .68738E-04   -1.4541    
   6  norm          1.4510        2.5807        .19738E-03   -1.5467    
   7  Prefactor     50.603        34.928        .56375E-04   -1.4284    
   8  norm          19.610        14.707        .90425E-04   -1.4822    
   9  norm          6.0727        17.981        .16288E-03   -1.5215    
  10  norm          .10000E-03    .64127        .10815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .53306        .86850        .13776E-02   -1.5562    
  12  Prefactor     .10000E-03    19.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10017E-03    34.419        .37972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .26655        10.928        .19650E-02   -1.5605    
  16  Prefactor     6.5223        23.991        .15674E-03   -1.5197    
  17  norm          2.5964        2.4536        .13289E-03   -1.5386    
  18  Prefactor     13.604        8.4701        .10858E-03   -1.4970    
  19  Prefactor     39.932        40.614        .63434E-04   -1.4443    
  20  norm          1.1607        2.3155        .19287E-03   -1.5492    
  21  Normalizat    1.0023        .26662        .42185E-03   -.92953    
  22  Prefactor     1.0323        .96098E-01    .16228E-03   -.91661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29103e-09
Minuit parameter uncertainties:
  1  1.08632
  2  1.24124e-05
  3  2.49704e-05
  4  1.18082e-05
  5  28.5169
  6  2.58094
  7  34.9419
  8  14.7097
  9  17.9966
  10  2.04366e-06
  11  0.868516
  12  1.48522e-05
  13  1.05145e-05
  14  0.00477372
  15  3.41352
  16  24.0263
  17  2.45373
  18  8.47087
  19  40.6421
  20  2.31571
  21  0.266977
  22  0.0961144
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.399e+01  2.852e+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.032e+00  9.611e-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.002e+00  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 2.77e-05

TS (Fixed Index): 3.20
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348215/likelihoodResults_440726401_440985601_4FGL_J0416.9+0105_daily_bin777.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) = 8706.08825599
delta logL = 0.0364122940209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8706.08295404
delta logL = 0.041714242172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.920       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7376       1.0000          .0000       10.000    
     3 'Normalizat'    1.0046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0325       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=   8706.083     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      311 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.921        38.806        .63440E-04   -.17992E-04
   2  Index         1.7376        .48918        .67459E-02    .35693E-03
   3  Normalizat    1.0047        .23511        .42142E-03    .15970E-04
   4  Prefactor     1.0325        .92576E-01    .16228E-03    .48340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.9207
  Index      = 1.73757
  Normalizat = 1.00474
  Prefactor  = 1.03247
 **********
 **   18 **HESSE 
 **********

 FCN=   8706.083     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.921        37.995        .12688E-04   -1.4443    
   2  Index         1.7376        .47907        .13492E-02   -.71086    
   3  Normalizat    1.0047        .23520        .16857E-04   -.92872    
   4  Prefactor     1.0325        .92620E-01    .64910E-05   -.91655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16819e-12
Minuit parameter uncertainties:
  1  38.0179
  2  0.480359
  3  0.235438
  4  0.0926347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348215': 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) = 8706.08295389
delta logL = 0.0417143962259

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.992e+01  3.802e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.738e+00  4.804e-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.032e+00  9.263e-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.005e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.28
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.74 +/- 0.48
Photon Flux (Free Index): 2.90e-08 +/- 3.13e-08
Energy Flux (Free Index): 4.20e-05 +/- 4.99e-05

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/348215/cmap_HighResolution_440726401_440985601_4FGL_J0416.9+0105_daily_bin777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='4.20e-05', photon_flux_error='2.89e-08', dlogl='4.17e-02', energy_flux='3.30e-05', photon_flux2='2.90e-08', job_status='DONE', time_completed='2021-08-20 10:23:41.460223', photon_index_error2='0.48', photon_index2='1.74', ts='3.20', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='4.99e-05', EG='1.00', time_epoch_completed='1629480221.46', return_code='0', job_id='348215', GAL2='1.03', EG2='1.00', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='3.13e-08', ts2='3.28', photon_index='1.88' WHERE bin_id='777' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:23:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 348215: <4FGL_J0416.9+0105_daily_bin777> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin777 64.2269 1.088 440726401 440985601 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 :                                   724.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

