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


Performing analysis on: 4FGL_J1926.8+6154_daily_bin974
RA = 291.71, Dec = 61.9146
tmin = 491788801, tmax = 492048001
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='938841', job_status='RUN', time_executed='2021-09-22 23:36:35.823399', time_epoch_executed='1632378995.82' WHERE source_name='4FGL J1926.8+6154' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938841

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938841/ft1_4FGL_J1926.8+6154_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938841/ft1_4FGL_J1926.8+6154_daily_bin974.fits outfile=/scratch/kocevski/938841/ft1_filteredMKT_4FGL_J1926.8+6154_daily_bin974.fits ra=291.71 dec=61.9146 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.09
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.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/938841/ft1_filteredMKT_4FGL_J1926.8+6154_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/938841/ltcube_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.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/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits
.....................!
real 16.64
user 16.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/938841/ltcube_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.fits outfile=/scratch/kocevski/938841/expmap_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.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/938841/ltcube_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.fits
.....................!
real 193.56
user 187.39
sys 5.42

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
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 189 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1926.8+6154 @ 291.71 61.9146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.fits scfile=/scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits outfile=/scratch/kocevski/938841/cmap_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.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=291.71 yref=61.9146 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.fits scfile=/scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits outfile=/scratch/kocevski/938841/cmap_HighResolution_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.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=291.71 yref=61.9146 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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938841/Model_4FGL_J1926.8+6154_daily_bin974.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.fits....................!
real 27.41
user 26.00
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.fits', '/scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits', expMap='/scratch/kocevski/938841/expmap_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.fits', expCube='/scratch/kocevski/938841/ltcube_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938841/Model_4FGL_J1926.8+6154_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1926.8+6154'

4FGL J1926.8+6154
   Spectrum: LogParabola
317         norm:  1.803e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.784e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  8.540e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  2.809e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/938841/ft1_filtered_4FGL_J1926.8+6154_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/938841/ft2_4FGL_J1926.8+6154_daily_bin974.fits
Exposure map: /scratch/kocevski/938841/expmap_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.fits
Exposure cube: /scratch/kocevski/938841/ltcube_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938841/Model_4FGL_J1926.8+6154_daily_bin974.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) = 1178.21000507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.819       1.0000         .10000E-03   10000.    
     2 'norm      '    7.8795       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    62.280       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    491.23       1.0000         .10000E-03   10000.    
    12 'norm      '    .11468E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6887       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.231       1.0000         .10000E-03   10000.    
    16 'Prefactor '    81.771       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    131.66       1.0000         .10000E-03   10000.    
    19 'norm      '    4.6485       1.0000         .10000E-03   10000.    
    20 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    123.36       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.415       1.0000         .10000E-03   10000.    
    23 'norm      '    7.8002       1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90643       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1178.174     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3638 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.823        33.320       -.24725E-06   -.24426E-04
   2  norm          7.8801        8.1368        .13338E-06   -.18906E-04
   3  Prefactor     30.190        61.416       -.60100E-06   -.86511E-05
   4  Prefactor     .10000E-03    124.52       -.21106E-05** at limit **
   5  Prefactor     .10000E-03    3.6235        .35983E-10** at limit **
   6  norm          62.282        32.112       -.16090E-06   -.15807E-04
   7  Prefactor     .10000E-03    41.483        .19862E-07** at limit **
   8  Prefactor     48.205        49.578       -.17031E-06   -.10717E-04
   9  Prefactor     .10000E-03    12.602        .71096E-08** at limit **
  10  Prefactor     .10000E-03    230.66        .26429E-05** at limit **
  11  Prefactor     491.47        363.94        .62434E-05   -.37201E-06
  12  norm          .10000E-03    30.132        .50506E-05** at limit **
  13  norm          5.6896        10.363       -.24178E-06   -.68075E-05
  14  norm          .10000E-03    30.307        .42734E-07** at limit **
  15  norm          13.253        143.32       -.33085E-05   -.72985E-05
  16  Prefactor     81.769        77.918       -.16726E-06   -.15544E-04
  17  Prefactor     6.4118        13.100       -.26734E-06   -.21888E-04
  18  Prefactor     131.68        134.31       -.11399E-05   -.92930E-05
  19  norm          4.6493        6.5071        .55778E-08   -.52189E-04
  20  norm          .10000E-03    82.067        .69692E-06** at limit **
  21  norm          123.38        118.01       -.52853E-06   -.10570E-04
  22  Prefactor     18.367        117.84        .13542E-05   -.33734E-05
  23  norm          7.8007        8.3800        .36530E-07   -.15053E-04
  24  norm          .10000E-03    19.538        .19007E-07** at limit **
  25  Normalizat    .10000E-01    .34098        .10086E-04** at limit **
  26  Prefactor     .90652        .13871       -.92809E-06   -.90194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.8233
  norm       = 7.88006
  Prefactor  = 30.1904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 62.2819
  Prefactor  = 0.0001
  Prefactor  = 48.205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 491.469
  norm       = 0.0001
  norm       = 5.68963
  norm       = 0.0001
  norm       = 13.2534
  Prefactor  = 81.7695
  Prefactor  = 6.4118
  Prefactor  = 131.685
  norm       = 4.6493
  norm       = 0.0001
  norm       = 123.383
  Prefactor  = 18.3672
  norm       = 7.80069
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.906516
 **********
 **   18 **HESSE 
 **********

 FCN=   1178.174     FROM HESSE     STATUS=OK           456 CALLS     4094 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.823        33.375        .55187E-04   -1.4253    
   2  norm          7.8801        8.1405        .97150E-04   -1.5146    
   3  Prefactor     30.190        61.494        .72927E-04   -1.4608    
   4  Prefactor     .10000E-03    124.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6244        .63822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          62.282        32.134        .50846E-04   -1.4128    
   7  Prefactor     .10000E-03    41.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.205        49.620        .57750E-04   -1.4318    
   9  Prefactor     .10000E-03    12.603        .11904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    230.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     491.47        364.55        .92539E-04   -1.1237    
  12  norm          .10000E-03    30.079        .20302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6896        10.379        .14426E-03   -1.5231    
  14  norm          .10000E-03    30.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.253        144.59        .11012E-03   -1.4980    
  16  Prefactor     81.769        78.026        .44417E-04   -1.3897    
  17  Prefactor     6.4118        13.133        .15854E-03   -1.5201    
  18  Prefactor     131.68        134.79        .17546E-03   -1.3408    
  19  norm          4.6493        6.5113        .95719E-04   -1.5277    
  20  norm          .10000E-03    82.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          123.38        118.23        .18119E-03   -1.3482    
  22  Prefactor     18.367        118.48        .93333E-04   -1.4851    
  23  norm          7.8007        8.3810        .10031E-03   -1.5149    
  24  norm          .10000E-03    19.540        .14824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .52068        .12106E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .90652        .14444        .14531E-03   -.95914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13545e-11
Minuit parameter uncertainties:
  1  33.3873
  2  8.14162
  3  61.6239
  4  6.55465e-05
  5  6.40204e-06
  6  32.1433
  7  5.68742e-07
  8  49.6624
  9  7.15211e-06
  10  1.05204e-05
  11  366.302
  12  3.23739e-05
  13  10.3826
  14  0.000119607
  15  87.8226
  16  78.1235
  17  13.1384
  18  135.104
  19  6.51231
  20  6.95238e-06
  21  118.452
  22  93.5708
  23  8.38229
  24  2.24924e-05
  25  5.60121e-06
  26  0.144506
Done.

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

Extracting fit parameters...

4FGL J1926.8+6154
   Spectrum: LogParabola
317         norm:  1.000e-04  1.196e-04  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.784e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  8.540e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  2.809e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.065e-01  1.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.000e-02  5.601e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 291.710 61.915
Photon Flux Upper Limit: 3.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938841/likelihoodResults_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.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) = 1178.17451247
delta logL = -0.000163924540402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1178.17435206
delta logL = -3.51643393515e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7520       1.0000          .0000       5.0000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1178.174     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    41.161        .90712E-02** at limit **
   2  alpha         1.7677        3.3783        .43762       -.26072E-05
   3  Normalizat    .10000E-01    .34627        .24400    ** at limit **
   4  Prefactor     .90651        .13700        .32878E-01   -.47208E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76766
  Normalizat = 0.01
  Prefactor  = 0.906514
 **********
 **   18 **HESSE 
 **********

 FCN=   1178.174     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    30.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7677        3.3413        .50000       -.29730    
   3  Normalizat    .10000E-01    .43081        .12111E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90651        .12434        .14531E-03   -.95914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29111e-10
Minuit parameter uncertainties:
  1  0.000188534
  2  2.41844
  3  1.09217e-06
  4  0.124377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938841': 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) = 1178.17434856
delta logL = -1.87146724784e-08

Extracting fit parameters...

4FGL J1926.8+6154
   Spectrum: LogParabola
317         norm:  1.000e-04  1.885e-04  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.768e+00  2.418e+00  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  8.540e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  2.809e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.065e-01  1.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.000e-02  1.092e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 291.710 61.915

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/938841/cmap_HighResolution_491788801_492048001_4FGL_J1926.8+6154_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-04', job_status='DONE', photon_flux_upper_limit='3.77e-07', time_completed='2021-09-22 23:44:04.689998', job_id='938841', GAL2='0.91', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632379444.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='974' AND source_name='4FGL J1926.8+6154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 23:44:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 938841: <4FGL_J1926.8+6154_daily_bin974> in cluster <slac> Done

Job <4FGL_J1926.8+6154_daily_bin974> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep 22 23:33:27 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 23:33:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 22 23:33:53 2021
Terminated at Wed Sep 22 23:44:05 2021
Results reported at Wed Sep 22 23:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1926.8+6154_daily_bin974 291.71 61.9146 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1926.8+6154 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   448.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            638 sec.

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

