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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin54
RA = 157.077, Dec = 31.1389
tmin = 253324801, tmax = 253584001
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='895616', job_status='RUN', time_executed='2021-09-01 22:47:57.845002', time_epoch_executed='1630561677.85' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895616/ft1_4FGL_J1028.3+3108_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895616/ft2_4FGL_J1028.3+3108_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895616/ft1_4FGL_J1028.3+3108_daily_bin54.fits outfile=/scratch/kocevski/895616/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin54.fits ra=157.077 dec=31.1389 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.43
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895616/ft2_4FGL_J1028.3+3108_daily_bin54.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/895616/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/895616/ft1_filtered_4FGL_J1028.3+3108_daily_bin54.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/895616/ft1_filtered_4FGL_J1028.3+3108_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/895616/ft2_4FGL_J1028.3+3108_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/895616/ltcube_253324801_253584001_4FGL_J1028.3+3108_daily_bin54.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/895616/ft2_4FGL_J1028.3+3108_daily_bin54.fits
.....................!
real 17.34
user 16.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895616/ft1_filtered_4FGL_J1028.3+3108_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/895616/ft2_4FGL_J1028.3+3108_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/895616/ltcube_253324801_253584001_4FGL_J1028.3+3108_daily_bin54.fits outfile=/scratch/kocevski/895616/expmap_253324801_253584001_4FGL_J1028.3+3108_daily_bin54.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/895616/ltcube_253324801_253584001_4FGL_J1028.3+3108_daily_bin54.fits
.....................!
real 191.61
user 186.76
sys 4.35

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/895616/ft1_filtered_4FGL_J1028.3+3108_daily_bin54.fits scfile=/scratch/kocevski/895616/ft2_4FGL_J1028.3+3108_daily_bin54.fits outfile=/scratch/kocevski/895616/cmap_253324801_253584001_4FGL_J1028.3+3108_daily_bin54.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895616/ft1_filtered_4FGL_J1028.3+3108_daily_bin54.fits scfile=/scratch/kocevski/895616/ft2_4FGL_J1028.3+3108_daily_bin54.fits outfile=/scratch/kocevski/895616/cmap_HighResolution_253324801_253584001_4FGL_J1028.3+3108_daily_bin54.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/895616/ft1_filtered_4FGL_J1028.3+3108_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/895616/ft2_4FGL_J1028.3+3108_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/895616/Model_4FGL_J1028.3+3108_daily_bin54.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/895616/ft1_filtered_4FGL_J1028.3+3108_daily_bin54.fits.....................!
real 50.74
user 49.36
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89555E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72637       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16346E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.125       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5357       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.581       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .46270       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .57795       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.245       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .45844       1.0000         .10000E-03   10000.    
    25 'norm      '    14.257       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98107       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91625       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=   5602.559     FROM MIGRAD    STATUS=CONVERGED   1263 CALLS     4896 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.651        30.044        .59336E-04    .31422E-04
   2  Prefactor     2.9882        6.2046        .11736E-02    .10693E-03
   3  Prefactor     .10000E-03    5.6408        .17293E-02** at limit **
   4  Prefactor     .10000E-03    2.7596        .17360E-02** at limit **
   5  norm          .10000E-03    9.0322        .29041E-02** at limit **
   6  Prefactor     .10001E-03    11.504        .31476E-01** at limit **
   7  Prefactor     .10000E-03    13.762        .18142E-02** at limit **
   8  Prefactor     .81050        13.096        .25071E-02    .36297E-03
   9  norm          .10000E-03    3.7247        .14077E-02** at limit **
  10  Prefactor     .10000E-03    92.752        .18142E-02** at limit **
  11  Prefactor     20.649        30.380        .88155E-04   -.84987E-04
  12  Prefactor     .10000E-03    6.2259        .24513E-02** at limit **
  13  Prefactor     .10000E-03    10.028        .29377E-02** at limit **
  14  Prefactor     2.0094        6.4362        .14598E-02   -.64797E-04
  15  Prefactor     14.125        32.776        .10657E-03   -.10667E-06
  16  Prefactor     1.7008        1.7366        .94541E-04   -.62170E-04
  17  Prefactor     5.5361        7.7548        .17076E-03   -.10120E-04
  18  Prefactor     .10000E-03    7.1334        .18142E-02** at limit **
  19  Prefactor     11.577        10.675        .11772E-03   -.47128E-04
  20  Prefactor     .10000E-03    3.9840        .14552E-02** at limit **
  21  norm          .46314        .28038        .25834E-04    .53469E-03
  22  Prefactor     .57793        1.8723        .17844E-03   -.24529E-04
  23  Prefactor     15.302        20.862        .10258E-03    .32694E-04
  24  Prefactor     .27738        382.90        .48799E-02    .46640E-04
  25  norm          14.244        14.257        .10608E-03   -.14576E-04
  26  Normalizat    .98107        .20059        .21629E-03    .36426E-04
  27  Prefactor     .91641        .21943        .26212E-03    .68398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.6509
  Prefactor  = 2.98818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.8105
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6492
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 2.00939
  Prefactor  = 14.1246
  Prefactor  = 1.70082
  Prefactor  = 5.53608
  Prefactor  = 0.0001
  Prefactor  = 11.5767
  Prefactor  = 0.0001
  norm       = 0.463141
  Prefactor  = 0.57793
  Prefactor  = 15.3021
  Prefactor  = 0.277385
  norm       = 14.2439
  Normalizat = 0.981073
  Prefactor  = 0.916408
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.559     FROM HESSE     STATUS=OK           478 CALLS     5374 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.651        30.035        .23734E-05   -1.4356    
   2  Prefactor     2.9882        6.1964        .46944E-04   -1.5362    
   3  Prefactor     .10000E-03    5.6422        .34586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7684        .34719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.0819        .58082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    6.0907        .41016E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .81050        10.449        .10028E-03   -1.5528    
   9  norm          .10000E-03    3.7250        .28153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    92.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.649        30.279        .35262E-05   -1.4799    
  12  Prefactor     .10000E-03    6.2557        .49027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.058        .58754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0094        6.4222        .58390E-04   -1.5424    
  15  Prefactor     14.125        32.773        .42629E-05   -1.4956    
  16  Prefactor     1.7008        1.7356        .37817E-05   -1.5447    
  17  Prefactor     5.5361        7.7520        .68305E-05   -1.5237    
  18  Prefactor     .10000E-03    7.1336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.577        10.673        .47088E-05   -1.5027    
  20  Prefactor     .10000E-03    3.9845        .29104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .46314        .27027        .10333E-05   -1.5572    
  22  Prefactor     .57793        1.8719        .71374E-05   -1.5556    
  23  Prefactor     15.302        19.367        .41032E-05   -1.4925    
  24  Prefactor     .27738        312.69        .19520E-03   -1.5603    
  25  norm          14.244        14.235        .42431E-05   -1.4953    
  26  Normalizat    .98107        .19949        .86516E-05   -.93667    
  27  Prefactor     .91641        .21892        .10485E-04   -.95570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92038e-10
Minuit parameter uncertainties:
  1  30.0447
  2  6.19768
  3  1.6707e-05
  4  6.55429e-05
  5  6.07789e-05
  6  0.000594024
  7  1.86546e-05
  8  5.82127
  9  6.83161e-06
  10  0.000371356
  11  30.3017
  12  0.000143372
  13  0.000250445
  14  6.4244
  15  32.8151
  16  1.73562
  17  7.75336
  18  7.15689e-06
  19  10.675
  20  5.71291e-05
  21  0.270274
  22  1.87206
  23  19.3745
  24  18.7216
  25  14.2388
  26  0.199641
  27  0.219135
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.714e-04  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.164e-01  2.191e-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.811e-01  1.996e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895616/likelihoodResults_253324801_253584001_4FGL_J1028.3+3108_daily_bin54.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) = 5602.55861137
delta logL = -5.12526048624e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5602.55856012
delta logL = -1.00153556559e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2787       1.0000          .0000       10.000    
     3 'Normalizat'    .98107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91641       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=   5602.559     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      229 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8397.0        .90712E-02** at limit **
   2  Index         2.2996        8.6330        .50000       -.17865E-05
   3  Normalizat    .98107        .44867E-01    .45929E-01    .15847E-04
   4  Prefactor     .91641        .52982E-01    .45214E-01    .18935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29956
  Normalizat = 0.981073
  Prefactor  = 0.916407
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.559     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 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     .10000E-03    8727.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2996        8.7489        .50000       -.57054    
   3  Normalizat    .98107        .49379E-01    .21629E-03   -.93667    
   4  Prefactor     .91641        .58325E-01    .26212E-03   -.95570    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24125e-10
Minuit parameter uncertainties:
  1  0.00157857
  2  45.0713
  3  0.0493815
  4  0.0583291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895616': 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) = 5602.55856009
delta logL = 2.92347976938e-08

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.579e-03  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.300e+00  4.507e+01  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.164e-01  5.833e-02  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.811e-01  4.938e-02  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/895616/cmap_HighResolution_253324801_253584001_4FGL_J1028.3+3108_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-01 23:02:00.666969', job_id='895616', GAL2='0.92', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630562520.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.92e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='54' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:02:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 895616: <4FGL_J1028.3+3108_daily_bin54> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin54> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:40 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:45:49 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:45:49 2021
Terminated at Wed Sep  1 23:02:01 2021
Results reported at Wed Sep  1 23:02:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin54 157.077 31.1389 253324801 253584001 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 :                                   842.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            981 sec.

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

