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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin180
RA = 157.077, Dec = 31.1389
tmin = 285984001, tmax = 286243201
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='896892', job_status='RUN', time_executed='2021-09-01 22:51:09.910631', time_epoch_executed='1630561869.91' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896892/ft1_4FGL_J1028.3+3108_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896892/ft2_4FGL_J1028.3+3108_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896892/ft1_4FGL_J1028.3+3108_daily_bin180.fits outfile=/scratch/kocevski/896892/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin180.fits ra=157.077 dec=31.1389 rad=12.0 tmin=285984001.0 tmax=286243201.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 3.46
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896892/ft2_4FGL_J1028.3+3108_daily_bin180.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/896892/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin180.fits evtable="EVENTS" outfile="/scratch/kocevski/896892/ft1_filtered_4FGL_J1028.3+3108_daily_bin180.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.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896892/ft1_filtered_4FGL_J1028.3+3108_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/896892/ft2_4FGL_J1028.3+3108_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/896892/ltcube_285984001_286243201_4FGL_J1028.3+3108_daily_bin180.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/896892/ft2_4FGL_J1028.3+3108_daily_bin180.fits
.....................!
real 18.36
user 17.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896892/ft1_filtered_4FGL_J1028.3+3108_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/896892/ft2_4FGL_J1028.3+3108_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/896892/ltcube_285984001_286243201_4FGL_J1028.3+3108_daily_bin180.fits outfile=/scratch/kocevski/896892/expmap_285984001_286243201_4FGL_J1028.3+3108_daily_bin180.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/896892/ltcube_285984001_286243201_4FGL_J1028.3+3108_daily_bin180.fits
.....................!
real 194.97
user 188.62
sys 4.11

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/896892/ft1_filtered_4FGL_J1028.3+3108_daily_bin180.fits scfile=/scratch/kocevski/896892/ft2_4FGL_J1028.3+3108_daily_bin180.fits outfile=/scratch/kocevski/896892/cmap_285984001_286243201_4FGL_J1028.3+3108_daily_bin180.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.57
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896892/ft1_filtered_4FGL_J1028.3+3108_daily_bin180.fits scfile=/scratch/kocevski/896892/ft2_4FGL_J1028.3+3108_daily_bin180.fits outfile=/scratch/kocevski/896892/cmap_HighResolution_285984001_286243201_4FGL_J1028.3+3108_daily_bin180.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.63
user 0.43
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84384E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75350       1.0000         .10000E-03   10000.    
     5 'norm      '    21.788       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50795E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25381E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.324       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8009       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7232       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.165       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2419       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8075       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5160       1.0000         .10000E-03   10000.    
    25 'norm      '    10.260       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3370       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .32654       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=   5711.402     FROM MIGRAD    STATUS=CONVERGED   1163 CALLS     4314 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    240.92        .64010E-02** at limit **
   2  Prefactor     12.396        7.2944        .11377E-03    .18836E-03
   3  Prefactor     2.8002        5.8635        .24313E-03    .15459E-03
   4  Prefactor     .75353        .81698        .68552E-04   -.95026E-04
   5  norm          21.789        9.6087        .85811E-04    .18853E-03
   6  Prefactor     .42162E-01    50.340        .17543E-02    .36622E-04
   7  Prefactor     .10000E-03    12.312        .18142E-02** at limit **
   8  Prefactor     .10000E-03    8.3998        .20103E-02** at limit **
   9  norm          .10000E-03    4.3768        .15379E-02** at limit **
  10  Prefactor     32.350        48.434        .70478E-04   -.25003E-04
  11  Prefactor     .10000E-03    44.576        .18142E-02** at limit **
  12  Prefactor     3.8008        4.3541        .16006E-03    .14773E-03
  13  Prefactor     8.7211        5.0116        .12231E-03    .40767E-03
  14  Prefactor     1.6397        6.2415        .33008E-03    .14083E-03
  15  Prefactor     .10000E-03    59.942        .18142E-02** at limit **
  16  Prefactor     2.0126        2.2361        .11109E-03    .17633E-03
  17  Prefactor     17.165        9.8866        .96672E-04    .13994E-03
  18  Prefactor     .10000E-03    5.4075        .17160E-02** at limit **
  19  Prefactor     .10000E-03    5.5018        .17271E-02** at limit **
  20  Prefactor     1.2426        5.4922        .17223E-02    .10139E-02
  21  norm          1.8075        .35882        .18764E-04    .89790E-03
  22  Prefactor     .10000E-03    .90617        .69703E-03** at limit **
  23  Prefactor     .10000E-03    7.3846        .18142E-02** at limit **
  24  Prefactor     3.5149        11.784        .10780E-02    .17946E-03
  25  norm          10.261        11.374        .12509E-03    .89430E-04
  26  Normalizat    1.3369        .19086        .19076E-03   -.92207E-04
  27  Prefactor     .32655        .20345        .40845E-03   -.33317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100086
  Prefactor  = 12.3956
  Prefactor  = 2.80023
  Prefactor  = 0.753527
  norm       = 21.7892
  Prefactor  = 0.0421618
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 32.3497
  Prefactor  = 0.0001
  Prefactor  = 3.80081
  Prefactor  = 8.72105
  Prefactor  = 1.63965
  Prefactor  = 0.0001
  Prefactor  = 2.0126
  Prefactor  = 17.1651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.24258
  norm       = 1.80748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.5149
  norm       = 10.261
  Normalizat = 1.33688
  Prefactor  = 0.326548
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.402     FROM HESSE     STATUS=OK           464 CALLS     4778 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    250.42        .25604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.396        7.2903        .45508E-05   -1.5004    
   3  Prefactor     2.8002        5.8606        .97253E-05   -1.5373    
   4  Prefactor     .75353        .81697        .27421E-05   -1.5534    
   5  norm          21.789        9.6058        .34324E-05   -1.4774    
   6  Prefactor     .42162E-01    50.719        .70171E-04   -1.5667    
   7  Prefactor     .10000E-03    12.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4157        .40206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.3777        .30758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.350        48.431        .28191E-05   -1.4570    
  11  Prefactor     .10000E-03    44.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8008        4.3521        .64026E-05   -1.5318    
  13  Prefactor     8.7211        5.0103        .48925E-05   -1.5117    
  14  Prefactor     1.6397        6.2361        .13203E-04   -1.5452    
  15  Prefactor     .10000E-03    59.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0126        2.2349        .44436E-05   -1.5424    
  17  Prefactor     17.165        9.8833        .38669E-05   -1.4879    
  18  Prefactor     .10000E-03    5.4076        .34321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5023        .34543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2426        5.4844        .68893E-04   -1.5485    
  21  norm          1.8075        .35858        .75056E-06   -1.5439    
  22  Prefactor     .10000E-03    .90624        .13941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.3857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.5149        11.775        .43120E-04   -1.5333    
  25  norm          10.261        11.369        .50036E-05   -1.5067    
  26  Normalizat    1.3369        .18971        .38152E-04   -.82472    
  27  Prefactor     .32655        .20339        .16338E-04   -1.2074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07857e-09
Minuit parameter uncertainties:
  1  0.00931396
  2  7.29078
  3  5.86185
  4  0.816986
  5  9.60644
  6  2.92368
  7  6.81866e-06
  8  0.000208739
  9  3.61469e-06
  10  48.4898
  11  4.20292e-05
  12  4.35244
  13  5.01057
  14  6.23856
  15  0.000203899
  16  2.23501
  17  9.88423
  18  3.95876e-06
  19  2.31346e-06
  20  5.22161
  21  0.358585
  22  4.05138e-06
  23  1.5118e-05
  24  11.7825
  25  11.3715
  26  0.189805
  27  0.203835
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.235e+01  4.849e+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:  3.265e-01  2.038e-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:  1.337e+00  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/896892/likelihoodResults_285984001_286243201_4FGL_J1028.3+3108_daily_bin180.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) = 5711.38312255
delta logL = 0.0184288274968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5711.37169392
delta logL = 0.0298574537474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.199       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4690       1.0000          .0000       10.000    
     3 'Normalizat'    1.3315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33011       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.

 FCN=   5711.372     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      251 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.199        1227.4        .20357E-02    .97613E-04
   2  Index         2.4681        6.2127        .13953        .10571E-03
   3  Normalizat    1.3314        .56182E-01    .32264E-01    .66391E-05
   4  Prefactor     .33028        .55795E-01    .91661E-01    .36407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.199
  Index      = 2.46814
  Normalizat = 1.33137
  Prefactor  = 0.330277
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.372     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.199        61.100        .81429E-04   -1.4724    
   2  Index         2.4681        1.1790        .81226E-02   -.53097    
   3  Normalizat    1.3314        .18183        .19110E-03   -.82635    
   4  Prefactor     .33028        .20147        .40625E-03   -1.2053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9673e-11
Minuit parameter uncertainties:
  1  61.2591
  2  1.19419
  3  0.181921
  4  0.201899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896892': 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) = 5711.37169257
delta logL = 0.0298587986345

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  2.420e+01  6.126e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.468e+00  1.194e+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:  3.303e-01  2.019e-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:  1.331e+00  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/896892/cmap_HighResolution_285984001_286243201_4FGL_J1028.3+3108_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-09-01 23:05:22.532754', job_id='896892', GAL2='0.33', fit_tolerance='1e-08', EG2='1.33', EG='1.34', time_epoch_completed='1630562722.53', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.33', dlogl='2.99e-02', ts2='0.63', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='180' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:05:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 896892: <4FGL_J1028.3+3108_daily_bin180> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin180> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:50:26 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:50:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 22:50:51 2021
Terminated at Wed Sep  1 23:05:22 2021
Results reported at Wed Sep  1 23:05:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin180 157.077 31.1389 285984001 286243201 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 :                                   841.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            896 sec.

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

