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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1085
RA = 157.077, Dec = 31.1389
tmin = 520560001, tmax = 520819201
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='902660', job_status='RUN', time_executed='2021-09-01 23:13:42.338091', time_epoch_executed='1630563222.34' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902660/ft1_4FGL_J1028.3+3108_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902660/ft2_4FGL_J1028.3+3108_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902660/ft1_4FGL_J1028.3+3108_daily_bin1085.fits outfile=/scratch/kocevski/902660/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1085.fits ra=157.077 dec=31.1389 rad=12.0 tmin=520560001.0 tmax=520819201.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.22
user 4.98
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902660/ft1_filtered_4FGL_J1028.3+3108_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/902660/ft2_4FGL_J1028.3+3108_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/902660/ltcube_520560001_520819201_4FGL_J1028.3+3108_daily_bin1085.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/902660/ft2_4FGL_J1028.3+3108_daily_bin1085.fits
.....................!
real 13.42
user 13.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902660/ft1_filtered_4FGL_J1028.3+3108_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/902660/ft2_4FGL_J1028.3+3108_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/902660/ltcube_520560001_520819201_4FGL_J1028.3+3108_daily_bin1085.fits outfile=/scratch/kocevski/902660/expmap_520560001_520819201_4FGL_J1028.3+3108_daily_bin1085.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/902660/ltcube_520560001_520819201_4FGL_J1028.3+3108_daily_bin1085.fits
.....................!
real 193.65
user 187.88
sys 5.34

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/902660/ft1_filtered_4FGL_J1028.3+3108_daily_bin1085.fits scfile=/scratch/kocevski/902660/ft2_4FGL_J1028.3+3108_daily_bin1085.fits outfile=/scratch/kocevski/902660/cmap_520560001_520819201_4FGL_J1028.3+3108_daily_bin1085.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902660/ft1_filtered_4FGL_J1028.3+3108_daily_bin1085.fits scfile=/scratch/kocevski/902660/ft2_4FGL_J1028.3+3108_daily_bin1085.fits outfile=/scratch/kocevski/902660/cmap_HighResolution_520560001_520819201_4FGL_J1028.3+3108_daily_bin1085.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13511E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.692       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6925       1.0000         .10000E-03   10000.    
     5 'norm      '    .12329E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59724E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .11221E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24657E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.830       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.169       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6416       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .54837       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11408E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.978       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    18.924       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1259       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .66217       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=   4664.082     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3341 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.067       -.45331E-06** at limit **
   2  Prefactor     10.690        7.3348        .50853E-07   -.22690E-03
   3  Prefactor     .10000E-03    14.046        .12012E-06** at limit **
   4  Prefactor     1.6923        2.8189        .30324E-06   -.78661E-04
   5  norm          .10003E-03    6.3522        .22809E-05** at limit **
   6  Prefactor     1.6837        4.3688        .27052E-05    .79370E-03
   7  Prefactor     17.117        28.237        .66127E-06    .63588E-04
   8  Prefactor     .10001E-03    3.1875       -.14403E-05** at limit **
   9  norm          .10000E-03    9.6743        .28784E-06** at limit **
  10  Prefactor     .10000E-03    112.67        .12261E-05** at limit **
  11  Prefactor     34.792        31.171       -.11704E-06   -.17533E-03
  12  Prefactor     2.4411        3.7309        .40418E-06    .11308E-03
  13  Prefactor     .10000E-03    2.7930       -.65841E-06** at limit **
  14  Prefactor     8.0043        7.1440        .20657E-05   -.20660E-04
  15  Prefactor     4.3725        41.601        .21752E-05    .12654E-03
  16  Prefactor     .10000E-03    1.2446       -.98959E-07** at limit **
  17  Prefactor     10.166        9.2887       -.19720E-06    .22853E-04
  18  Prefactor     .10000E-03    13.053       -.15030E-06** at limit **
  19  Prefactor     6.6415        8.8507        .30516E-08    .25526E-04
  20  Prefactor     .10000E-03    9.3577       -.25221E-06** at limit **
  21  norm          .54832        .30433        .10420E-07    .12582E-03
  22  Prefactor     .10010E-03    1.6244       -.99495E-06** at limit **
  23  Prefactor     53.981        21.878        .19848E-07    .66081E-04
  24  Prefactor     .10000E-03    13.378       -.24931E-07** at limit **
  25  norm          18.918        14.532        .66637E-07    .72541E-04
  26  Normalizat    1.1262        .18907        .17208E-06    .35489E-03
  27  Prefactor     .66191        .20222       -.82647E-06    .10513E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.6899
  Prefactor  = 0.0001
  Prefactor  = 1.69231
  norm       = 0.000100032
  Prefactor  = 1.68371
  Prefactor  = 17.1171
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 34.7916
  Prefactor  = 2.4411
  Prefactor  = 0.0001
  Prefactor  = 8.00426
  Prefactor  = 4.37247
  Prefactor  = 0.0001
  Prefactor  = 10.1662
  Prefactor  = 0.0001
  Prefactor  = 6.64147
  Prefactor  = 0.0001
  norm       = 0.548319
  Prefactor  = 0.000100104
  Prefactor  = 53.9808
  Prefactor  = 0.0001
  norm       = 18.9181
  Normalizat = 1.12616
  Prefactor  = 0.661907
 **********
 **   18 **HESSE 
 **********

 FCN=   4664.082     FROM HESSE     STATUS=OK           490 CALLS     3831 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.690        7.3064        .12253E-03   -1.5054    
   3  Prefactor     .10000E-03    14.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6923        2.7867        .13662E-03   -1.5448    
   5  norm          .10003E-03    14.900        .31135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6837        4.3196        .20752E-03   -1.5448    
   7  Prefactor     17.117        28.330        .96817E-04   -1.4880    
   8  Prefactor     .10001E-03    35.022        .20883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.7830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    113.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.792        31.139        .33951E-03   -1.4528    
  12  Prefactor     2.4411        3.6993        .15426E-03   -1.5395    
  13  Prefactor     .10000E-03    2.8009        .11120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0043        6.9622        .70860E-03   -1.5142    
  15  Prefactor     4.3725        41.650        .19470E-03   -1.5290    
  16  Prefactor     .10000E-03    1.2706        .74346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.166        9.2794        .12565E-03   -1.5070    
  18  Prefactor     .10000E-03    13.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.6415        8.8400        .15571E-03   -1.5192    
  20  Prefactor     .10000E-03    9.4020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .54832        .30121        .26532E-04   -1.5560    
  22  Prefactor     .10010E-03    11.412        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     53.981        21.926        .54594E-04   -1.4237    
  24  Prefactor     .10000E-03    13.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.918        14.531        .92071E-04   -1.4838    
  26  Normalizat    1.1262        .21829        .20472E-03   -.88916    
  27  Prefactor     .66191        .23367        .30001E-03   -1.0504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24094e-08
Minuit parameter uncertainties:
  1  0.000169027
  2  7.30701
  3  2.44045e-05
  4  2.78693
  5  0.00137539
  6  4.32043
  7  28.3521
  8  0.00101491
  9  0.00010253
  10  0.00120321
  11  31.1535
  12  3.6996
  13  6.89222e-06
  14  6.96295
  15  27.0142
  16  5.76979e-06
  17  9.28075
  18  5.04578e-05
  19  8.84173
  20  5.24924e-05
  21  0.301215
  22  0.00218117
  23  21.9291
  24  9.70809e-06
  25  14.5334
  26  0.218466
  27  0.234017
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.203e-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:  6.619e-01  2.340e-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.126e+00  2.185e-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: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902660/likelihoodResults_520560001_520819201_4FGL_J1028.3+3108_daily_bin1085.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) = 4664.08253627
delta logL = -4.19180496465e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4664.08249515
delta logL = -7.92152604845e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3481       1.0000          .0000       10.000    
     3 'Normalizat'    1.1262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66191       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=   4664.082     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    33.635        .10701E-01** at limit **
   2  Index         2.3482        6.3585        .50000        .11728E-05
   3  Normalizat    1.1262        .23196E-02    .37023E-01    .16338E-04
   4  Prefactor     .66191        .26854E-02    .67797E-01    .12302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  Index      = 2.34815
  Normalizat = 1.12616
  Prefactor  = 0.661909
 **********
 **   18 **HESSE 
 **********

 FCN=   4664.082     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      260 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    274.84        .21403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3482        6.7312        .50000       -.55904    
   3  Normalizat    1.1262        .66294E-02    .20472E-03   -.88916    
   4  Prefactor     .66191        .76617E-02    .30001E-03   -1.0504    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67405e-10
Minuit parameter uncertainties:
  1  0.00814873
  2  183.374
  3  0.00662943
  4  0.00766167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902660': 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) = 4664.08249434
delta logL = 1.60762283485e-08

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.001e-04  8.149e-03  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.348e+00  1.834e+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:  6.619e-01  7.662e-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.126e+00  6.629e-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/902660/cmap_HighResolution_520560001_520819201_4FGL_J1028.3+3108_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2021-09-01 23:24:59.002526', job_id='902660', GAL2='0.66', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630563899.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1085' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:24:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 902660: <4FGL_J1028.3+3108_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1085 157.077 31.1389 520560001 520819201 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 :                                   674.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            875 sec.

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

