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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1081
RA = 157.077, Dec = 31.1389
tmin = 519523201, tmax = 519782401
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='902655', job_status='RUN', time_executed='2021-09-01 23:11:27.767453', time_epoch_executed='1630563087.77' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902655

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902655/ft1_4FGL_J1028.3+3108_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902655/ft2_4FGL_J1028.3+3108_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902655/ft1_4FGL_J1028.3+3108_daily_bin1081.fits outfile=/scratch/kocevski/902655/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1081.fits ra=157.077 dec=31.1389 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.93
user 2.73
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902655/ft2_4FGL_J1028.3+3108_daily_bin1081.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/902655/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1081.fits evtable="EVENTS" outfile="/scratch/kocevski/902655/ft1_filtered_4FGL_J1028.3+3108_daily_bin1081.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902655/ft1_filtered_4FGL_J1028.3+3108_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/902655/ft2_4FGL_J1028.3+3108_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/902655/ltcube_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.fits outfile=/scratch/kocevski/902655/expmap_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.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/902655/ltcube_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.fits
.....................!
real 191.23
user 186.09
sys 4.60

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/902655/ft1_filtered_4FGL_J1028.3+3108_daily_bin1081.fits scfile=/scratch/kocevski/902655/ft2_4FGL_J1028.3+3108_daily_bin1081.fits outfile=/scratch/kocevski/902655/cmap_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902655/ft1_filtered_4FGL_J1028.3+3108_daily_bin1081.fits scfile=/scratch/kocevski/902655/ft2_4FGL_J1028.3+3108_daily_bin1081.fits outfile=/scratch/kocevski/902655/cmap_HighResolution_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/902655/ft1_filtered_4FGL_J1028.3+3108_daily_bin1081.fits', '/scratch/kocevski/902655/ft2_4FGL_J1028.3+3108_daily_bin1081.fits', expMap='/scratch/kocevski/902655/expmap_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.fits', expCube='/scratch/kocevski/902655/ltcube_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/902655/Model_4FGL_J1028.3+3108_daily_bin1081.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/902655/ft1_filtered_4FGL_J1028.3+3108_daily_bin1081.fits
Spacecraft file(s): /scratch/kocevski/902655/ft2_4FGL_J1028.3+3108_daily_bin1081.fits
Exposure map: /scratch/kocevski/902655/expmap_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.fits
Exposure cube: /scratch/kocevski/902655/ltcube_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/902655/Model_4FGL_J1028.3+3108_daily_bin1081.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) = 4861.30304353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3625       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4810       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3924       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4430       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28697E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3779       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.990       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8927       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1585       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82194       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19112E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0611       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.256       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0214       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4459       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    25.411       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85410       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2984       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=   4861.301     FROM MIGRAD    STATUS=CONVERGED   1147 CALLS     4685 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.148        41.134        .63266E-04    .10422E-04
   2  Prefactor     .10000E-03    3.0744        .11910E-02** at limit **
   3  Prefactor     1.3637        40.932        .37402E-03    .25046E-04
   4  Prefactor     1.4812        3.5673        .18870E-03   -.70489E-04
   5  norm          3.3931        5.9300        .10891E-02    .12408E-03
   6  Prefactor     1.4449        11.980        .29698E-03   -.87281E-04
   7  Prefactor     .10000E-03    215.39        .69374E-02** at limit **
   8  Prefactor     6.3758        8.5942        .15022E-03   -.16370E-03
   9  norm          .10000E-03    3.2267        .12224E-02** at limit **
  10  Prefactor     38.999        64.911        .64190E-04    .12398E-05
  11  Prefactor     .10000E-03    35.951        .18142E-02** at limit **
  12  Prefactor     2.8908        4.2954        .16769E-03   -.72134E-04
  13  Prefactor     1.1546        4.9978        .29143E-03   -.97134E-05
  14  Prefactor     .10000E-03    7.5839        .18142E-02** at limit **
  15  Prefactor     .10000E-03    24.936        .18142E-02** at limit **
  16  Prefactor     .82246        2.6346        .18876E-03    .44147E-04
  17  Prefactor     .10000E-03    36.793        .32897E-02** at limit **
  18  Prefactor     .10000E-03    13.275        .18142E-02** at limit **
  19  Prefactor     4.0607        6.8067        .20008E-03   -.16080E-04
  20  Prefactor     15.257        12.077        .10254E-03   -.21286E-04
  21  norm          1.0215        .33464        .22051E-04   -.38513E-03
  22  Prefactor     .10000E-03    1.3961        .15887E-03** at limit **
  23  Prefactor     9.4481        15.077        .13039E-03   -.20751E-04
  24  Prefactor     .10000E-03    5.0711        .15332E-02** at limit **
  25  norm          25.414        20.451        .79467E-04   -.14163E-04
  26  Normalizat    .85393        .24317        .26126E-03   -.11423E-03
  27  Prefactor     1.2984        .26706        .26018E-03   -.70663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.1481
  Prefactor  = 0.0001
  Prefactor  = 1.36375
  Prefactor  = 1.48115
  norm       = 3.39308
  Prefactor  = 1.44491
  Prefactor  = 0.000100002
  Prefactor  = 6.37576
  norm       = 0.0001
  Prefactor  = 38.9989
  Prefactor  = 0.000100002
  Prefactor  = 2.89084
  Prefactor  = 1.15459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.822461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0607
  Prefactor  = 15.2573
  norm       = 1.02146
  Prefactor  = 0.0001
  Prefactor  = 9.44809
  Prefactor  = 0.0001
  norm       = 25.4137
  Normalizat = 0.853932
  Prefactor  = 1.29844
 **********
 **   18 **HESSE 
 **********

 FCN=   4861.301     FROM HESSE     STATUS=OK           462 CALLS     5147 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.148        41.140        .25307E-05   -1.4440    
   2  Prefactor     .10000E-03    3.0746        .23820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3637        40.807        .14961E-04   -1.5474    
   4  Prefactor     1.4812        3.5658        .75480E-05   -1.5465    
   5  norm          3.3931        5.9286        .43565E-04   -1.5340    
   6  Prefactor     1.4449        11.818        .11879E-04   -1.5468    
   7  Prefactor     .10000E-03    221.47        .27750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3758        8.5441        .60087E-05   -1.5203    
   9  norm          .10000E-03    3.2268        .24448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.999        64.860        .25676E-05   -1.4458    
  11  Prefactor     .10000E-03    35.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8908        4.2945        .67077E-05   -1.5368    
  13  Prefactor     1.1546        4.9920        .11657E-04   -1.5493    
  14  Prefactor     .10000E-03    7.5890        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .82246        2.6333        .75504E-05   -1.5527    
  17  Prefactor     .10000E-03    37.167        .65794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0607        6.8043        .80032E-05   -1.5305    
  20  Prefactor     15.257        12.076        .41018E-05   -1.4927    
  21  norm          1.0215        .33464        .88203E-06   -1.5506    
  22  Prefactor     .10000E-03    1.3961        .31775E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.4481        15.076        .52158E-05   -1.5093    
  24  Prefactor     .10000E-03    5.0711        .30663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          25.414        20.448        .31787E-05   -1.4699    
  26  Normalizat    .85393        .24304        .10450E-04   -.98098    
  27  Prefactor     1.2984        .26727        .52037E-04   -.83353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71174e-10
Minuit parameter uncertainties:
  1  41.169
  2  9.82942e-06
  3  14.9304
  4  3.56635
  5  5.92967
  6  8.26664
  7  0.00125817
  8  8.54573
  9  7.48851e-06
  10  64.9776
  11  0.000579525
  12  4.29494
  13  4.80203
  14  1.56213e-05
  15  0.000103938
  16  2.63364
  17  1.72659e-05
  18  1.85291e-06
  19  6.80564
  20  12.0784
  21  0.334637
  22  3.85139e-06
  23  15.0822
  24  1.71097e-06
  25  20.4535
  26  0.243346
  27  0.267549
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.900e+01  6.498e+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:  1.298e+00  2.675e-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.539e-01  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902655/likelihoodResults_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.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) = 4861.27456496
delta logL = 0.0266379218483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4861.26466279
delta logL = 0.036540089437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.679       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5031       1.0000          .0000       10.000    
     3 'Normalizat'    .84642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3022       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=   4861.265     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      277 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.671        71.527        .73543E-04    .50828E-04
   2  Index         2.5040        1.1382        .79592E-02    .22707E-04
   3  Normalizat    .84602        .22196        .26236E-03   -.38667E-03
   4  Prefactor     1.3026        .26437        .25982E-03   -.48776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.6713
  Index      = 2.50396
  Normalizat = 0.846023
  Prefactor  = 1.30263
 **********
 **   18 **HESSE 
 **********

 FCN=   4861.265     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.671        62.571        .14709E-04   -1.4618    
   2  Index         2.5040        .99638        .31837E-03   -.52269    
   3  Normalizat    .84602        .22167        .52472E-04   -.98384    
   4  Prefactor     1.3026        .26417        .51963E-04   -.83229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22805e-10
Minuit parameter uncertainties:
  1  62.7096
  2  1.00538
  3  0.221904
  4  0.264445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902655': 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) = 4861.26466081
delta logL = 0.0365420762046

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  2.967e+01  6.271e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.504e+00  1.005e+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:  1.303e+00  2.644e-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.460e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
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/902655/cmap_HighResolution_519523201_519782401_4FGL_J1028.3+3108_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-01 23:23:58.855733', job_id='902655', GAL2='1.30', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630563838.86', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='3.65e-02', ts2='0.58', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1081' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:23:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 902655: <4FGL_J1028.3+3108_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1081> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:10:23 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:10:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 23:10:57 2021
Terminated at Wed Sep  1 23:23:59 2021
Results reported at Wed Sep  1 23:23:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1081 157.077 31.1389 519523201 519782401 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 :                                   746.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            816 sec.

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

