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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1156
RA = 157.077, Dec = 31.1389
tmin = 538963201, tmax = 539222401
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='902764', job_status='RUN', time_executed='2021-09-01 23:14:32.865245', time_epoch_executed='1630563272.87' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902764/ft1_4FGL_J1028.3+3108_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902764/ft2_4FGL_J1028.3+3108_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902764/ft1_4FGL_J1028.3+3108_daily_bin1156.fits outfile=/scratch/kocevski/902764/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1156.fits ra=157.077 dec=31.1389 rad=12.0 tmin=538963201.0 tmax=539222401.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.67
user 4.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902764/ft2_4FGL_J1028.3+3108_daily_bin1156.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/902764/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1156.fits evtable="EVENTS" outfile="/scratch/kocevski/902764/ft1_filtered_4FGL_J1028.3+3108_daily_bin1156.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902764/ft1_filtered_4FGL_J1028.3+3108_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/902764/ft2_4FGL_J1028.3+3108_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/902764/ltcube_538963201_539222401_4FGL_J1028.3+3108_daily_bin1156.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/902764/ft2_4FGL_J1028.3+3108_daily_bin1156.fits
.....................!
real 13.41
user 12.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902764/ft1_filtered_4FGL_J1028.3+3108_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/902764/ft2_4FGL_J1028.3+3108_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/902764/ltcube_538963201_539222401_4FGL_J1028.3+3108_daily_bin1156.fits outfile=/scratch/kocevski/902764/expmap_538963201_539222401_4FGL_J1028.3+3108_daily_bin1156.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/902764/ltcube_538963201_539222401_4FGL_J1028.3+3108_daily_bin1156.fits
.....................!
real 192.71
user 186.06
sys 4.44

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/902764/ft1_filtered_4FGL_J1028.3+3108_daily_bin1156.fits scfile=/scratch/kocevski/902764/ft2_4FGL_J1028.3+3108_daily_bin1156.fits outfile=/scratch/kocevski/902764/cmap_538963201_539222401_4FGL_J1028.3+3108_daily_bin1156.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902764/ft1_filtered_4FGL_J1028.3+3108_daily_bin1156.fits scfile=/scratch/kocevski/902764/ft2_4FGL_J1028.3+3108_daily_bin1156.fits outfile=/scratch/kocevski/902764/cmap_HighResolution_538963201_539222401_4FGL_J1028.3+3108_daily_bin1156.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.707       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94689       1.0000         .10000E-03   10000.    
     5 'norm      '    7.3992       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15454E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.640       1.0000         .10000E-03   10000.    
     9 'norm      '    21.181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.9092       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.064       1.0000         .10000E-03   10000.    
    25 'norm      '    24.561       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93757       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .63283       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=   3043.340     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3254 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.707        32.011        .90491E-06    .66159E-05
   2  Prefactor     .10000E-03    12.692       -.96464E-06** at limit **
   3  Prefactor     .10000E-03    5.7476       -.79319E-07** at limit **
   4  Prefactor     .94540        2.6268       -.47114E-06   -.57465E-03
   5  norm          7.3982        9.6184       -.17494E-08   -.41177E-04
   6  Prefactor     .10003E-03    5.4582       -.58365E-07** at limit **
   7  Prefactor     .10000E-03    89.712       -.12806E-05** at limit **
   8  Prefactor     10.634        8.6215        .38210E-06   -.50092E-04
   9  norm          21.194        15.039       -.28304E-05    .61507E-06
  10  Prefactor     21.303        77.399        .17415E-04    .12123E-05
  11  Prefactor     .10000E-03    15.259        .25024E-05** at limit **
  12  Prefactor     7.5022        5.8569       -.17616E-05   -.18208E-04
  13  Prefactor     .10000E-03    2.5769       -.91111E-08** at limit **
  14  Prefactor     14.532        10.416       -.68518E-06   -.96466E-03
  15  Prefactor     24.578        37.323        .42243E-05   -.12165E-05
  16  Prefactor     .10000E-03    .80799        .11986E-09** at limit **
  17  Prefactor     .10000E-03    3.2971       -.38936E-08** at limit **
  18  Prefactor     .10000E-03    11.806       -.43626E-06** at limit **
  19  Prefactor     .10000E-03    3.5589       -.11510E-07** at limit **
  20  Prefactor     .10000E-03    15.491        .19710E-05** at limit **
  21  norm          3.9093        .77523       -.12653E-08    .43998E-03
  22  Prefactor     .10000E-03    1.2982       -.19365E-07** at limit **
  23  Prefactor     .10000E-03    19.338       -.61513E-05** at limit **
  24  Prefactor     20.065        22.643        .86782E-07    .24500E-04
  25  norm          24.564        24.530        .86789E-06    .26265E-04
  26  Normalizat    .93768        .21888        .40363E-08    .46056E-04
  27  Prefactor     .63268        .23663       -.55257E-06    .23995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.945399
  norm       = 7.39816
  Prefactor  = 0.000100031
  Prefactor  = 0.000100002
  Prefactor  = 10.6338
  norm       = 21.1941
  Prefactor  = 21.3025
  Prefactor  = 0.0001
  Prefactor  = 7.50225
  Prefactor  = 0.0001
  Prefactor  = 14.5323
  Prefactor  = 24.5781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.90928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.065
  norm       = 24.5636
  Normalizat = 0.937684
  Prefactor  = 0.632682
 **********
 **   18 **HESSE 
 **********

 FCN=   3043.340     FROM HESSE     STATUS=OK           488 CALLS     3742 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.707        32.009        .85971E-04   -1.4776    
   2  Prefactor     .10000E-03    13.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7585        .12914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94540        2.5869        .14099E-03   -1.5514    
   5  norm          7.3982        9.6148        .14744E-03   -1.5164    
   6  Prefactor     .10003E-03    23.121        .20727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    90.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.634        7.5021        .11623E-03   -1.5056    
   9  norm          21.194        15.012        .87030E-04   -1.4787    
  10  Prefactor     21.303        76.656        .86800E-04   -1.4785    
  11  Prefactor     .10000E-03    15.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5022        5.8489        .11197E-03   -1.5160    
  13  Prefactor     .10000E-03    2.5883        .86468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.532        10.711        .52532E-03   -1.4945    
  15  Prefactor     24.578        37.174        .80807E-04   -1.4716    
  16  Prefactor     .10000E-03    .80977        .48414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2996        .97830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5593        .10165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.9093        .77802        .20603E-04   -1.5313    
  22  Prefactor     .10000E-03    1.3056        .61370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.065        22.692        .89418E-04   -1.4812    
  25  norm          24.564        24.505        .80828E-04   -1.4716    
  26  Normalizat    .93768        .25645        .21811E-03   -.95148    
  27  Prefactor     .63268        .27503        .29800E-03   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41479e-09
Minuit parameter uncertainties:
  1  32.0342
  2  2.59319e-05
  3  1.1927e-06
  4  2.58719
  5  9.61682
  6  0.0016853
  7  0.000808209
  8  7.50272
  9  15.0146
  10  77.0136
  11  7.34344e-06
  12  5.84932
  13  1.09063e-06
  14  10.7128
  15  37.209
  16  6.6664e-07
  17  1.79013e-06
  18  3.62475e-06
  19  6.96979e-07
  20  1.24707e-05
  21  0.778018
  22  3.01691e-07
  23  5.58014e-06
  24  22.7014
  25  24.515
  26  0.256782
  27  0.27562
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  2.130e+01  7.701e+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:  6.327e-01  2.756e-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:  9.377e-01  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/902764/likelihoodResults_538963201_539222401_4FGL_J1028.3+3108_daily_bin1156.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) = 3042.99415864
delta logL = 0.346258676192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3042.98559346
delta logL = 0.354823862472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50519       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3550       1.0000          .0000       10.000    
     3 'Normalizat'    .88487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67363       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=   3042.986     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      318 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49982        14.766        .10622E-01    .67652E-03
   2  Index         4.3591        3.0893        .85959E-01    .11017E-03
   3  Normalizat    .88495        .48775E-01    .44708E-01    .86473E-05
   4  Prefactor     .67362        .55944E-01    .65420E-01    .12187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.499823
  Index      = 4.3591
  Normalizat = 0.884952
  Prefactor  = 0.673624
 **********
 **   18 **HESSE 
 **********

 FCN=   3042.986     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      353 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49982        38.845        .48823E-03   -1.5567    
   2  Index         4.3591        7.1713        .42712E-02   -.12853    
   3  Normalizat    .88495        .17983        .22366E-03   -.96991    
   4  Prefactor     .67362        .20345        .28945E-03   -1.0457    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19989e-10
Minuit parameter uncertainties:
  1  8.81768
  2  6.74804
  3  0.179948
  4  0.20367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902764': 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): 102
logL (Free Index) = 3042.98559241
delta logL = 0.35482491419

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.998e-01  8.818e+00  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  4.359e+00  6.748e+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:  6.736e-01  2.037e-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.850e-01  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/902764/cmap_HighResolution_538963201_539222401_4FGL_J1028.3+3108_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-01 23:24:07.863368', job_id='902764', GAL2='0.67', fit_tolerance='1e-08', EG2='0.88', EG='0.94', time_epoch_completed='1630563847.86', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.55e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1156' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:24:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 902764: <4FGL_J1028.3+3108_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1156> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:10:31 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:12:21 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:12:21 2021
Terminated at Wed Sep  1 23:24:08 2021
Results reported at Wed Sep  1 23:24:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1156 157.077 31.1389 538963201 539222401 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 :                                   547.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            817 sec.

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

