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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin1402
RA = 180.788, Dec = 60.518
tmin = 602726401, tmax = 602985601
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='283845', job_status='RUN', time_executed='2021-09-04 21:50:44.092875', time_epoch_executed='1630817444.09' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283845/ft1_4FGL_J1203.1+6031_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283845/ft1_4FGL_J1203.1+6031_daily_bin1402.fits outfile=/scratch/kocevski/283845/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1402.fits ra=180.788 dec=60.518 rad=12.0 tmin=602726401.0 tmax=602985601.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 3.13
user 2.85
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.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/283845/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/283845/ltcube_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.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/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits
.....................!
real 12.26
user 11.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/283845/ltcube_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.fits outfile=/scratch/kocevski/283845/expmap_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.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/283845/ltcube_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.fits
.....................!
real 192.68
user 186.85
sys 5.28

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

Setting source of interest to:
4FGL J1203.1+6031 @ 180.788 60.518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.fits scfile=/scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits outfile=/scratch/kocevski/283845/cmap_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.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=180.788 yref=60.518 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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.fits scfile=/scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits outfile=/scratch/kocevski/283845/cmap_HighResolution_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.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=180.788 yref=60.518 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/283845/Model_4FGL_J1203.1+6031_daily_bin1402.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/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.fits.....................!
real 41.28
user 39.95
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.fits', '/scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits', expMap='/scratch/kocevski/283845/expmap_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.fits', expCube='/scratch/kocevski/283845/ltcube_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/283845/Model_4FGL_J1203.1+6031_daily_bin1402.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.1+6031'

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.279e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/283845/ft1_filtered_4FGL_J1203.1+6031_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/283845/ft2_4FGL_J1203.1+6031_daily_bin1402.fits
Exposure map: /scratch/kocevski/283845/expmap_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.fits
Exposure cube: /scratch/kocevski/283845/ltcube_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/283845/Model_4FGL_J1203.1+6031_daily_bin1402.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) = 3600.77126022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    96.175       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9121       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18140E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12318E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4691       1.0000         .10000E-03   10000.    
    15 'norm      '    20.030       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.394       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4509       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.0145       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.8811       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4145       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.1034       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.7801       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3600.339     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     6537 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    523.65        .14041E-06** at limit **
   2  norm          .10000E-03    33.115       -.27615E-07** at limit **
   3  norm         10000.0        153.54        .13094E-06** at limit **
   4  Prefactor     96.187        217.85       -.68731E-06    .49203E-05
   5  norm          2.9098        2.8891        .68906E-06    .51562E-03
   6  Prefactor    10000.0        8798.2       -.24548E-06** at limit **
   7  norm         10000.0        227.04        .15631E-06** at limit **
   8  Prefactor     .10001E-03    632.07       -.53223E-04** at limit **
   9  Prefactor     .10000E-03    7809.7        .10360E-06** at limit **
  10  Prefactor    10000.0        494.44       -.13861E-06** at limit **
  11  Prefactor     .10000E-03    23.818       -.97938E-08** at limit **
  12  Prefactor     .10000E-03    44.477        .88146E-08** at limit **
  13  Prefactor     .10000E-03    4.7340       -.16712E-07** at limit **
  14  Prefactor     1.4692        2.3803       -.57141E-08   -.14693E-03
  15  norm          20.030        23.010       -.80534E-07    .43061E-05
  16  Prefactor     15.394        10.794        .81957E-07    .13105E-04
  17  norm          .10000E-03    3.9418       -.34889E-07** at limit **
  18  Prefactor     .10000E-03    2.9828       -.41473E-07** at limit **
  19  Prefactor     7.4514        14.222       -.19347E-06   -.87970E-06
  20  norm          .10000E-03    .86703       -.45159E-08** at limit **
  21  Prefactor     .10000E-03    34.675        .35179E-05** at limit **
  22  Prefactor     .10000E-03    20.337       -.34957E-07** at limit **
  23  norm          9.0145        4.5354       -.16065E-06    .10980E-03
  24  norm          .10000E-03    22.870        .10081E-05** at limit **
  25  Prefactor     .10000E-03    2.2582       -.32605E-06** at limit **
  26  norm          4.8810        2.7374       -.24156E-07    .27279E-03
  27  norm          1.4145        1.9367       -.74830E-07   -.13592E-03
  28  Prefactor     .10000E-03    53.601        .34785E-06** at limit **
  29  Prefactor     4.1034        9.9668       -.78411E-06   -.54999E-04
  30  Prefactor     .10000E-03    8.9781       -.11082E-07** at limit **
  31  Prefactor     4.7801        3.5715       -.13634E-06    .69478E-04
  32  Normalizat    .10000E-01    .30519E-01   -.69318E-05** at limit **
  33  Prefactor     1.2451        .13537        .49210E-06    .11159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 96.1872
  norm       = 2.90984
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46923
  norm       = 20.0305
  Prefactor  = 15.3939
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.45139
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.01451
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88105
  norm       = 1.41446
  Prefactor  = 0.0001
  Prefactor  = 4.10339
  Prefactor  = 0.0001
  Prefactor  = 4.7801
  Normalizat = 0.01
  Prefactor  = 1.24509
 **********
 **   18 **HESSE 
 **********

 FCN=   3600.339     FROM HESSE     STATUS=OK           695 CALLS     7232 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    523.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    33.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        153.58        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     96.187        217.91        .40986E-04   -1.3743    
   5  norm          2.9098        5.4623        .97876E-04   -1.5367    
   6  Prefactor    10000.0        8798.2        .19944E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        227.11        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    45.592        .35660E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7809.7        .20619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        494.54        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7375        .12751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4692        2.3489        .11421E-03   -1.5466    
  15  norm          20.030        23.008        .89493E-04   -1.4813    
  16  Prefactor     15.394        10.791        .10208E-03   -1.4923    
  17  norm          .10000E-03    4.0259        .11634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9834        .10120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4514        14.210        .14693E-03   -1.5162    
  20  norm          .10000E-03    .86865        .54563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.942        .31572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.0145        4.5321        .86459E-04   -1.5107    
  24  norm          .10000E-03    23.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.2612        .87973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.8810        2.7319        .68119E-04   -1.5266    
  27  norm          1.4145        1.9120        .94463E-04   -1.5470    
  28  Prefactor     .10000E-03    53.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.1034        9.9058        .19901E-03   -1.5303    
  30  Prefactor     .10000E-03    8.9787        .17561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.7801        3.5665        .94123E-04   -1.5271    
  32  Normalizat    .10000E-01    .28777E-01    .59417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.2451        .12938        .20757E-03   -.84955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88377e-10
Minuit parameter uncertainties:
  1  0.0015717
  2  3.26399e-05
  3  0.000512745
  4  219.763
  5  5.46325
  6  0.0103784
  7  0.000286263
  8  0.00113165
  9  0.00512728
  10  0.00141756
  11  4.95593e-06
  12  4.36879e-05
  13  3.03047e-06
  14  2.34905
  15  23.0181
  16  10.792
  17  2.61984e-06
  18  1.31536e-06
  19  14.2169
  20  8.28641e-07
  21  0.000102385
  22  1.15938e-05
  23  4.53227
  24  0.000158258
  25  1.28533e-05
  26  2.73193
  27  1.91205
  28  0.000151138
  29  9.90975
  30  3.72169e-06
  31  3.56665
  32  1.44156e-07
  33  0.129412
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  1.315e-06  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.245e+00  1.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  1.000e-02  1.442e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.788 60.518
Photon Flux Upper Limit: 5.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283845/likelihoodResults_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.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) = 3600.34083881
delta logL = -0.00157287392358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3600.33926528
delta logL = 6.57695181872e-07

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 'Index     '    2.0898       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3600.339     FROM MIGRAD    STATUS=FAILED        85 CALLS      240 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10236E-03    41.007        .10534E-02** at limit **
   2  Index         2.0181        8.4644        .50000        .70617E-04
   3  Normalizat    .10000E-01    .71339E-03    .59417E-02** at limit **
   4  Prefactor     1.2451        .18405E-01    .20757E-03    .14927E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3600.339     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      376 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10236E-03    41.007        .15801E-03** at limit **
   2  Index         2.0181        8.4644        .32381E-03    .70617E-04
   3  Normalizat    .10000E-01    .71339E-03    .41000E-03** at limit **
   4  Prefactor     1.2451        .18405E-01    .81804E-06    .14927E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3600.339     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      423 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.536        .21068E-02** at limit **
   2  Index         1.4974        7.9706        .50000        .26544E-06
   3  Normalizat    .10000E-01    .78734E-03    .11883E-02** at limit **
   4  Prefactor     1.2451        .19333E-01    .41513E-04   -.18936E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.49739
  Normalizat = 0.01
  Prefactor  = 1.24508
 **********
 **   18 **HESSE 
 **********

 FCN=   3600.339     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      452 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    280.27        .42136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4974        8.8358        .50000       -.77613    
   3  Normalizat    .10000E-01    .39318E-02    .23767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2451        .43204E-01    .83027E-05   -.84955    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31538e-09
Minuit parameter uncertainties:
  1  0.00057369
  2  688.713
  3  1.41069e-06
  4  0.0432048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283845': 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) = 3600.33925982
delta logL = 6.12337134953e-06

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  5.737e-04  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.497e+00  6.887e+02  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.245e+00  4.320e-02  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  1.000e-02  1.411e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.788 60.518

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/283845/cmap_HighResolution_602726401_602985601_4FGL_J1203.1+6031_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.31e-08', time_completed='2021-09-04 22:05:51.806187', job_id='283845', GAL2='1.25', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630818351.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='6.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1402' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:05:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 283845: <4FGL_J1203.1+6031_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin1402> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 21:50:31 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:50:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:50:32 2021
Terminated at Sat Sep  4 22:05:52 2021
Results reported at Sat Sep  4 22:05:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin1402 180.788 60.518 602726401 602985601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.1+6031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   903.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

