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


Performing analysis on: 4FGL_J1031.6+6019_monthly_bin72
RA = 157.909, Dec = 60.3178
tmin = 423619201, tmax = 426211201
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='131516', job_status='RUN', time_executed='2021-10-21 19:07:36.499433', time_epoch_executed='1634868456.5' WHERE source_name='4FGL J1031.6+6019' and cadence='monthly' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131516

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

Retrieving the FT1 file...

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

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

Retrieving 446 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131516/ft1_4FGL_J1031.6+6019_monthly_bin72.fits


Retrieving the FT1 file...

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

Retrieving 446 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131516/ft1_4FGL_J1031.6+6019_monthly_bin72.fits outfile=/scratch/kocevski/131516/ft1_filteredMKT_4FGL_J1031.6+6019_monthly_bin72.fits ra=157.909 dec=60.3178 rad=12.0 tmin=423619201.0 tmax=426211201.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 39.92
user 38.83
sys 0.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_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/131516/ft1_filteredMKT_4FGL_J1031.6+6019_monthly_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_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.83
user 0.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/131516/ltcube_423619201_426211201_4FGL_J1031.6+6019_monthly_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/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits
.....................!
real 126.04
user 125.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/131516/ltcube_423619201_426211201_4FGL_J1031.6+6019_monthly_bin72.fits outfile=/scratch/kocevski/131516/expmap_423619201_426211201_4FGL_J1031.6+6019_monthly_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/131516/ltcube_423619201_426211201_4FGL_J1031.6+6019_monthly_bin72.fits
.....................!
real 193.80
user 187.04
sys 5.54

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 246 point sources and 0 extended sources

Setting source of interest to:
4FGL J1031.6+6019 @ 157.909 60.3178

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_bin72.fits scfile=/scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits outfile=/scratch/kocevski/131516/cmap_423619201_426211201_4FGL_J1031.6+6019_monthly_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.909 yref=60.3178 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.78
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_bin72.fits scfile=/scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits outfile=/scratch/kocevski/131516/cmap_HighResolution_423619201_426211201_4FGL_J1031.6+6019_monthly_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.909 yref=60.3178 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.77
user 0.60
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/131516/Model_4FGL_J1031.6+6019_monthly_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/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_bin72.fits.....................!
real 468.87
user 464.15
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_bin72.fits', '/scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits', expMap='/scratch/kocevski/131516/expmap_423619201_426211201_4FGL_J1031.6+6019_monthly_bin72.fits', expCube='/scratch/kocevski/131516/ltcube_423619201_426211201_4FGL_J1031.6+6019_monthly_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/131516/Model_4FGL_J1031.6+6019_monthly_bin72.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1031.6+6019'

4FGL J1031.6+6019
   Spectrum: PowerLaw
418    Prefactor:  9.245e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
420        Scale:  9.651e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/131516/ft1_filtered_4FGL_J1031.6+6019_monthly_bin72.fits
Spacecraft file(s): /scratch/kocevski/131516/ft2_4FGL_J1031.6+6019_monthly_bin72.fits
Exposure map: /scratch/kocevski/131516/expmap_423619201_426211201_4FGL_J1031.6+6019_monthly_bin72.fits
Exposure cube: /scratch/kocevski/131516/ltcube_423619201_426211201_4FGL_J1031.6+6019_monthly_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/131516/Model_4FGL_J1031.6+6019_monthly_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) = 55775.5917523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8510       1.0000         .10000E-03   10000.    
     2 'norm      '    .52166       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .65391       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12295E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8874       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5337       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8569       1.0000         .10000E-03   10000.    
    12 'norm      '    .42659       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3596       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9965       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2528       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4992       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4112       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7212       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3899       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.744       1.0000         .10000E-03   10000.    
    24 'norm      '    2.1842       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .68963       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .46113       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4202       1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.800       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.9788       1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .68379E-01   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .28929E-01   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .95490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   55775.48     FROM MIGRAD    STATUS=CONVERGED   1091 CALLS     4922 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8514        2.1228        .10671E-06   -.20244E-03
   2  norm          .52170        .22029       -.60079E-08   -.16054E-02
   3  Prefactor     1.1087        1.5919        .11271E-06   -.30692E-03
   4  Prefactor     .65402        .72501       -.17148E-07   -.35764E-04
   5  Prefactor     .10001E-03    .76159        .59570E-06** at limit **
   6  Prefactor     1.8860        2.1020       -.24840E-06   -.14166E-02
   7  Prefactor     .10000E-03    .41117       -.25399E-07** at limit **
   8  norm          1.5337        1.2659       -.15085E-07   -.24404E-03
   9  Prefactor     .10000E-03    10.603        .63789E-05** at limit **
  10  norm          1.6202        .19720       -.25897E-08   -.15621E-02
  11  Prefactor     2.8574        1.6604        .18946E-07   -.31032E-04
  12  norm          .42661        .16235       -.38351E-08   -.75982E-03
  13  norm          3.3597        .86174        .29636E-08   -.35388E-05
  14  Prefactor     2.9976        5.8034        .76232E-07   -.56473E-04
  15  norm          6.6801        3.5316        .95595E-06   -.28013E-04
  16  Prefactor     7.2540        6.0026        .17504E-06   -.16108E-03
  17  norm          2.4992        .82780       -.31754E-07   -.33764E-03
  18  norm          1.4112        .42633        .15615E-10   -.23906E-03
  19  Prefactor     .10000E-03    63.978       -.18921E-05** at limit **
  20  norm          2.7213        .30038        .19764E-08    .66742E-04
  21  Prefactor     .10000E-03    11.478       -.74808E-05** at limit **
  22  norm          1.3901        2.0134        .16810E-07    .10815E-03
  23  Prefactor     14.742        21.822       -.12394E-05   -.11125E-04
  24  norm          2.1842        .65704        .55319E-08   -.50034E-03
  25  Prefactor     .68958        7.6917       -.62532E-07   -.36031E-04
  26  Prefactor     .10000E-03    3.5216       -.40674E-06** at limit **
  27  Prefactor     .47094        1.7945        .40503E-06   -.50916E-03
  28  Prefactor     2.4206        2.0744        .40869E-07   -.39587E-03
  29  Prefactor     15.797        7.4554       -.18757E-06   -.11232E-03
  30  Prefactor     .10000E-03    1.8509       -.48306E-07** at limit **
  31  Prefactor     1.9789        1.0884        .11787E-07    .79770E-05
  32  norm          .10000E-03    .79027        .28576E-08** at limit **
  33  norm          .68970E-01    .30289        .72700E-07   -.30441E-03
  34  Prefactor     .51990E-01    .52681       -.38338E-07    .26785E-03
  35  Prefactor     .10000E-03    3.7633       -.25554E-05** at limit **
  36  Normalizat    1.0003        .55514E-01   -.76884E-07   -.75454E-03
  37  Prefactor     .95490        .56917E-01   -.17366E-07   -.57948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8514
  norm       = 0.521698
  Prefactor  = 1.10875
  Prefactor  = 0.654025
  Prefactor  = 0.000100015
  Prefactor  = 1.88601
  Prefactor  = 0.0001
  norm       = 1.53374
  Prefactor  = 0.0001
  norm       = 1.62021
  Prefactor  = 2.85743
  norm       = 0.426607
  norm       = 3.35967
  Prefactor  = 2.99755
  norm       = 6.68014
  Prefactor  = 7.25403
  norm       = 2.49918
  norm       = 1.4112
  Prefactor  = 0.0001
  norm       = 2.72128
  Prefactor  = 0.0001
  norm       = 1.3901
  Prefactor  = 14.7415
  norm       = 2.18419
  Prefactor  = 0.689583
  Prefactor  = 0.0001
  Prefactor  = 0.470941
  Prefactor  = 2.42063
  Prefactor  = 15.797
  Prefactor  = 0.0001
  Prefactor  = 1.97887
  norm       = 0.0001
  norm       = 0.0689703
  Prefactor  = 0.0519897
  Prefactor  = 0.0001
  Normalizat = 1.00028
  Prefactor  = 0.954899
 **********
 **   18 **HESSE 
 **********

 FCN=   55775.48     FROM HESSE     STATUS=OK           893 CALLS     5815 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8514        2.1642        .12040E-02   -1.5370    
   2  norm          .52170        .21001        .67293E-03   -1.5564    
   3  Prefactor     1.1087        2.6062        .22469E-02   -1.5497    
   4  Prefactor     .65402        .78468        .20232E-02   -1.5546    
   5  Prefactor     .10001E-03    3.6927        .36635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8860        2.2138        .15146E-02   -1.5433    
   7  Prefactor     .10000E-03    .41483        .14769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5337        1.2734        .23547E-03   -1.5460    
   9  Prefactor     .10000E-03    10.789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6202        .19723        .35092E-04   -1.5453    
  11  Prefactor     2.8574        1.6565        .22204E-03   -1.5370    
  12  norm          .42661        .15520        .55919E-03   -1.5577    
  13  norm          3.3597        .86155        .10787E-03   -1.5341    
  14  Prefactor     2.9976        5.8093        .11725E-02   -1.5362    
  15  norm          6.6801        3.5344        .15526E-03   -1.5191    
  16  Prefactor     7.2540        6.0402        .74469E-03   -1.5169    
  17  norm          2.4992        .82806        .99728E-04   -1.5392    
  18  norm          1.4112        .42758        .82163E-04   -1.5470    
  19  Prefactor     .10000E-03    64.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7213        .29550        .38560E-04   -1.5378    
  21  Prefactor     .10000E-03    11.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3901        1.2476        .11977E-03   -1.5472    
  23  Prefactor     14.742        21.807        .10431E-03   -1.4940    
  24  norm          2.1842        .65671        .99420E-04   -1.5412    
  25  Prefactor     .68958        3.0745        .38050E-02   -1.5542    
  26  Prefactor     .10000E-03    3.5263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .47094        11.119        .56557E-02   -1.5571    
  28  Prefactor     2.4206        2.1876        .13155E-02   -1.5397    
  29  Prefactor     15.797        7.4326        .10076E-03   -1.4913    
  30  Prefactor     .10000E-03    1.8820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.9789        1.0860        .17694E-03   -1.5427    
  32  norm          .10000E-03    .79445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .68970E-01    4.9785        .23834E-02   -1.5655    
  34  Prefactor     .51990E-01    .80998        .62577E-01   -1.5662    
  35  Prefactor     .10000E-03    3.8000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    1.0003        .62763E-01    .23370E-03   -.93021    
  37  Prefactor     .95490        .64955E-01    .26055E-03   -.94248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4146e-06
Minuit parameter uncertainties:
  1  2.16425
  2  0.210007
  3  2.6065
  4  0.784689
  5  0.000466581
  6  2.21389
  7  1.09714e-07
  8  1.27344
  9  5.16069e-05
  10  0.197231
  11  1.65648
  12  0.155199
  13  0.861554
  14  5.8104
  15  3.53453
  16  6.0407
  17  0.828066
  18  0.427583
  19  1.60655e-05
  20  0.295501
  21  1.91389e-05
  22  1.24759
  23  21.8187
  24  0.656713
  25  2.91215
  26  8.38788e-07
  27  4.5772
  28  2.18768
  29  7.43308
  30  4.55961e-07
  31  1.086
  32  6.9097e-08
  33  1.1712
  34  0.410029
  35  7.3207e-06
  36  0.0627673
  37  0.0649599
Done.

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

Extracting fit parameters...

4FGL J1031.6+6019
   Spectrum: PowerLaw
418    Prefactor:  7.254e+00  6.041e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
420        Scale:  9.651e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  9.549e-01  6.496e-02  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.000e+00  6.277e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 157.909 60.318
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.68e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 4.36e-06 +/- 3.63e-06

TS (Fixed Index): 2.51
Ra Dec: 157.909 60.318
Photon Flux Upper Limit: 3.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/131516/likelihoodResults_423619201_426211201_4FGL_J1031.6+6019_monthly_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) = 55775.4778102
delta logL = 0.00181929249811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 55775.4763879
delta logL = 0.00324153428664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9284       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6598       1.0000          .0000       10.000    
     3 'Normalizat'    .99956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   55775.48     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      207 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9284        56.637        .38104E-02    .53088E-03
   2  Index         2.6598        1.9098        .23011        .48007E-03
   3  Normalizat    .99956        .13720E-01    .46161E-01    .85295E-04
   4  Prefactor     .95542        .14036E-01    .45708E-01    .96436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.92841
  Index      = 2.6598
  Normalizat = 0.999556
  Prefactor  = 0.955422
 **********
 **   18 **HESSE 
 **********

 FCN=   55775.48     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9284        7.5954        .15242E-03   -1.5181    
   2  Index         2.6598        .69372        .11999E-01   -.48707    
   3  Normalizat    .99956        .58453E-01    .23377E-03   -.93045    
   4  Prefactor     .95542        .62693E-01    .26049E-03   -.94231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50204e-10
Minuit parameter uncertainties:
  1  7.59648
  2  0.696601
  3  0.0584564
  4  0.0626977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131516': 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) = 55775.4763879
delta logL = 0.00324153441034

Extracting fit parameters...

4FGL J1031.6+6019
   Spectrum: PowerLaw
418    Prefactor:  6.928e+00  7.596e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        Index:  2.660e+00  6.966e-01  0.000e+00  1.000e+01 (-1.000e+00)
420        Scale:  9.651e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  9.554e-01  6.270e-02  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  9.996e-01  5.846e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 157.909 60.318
Photon Index (Free Index): 2.66 +/- 0.70
Photon Flux (Free Index): 1.74e-08 +/- 1.31e-08
Energy Flux (Free Index): 4.32e-06 +/- 3.21e-06

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/131516/cmap_HighResolution_423619201_426211201_4FGL_J1031.6+6019_monthly_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-03', comment='SUCCESS', photon_flux='1.68e-08', energy_flux2='4.32e-06', photon_flux_error='1.40e-08', dlogl='3.24e-03', energy_flux='4.36e-06', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-10-21 21:56:29.364582', photon_index_error2='0.70', photon_index2='2.66', ts='2.51', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='3.81e-08', energy_flux_error2='3.21e-06', EG='1.00', time_epoch_completed='1634878589.36', return_code='0', job_id='131516', GAL2='0.96', EG2='1.00', return_code2='0', energy_flux_error='3.63e-06', photon_flux_error2='1.31e-08', ts2='2.54', photon_index='2.61' WHERE bin_id='72' AND source_name='4FGL J1031.6+6019' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 21:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 131516: <4FGL_J1031.6+6019_monthly_bin72> in cluster <slac> Done

Job <4FGL_J1031.6+6019_monthly_bin72> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Oct 21 19:05:18 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 19:05:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 19:05:30 2021
Terminated at Thu Oct 21 21:56:30 2021
Results reported at Thu Oct 21 21:56:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1031.6+6019_monthly_bin72 157.909 60.3178 423619201 426211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1031.6+6019 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9655.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             389.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10259 sec.
    Turnaround time :                            10272 sec.

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

