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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1330
RA = 64.2269, Dec = 1.088
tmin = 584064001, tmax = 584323201
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='351108', job_status='RUN', time_executed='2021-08-20 10:23:26.496697', time_epoch_executed='1629480206.5' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351108/ft1_4FGL_J0416.9+0105_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351108/ft2_4FGL_J0416.9+0105_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351108/ft1_4FGL_J0416.9+0105_daily_bin1330.fits outfile=/scratch/kocevski/351108/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1330.fits ra=64.2269 dec=1.088 rad=12.0 tmin=584064001.0 tmax=584323201.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.48
user 4.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351108/ft1_filtered_4FGL_J0416.9+0105_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/351108/ft2_4FGL_J0416.9+0105_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/351108/ltcube_584064001_584323201_4FGL_J0416.9+0105_daily_bin1330.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/351108/ft2_4FGL_J0416.9+0105_daily_bin1330.fits
.....................!
real 11.72
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351108/ft1_filtered_4FGL_J0416.9+0105_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/351108/ft2_4FGL_J0416.9+0105_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/351108/ltcube_584064001_584323201_4FGL_J0416.9+0105_daily_bin1330.fits outfile=/scratch/kocevski/351108/expmap_584064001_584323201_4FGL_J0416.9+0105_daily_bin1330.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/351108/ltcube_584064001_584323201_4FGL_J0416.9+0105_daily_bin1330.fits
.....................!
real 189.55
user 185.02
sys 4.16

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/351108/ft1_filtered_4FGL_J0416.9+0105_daily_bin1330.fits scfile=/scratch/kocevski/351108/ft2_4FGL_J0416.9+0105_daily_bin1330.fits outfile=/scratch/kocevski/351108/cmap_584064001_584323201_4FGL_J0416.9+0105_daily_bin1330.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351108/ft1_filtered_4FGL_J0416.9+0105_daily_bin1330.fits scfile=/scratch/kocevski/351108/ft2_4FGL_J0416.9+0105_daily_bin1330.fits outfile=/scratch/kocevski/351108/cmap_HighResolution_584064001_584323201_4FGL_J0416.9+0105_daily_bin1330.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5185       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.326       1.0000         .10000E-03   10000.    
     4 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.791       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3400       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.933       1.0000         .10000E-03   10000.    
    10 'norm      '    .57396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13692E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.037       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21465E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9246       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0697       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.952       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    46.003       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91427       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92292       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=   10066.69     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2446 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5185        1.2431       -.24820E-08   -.65514E-05
   2  Prefactor     2.1205        70.552        .75197E-06   -.50313E-05
   3  Prefactor     18.326        15.639       -.13666E-06    .17251E-05
   4  norm          .10000E-03    19.125       -.89192E-06** at limit **
   5  Prefactor     21.785        23.474        .78273E-06    .15592E-03
   6  norm          4.3380        4.3080        .40060E-06    .19552E-03
   7  Prefactor     .10000E-03    14.036       -.80832E-06** at limit **
   8  norm          .10000E-03    8.9181       -.12513E-08** at limit **
   9  norm          15.921        15.482        .82890E-06    .25244E-03
  10  norm          .57497        1.0278       -.23465E-06    .22139E-03
  11  Prefactor     .10000E-03    .90994       -.81689E-06** at limit **
  12  Prefactor     .10000E-03    27.310        .31297E-06** at limit **
  13  Prefactor     13.005        36.464        .21794E-05    .13193E-03
  14  Prefactor     .10006E-03    3.4188       -.29062E-06** at limit **
  15  norm          .10000E-03    1.6800       -.37221E-07** at limit **
  16  Prefactor     3.9223        20.345        .49396E-06    .32435E-05
  17  norm          1.0692        1.8042        .33654E-06    .11069E-03
  18  Prefactor     13.952        8.4065        .20919E-07    .59468E-05
  19  Prefactor     .10000E-03    15.224        .12020E-05** at limit **
  20  norm          46.004        5.2680        .62874E-08    .21687E-03
  21  Normalizat    .91437        .19591        .11043E-05    .18545E-03
  22  Prefactor     .92285        .74467E-01   -.29196E-06    .48022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51855
  Prefactor  = 2.1205
  Prefactor  = 18.326
  norm       = 0.0001
  Prefactor  = 21.7853
  norm       = 4.33795
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.9214
  norm       = 0.574967
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.0049
  Prefactor  = 0.000100065
  norm       = 0.0001
  Prefactor  = 3.92226
  norm       = 1.06917
  Prefactor  = 13.9523
  Prefactor  = 0.0001
  norm       = 46.0036
  Normalizat = 0.914372
  Prefactor  = 0.922852
 **********
 **   18 **HESSE 
 **********

 FCN=   10066.69     FROM HESSE     STATUS=OK           356 CALLS     2802 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5185        1.2417        .75242E-04   -1.5391    
   2  Prefactor     2.1205        70.531        .28361E-03   -1.5417    
   3  Prefactor     18.326        15.629        .93559E-04   -1.4852    
   4  norm          .10000E-03    19.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.785        23.604        .85804E-04   -1.4774    
   6  norm          4.3380        4.2690        .19335E-03   -1.5291    
   7  Prefactor     .10000E-03    14.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.1079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.921        15.627        .10034E-03   -1.4910    
  10  norm          .57497        .89408        .11335E-02   -1.5556    
  11  Prefactor     .10000E-03    1.3859        .15999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.005        36.732        .11094E-03   -1.4987    
  14  Prefactor     .10006E-03    6.0522        .59325E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7461        .25356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9223        20.296        .20364E-03   -1.5312    
  17  norm          1.0692        1.7512        .16380E-03   -1.5501    
  18  Prefactor     13.952        8.3970        .10723E-03   -1.4961    
  19  Prefactor     .10000E-03    15.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          46.004        5.2647        .59114E-04   -1.4350    
  21  Normalizat    .91437        .21585        .40503E-03   -.95957    
  22  Prefactor     .92285        .82661E-01    .16131E-03   -.95347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98823e-10
Minuit parameter uncertainties:
  1  1.24171
  2  24.49
  3  15.632
  4  0.000106048
  5  23.6145
  6  4.26927
  7  9.04579e-05
  8  1.22315e-05
  9  15.6305
  10  0.894096
  11  6.17166e-05
  12  1.03108e-05
  13  36.7961
  14  0.00125202
  15  3.55245e-06
  16  17.8538
  17  1.7513
  18  8.39773
  19  0.000137669
  20  5.26471
  21  0.216053
  22  0.0826721
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.179e+01  2.361e+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:  9.229e-01  8.267e-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.144e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 2.29e-05

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

Saving results to:
/scratch/kocevski/351108/likelihoodResults_584064001_584323201_4FGL_J0416.9+0105_daily_bin1330.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) = 10066.5995074
delta logL = 0.0865862771443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10066.5965959
delta logL = 0.0894977352473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.923       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1952       1.0000          .0000       10.000    
     3 'Normalizat'    .90509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92318       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10066.60     FROM MIGRAD    STATUS=FAILED       104 CALLS      323 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.892        30.077        .10368E-03   -.10899E-03
   2  Index         2.1973        .95626        .79889E-02    .93791E-03
   3  Normalizat    .90504        .20293        .40679E-03   -.84011E-04
   4  Prefactor     .92343        .80886E-01    .16124E-03   -.34840E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10066.60     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      401 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.892        30.077        .25042E-03   -1.4936    
   2  Index         2.1973        .95626        .94064E-03   -.59505    
   3  Normalizat    .90504        .20293        .47509E-03   -.96283    
   4  Prefactor     .92343        .80886E-01    .18551E-03   -.95327    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10066.60     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      437 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.892        24.237        .41473E-05   -.17544E-04
   2  Index         2.1973        .77262        .15978E-02    .38707E-05
   3  Normalizat    .90504        .20210        .16271E-04   -.16769E-05
   4  Prefactor     .92343        .80843E-01    .32247E-04   -.35255E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8916
  Index      = 2.19726
  Normalizat = 0.905036
  Prefactor  = 0.923429
 **********
 **   18 **HESSE 
 **********

 FCN=   10066.60     FROM HESSE     STATUS=OK            25 CALLS      462 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.892        23.426        .82947E-06   -1.4936    
   2  Index         2.1973        .74612        .63912E-04   -.59505    
   3  Normalizat    .90504        .20204        .32543E-05   -.96283    
   4  Prefactor     .92343        .80856E-01    .64494E-05   -.95327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17275e-12
Minuit parameter uncertainties:
  1  23.4409
  2  0.750219
  3  0.202207
  4  0.0808663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351108': 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) = 10066.5965769
delta logL = 0.0895167289727

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.489e+01  2.344e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.197e+00  7.502e-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:  9.234e-01  8.087e-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.050e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.20 +/- 0.75
Photon Flux (Free Index): 3.54e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.77e-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/351108/cmap_HighResolution_584064001_584323201_4FGL_J0416.9+0105_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='1.60e-05', photon_flux_error='2.39e-08', dlogl='8.95e-02', energy_flux='2.12e-05', photon_flux2='3.54e-08', job_status='DONE', time_completed='2021-08-20 10:37:03.174813', photon_index_error2='0.75', photon_index2='2.20', ts='1.76', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='8.40e-08', energy_flux_error2='1.77e-05', EG='0.91', time_epoch_completed='1629481023.17', return_code='0', job_id='351108', GAL2='0.92', EG2='0.91', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='4.52e-08', ts2='1.93', photon_index='1.88' WHERE bin_id='1330' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:37:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 351108: <4FGL_J0416.9+0105_daily_bin1330> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1330> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:47 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:49 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:20:49 2021
Terminated at Fri Aug 20 10:37:03 2021
Results reported at Fri Aug 20 10:37:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1330 64.2269 1.088 584064001 584323201 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 :                                   815.05 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

