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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1615
RA = 157.077, Dec = 31.1389
tmin = 657936001, tmax = 658195201
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='295836', job_status='RUN', time_executed='2021-12-07 21:05:31.661875', time_epoch_executed='1638939931.66' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/295836

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/295836/ft1_4FGL_J1028.3+3108_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/295836/ft1_4FGL_J1028.3+3108_daily_bin1615.fits outfile=/scratch/kocevski/295836/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1615.fits ra=157.077 dec=31.1389 rad=12.0 tmin=657936001.0 tmax=658195201.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.11
user 3.88
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.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/295836/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/295836/ltcube_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.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/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits
.....................!
real 14.49
user 14.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/295836/ltcube_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.fits outfile=/scratch/kocevski/295836/expmap_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.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/295836/ltcube_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.fits
.....................!
real 191.68
user 186.44
sys 4.73

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1028.3+3108 @ 157.077 31.1389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.fits scfile=/scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits outfile=/scratch/kocevski/295836/cmap_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.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=157.077 yref=31.1389 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.54
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.fits scfile=/scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits outfile=/scratch/kocevski/295836/cmap_HighResolution_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.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=157.077 yref=31.1389 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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/295836/Model_4FGL_J1028.3+3108_daily_bin1615.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/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.fits.....................!
real 47.08
user 45.72
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.fits', '/scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits', expMap='/scratch/kocevski/295836/expmap_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.fits', expCube='/scratch/kocevski/295836/ltcube_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/295836/Model_4FGL_J1028.3+3108_daily_bin1615.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1028.3+3108'

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/295836/ft1_filtered_4FGL_J1028.3+3108_daily_bin1615.fits
Spacecraft file(s): /scratch/kocevski/295836/ft2_4FGL_J1028.3+3108_daily_bin1615.fits
Exposure map: /scratch/kocevski/295836/expmap_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.fits
Exposure cube: /scratch/kocevski/295836/ltcube_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/295836/Model_4FGL_J1028.3+3108_daily_bin1615.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) = 5254.38717683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4949       1.0000         .10000E-03   10000.    
     5 'norm      '    23.547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14346E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30551E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1981       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1072       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.429       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9126       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2398       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4647       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.076       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.122       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84098       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5254.269     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     2826 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.122        20.480       -.57636E-06   -.50152E-04
   2  Prefactor     .10000E-03    5.3454       -.32962E-06** at limit **
   3  Prefactor     .10000E-03    5.3485        .48351E-06** at limit **
   4  Prefactor     1.4953        1.8507        .61209E-07   -.11538E-03
   5  norm          23.549        9.9501       -.48859E-06   -.32113E-03
   6  Prefactor     4.9860        3.4978       -.87277E-08   -.27517E-04
   7  Prefactor     .10002E-03    120.79       -.10221E-04** at limit **
   8  Prefactor     .10000E-03    1.6959        .11974E-07** at limit **
   9  norm          .10000E-03    4.2058        .14817E-07** at limit **
  10  Prefactor     5.8651        20.585       -.26749E-06   -.20744E-04
  11  Prefactor     .10000E-03    10.025       -.65786E-06** at limit **
  12  Prefactor     .10000E-03    1.6163        .21217E-07** at limit **
  13  Prefactor     .10000E-03    2.3994       -.29635E-07** at limit **
  14  Prefactor     4.7576        4.9727        .21306E-05   -.23236E-02
  15  Prefactor     .10000E-03    9.0987        .68534E-06** at limit **
  16  Prefactor     1.1991        1.9195       -.12311E-06   -.15640E-03
  17  Prefactor     12.544        16.049       -.17318E-05   -.36166E-03
  18  Prefactor     3.0857        27.232        .10954E-04    .24956E-03
  19  Prefactor     29.432        20.476       -.16072E-06   -.31749E-03
  20  Prefactor     2.9148        11.140       -.14128E-05   -.18698E-03
  21  norm          1.2398        .31424        .17893E-07    .34513E-04
  22  Prefactor     4.4655        2.6128        .85429E-07    .34442E-04
  23  Prefactor     10.078        11.755       -.10693E-05   -.26012E-03
  24  Prefactor     .10000E-03    5.9850       -.17311E-06** at limit **
  25  norm          14.124        10.633       -.75855E-06   -.30948E-03
  26  Normalizat    .84077        .16411       -.91528E-07    .56194E-04
  27  Prefactor     .84445        .18741       -.11026E-06    .38018E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49526
  norm       = 23.5485
  Prefactor  = 4.98603
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.86506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75764
  Prefactor  = 0.0001
  Prefactor  = 1.19905
  Prefactor  = 12.5435
  Prefactor  = 3.08568
  Prefactor  = 29.4322
  Prefactor  = 2.91475
  norm       = 1.23983
  Prefactor  = 4.46547
  Prefactor  = 10.0778
  Prefactor  = 0.0001
  norm       = 14.124
  Normalizat = 0.840774
  Prefactor  = 0.844447
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.269     FROM HESSE     STATUS=OK           490 CALLS     3316 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.122        20.514        .12596E-03   -1.5072    
   2  Prefactor     .10000E-03    5.5238        .32699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3779        .16372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4953        1.8294        .10513E-03   -1.5463    
   5  norm          23.549        9.9686        .82547E-04   -1.4737    
   6  Prefactor     4.9860        3.5038        .10791E-03   -1.5261    
   7  Prefactor     .10002E-03    126.42        .41011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7084        .92071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.2251        .14515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8651        20.582        .16587E-03   -1.5224    
  11  Prefactor     .10000E-03    10.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6281        .89966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7674        .21785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7576        6.5144        .92245E-03   -1.5272    
  15  Prefactor     .10000E-03    9.1102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1991        1.8745        .11837E-03   -1.5489    
  17  Prefactor     12.544        16.012        .11311E-03   -1.4999    
  18  Prefactor     3.0857        28.684        .23004E-03   -1.5357    
  19  Prefactor     29.432        20.471        .73855E-04   -1.4622    
  20  Prefactor     2.9148        11.163        .23806E-03   -1.5366    
  21  norm          1.2398        .31499        .19528E-04   -1.5485    
  22  Prefactor     4.4655        2.5992        .82098E-04   -1.5285    
  23  Prefactor     10.078        11.823        .12623E-03   -1.5073    
  24  Prefactor     .10000E-03    6.0007        .17316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.124        10.672        .10659E-03   -1.4956    
  26  Normalizat    .84077        .19012        .22530E-03   -.98574    
  27  Prefactor     .84445        .21632        .26498E-03   -.98110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88104e-09
Minuit parameter uncertainties:
  1  20.528
  2  1.22319e-05
  3  2.97152e-05
  4  1.82947
  5  9.96928
  6  3.50397
  7  0.00281503
  8  1.50229e-07
  9  2.3134e-06
  10  20.6064
  11  6.04648e-05
  12  8.01061e-07
  13  1.00666e-05
  14  6.51534
  15  5.84131e-05
  16  1.87455
  17  16.0173
  18  18.8276
  19  20.4754
  20  11.1712
  21  0.314992
  22  2.59927
  23  11.8262
  24  6.29196e-06
  25  10.6731
  26  0.190266
  27  0.216543
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  5.865e+00  2.061e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.444e-01  2.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.408e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 4.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/295836/likelihoodResults_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.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) = 5254.26871578
delta logL = 0.000132946428494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5254.26865091
delta logL = 0.000197814787498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1663       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2042       1.0000          .0000       10.000    
     3 'Normalizat'    .84084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   5254.269     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      263 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1760        31.772        .16167E-03    .43391E-03
   2  Index         2.1978        1.8456        .87085E-02    .30314E-03
   3  Normalizat    .84086        .18137        .22529E-03   -.96062E-03
   4  Prefactor     .84438        .21505        .26499E-03   -.69512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.17596
  Index      = 2.19783
  Normalizat = 0.840864
  Prefactor  = 0.844377
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.269     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1760        27.970        .32334E-04   -1.5211    
   2  Index         2.1978        1.7399        .34834E-03   -.59491    
   3  Normalizat    .84086        .18150        .45057E-04   -.98570    
   4  Prefactor     .84438        .21521        .52999E-04   -.98113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36175e-08
Minuit parameter uncertainties:
  1  26.3064
  2  1.79561
  3  0.181634
  4  0.215426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/295836': 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) = 5254.26864132
delta logL = 0.000207407604648

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  6.176e+00  2.631e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.198e+00  1.796e+00  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.444e-01  2.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.409e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 157.077 31.139

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/295836/cmap_HighResolution_657936001_658195201_4FGL_J1028.3+3108_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2021-12-07 21:16:47.373313', job_id='295836', GAL2='0.84', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1638940607.37', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.07e-04', ts2='0.10', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1615' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:16:47 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 295836: <4FGL_J1028.3+3108_daily_bin1615> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1615> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 21:00:18 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:01:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:01:26 2021
Terminated at Tue Dec  7 21:16:48 2021
Results reported at Tue Dec  7 21:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1615 157.077 31.1389 657936001 658195201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1028.3+3108 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            990 sec.

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

