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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin333
RA = 64.2269, Dec = 1.088
tmin = 325641601, tmax = 325900801
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='346509', job_status='RUN', time_executed='2021-08-20 10:07:26.308566', time_epoch_executed='1629479246.31' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346509/ft1_4FGL_J0416.9+0105_daily_bin333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346509/ft2_4FGL_J0416.9+0105_daily_bin333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346509/ft1_4FGL_J0416.9+0105_daily_bin333.fits outfile=/scratch/kocevski/346509/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin333.fits ra=64.2269 dec=1.088 rad=12.0 tmin=325641601.0 tmax=325900801.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.32
user 3.84
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346509/ft1_filtered_4FGL_J0416.9+0105_daily_bin333.fits" evtable="EVENTS" scfile=/scratch/kocevski/346509/ft2_4FGL_J0416.9+0105_daily_bin333.fits sctable="SC_DATA" outfile=/scratch/kocevski/346509/ltcube_325641601_325900801_4FGL_J0416.9+0105_daily_bin333.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/346509/ft2_4FGL_J0416.9+0105_daily_bin333.fits
.....................!
real 13.89
user 13.20
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346509/ft1_filtered_4FGL_J0416.9+0105_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/346509/ft2_4FGL_J0416.9+0105_daily_bin333.fits sctable="SC_DATA" expcube=/scratch/kocevski/346509/ltcube_325641601_325900801_4FGL_J0416.9+0105_daily_bin333.fits outfile=/scratch/kocevski/346509/expmap_325641601_325900801_4FGL_J0416.9+0105_daily_bin333.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/346509/ltcube_325641601_325900801_4FGL_J0416.9+0105_daily_bin333.fits
.....................!
real 191.62
user 186.38
sys 4.50

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/346509/ft1_filtered_4FGL_J0416.9+0105_daily_bin333.fits scfile=/scratch/kocevski/346509/ft2_4FGL_J0416.9+0105_daily_bin333.fits outfile=/scratch/kocevski/346509/cmap_325641601_325900801_4FGL_J0416.9+0105_daily_bin333.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.77
user 0.38
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346509/ft1_filtered_4FGL_J0416.9+0105_daily_bin333.fits scfile=/scratch/kocevski/346509/ft2_4FGL_J0416.9+0105_daily_bin333.fits outfile=/scratch/kocevski/346509/cmap_HighResolution_325641601_325900801_4FGL_J0416.9+0105_daily_bin333.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.82
user 0.40
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5973       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7027       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.699       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8792       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1605       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9789       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4009       1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.636       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .76462       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.556       1.0000         .10000E-03   10000.    
    17 'norm      '    .87753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.522       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6606       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0034       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0560       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=   8284.721     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2413 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5971        2.0148        .20378E-06   -.48892E-04
   2  Prefactor     1.6181        236.53       -.17543E-04    .35047E-05
   3  Prefactor     .10000E-03    7.2345       -.44336E-06** at limit **
   4  norm          23.643        22.121       -.14034E-05   -.34147E-04
   5  Prefactor     63.705        38.728        .27505E-06   -.38433E-04
   6  norm          .10000E-03    4.6048       -.23763E-07** at limit **
   7  Prefactor     7.8748        31.484        .47899E-05    .21987E-04
   8  norm          1.1621        23.000        .17143E-05   -.34621E-04
   9  norm          .10000E-03    7.9451        .79078E-06** at limit **
  10  norm          .10000E-03    .83939        .38495E-06** at limit **
  11  Prefactor     3.9798        2.0787       -.20806E-06   -.48432E-03
  12  Prefactor     9.3722        28.678       -.23525E-05    .78868E-05
  13  Prefactor     55.662        44.943        .15353E-05   -.80401E-04
  14  Prefactor     .10000E-03    9.9164       -.20716E-06** at limit **
  15  norm          .76598        2.8650        .94222E-06   -.92818E-04
  16  Prefactor     37.548        37.793       -.85971E-06   -.61105E-05
  17  norm          .87668        2.3655        .92595E-06   -.17984E-03
  18  Prefactor     .10000E-03    5.7606       -.15874E-09** at limit **
  19  Prefactor     10.516        25.962        .49200E-06   -.10954E-05
  20  norm          4.6605        2.6224        .64254E-07   -.12728E-03
  21  Normalizat    1.0034        .25209       -.41093E-05   -.74928E-04
  22  Prefactor     1.0560        .90717E-01   -.24326E-06   -.26743E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.59714
  Prefactor  = 1.61812
  Prefactor  = 0.0001
  norm       = 23.643
  Prefactor  = 63.7052
  norm       = 0.0001
  Prefactor  = 7.87479
  norm       = 1.16207
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.97975
  Prefactor  = 9.37217
  Prefactor  = 55.6622
  Prefactor  = 0.0001
  norm       = 0.765981
  Prefactor  = 37.5481
  norm       = 0.876676
  Prefactor  = 0.0001
  Prefactor  = 10.5164
  norm       = 4.66053
  Normalizat = 1.00343
  Prefactor  = 1.05605
 **********
 **   18 **HESSE 
 **********

 FCN=   8284.721     FROM HESSE     STATUS=OK           346 CALLS     2759 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5971        2.0144        .91876E-04   -1.5329    
   2  Prefactor     1.6181        239.83        .32232E-03   -1.5454    
   3  Prefactor     .10000E-03    7.2385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.643        22.154        .82384E-04   -1.4735    
   5  Prefactor     63.705        38.687        .50280E-04   -1.4110    
   6  norm          .10000E-03    4.7141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8748        31.668        .14285E-03   -1.5147    
   8  norm          1.1621        24.061        .42776E-03   -1.5492    
   9  norm          .10000E-03    7.9547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.8066        .15553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9798        2.0657        .86980E-04   -1.5309    
  12  Prefactor     9.3722        28.477        .13071E-03   -1.5096    
  13  Prefactor     55.662        44.247        .53779E-04   -1.4214    
  14  Prefactor     .10000E-03    10.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .76598        4.1274        .22670E-02   -1.5533    
  16  Prefactor     37.548        37.800        .65400E-04   -1.4482    
  17  norm          .87668        2.3748        .21209E-03   -1.5521    
  18  Prefactor     .10000E-03    5.8276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.516        25.938        .12352E-03   -1.5059    
  20  norm          4.6605        2.6189        .10609E-03   -1.5276    
  21  Normalizat    1.0034        .27340        .42915E-03   -.92916    
  22  Prefactor     1.0560        .10118        .16417E-03   -.90884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68525e-08
Minuit parameter uncertainties:
  1  2.01441
  2  39.5601
  3  1.7784e-05
  4  22.1615
  5  38.702
  6  2.09168e-05
  7  31.6124
  8  10.58
  9  8.69889e-06
  10  2.03046e-05
  11  2.06569
  12  28.5184
  13  44.2733
  14  2.39055e-05
  15  3.55627
  16  37.8241
  17  2.37501
  18  1.82896e-05
  19  25.9655
  20  2.61893
  21  0.273782
  22  0.101202
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  6.371e+01  3.870e+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.056e+00  1.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.003e+00  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.59
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 6.45e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 6.19e-05 +/- 3.76e-05

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) = 8284.52407613
delta logL = 0.197280592503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8284.51973438
delta logL = 0.201622334118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.450       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1531       1.0000          .0000       10.000    
     3 'Normalizat'    .98347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0580       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=   8284.520     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      315 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.427        45.857        .60134E-04    .86739E-04
   2  Index         2.1534        .49848        .47687E-02    .82541E-03
   3  Normalizat    .98319        .25142        .43281E-03    .12062E-03
   4  Prefactor     1.0581        .97977E-01    .16397E-03   -.63650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.4271
  Index      = 2.15343
  Normalizat = 0.983189
  Prefactor  = 1.05812
 **********
 **   18 **HESSE 
 **********

 FCN=   8284.520     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.427        41.805        .12027E-04   -1.4374    
   2  Index         2.1534        .45419        .95373E-03   -.60567    
   3  Normalizat    .98319        .25087        .17313E-04   -.93596    
   4  Prefactor     1.0581        .97956E-01    .65586E-05   -.90817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08107e-10
Minuit parameter uncertainties:
  1  41.8326
  2  0.45512
  3  0.251166
  4  0.0979726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346509': 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) = 8284.51973356
delta logL = 0.201623156003

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.443e+01  4.183e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.153e+00  4.551e-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.058e+00  9.797e-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.832e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.15 +/- 0.46
Photon Flux (Free Index): 9.34e-08 +/- 7.01e-08
Energy Flux (Free Index): 4.59e-05 +/- 3.19e-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/346509/cmap_HighResolution_325641601_325900801_4FGL_J0416.9+0105_daily_bin333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.45e-08', energy_flux2='4.59e-05', photon_flux_error='3.92e-08', dlogl='2.02e-01', energy_flux='6.19e-05', photon_flux2='9.34e-08', job_status='DONE', time_completed='2021-08-20 10:18:19.624316', photon_index_error2='0.46', photon_index2='2.15', ts='5.59', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.19e-05', EG='1.00', time_epoch_completed='1629479899.62', return_code='0', job_id='346509', GAL2='1.06', EG2='0.98', return_code2='0', energy_flux_error='3.76e-05', photon_flux_error2='7.01e-08', ts2='6.00', photon_index='1.88' WHERE bin_id='333' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:18:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 346509: <4FGL_J0416.9+0105_daily_bin333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin333 64.2269 1.088 325641601 325900801 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 :                                   655.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

