/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 199 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 = 7391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0416.9+0105_daily_bin416
RA = 64.2269, Dec = 1.088
tmin = 347155201, tmax = 347414401
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='346625', job_status='RUN', time_executed='2021-08-20 10:09:09.262455', time_epoch_executed='1629479349.26' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='416'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346625/ft1_4FGL_J0416.9+0105_daily_bin416.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346625/ft2_4FGL_J0416.9+0105_daily_bin416.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346625/ft1_4FGL_J0416.9+0105_daily_bin416.fits outfile=/scratch/kocevski/346625/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin416.fits ra=64.2269 dec=1.088 rad=12.0 tmin=347155201.0 tmax=347414401.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.40
user 3.26
sys 1.10

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346625/ft2_4FGL_J0416.9+0105_daily_bin416.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/346625/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin416.fits evtable="EVENTS" outfile="/scratch/kocevski/346625/ft1_filtered_4FGL_J0416.9+0105_daily_bin416.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.41
user 0.32
sys 1.07

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346625/ft1_filtered_4FGL_J0416.9+0105_daily_bin416.fits evtable="EVENTS" scfile=/scratch/kocevski/346625/ft2_4FGL_J0416.9+0105_daily_bin416.fits sctable="SC_DATA" expcube=/scratch/kocevski/346625/ltcube_347155201_347414401_4FGL_J0416.9+0105_daily_bin416.fits outfile=/scratch/kocevski/346625/expmap_347155201_347414401_4FGL_J0416.9+0105_daily_bin416.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/346625/ltcube_347155201_347414401_4FGL_J0416.9+0105_daily_bin416.fits
.....................!
real 191.56
user 184.99
sys 6.20

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/346625/ft1_filtered_4FGL_J0416.9+0105_daily_bin416.fits scfile=/scratch/kocevski/346625/ft2_4FGL_J0416.9+0105_daily_bin416.fits outfile=/scratch/kocevski/346625/cmap_347155201_347414401_4FGL_J0416.9+0105_daily_bin416.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=64.2269 yref=1.088 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.42
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346625/ft1_filtered_4FGL_J0416.9+0105_daily_bin416.fits scfile=/scratch/kocevski/346625/ft2_4FGL_J0416.9+0105_daily_bin416.fits outfile=/scratch/kocevski/346625/cmap_HighResolution_347155201_347414401_4FGL_J0416.9+0105_daily_bin416.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=64.2269 yref=1.088 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.44
user 0.37
sys 1.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10793E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.7670       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10277E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.8425       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1438       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .80100E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .34526E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1091       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0002       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=   7893.859     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2432 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .67917        .81261E-08** at limit **
   2  Prefactor     .10063E-03    59.983       -.13938E-05** at limit **
   3  Prefactor     .10000E-03    10.878       -.50220E-07** at limit **
   4  norm          8.7612        16.393       -.54459E-05   -.34682E-03
   5  Prefactor     .10000E-03    20.348        .37797E-06** at limit **
   6  norm          4.2629        3.0862        .86776E-06   -.26523E-02
   7  Prefactor     .10000E-03    33.863       -.38002E-05** at limit **
   8  norm          .10000E-03    3.5992       -.74388E-08** at limit **
   9  norm          .10000E-03    15.114        .14719E-05** at limit **
  10  norm          6.8430        1.9584       -.14301E-06   -.33021E-04
  11  Prefactor     2.1437        2.0921       -.30297E-06   -.29357E-03
  12  Prefactor     16.602        19.792        .61346E-06    .53391E-04
  13  Prefactor     24.808        47.659        .63492E-05    .13295E-03
  14  Prefactor     .10000E-03    14.093        .49088E-06** at limit **
  15  norm          .62421E-01    1.2175        .32230E-06   -.79837E-03
  16  Prefactor     .10000E-03    33.835        .32905E-05** at limit **
  17  norm          4.6887        2.8293       -.11720E-06   -.25810E-03
  18  Prefactor     .10002E-03    4.1840       -.12208E-05** at limit **
  19  Prefactor     .10000E-03    24.667       -.49055E-05** at limit **
  20  norm          .10051E-03    .99084        .48621E-06** at limit **
  21  Normalizat    1.1089        .23460       -.49088E-06    .89486E-04
  22  Prefactor     1.0002        .85800E-01    .12204E-06    .14684E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100632
  Prefactor  = 0.0001
  norm       = 8.76115
  Prefactor  = 0.0001
  norm       = 4.26295
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.84296
  Prefactor  = 2.14375
  Prefactor  = 16.602
  Prefactor  = 24.8085
  Prefactor  = 0.0001
  norm       = 0.0624207
  Prefactor  = 0.000100001
  norm       = 4.68867
  Prefactor  = 0.000100019
  Prefactor  = 0.000100002
  norm       = 0.000100509
  Normalizat = 1.10893
  Prefactor  = 1.00018
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.859     FROM HESSE     STATUS=OK           360 CALLS     2792 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .69377        .71434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10063E-03    46.345        .16297       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.7612        16.491        .13537E-03   -1.5116    
   5  Prefactor     .10000E-03    20.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2629        5.3165        .97586E-03   -1.5295    
   7  Prefactor     .10000E-03    34.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6114        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.8430        1.9892        .59648E-04   -1.5185    
  11  Prefactor     2.1437        2.0739        .11222E-03   -1.5415    
  12  Prefactor     16.602        20.931        .98477E-04   -1.4893    
  13  Prefactor     24.808        47.693        .80405E-04   -1.4711    
  14  Prefactor     .10000E-03    14.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .62421E-01    24.436        .17354E-02   -1.5658    
  16  Prefactor     .10000E-03    33.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6887        2.8367        .10895E-03   -1.5275    
  18  Prefactor     .10002E-03    14.850        .34020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10051E-03    1.4860        .32700E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1089        .26072        .40017E-03   -.89466    
  22  Prefactor     1.0002        .96556E-01    .16185E-03   -.92723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30326e-08
Minuit parameter uncertainties:
  1  2.7958e-07
  2  0.0108301
  3  5.43054e-07
  4  16.4992
  5  3.17338e-05
  6  5.31713
  7  0.000431368
  8  1.35699e-07
  9  0.000100598
  10  1.98923
  11  2.07392
  12  20.9404
  13  47.766
  14  1.44599e-05
  15  2.46909
  16  0.000374286
  17  2.83677
  18  0.00106254
  19  0.000457403
  20  0.00173954
  21  0.261025
  22  0.0965728
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.173e-05  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.000e+00  9.657e-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.109e+00  2.610e-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: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346625/likelihoodResults_347155201_347414401_4FGL_J0416.9+0105_daily_bin416.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) = 7893.85959275
delta logL = -0.000233543422837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7893.8593592
delta logL = 3.39423422702e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8886       1.0000          .0000       10.000    
     3 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0002       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=   7893.859     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    266.74        .90712E-02** at limit **
   2  Index         1.9015        8.8359        .50000       -.50767E-05
   3  Normalizat    1.1089        .23665E-01    .90353E-01    .26672E-04
   4  Prefactor     1.0002        .91949E-02    .45931E-01    .80022E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90152
  Normalizat = 1.10893
  Prefactor  = 1.00018
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.859     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2141.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9015        8.9404        .50000       -.66836    
   3  Normalizat    1.1089        .79702E-01    .40018E-03   -.89466    
   4  Prefactor     1.0002        .31040E-01    .16185E-03   -.92723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.24259e-09
Minuit parameter uncertainties:
  1  0.000272616
  2  41.6883
  3  0.0797105
  4  0.0310409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346625': 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) = 7893.85935918
delta logL = 3.17595549859e-08

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.726e-04  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.902e+00  4.169e+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.000e+00  3.104e-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.109e+00  7.971e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/346625/cmap_HighResolution_347155201_347414401_4FGL_J0416.9+0105_daily_bin416.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-08-20 10:20:48.129163', job_id='346625', GAL2='1.00', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629480048.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='416' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:20:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 346625: <4FGL_J0416.9+0105_daily_bin416> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin416> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:05:27 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:05:28 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:28 2021
Terminated at Fri Aug 20 10:20:48 2021
Results reported at Fri Aug 20 10:20:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin416 64.2269 1.088 347155201 347414401 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 :                                   712.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

