/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 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7679
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.3+3108_daily_bin224
RA = 157.077, Dec = 31.1389
tmin = 297388801, tmax = 297648001
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='896958', job_status='RUN', time_executed='2021-09-01 22:51:38.037963', time_epoch_executed='1630561898.04' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896958

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896958/ft1_4FGL_J1028.3+3108_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896958/ft2_4FGL_J1028.3+3108_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896958/ft1_4FGL_J1028.3+3108_daily_bin224.fits outfile=/scratch/kocevski/896958/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin224.fits ra=157.077 dec=31.1389 rad=12.0 tmin=297388801.0 tmax=297648001.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.67
user 3.44
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896958/ft1_filtered_4FGL_J1028.3+3108_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/896958/ft2_4FGL_J1028.3+3108_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/896958/ltcube_297388801_297648001_4FGL_J1028.3+3108_daily_bin224.fits outfile=/scratch/kocevski/896958/expmap_297388801_297648001_4FGL_J1028.3+3108_daily_bin224.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/896958/ltcube_297388801_297648001_4FGL_J1028.3+3108_daily_bin224.fits
.....................!
real 189.92
user 185.24
sys 4.23

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/896958/ft1_filtered_4FGL_J1028.3+3108_daily_bin224.fits scfile=/scratch/kocevski/896958/ft2_4FGL_J1028.3+3108_daily_bin224.fits outfile=/scratch/kocevski/896958/cmap_297388801_297648001_4FGL_J1028.3+3108_daily_bin224.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896958/ft1_filtered_4FGL_J1028.3+3108_daily_bin224.fits scfile=/scratch/kocevski/896958/ft2_4FGL_J1028.3+3108_daily_bin224.fits outfile=/scratch/kocevski/896958/cmap_HighResolution_297388801_297648001_4FGL_J1028.3+3108_daily_bin224.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .71686       1.0000         .10000E-03   10000.    
     5 'norm      '    34.947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7573       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12627E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9199       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19058E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49510       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3891       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.446       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.089       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4574       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.8607       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1155       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1555       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=   7122.705     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     2892 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.35       -.31595E-05** at limit **
   2  Prefactor     .10000E-03    12.021        .69834E-06** at limit **
   3  Prefactor     .10000E-03    19.033       -.17721E-05** at limit **
   4  Prefactor     .71594        1.6843        .43284E-06   -.41271E-04
   5  norm          34.945        11.797        .47388E-07   -.28164E-03
   6  Prefactor     2.7572        3.2801       -.35933E-07   -.26958E-03
   7  Prefactor     .10000E-03    124.26        .15114E-04** at limit **
   8  Prefactor     2.9198        4.9716        .10713E-05   -.76840E-04
   9  norm          .10000E-03    4.0555       -.12403E-06** at limit **
  10  Prefactor     .10003E-03    326.68        .37665E-04** at limit **
  11  Prefactor     .10001E-03    87.627       -.96204E-05** at limit **
  12  Prefactor     .10018E-03    2.3791       -.87800E-06** at limit **
  13  Prefactor     .10000E-03    1.7536        .61633E-07** at limit **
  14  Prefactor     1.7441        6.3434        .12723E-04    .11479E-04
  15  Prefactor     .10000E-03    10.249       -.36977E-06** at limit **
  16  Prefactor     .49463        1.3659        .12103E-06   -.11276E-03
  17  Prefactor     2.3859        13.638        .75117E-05   -.10686E-03
  18  Prefactor     13.564        20.015        .39386E-06   -.61533E-04
  19  Prefactor     10.448        9.9950       -.15016E-05   -.22461E-03
  20  Prefactor     15.086        11.241        .22545E-06   -.14484E-03
  21  norm          1.4573        .33494        .27913E-07   -.70754E-03
  22  Prefactor     .10000E-03    2.0590       -.10504E-07** at limit **
  23  Prefactor     .10000E-03    26.229        .11946E-05** at limit **
  24  Prefactor     .10000E-03    7.8645        .84023E-08** at limit **
  25  norm          6.8591        9.4143        .11365E-05   -.33863E-04
  26  Normalizat    1.1156        .17020       -.40039E-05   -.73931E-03
  27  Prefactor     1.1556        .19015       -.33345E-06   -.63290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.715937
  norm       = 34.9454
  Prefactor  = 2.75715
  Prefactor  = 0.000100002
  Prefactor  = 2.91985
  norm       = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.000100012
  Prefactor  = 0.000100184
  Prefactor  = 0.0001
  Prefactor  = 1.74414
  Prefactor  = 0.0001
  Prefactor  = 0.494628
  Prefactor  = 2.38591
  Prefactor  = 13.5638
  Prefactor  = 10.4478
  Prefactor  = 15.0856
  norm       = 1.45731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.85907
  Normalizat = 1.11558
  Prefactor  = 1.15557
 **********
 **   18 **HESSE 
 **********

 FCN=   7122.705     FROM HESSE     STATUS=OK           484 CALLS     3376 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    103.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71594        1.6369        .16119E-03   -1.5539    
   5  norm          34.945        11.787        .67789E-04   -1.4525    
   6  Prefactor     2.7572        3.2360        .14928E-03   -1.5376    
   7  Prefactor     .10000E-03    127.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9198        4.9109        .21512E-03   -1.5366    
   9  norm          .10000E-03    4.0688        .16595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    332.65        .40543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    90.378        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    25.726        .24623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7619        .10910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7441        6.3075        .15876E-02   -1.5444    
  15  Prefactor     .10000E-03    10.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49463        1.3660        .15469E-03   -1.5567    
  17  Prefactor     2.3859        12.945        .13249E-02   -1.5399    
  18  Prefactor     13.564        20.014        .10874E-03   -1.4971    
  19  Prefactor     10.448        9.9012        .12397E-03   -1.5061    
  20  Prefactor     15.086        11.203        .10311E-03   -1.4931    
  21  norm          1.4573        .33524        .22633E-04   -1.5467    
  22  Prefactor     .10000E-03    2.1092        .23562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.8930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.8591        9.4034        .76588E-03   -1.5184    
  26  Normalizat    1.1156        .19986        .25090E-03   -.89253    
  27  Prefactor     1.1556        .22600        .28637E-03   -.87710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93322e-09
Minuit parameter uncertainties:
  1  0.000556941
  2  4.47258e-05
  3  0.000129437
  4  1.63701
  5  11.7873
  6  3.23623
  7  0.000927215
  8  4.91159
  9  3.14283e-06
  10  0.00641433
  11  0.00207959
  12  0.00435143
  13  7.18971e-06
  14  6.30988
  15  5.78194e-06
  16  1.36608
  17  11.1184
  18  20.0237
  19  9.90278
  20  11.2049
  21  0.335241
  22  4.58792e-06
  23  4.056e-05
  24  6.6891e-07
  25  9.40538
  26  0.199993
  27  0.226193
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  6.414e-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:  1.156e+00  2.262e-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.116e+00  2.000e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896958/likelihoodResults_297388801_297648001_4FGL_J1028.3+3108_daily_bin224.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) = 7122.70471172
delta logL = -1.41913988045e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7122.54216775
delta logL = 0.162529779804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2906       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3682       1.0000          .0000       10.000    
     3 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1674       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7122.542     FROM MIGRAD    STATUS=FAILED        88 CALLS      453 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2876        531.03        .22320E-03   -.24801E-02
   2  Index         3.3679        5.6331        .85186E-02   -.77131E-03
   3  Normalizat    1.0906        .17622        .25341E-03   -.18471E-02
   4  Prefactor     1.1675        .20403        .28507E-03   -.13308E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7122.542     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      538 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2876        531.03        .30715E-03   -.24801E-02
   2  Index         3.3679        5.6331        .11596E-02   -.77131E-03
   3  Normalizat    1.0906        .17622        .16538E-03   -.18471E-02
   4  Prefactor     1.1675        .20403        .17309E-03   -.13308E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7122.542     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      569 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2865        15.785        .89280E-05   -.26181E-03
   2  Index         3.3681        1.7281        .34074E-03   -.55085E-04
   3  Normalizat    1.0906        .19818        .50682E-04   -.56931E-04
   4  Prefactor     1.1675        .22580        .57014E-04   -.21097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28651
  Index      = 3.36813
  Normalizat = 1.09058
  Prefactor  = 1.16749
 **********
 **   18 **HESSE 
 **********

 FCN=   7122.542     FROM HESSE     STATUS=OK            23 CALLS      592 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2865        15.007        .17856E-05   -1.5345    
   2  Index         3.3681        1.6866        .13630E-04   -.33247    
   3  Normalizat    1.0906        .19820        .10136E-04   -.90055    
   4  Prefactor     1.1675        .22582        .11403E-04   -.87338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66986e-11
Minuit parameter uncertainties:
  1  14.0513
  2  1.7246
  3  0.198335
  4  0.226003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896958': 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) = 7122.5421673
delta logL = 0.16253023221

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.287e+00  1.405e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  3.368e+00  1.725e+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.167e+00  2.260e-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.091e+00  1.983e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/896958/cmap_HighResolution_297388801_297648001_4FGL_J1028.3+3108_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-09-01 23:05:15.328978', job_id='896958', GAL2='1.17', fit_tolerance='1e-08', EG2='1.09', EG='1.12', time_epoch_completed='1630562715.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.63e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='224' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:05:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 896958: <4FGL_J1028.3+3108_daily_bin224> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin224> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:50:31 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:51:25 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:51:25 2021
Terminated at Wed Sep  1 23:05:16 2021
Results reported at Wed Sep  1 23:05:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin224 157.077 31.1389 297388801 297648001 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 :                                   814.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            885 sec.

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

