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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin72
RA = 157.077, Dec = 31.1389
tmin = 257990401, tmax = 258249601
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='895644', job_status='RUN', time_executed='2021-09-01 22:49:06.497235', time_epoch_executed='1630561746.5' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895644

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895644/ft1_4FGL_J1028.3+3108_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895644/ft2_4FGL_J1028.3+3108_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895644/ft1_4FGL_J1028.3+3108_daily_bin72.fits outfile=/scratch/kocevski/895644/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin72.fits ra=157.077 dec=31.1389 rad=12.0 tmin=257990401.0 tmax=258249601.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.42
user 1.25
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895644/ft2_4FGL_J1028.3+3108_daily_bin72.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/895644/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/895644/ft1_filtered_4FGL_J1028.3+3108_daily_bin72.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/895644/ft1_filtered_4FGL_J1028.3+3108_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/895644/ft2_4FGL_J1028.3+3108_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/895644/ltcube_257990401_258249601_4FGL_J1028.3+3108_daily_bin72.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/895644/ft2_4FGL_J1028.3+3108_daily_bin72.fits
.....................!
real 18.34
user 17.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895644/ft1_filtered_4FGL_J1028.3+3108_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/895644/ft2_4FGL_J1028.3+3108_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/895644/ltcube_257990401_258249601_4FGL_J1028.3+3108_daily_bin72.fits outfile=/scratch/kocevski/895644/expmap_257990401_258249601_4FGL_J1028.3+3108_daily_bin72.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/895644/ltcube_257990401_258249601_4FGL_J1028.3+3108_daily_bin72.fits
.....................!
real 190.96
user 186.48
sys 4.03

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/895644/ft1_filtered_4FGL_J1028.3+3108_daily_bin72.fits scfile=/scratch/kocevski/895644/ft2_4FGL_J1028.3+3108_daily_bin72.fits outfile=/scratch/kocevski/895644/cmap_257990401_258249601_4FGL_J1028.3+3108_daily_bin72.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895644/ft1_filtered_4FGL_J1028.3+3108_daily_bin72.fits scfile=/scratch/kocevski/895644/ft2_4FGL_J1028.3+3108_daily_bin72.fits outfile=/scratch/kocevski/895644/cmap_HighResolution_257990401_258249601_4FGL_J1028.3+3108_daily_bin72.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94763E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    28.767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17637E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30492E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4329       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3615       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3471       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .84690       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .74286       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.5500       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1964       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2378       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64039       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=   5585.530     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3349 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.163        29.306        .10356E-04    .26084E-04
   2  Prefactor     .10000E-03    1.2805       -.14368E-08** at limit **
   3  Prefactor     .10000E-03    2.6733        .35142E-07** at limit **
   4  Prefactor     .10098E-03    .99085       -.34619E-06** at limit **
   5  norm          28.766        10.100        .50061E-06    .16138E-04
   6  Prefactor     .10018E-03    1.6427        .37496E-06** at limit **
   7  Prefactor     1.2143        91.020        .13449E-04   -.11588E-03
   8  Prefactor     .10000E-03    4.0127       -.45175E-07** at limit **
   9  norm          .10000E-03    3.1649       -.57891E-07** at limit **
  10  Prefactor     .10000E-03    17.667       -.92016E-05** at limit **
  11  Prefactor     .10000E-03    14.495        .32901E-05** at limit **
  12  Prefactor     4.7488        4.3640        .93148E-06   -.45084E-03
  13  Prefactor     .10000E-03    3.0620        .63815E-06** at limit **
  14  Prefactor     6.4317        6.6971        .63135E-07   -.24741E-03
  15  Prefactor     .10000E-03    11.140       -.30816E-05** at limit **
  16  Prefactor     1.3612        2.2851       -.87152E-07   -.86489E-03
  17  Prefactor     8.3397        10.136        .91267E-06   -.27032E-03
  18  Prefactor     .10000E-03    16.500       -.77289E-05** at limit **
  19  Prefactor     .10000E-03    13.534        .79878E-05** at limit **
  20  Prefactor     .10000E-03    3.7882        .29239E-08** at limit **
  21  norm          .84687        .29725       -.77007E-07   -.68684E-03
  22  Prefactor     .74415        1.9610       -.18367E-06   -.98934E-03
  23  Prefactor     .10000E-03    20.429        .83902E-05** at limit **
  24  Prefactor     5.5371        14.976        .67178E-05   -.14858E-03
  25  norm          2.1899        15.664        .15753E-05   -.25142E-03
  26  Normalizat    1.2382        .17574       -.16525E-05   -.30254E-03
  27  Prefactor     .64020        .18915       -.13851E-05   -.24303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100984
  norm       = 28.7656
  Prefactor  = 0.000100177
  Prefactor  = 1.21432
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.74884
  Prefactor  = 0.000100002
  Prefactor  = 6.43166
  Prefactor  = 0.0001
  Prefactor  = 1.36119
  Prefactor  = 8.33969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.846866
  Prefactor  = 0.744151
  Prefactor  = 0.000100001
  Prefactor  = 5.53707
  norm       = 2.18987
  Normalizat = 1.23824
  Prefactor  = 0.640204
 **********
 **   18 **HESSE 
 **********

 FCN=   5585.530     FROM HESSE     STATUS=OK           510 CALLS     3859 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.163        29.291        .60344E-04   -1.4378    
   2  Prefactor     .10000E-03    1.2823        .82583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6782        .11933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10098E-03    3.1493        .25000E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          28.766        10.089        .74697E-04   -1.4635    
   6  Prefactor     .10018E-03    4.8508        .31077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2143        90.580        .39994E-03   -1.5488    
   8  Prefactor     .10000E-03    4.1413        .29010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1704        .12980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7488        4.3447        .14192E-03   -1.5272    
  13  Prefactor     .10000E-03    10.288        .24726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4317        6.6624        .15824E-03   -1.5201    
  15  Prefactor     .10000E-03    11.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3612        2.2393        .13480E-03   -1.5475    
  17  Prefactor     8.3397        10.061        .13876E-03   -1.5130    
  18  Prefactor     .10000E-03    16.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7919        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .84687        .29874        .22693E-04   -1.5524    
  22  Prefactor     .74415        1.7154        .16205E-02   -1.5535    
  23  Prefactor     .10000E-03    20.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.5371        14.927        .17054E-03   -1.5237    
  25  norm          2.1899        15.449        .27765E-03   -1.5412    
  26  Normalizat    1.2382        .19617        .20378E-03   -.85429    
  27  Prefactor     .64020        .21393        .31325E-03   -1.0592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11753e-09
Minuit parameter uncertainties:
  1  29.3009
  2  2.79726e-06
  3  2.4982e-06
  4  0.00352039
  5  10.09
  6  0.00185501
  7  21.0077
  8  1.74179e-06
  9  1.12774e-05
  10  1.49771e-05
  11  5.2204e-06
  12  4.34501
  13  0.000290268
  14  6.66315
  15  6.32157e-06
  16  2.23946
  17  10.0631
  18  3.35511e-05
  19  2.35353e-05
  20  7.4244e-06
  21  0.298742
  22  1.71553
  23  0.000221776
  24  14.9375
  25  11.6371
  26  0.196287
  27  0.214204
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.498e-05  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.402e-01  2.142e-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.238e+00  1.963e-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: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895644/likelihoodResults_257990401_258249601_4FGL_J1028.3+3108_daily_bin72.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) = 5585.53033563
delta logL = -0.000268597701506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5585.53006737
delta logL = -3.32563104166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3317       1.0000          .0000       10.000    
     3 'Normalizat'    1.2382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64021       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=   5585.530     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      271 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.615        .18142E-02** at limit **
   2  Index         2.3027        6.1226        .50000        .14928E-04
   3  Normalizat    1.2382        .18377        .20378E-03   -.11035E-04
   4  Prefactor     .64021        .21011        .31325E-03   -.62786E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.3027
  Normalizat = 1.23824
  Prefactor  = 0.640205
 **********
 **   18 **HESSE 
 **********

 FCN=   5585.530     FROM HESSE     STATUS=OK            29 CALLS      300 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3027        6.1513        .50000       -.56979    
   3  Normalizat    1.2382        .18390        .40756E-04   -.85429    
   4  Prefactor     .64021        .21026        .12530E-04   -1.0592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04196e-10
Minuit parameter uncertainties:
  1  0.000492196
  2  4.23886
  3  0.183993
  4  0.210516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895644': 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) = 5585.53006726
delta logL = -2.25789335673e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  4.922e-04  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.303e+00  4.239e+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.402e-01  2.105e-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.238e+00  1.840e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/895644/cmap_HighResolution_257990401_258249601_4FGL_J1028.3+3108_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-01 23:01:15.132124', job_id='895644', GAL2='0.64', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630562475.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='72' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 895644: <4FGL_J1028.3+3108_daily_bin72> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin72 157.077 31.1389 257990401 258249601 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 :                                   728.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            931 sec.

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

