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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1143
RA = 157.077, Dec = 31.1389
tmin = 535593601, tmax = 535852801
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='902744', job_status='RUN', time_executed='2021-09-01 23:12:22.824522', time_epoch_executed='1630563142.82' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902744

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902744/ft1_4FGL_J1028.3+3108_daily_bin1143.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902744/ft2_4FGL_J1028.3+3108_daily_bin1143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902744/ft1_4FGL_J1028.3+3108_daily_bin1143.fits outfile=/scratch/kocevski/902744/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1143.fits ra=157.077 dec=31.1389 rad=12.0 tmin=535593601.0 tmax=535852801.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 5.02
user 4.78
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902744/ft1_filtered_4FGL_J1028.3+3108_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/902744/ft2_4FGL_J1028.3+3108_daily_bin1143.fits sctable="SC_DATA" expcube=/scratch/kocevski/902744/ltcube_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.fits outfile=/scratch/kocevski/902744/expmap_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.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/902744/ltcube_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.fits
.....................!
real 191.20
user 186.58
sys 4.16

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/902744/ft1_filtered_4FGL_J1028.3+3108_daily_bin1143.fits scfile=/scratch/kocevski/902744/ft2_4FGL_J1028.3+3108_daily_bin1143.fits outfile=/scratch/kocevski/902744/cmap_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902744/ft1_filtered_4FGL_J1028.3+3108_daily_bin1143.fits scfile=/scratch/kocevski/902744/ft2_4FGL_J1028.3+3108_daily_bin1143.fits outfile=/scratch/kocevski/902744/cmap_HighResolution_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.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/902744/ft1_filtered_4FGL_J1028.3+3108_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/902744/ft2_4FGL_J1028.3+3108_daily_bin1143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902744/Model_4FGL_J1028.3+3108_daily_bin1143.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/902744/ft1_filtered_4FGL_J1028.3+3108_daily_bin1143.fits.....................!
real 55.67
user 54.27
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/902744/ft1_filtered_4FGL_J1028.3+3108_daily_bin1143.fits', '/scratch/kocevski/902744/ft2_4FGL_J1028.3+3108_daily_bin1143.fits', expMap='/scratch/kocevski/902744/expmap_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.fits', expCube='/scratch/kocevski/902744/ltcube_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/902744/Model_4FGL_J1028.3+3108_daily_bin1143.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/902744/ft1_filtered_4FGL_J1028.3+3108_daily_bin1143.fits
Spacecraft file(s): /scratch/kocevski/902744/ft2_4FGL_J1028.3+3108_daily_bin1143.fits
Exposure map: /scratch/kocevski/902744/expmap_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.fits
Exposure cube: /scratch/kocevski/902744/ltcube_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/902744/Model_4FGL_J1028.3+3108_daily_bin1143.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6489.63426659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.280       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4331       1.0000         .10000E-03   10000.    
     5 'norm      '    .17740E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.749       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37300       1.0000         .10000E-03   10000.    
     9 'norm      '    6.7837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42764E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4150       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .53067       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2430       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    32.047       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1705       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95903       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=   6489.509     FROM MIGRAD    STATUS=CONVERGED   1187 CALLS     3407 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.281        20.652        .93676E-04   -.45268E-04
   2  Prefactor     .10000E-03    1.8151        .10576E-02** at limit **
   3  Prefactor     .10000E-03    8.4929        .18142E-02** at limit **
   4  Prefactor     1.4327        1.7718        .11590E-03    .10378E-03
   5  norm          .10001E-03    43.468        .36486E-02** at limit **
   6  Prefactor     .10000E-03    .85556        .72652E-03** at limit **
   7  Prefactor     14.737        26.057        .10429E-03   -.77615E-04
   8  Prefactor     .37319        3.8600        .29919E-03   -.82037E-04
   9  norm          6.7857        8.1130        .15405E-03   -.19711E-03
  10  Prefactor     .10001E-03    83.120        .18142E-02** at limit **
  11  Prefactor     .10000E-03    9.1992        .18142E-02** at limit **
  12  Prefactor     2.3865        2.9673        .14924E-03   -.37310E-03
  13  Prefactor     1.1195        3.0167        .22702E-03    .18554E-03
  14  Prefactor     .10000E-03    2.8889        .13288E-02** at limit **
  15  Prefactor     .10000E-03    16.807        .18142E-02** at limit **
  16  Prefactor     .10000E-03    .88750        .14631E-03** at limit **
  17  Prefactor     .10000E-03    2.1536        .11539E-02** at limit **
  18  Prefactor     .10000E-03    7.8186        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.1414        .17796E-02** at limit **
  20  Prefactor     .16457E-01    22.069        .69866E-01    .99774E-04
  21  norm          2.4149        .41927        .20217E-04   -.25415E-02
  22  Prefactor     .53140        5.4728        .22514E-02    .52430E-03
  23  Prefactor     2.2564        21.179        .13720E-02   -.15976E-03
  24  Prefactor     .10000E-03    7.3899        .18142E-02** at limit **
  25  norm          32.040        15.849        .70782E-04   -.27305E-05
  26  Normalizat    1.1703        .19752        .22799E-03    .54651E-03
  27  Prefactor     .95936        .22399        .29043E-03   -.26720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4327
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 14.737
  Prefactor  = 0.37319
  norm       = 6.78575
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 2.38654
  Prefactor  = 1.11946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0164566
  norm       = 2.41486
  Prefactor  = 0.531398
  Prefactor  = 2.25638
  Prefactor  = 0.0001
  norm       = 32.0398
  Normalizat = 1.17027
  Prefactor  = 0.95936
 **********
 **   18 **HESSE 
 **********

 FCN=   6489.509     FROM HESSE     STATUS=OK           472 CALLS     3879 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.281        20.653        .37471E-05   -1.4853    
   2  Prefactor     .10000E-03    1.8152        .21151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4327        1.7716        .46361E-05   -1.5469    
   5  norm          .10001E-03    45.029        .14594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .85557        .14530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.737        26.055        .41716E-05   -1.4940    
   8  Prefactor     .37319        3.8573        .11968E-04   -1.5586    
   9  norm          6.7857        8.1120        .61621E-05   -1.5187    
  10  Prefactor     .10001E-03    83.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.1992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3865        2.9671        .59698E-05   -1.5399    
  13  Prefactor     1.1195        3.0162        .90807E-05   -1.5496    
  14  Prefactor     .10000E-03    2.8897        .26577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .88751        .29263E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1536        .23078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1424        .35592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16457E-01    17.313        .78255E-01   -1.5682    
  21  norm          2.4149        .41864        .40434E-05   -1.5397    
  22  Prefactor     .53140        5.1654        .90056E-04   -1.5562    
  23  Prefactor     2.2564        21.067        .54882E-04   -1.5408    
  24  Prefactor     .10000E-03    7.3900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          32.040        15.835        .28313E-05   -1.4575    
  26  Normalizat    1.1703        .19756        .45597E-04   -.87526    
  27  Prefactor     .95936        .22415        .11617E-04   -.94097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76812e-09
Minuit parameter uncertainties:
  1  20.661
  2  6.02954e-06
  3  5.26653e-05
  4  1.77171
  5  0.0011096
  6  6.98011e-06
  7  26.0754
  8  2.39947
  9  8.11331
  10  0.0017891
  11  2.45475e-05
  12  2.9673
  13  3.01665
  14  1.36782e-05
  15  7.5829e-05
  16  4.76533e-06
  17  5.28677e-06
  18  8.14378e-05
  19  1.57762e-05
  20  1.06461
  21  0.418643
  22  3.31359
  23  13.7951
  24  2.97507e-05
  25  15.8371
  26  0.19769
  27  0.224368
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.789e-03  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:  9.594e-01  2.244e-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.170e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/902744/likelihoodResults_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.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): 102
logL (Free Index) = 6489.50888512
delta logL = -5.72080361962e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6489.50883136
delta logL = -3.4461818359e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68288E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3410       1.0000          .0000       10.000    
     3 'Normalizat'    1.1703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95936       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=   6489.509     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.228        .10497E-01** at limit **
   2  Index         2.3409        7.3402        .50000        .27003E-06
   3  Normalizat    1.1703        .24956E-02    .51565E-01    .50132E-04
   4  Prefactor     .95937        .29252E-02    .65664E-01    .32921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34089
  Normalizat = 1.17027
  Prefactor  = 0.95937
 **********
 **   18 **HESSE 
 **********

 FCN=   6489.509     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    221.43        .20994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3409        8.7778        .50000       -.56075    
   3  Normalizat    1.1703        .67537E-02    .22798E-03   -.87527    
   4  Prefactor     .95937        .79102E-02    .29043E-03   -.94096    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90635e-10
Minuit parameter uncertainties:
  1  0.000413903
  2  178.071
  3  0.0067537
  4  0.00791022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902744': 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) = 6489.5088279
delta logL = 8.55925463839e-09

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  4.139e-04  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.341e+00  1.781e+02  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:  9.594e-01  7.910e-03  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.170e+00  6.754e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/902744/cmap_HighResolution_535593601_535852801_4FGL_J1028.3+3108_daily_bin1143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.85e-08', time_completed='2021-09-01 23:26:07.950524', job_id='902744', GAL2='0.96', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630563967.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.56e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1143' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 902744: <4FGL_J1028.3+3108_daily_bin1143> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1143 157.077 31.1389 535593601 535852801 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 :                                   813.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            938 sec.

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

