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


Performing analysis on: 4FGL_J1031.1+7442_daily_bin1171
RA = 157.792, Dec = 74.7019
tmin = 542851201, tmax = 543110401
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='942391', job_status='RUN', time_executed='2021-09-02 01:33:27.954360', time_epoch_executed='1630571607.95' WHERE source_name='4FGL J1031.1+7442' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/942391

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/942391/ft1_4FGL_J1031.1+7442_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/942391/ft1_4FGL_J1031.1+7442_daily_bin1171.fits outfile=/scratch/kocevski/942391/ft1_filteredMKT_4FGL_J1031.1+7442_daily_bin1171.fits ra=157.792 dec=74.7019 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.77
user 0.63
sys 0.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.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/942391/ft1_filteredMKT_4FGL_J1031.1+7442_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.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.48
user 0.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/942391/ltcube_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.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/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits
.....................!
real 2.05
user 1.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/942391/ltcube_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.fits outfile=/scratch/kocevski/942391/expmap_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.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/942391/ltcube_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.fits
.....................!
real 190.63
user 185.66
sys 4.37

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

Setting source of interest to:
4FGL J1031.1+7442 @ 157.792 74.7019

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.fits scfile=/scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits outfile=/scratch/kocevski/942391/cmap_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.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.792 yref=74.7019 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.fits scfile=/scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits outfile=/scratch/kocevski/942391/cmap_HighResolution_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.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.792 yref=74.7019 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/942391/Model_4FGL_J1031.1+7442_daily_bin1171.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/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.fits......................................!
real 18.35
user 16.99
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.fits', '/scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits', expMap='/scratch/kocevski/942391/expmap_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.fits', expCube='/scratch/kocevski/942391/ltcube_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/942391/Model_4FGL_J1031.1+7442_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1031.1+7442'

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  7.368e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.162e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/942391/ft1_filtered_4FGL_J1031.1+7442_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/942391/ft2_4FGL_J1031.1+7442_daily_bin1171.fits
Exposure map: /scratch/kocevski/942391/expmap_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.fits
Exposure cube: /scratch/kocevski/942391/ltcube_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/942391/Model_4FGL_J1031.1+7442_daily_bin1171.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) = 438.858494785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.565       1.0000         .10000E-03   10000.    
     6 'Prefactor '    329.94       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.194       1.0000         .10000E-03   10000.    
     9 'Prefactor '    77.898       1.0000         .10000E-03   10000.    
    10 'norm      '    .12888E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16112E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    77.423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16967E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    238.79       1.0000         .10000E-03   10000.    
    16 'norm      '    .37495E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4342.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23037E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.9994       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    407.71       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    17.544       1.0000         .10000E-03   10000.    
    28 'norm      '    20.876       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .14076E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10018E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   436.3944     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     5041 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.311       -.98163E-06** at limit **
   2  norm          .10000E-03    50.744       -.12926E-06** at limit **
   3  Prefactor     .10000E-03    67.126       -.35756E-06** at limit **
   4  Prefactor     .10000E-03    10.098       -.17287E-06** at limit **
   5  norm          17.561        13.124        .61314E-06   -.59570E-04
   6  Prefactor     330.12        329.23       -.20322E-05   -.25737E-04
   7  Prefactor     .10000E-03    158.47        .17282E-05** at limit **
   8  Prefactor     29.199        85.598        .60164E-05   -.16528E-04
   9  Prefactor     78.026        95.226       -.63427E-05   -.13265E-03
  10  norm          .10004E-03    492.51        .80689E-05** at limit **
  11  norm          .10000E-03    146.10       -.21557E-06** at limit **
  12  Prefactor     .10000E-03    173.17        .16254E-05** at limit **
  13  Prefactor     77.337        101.54       -.24021E-05   -.21845E-03
  14  Prefactor     .10000E-03    227.27        .89052E-06** at limit **
  15  Prefactor     238.74        374.87        .20447E-05   -.39599E-05
  16  norm          .10136E-03    167.56        .15127E-04** at limit **
  17  Prefactor     4343.0        3173.4       -.10995E-04   -.10537E-04
  18  Prefactor     .10001E-03    129.40       -.23774E-05** at limit **
  19  norm          4.9978        7.7488        .66706E-06   -.63854E-04
  20  norm          .10000E-03    38.487        .16137E-05** at limit **
  21  Prefactor     .10000E-03    71.578        .26950E-05** at limit **
  22  Prefactor     .10000E-03    222.69        .70893E-05** at limit **
  23  Prefactor     408.08        606.68       -.13649E-05   -.14884E-04
  24  Prefactor     .10000E-03    74.492        .15205E-05** at limit **
  25  Prefactor     .10000E-03    31.150        .19623E-06** at limit **
  26  Prefactor     .10000E-03    284.34       -.43462E-05** at limit **
  27  norm          17.925        219.30       -.51500E-05   -.26612E-04
  28  norm          20.874        22.375        .56536E-06   -.25221E-04
  29  Prefactor     .10002E-03    1760.4        .18532E-04** at limit **
  30  Prefactor     .10000E-03    67.484       -.49074E-06** at limit **
  31  Normalizat    .10000E-01    1.0962       -.31522E-04** at limit **
  32  Prefactor     1.2130        .42344        .12429E-05   -.17275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5613
  Prefactor  = 330.116
  Prefactor  = 0.0001
  Prefactor  = 29.1988
  Prefactor  = 78.0264
  norm       = 0.00010004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.3368
  Prefactor  = 0.0001
  Prefactor  = 238.735
  norm       = 0.000101363
  Prefactor  = 4343.02
  Prefactor  = 0.000100007
  norm       = 4.99781
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 408.083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 17.9251
  norm       = 20.8736
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.21303
 **********
 **   18 **HESSE 
 **********

 FCN=   436.3944     FROM HESSE     STATUS=OK           639 CALLS     5680 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    50.745        .14553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    67.131        .16743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.100        .64873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.561        13.146        .31203E-03   -1.4870    
   6  Prefactor     330.12        329.16        .11197E-03   -1.2054    
   7  Prefactor     .10000E-03    158.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.199        86.345        .74151E-04   -1.4627    
   9  Prefactor     78.026        96.085        .22750E-03   -1.3939    
  10  norm          .10004E-03    488.74        .10212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    146.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    172.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     77.337        104.14        .22819E-03   -1.3947    
  14  Prefactor     .10000E-03    227.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     238.74        375.05        .13100E-03   -1.2605    
  16  norm          .10136E-03    318.89        .37529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4343.0        3177.0        .40351E-04   -.13178    
  18  Prefactor     .10001E-03    131.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.9978        7.7245        .60682E-04   -1.5261    
  20  norm          .10000E-03    38.426        .12616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    71.706        .17286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    221.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     408.08        606.58        .10113E-03   -1.1640    
  24  Prefactor     .10000E-03    74.488        .17638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    31.153        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    284.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          17.925        218.62        .95621E-04   -1.4861    
  28  norm          20.874        22.393        .87662E-04   -1.4794    
  29  Prefactor     .10002E-03    1762.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    67.499        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    1.2399        .11501E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.2130        .42932        .21754E-03   -.85931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01855e-09
Minuit parameter uncertainties:
  1  0.000161931
  2  2.21007e-05
  3  6.92266e-05
  4  1.16427e-05
  5  13.1478
  6  331.047
  7  0.000176895
  8  86.7183
  9  96.2768
  10  0.00888053
  11  4.56421e-05
  12  0.000493103
  13  104.389
  14  0.0001642
  15  378.928
  16  0.0419181
  17  3448.53
  18  0.00197207
  19  7.726
  20  5.10347e-05
  21  0.000126945
  22  0.000208459
  23  616.506
  24  0.000178167
  25  3.50802e-06
  26  0.00125112
  27  125.775
  28  22.4016
  29  0.0129578
  30  8.8598e-05
  31  8.24939e-05
  32  0.430562
Done.

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

Extracting fit parameters...

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  1.642e-04  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.162e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.213e+00  4.306e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  1.000e-02  8.249e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 157.792 74.702
Photon Flux Upper Limit: 6.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/942391/likelihoodResults_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.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) = 436.394378226
delta logL = -2.0725629895e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 436.394381612
delta logL = -2.41112493882e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95476E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1620       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   436.3944     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      216 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    177.00        .90799E-02** at limit **
   2  Index         2.1461        5.5674        .50000        .56867E-06
   3  Normalizat    .10000E-01    .12205E-02    .21988    ** at limit **
   4  Prefactor     1.2130        .13655E-01    .49222E-01    .10009E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14609
  Normalizat = 0.01
  Prefactor  = 1.21304
 **********
 **   18 **HESSE 
 **********

 FCN=   436.3944     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      249 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1465.1        .18160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1461        5.2879        .50000       -.60746    
   3  Normalizat    .10000E-01    .17442E-01    .11499E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2130        .40419E-01    .21755E-03   -.85931    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94949e-08
Minuit parameter uncertainties:
  1  0.000340827
  2  1013.33
  3  1.7053e-07
  4  0.0404203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/942391': 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) = 436.394357497
delta logL = 2.91856849799e-09

Extracting fit parameters...

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  3.408e-04  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.146e+00  1.013e+03  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.213e+00  4.042e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  1.000e-02  1.705e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 157.792 74.702

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/942391/cmap_HighResolution_542851201_543110401_4FGL_J1031.1+7442_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-02', job_status='DONE', photon_flux_upper_limit='6.81e-07', time_completed='2021-09-02 01:39:32.674531', job_id='942391', GAL2='1.21', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630571972.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.92e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1171' AND source_name='4FGL J1031.1+7442' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 01:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 942391: <4FGL_J1031.1+7442_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1031.1+7442_daily_bin1171> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 01:30:43 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 01:30:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 01:30:58 2021
Terminated at Thu Sep  2 01:39:33 2021
Results reported at Thu Sep  2 01:39:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1031.1+7442_daily_bin1171 157.792 74.7019 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1031.1+7442 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   367.51 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             320.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            530 sec.

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

