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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1368
RA = 180.833, Dec = 11.3231
tmin = 593913601, tmax = 594172801
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='293438', job_status='RUN', time_executed='2021-09-04 22:24:32.683183', time_epoch_executed='1630819472.68' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293438

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293438/ft1_4FGL_J1203.3+1119_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293438/ft1_4FGL_J1203.3+1119_daily_bin1368.fits outfile=/scratch/kocevski/293438/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1368.fits ra=180.833 dec=11.3231 rad=12.0 tmin=593913601.0 tmax=594172801.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.60
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.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/293438/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1368.fits evtable="EVENTS" outfile="/scratch/kocevski/293438/ft1_filtered_4FGL_J1203.3+1119_daily_bin1368.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293438/ft1_filtered_4FGL_J1203.3+1119_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/293438/ltcube_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.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/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.fits
.....................!
real 11.79
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293438/ft1_filtered_4FGL_J1203.3+1119_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/293438/ltcube_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.fits outfile=/scratch/kocevski/293438/expmap_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.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/293438/ltcube_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.fits
.....................!
real 191.82
user 186.88
sys 4.62

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/293438/ft1_filtered_4FGL_J1203.3+1119_daily_bin1368.fits scfile=/scratch/kocevski/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.fits outfile=/scratch/kocevski/293438/cmap_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293438/ft1_filtered_4FGL_J1203.3+1119_daily_bin1368.fits scfile=/scratch/kocevski/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.fits outfile=/scratch/kocevski/293438/cmap_HighResolution_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293438/ft1_filtered_4FGL_J1203.3+1119_daily_bin1368.fits', '/scratch/kocevski/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.fits', expMap='/scratch/kocevski/293438/expmap_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.fits', expCube='/scratch/kocevski/293438/ltcube_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293438/Model_4FGL_J1203.3+1119_daily_bin1368.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/293438/ft1_filtered_4FGL_J1203.3+1119_daily_bin1368.fits
Spacecraft file(s): /scratch/kocevski/293438/ft2_4FGL_J1203.3+1119_daily_bin1368.fits
Exposure map: /scratch/kocevski/293438/expmap_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.fits
Exposure cube: /scratch/kocevski/293438/ltcube_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293438/Model_4FGL_J1203.3+1119_daily_bin1368.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) = 5609.31588697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5310       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.905       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5891       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1007       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.346       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9753       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.523       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11902E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    125.45       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6815       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8604       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95253       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2382       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=   5609.305     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3139 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5312        6.8470        .53480E-06   -.77715E-04
   2  Prefactor     .10000E-03    17.933        .54282E-06** at limit **
   3  Prefactor     .38821        4.3025        .85176E-06   -.34182E-03
   4  Prefactor     31.905        27.997        .38848E-08   -.89842E-05
   5  Prefactor     .10006E-03    64.441        .11255E-04** at limit **
   6  Prefactor     4.5890        8.5598        .49673E-05   -.51754E-03
   7  Prefactor     .10000E-03    5.7296       -.30680E-07** at limit **
   8  Prefactor     .10000E-03    14.859       -.10772E-05** at limit **
   9  Prefactor     4.1007        4.2404        .23386E-06   -.15311E-03
  10  Prefactor     .10001E-03    138.28       -.38141E-05** at limit **
  11  Prefactor     3.5794        40.959        .10468E-04   -.10994E-03
  12  Prefactor     .10000E-03    .99897       -.77173E-08** at limit **
  13  Prefactor     .10000E-03    1.6390        .14848E-06** at limit **
  14  Prefactor     12.339        27.649       -.66571E-06   -.17229E-04
  15  norm          1.9755        3.8812        .27437E-06    .52301E-05
  16  Prefactor     35.523        43.523        .21674E-06   -.65553E-05
  17  norm          .10000E-03    .68275E-01    .16520E-07** at limit **
  18  norm          .10002E-03    140.89       -.68125E-05** at limit **
  19  Prefactor     125.44        122.43       -.42232E-06   -.14816E-04
  20  norm          1.6814        .72470       -.29261E-07   -.76532E-04
  21  Prefactor     .10000E-03    12.991        .51835E-06** at limit **
  22  Prefactor     .10000E-03    60.348        .19030E-05** at limit **
  23  norm          1.8603        1.5538        .42718E-07   -.53041E-04
  24  Prefactor     .10003E-03    53.043       -.77543E-05** at limit **
  25  Normalizat    .95270        .19540       -.12328E-05   -.83186E-04
  26  Prefactor     1.2380        .18501       -.36268E-06   -.79558E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.53118
  Prefactor  = 0.0001
  Prefactor  = 0.388206
  Prefactor  = 31.9047
  Prefactor  = 0.000100064
  Prefactor  = 4.58898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10069
  Prefactor  = 0.000100007
  Prefactor  = 3.57936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3389
  norm       = 1.97546
  Prefactor  = 35.5229
  norm       = 0.0001
  norm       = 0.000100019
  Prefactor  = 125.444
  norm       = 1.68135
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.86031
  Prefactor  = 0.00010003
  Normalizat = 0.9527
  Prefactor  = 1.23805
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.305     FROM HESSE     STATUS=OK           460 CALLS     3599 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5312        6.8263        .25674E-03   -1.5390    
   2  Prefactor     .10000E-03    17.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38821        10.122        .29912E-02   -1.5583    
   4  Prefactor     31.905        27.995        .70938E-04   -1.4578    
   5  Prefactor     .10006E-03    69.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5890        8.7373        .93950E-03   -1.5279    
   7  Prefactor     .10000E-03    5.7962        .17503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1007        4.2307        .14714E-03   -1.5303    
  10  Prefactor     .10001E-03    139.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5794        41.552        .10680E-02   -1.5330    
  12  Prefactor     .10000E-03    1.0149        .72982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3241        .18506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.339        27.490        .11401E-03   -1.5005    
  15  norm          1.9755        3.8144        .18032E-03   -1.5427    
  16  Prefactor     35.523        43.537        .67239E-04   -1.4515    
  17  norm          .10000E-03    .77359E-01    .38139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10002E-03    144.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     125.44        122.39        .35940E-04   -1.3463    
  20  norm          1.6814        .71581        .38535E-04   -1.5449    
  21  Prefactor     .10000E-03    13.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    61.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8603        1.5410        .82139E-04   -1.5435    
  24  Prefactor     .10003E-03    55.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95270        .22766        .27091E-03   -.94632    
  26  Prefactor     1.2380        .21757        .23373E-03   -.85168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5203e-09
Minuit parameter uncertainties:
  1  6.82842
  2  0.000105544
  3  3.96475
  4  28.0062
  5  0.00422151
  6  8.73975
  7  4.16855e-06
  8  0.000167935
  9  4.23104
  10  0.00192774
  11  24.4118
  12  2.6016e-07
  13  1.85073e-06
  14  27.5181
  15  3.81485
  16  43.5757
  17  2.19816e-07
  18  0.00328044
  19  122.634
  20  0.715817
  21  6.77864e-05
  22  0.00059809
  23  1.54104
  24  0.00257352
  25  0.227893
  26  0.217727
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.928e-03  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:  1.238e+00  2.177e-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:  9.527e-01  2.279e-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: 7.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293438/likelihoodResults_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.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) = 5609.30525503
delta logL = -3.40506840075e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5609.30522108
delta logL = -1.02806552604e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4734       1.0000          .0000       10.000    
     3 'Normalizat'    .95270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2380       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=   5609.305     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      243 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    73.474        .90712E-02** at limit **
   2  Index         2.4213        5.9790        .50000        .34872E-05
   3  Normalizat    .95270        .37795E-02    .45572E-01    .29520E-04
   4  Prefactor     1.2380        .36774E-02    .52864E-01   -.23452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.4213
  Normalizat = 0.952703
  Prefactor  = 1.23804
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.305     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    395.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4213        7.8989        .50000       -.54187    
   3  Normalizat    .95270        .88087E-02    .27091E-03   -.94632    
   4  Prefactor     1.2380        .85714E-02    .23373E-03   -.85169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.81075e-08
Minuit parameter uncertainties:
  1  0.0032731
  2  256.372
  3  0.00880869
  4  0.00857144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293438': 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) = 5609.30522104
delta logL = -5.5735654314e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.273e-03  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.421e+00  2.564e+02  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:  1.238e+00  8.571e-03  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:  9.527e-01  8.809e-03  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/293438/cmap_HighResolution_593913601_594172801_4FGL_J1203.3+1119_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-09-04 22:36:53.948601', job_id='293438', GAL2='1.24', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630820213.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-5.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1368' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:36:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 293438: <4FGL_J1203.3+1119_daily_bin1368> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1368> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:20:41 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:20:42 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:20:42 2021
Terminated at Sat Sep  4 22:36:54 2021
Results reported at Sat Sep  4 22:36:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1368 180.833 11.3231 593913601 594172801 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 :                                   735.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

