/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7329
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1031
RA = 180.833, Dec = 11.3231
tmin = 506563201, tmax = 506822401
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='292041', job_status='RUN', time_executed='2021-09-04 22:17:42.417384', time_epoch_executed='1630819062.42' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292041/ft1_4FGL_J1203.3+1119_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292041/ft1_4FGL_J1203.3+1119_daily_bin1031.fits outfile=/scratch/kocevski/292041/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1031.fits ra=180.833 dec=11.3231 rad=12.0 tmin=506563201.0 tmax=506822401.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.38
user 3.17
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.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/292041/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1031.fits evtable="EVENTS" outfile="/scratch/kocevski/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits" evtable="EVENTS" scfile=/scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits sctable="SC_DATA" outfile=/scratch/kocevski/292041/ltcube_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.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/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits
.....................!
real 11.63
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/292041/ltcube_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.fits outfile=/scratch/kocevski/292041/expmap_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.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/292041/ltcube_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.fits
.....................!
real 189.41
user 185.10
sys 3.99

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

Setting source of interest to:
4FGL J1203.3+1119 @ 180.833 11.3231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits scfile=/scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits outfile=/scratch/kocevski/292041/cmap_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.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.833 yref=11.3231 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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits scfile=/scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits outfile=/scratch/kocevski/292041/cmap_HighResolution_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.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.833 yref=11.3231 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/292041/Model_4FGL_J1203.3+1119_daily_bin1031.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/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits.....................!
real 53.08
user 51.86
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits', '/scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits', expMap='/scratch/kocevski/292041/expmap_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.fits', expCube='/scratch/kocevski/292041/ltcube_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/292041/Model_4FGL_J1203.3+1119_daily_bin1031.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.3+1119'

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.766e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/292041/ft1_filtered_4FGL_J1203.3+1119_daily_bin1031.fits
Spacecraft file(s): /scratch/kocevski/292041/ft2_4FGL_J1203.3+1119_daily_bin1031.fits
Exposure map: /scratch/kocevski/292041/expmap_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.fits
Exposure cube: /scratch/kocevski/292041/ltcube_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/292041/Model_4FGL_J1203.3+1119_daily_bin1031.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) = 5630.93401523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3525       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.318       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0451       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45332E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4104       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60908E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22420E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2065       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6228       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1325       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15406E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25267E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    83.257       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53946E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1029       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.209       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .34494E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6754       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12973E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5630.810     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     2351 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3588        10.066       -.81171E-06    .62506E-06
   2  Prefactor     1.6791        101.60        .42357E-04    .12947E-04
   3  Prefactor     12.296        11.650        .41772E-06   -.35470E-04
   4  Prefactor     .10000E-03    9.9701       -.18875E-06** at limit **
   5  Prefactor     16.820        87.782       -.10038E-05    .33890E-05
   6  Prefactor     .10000E-03    3.8448        .78469E-07** at limit **
   7  Prefactor     9.0659        9.4355        .99589E-06   -.16931E-03
   8  Prefactor     .10000E-03    7.3662        .69139E-07** at limit **
   9  Prefactor     4.4120        4.4429        .94067E-07   -.32946E-04
  10  Prefactor     .10000E-03    46.086       -.36462E-05** at limit **
  11  Prefactor     .10000E-03    28.046        .28850E-06** at limit **
  12  Prefactor     3.2085        3.8626        .13344E-06    .37402E-05
  13  Prefactor     4.6265        3.9651        .15265E-06    .42573E-04
  14  Prefactor     5.1205        14.134       -.39431E-07   -.99258E-06
  15  norm          .10000E-03    1.6925       -.27813E-06** at limit **
  16  Prefactor     .10000E-03    9.3309        .73926E-08** at limit **
  17  norm          .38560E-02    .19011       -.12215E-07    .28851E-05
  18  norm          83.411        45.923        .67436E-06   -.36463E-04
  19  Prefactor     .10000E-03    43.180        .38200E-05** at limit **
  20  norm          1.1029        .71563       -.62185E-08   -.35031E-03
  21  Prefactor     20.164        11.488       -.26047E-06    .10677E-03
  22  Prefactor     .10000E-03    7.8539        .29859E-06** at limit **
  23  norm          3.6777        2.2924        .97443E-07    .22378E-04
  24  Prefactor     .10000E-03    30.354        .11534E-06** at limit **
  25  Normalizat    1.2028        .20373       -.96018E-06    .28735E-04
  26  Prefactor     .90178        .18261       -.73053E-06    .20691E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.35882
  Prefactor  = 1.67913
  Prefactor  = 12.2958
  Prefactor  = 0.0001
  Prefactor  = 16.8196
  Prefactor  = 0.0001
  Prefactor  = 9.06594
  Prefactor  = 0.0001
  Prefactor  = 4.41196
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 3.20851
  Prefactor  = 4.62655
  Prefactor  = 5.12045
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00385597
  norm       = 83.4106
  Prefactor  = 0.000100001
  norm       = 1.10288
  Prefactor  = 20.1642
  Prefactor  = 0.0001
  norm       = 3.67769
  Prefactor  = 0.0001
  Normalizat = 1.20278
  Prefactor  = 0.901784
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.810     FROM HESSE     STATUS=OK           468 CALLS     2819 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3588        10.041        .26724E-03   -1.5401    
   2  Prefactor     1.6791        101.88        .26308E-02   -1.5449    
   3  Prefactor     12.296        11.662        .11443E-03   -1.5007    
   4  Prefactor     .10000E-03    9.9733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.820        88.139        .99149E-04   -1.4888    
   6  Prefactor     .10000E-03    3.8516        .14369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0659        9.4345        .13327E-03   -1.5106    
   8  Prefactor     .10000E-03    7.3954        .19888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4120        4.4205        .14561E-03   -1.5288    
  10  Prefactor     .10000E-03    46.139        .18917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.127        .20124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2085        3.8021        .13399E-03   -1.5350    
  13  Prefactor     4.6265        3.9239        .11846E-03   -1.5278    
  14  Prefactor     5.1205        14.121        .17746E-03   -1.5255    
  15  norm          .10000E-03    1.7145        .95144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.3344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38560E-02    .26153        .92964E-02   -1.5696    
  18  norm          83.411        45.883        .22011E-03   -1.3879    
  19  Prefactor     .10000E-03    43.220        .19096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1029        .70174        .46861E-04   -1.5498    
  21  Prefactor     20.164        11.499        .89096E-04   -1.4810    
  22  Prefactor     .10000E-03    7.8636        .20541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6777        2.2831        .84265E-04   -1.5324    
  24  Prefactor     .10000E-03    30.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2028        .24074        .24744E-03   -.86517    
  26  Prefactor     .90178        .21402        .26287E-03   -.96079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13127e-10
Minuit parameter uncertainties:
  1  9.7361
  2  26.2048
  3  11.6641
  4  3.47317e-05
  5  77.1841
  6  8.26569e-06
  7  9.43606
  8  6.12842e-06
  9  4.42085
  10  0.000439517
  11  0.000340324
  12  3.80239
  13  3.92413
  14  14.13
  15  2.19856e-05
  16  4.25055e-06
  17  0.0626839
  18  45.9027
  19  0.000401605
  20  0.701746
  21  11.4999
  22  4.73811e-05
  23  2.28314
  24  1.00979e-05
  25  0.240961
  26  0.21422
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.395e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.018e-01  2.142e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.203e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 6.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/292041/likelihoodResults_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.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) = 5630.80990267
delta logL = -0.000103170958937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5630.80979956
delta logL = -5.94582161284e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5630.810     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      235 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1688.1        .90712E-02** at limit **
   2  Index         2.2887        5.1621        .50000       -.20184E-05
   3  Normalizat    1.2028        .32505E-01    .55956E-01    .22495E-05
   4  Prefactor     .90178        .30532E-01    .45028E-01    .13998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28868
  Normalizat = 1.20278
  Prefactor  = 0.901784
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.810     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7420.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2887        7.4082        .50000       -.57313    
   3  Normalizat    1.2028        .69482E-01    .24744E-03   -.86517    
   4  Prefactor     .90178        .65278E-01    .26287E-03   -.96079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13172e-09
Minuit parameter uncertainties:
  1  0.000931392
  2  48.5585
  3  0.0694875
  4  0.0652839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292041': 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) = 5630.80979953
delta logL = -2.6355337468e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  9.314e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.289e+00  4.856e+01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.018e-01  6.528e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.203e+00  6.949e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.833 11.323

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/292041/cmap_HighResolution_506563201_506822401_4FGL_J1203.3+1119_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-04 22:29:51.199587', job_id='292041', GAL2='0.90', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630819791.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-2.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1031' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:29:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 292041: <4FGL_J1203.3+1119_daily_bin1031> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1031> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 22:16:21 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:16:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:16:23 2021
Terminated at Sat Sep  4 22:29:51 2021
Results reported at Sat Sep  4 22:29:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1031 180.833 11.3231 506563201 506822401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.3+1119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

