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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin582
RA = 64.2269, Dec = 1.088
tmin = 390182401, tmax = 390441601
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='346863', job_status='RUN', time_executed='2021-08-20 10:09:35.495777', time_epoch_executed='1629479375.5' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346863/ft1_4FGL_J0416.9+0105_daily_bin582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346863/ft2_4FGL_J0416.9+0105_daily_bin582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346863/ft1_4FGL_J0416.9+0105_daily_bin582.fits outfile=/scratch/kocevski/346863/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin582.fits ra=64.2269 dec=1.088 rad=12.0 tmin=390182401.0 tmax=390441601.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.84
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346863/ft1_filtered_4FGL_J0416.9+0105_daily_bin582.fits" evtable="EVENTS" scfile=/scratch/kocevski/346863/ft2_4FGL_J0416.9+0105_daily_bin582.fits sctable="SC_DATA" outfile=/scratch/kocevski/346863/ltcube_390182401_390441601_4FGL_J0416.9+0105_daily_bin582.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/346863/ft2_4FGL_J0416.9+0105_daily_bin582.fits
.....................!
real 11.99
user 11.40
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346863/ft1_filtered_4FGL_J0416.9+0105_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/346863/ft2_4FGL_J0416.9+0105_daily_bin582.fits sctable="SC_DATA" expcube=/scratch/kocevski/346863/ltcube_390182401_390441601_4FGL_J0416.9+0105_daily_bin582.fits outfile=/scratch/kocevski/346863/expmap_390182401_390441601_4FGL_J0416.9+0105_daily_bin582.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/346863/ltcube_390182401_390441601_4FGL_J0416.9+0105_daily_bin582.fits
.....................!
real 190.60
user 184.94
sys 5.35

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/346863/ft1_filtered_4FGL_J0416.9+0105_daily_bin582.fits scfile=/scratch/kocevski/346863/ft2_4FGL_J0416.9+0105_daily_bin582.fits outfile=/scratch/kocevski/346863/cmap_390182401_390441601_4FGL_J0416.9+0105_daily_bin582.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.80
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346863/ft1_filtered_4FGL_J0416.9+0105_daily_bin582.fits scfile=/scratch/kocevski/346863/ft2_4FGL_J0416.9+0105_daily_bin582.fits outfile=/scratch/kocevski/346863/cmap_HighResolution_390182401_390441601_4FGL_J0416.9+0105_daily_bin582.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.78
user 0.38
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4942       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.151       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .48519       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.656       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9308       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2970       1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.201       1.0000         .10000E-03   10000.    
    13 'Prefactor '    93.839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6018       1.0000         .10000E-03   10000.    
    15 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11750       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12944E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.9130       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95778       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0317       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=   8792.598     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2411 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4937        1.7930        .19987E-06   -.60596E-04
   2  Prefactor     .10000E-03    9.4714        .10046E-06** at limit **
   3  Prefactor     .10000E-03    16.108        .21108E-06** at limit **
   4  norm          17.619        16.183        .45356E-07   -.64556E-06
   5  Prefactor     12.158        14.964       -.14843E-06   -.11330E-04
   6  norm          .10000E-03    2.5737        .30960E-08** at limit **
   7  Prefactor     .42721        26.955        .30556E-05   -.11378E-03
   8  norm          .10000E-03    14.452       -.41344E-06** at limit **
   9  norm          12.653        17.089       -.30078E-06   -.39176E-04
  10  norm          1.9302        1.2711        .79048E-08   -.23935E-03
  11  Prefactor     2.2958        1.8336        .21168E-06   -.34936E-03
  12  Prefactor     63.185        29.624       -.50166E-06   -.38223E-03
  13  Prefactor     93.948        67.547        .17993E-05    .46247E-05
  14  Prefactor     9.6076        11.564        .11710E-06   -.44790E-04
  15  norm          .10000E-03    2.7771        .19255E-05** at limit **
  16  Prefactor     .10000E-03    19.743       -.91925E-08** at limit **
  17  norm          .10712        1.2409        .43828E-06   -.46341E-03
  18  Prefactor     .10000E-03    9.3347        .20660E-06** at limit **
  19  Prefactor     .10000E-03    42.837       -.71630E-07** at limit **
  20  norm          6.9133        3.4641        .26288E-08   -.97716E-04
  21  Normalizat    .95806        .25925       -.59869E-05   -.19431E-03
  22  Prefactor     1.0317        .85753E-01    .63851E-06   -.92878E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.49369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6195
  Prefactor  = 12.1575
  norm       = 0.0001
  Prefactor  = 0.427213
  norm       = 0.0001
  norm       = 12.6534
  norm       = 1.93025
  Prefactor  = 2.29577
  Prefactor  = 63.1846
  Prefactor  = 93.948
  Prefactor  = 9.60756
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.107115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.91331
  Normalizat = 0.958057
  Prefactor  = 1.03168
 **********
 **   18 **HESSE 
 **********

 FCN=   8792.598     FROM HESSE     STATUS=OK           356 CALLS     2767 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4937        1.7933        .85398E-04   -1.5334    
   2  Prefactor     .10000E-03    9.4766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.619        16.185        .95421E-04   -1.4868    
   5  Prefactor     12.158        14.959        .11492E-03   -1.5010    
   6  norm          .10000E-03    2.6061        .14685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .42721        33.654        .11650       -1.5577    
   8  norm          .10000E-03    14.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.653        17.062        .11260E-03   -1.4996    
  10  norm          1.9302        1.2622        .78647E-04   -1.5430    
  11  Prefactor     2.2958        1.8326        .51510E-03   -1.5405    
  12  Prefactor     63.185        30.223        .50476E-04   -1.4117    
  13  Prefactor     93.948        68.637        .20744E-03   -1.3766    
  14  Prefactor     9.6076        11.579        .12933E-03   -1.5088    
  15  norm          .10000E-03    2.8961        .30434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10712        13.349        .19082E-02   -1.5643    
  18  Prefactor     .10000E-03    9.6206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.9133        3.4613        .11917E-03   -1.5182    
  21  Normalizat    .95806        .27258        .45250E-03   -.94449    
  22  Prefactor     1.0317        .93141E-01    .16060E-03   -.91681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41396e-09
Minuit parameter uncertainties:
  1  1.79337
  2  1.06918e-05
  3  4.38273e-05
  4  16.1886
  5  14.9634
  6  6.38213e-06
  7  7.58706
  8  7.85174e-05
  9  17.069
  10  1.26217
  11  1.83262
  12  30.2304
  13  68.6949
  14  11.5815
  15  1.38416e-05
  16  1.04753e-05
  17  2.39096
  18  4.62804e-05
  19  9.59084e-05
  20  3.46138
  21  0.272974
  22  0.0931551
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.216e+01  1.496e+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.316e-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:  9.581e-01  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.23e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/346863/likelihoodResults_390182401_390441601_4FGL_J0416.9+0105_daily_bin582.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) = 8792.58390494
delta logL = 0.0136440940569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8792.57563147
delta logL = 0.0219175680977

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.721       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7094       1.0000          .0000       10.000    
     3 'Normalizat'    .95957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0315       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=   8792.576     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      231 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.726        21.682        .10439E-03   -.34440E-03
   2  Index         1.7092        .79443        .94492E-02   -.16470E-03
   3  Normalizat    .95958        .24574        .45222E-03    .17568E-03
   4  Prefactor     1.0315        .90968E-01    .16062E-03    .34683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7258
  Index      = 1.70923
  Normalizat = 0.95958
  Prefactor  = 1.03153
 **********
 **   18 **HESSE 
 **********

 FCN=   8792.576     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.726        21.033        .20878E-04   -1.4940    
   2  Index         1.7092        .77125        .37797E-03   -.71836    
   3  Normalizat    .95958        .24581        .18089E-04   -.94397    
   4  Prefactor     1.0315        .91000E-01    .32123E-04   -.91686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02891e-09
Minuit parameter uncertainties:
  1  21.0433
  2  0.776753
  3  0.246101
  4  0.0910141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346863': 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) = 8792.57563144
delta logL = 0.0219176000282

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.473e+01  2.104e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.709e+00  7.768e-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.101e-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:  9.596e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.71 +/- 0.78
Photon Flux (Free Index): 1.00e-08 +/- 1.60e-08
Energy Flux (Free Index): 1.59e-05 +/- 3.01e-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/346863/cmap_HighResolution_390182401_390441601_4FGL_J0416.9+0105_daily_bin582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', comment='SUCCESS', photon_flux='1.23e-08', energy_flux2='1.59e-05', photon_flux_error='1.51e-08', dlogl='2.19e-02', energy_flux='1.18e-05', photon_flux2='1.00e-08', job_status='DONE', time_completed='2021-08-20 10:21:41.019736', photon_index_error2='0.78', photon_index2='1.71', ts='1.62', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.45e-08', energy_flux_error2='3.01e-05', EG='0.96', time_epoch_completed='1629480101.02', return_code='0', job_id='346863', GAL2='1.03', EG2='0.96', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='1.60e-08', ts2='1.67', photon_index='1.88' WHERE bin_id='582' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:21:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 346863: <4FGL_J0416.9+0105_daily_bin582> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin582> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:05:43 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:05:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:05:44 2021
Terminated at Fri Aug 20 10:21:41 2021
Results reported at Fri Aug 20 10:21:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin582 64.2269 1.088 390182401 390441601 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 :                                   729.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

