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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin592
RA = 180.833, Dec = 11.3231
tmin = 392774401, tmax = 393033601
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='288685', job_status='RUN', time_executed='2021-09-04 22:06:03.874688', time_epoch_executed='1630818363.87' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288685/ft1_4FGL_J1203.3+1119_daily_bin592.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288685/ft2_4FGL_J1203.3+1119_daily_bin592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288685/ft1_4FGL_J1203.3+1119_daily_bin592.fits outfile=/scratch/kocevski/288685/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin592.fits ra=180.833 dec=11.3231 rad=12.0 tmin=392774401.0 tmax=393033601.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 5.57
user 4.98
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288685/ft1_filtered_4FGL_J1203.3+1119_daily_bin592.fits evtable="EVENTS" scfile=/scratch/kocevski/288685/ft2_4FGL_J1203.3+1119_daily_bin592.fits sctable="SC_DATA" expcube=/scratch/kocevski/288685/ltcube_392774401_393033601_4FGL_J1203.3+1119_daily_bin592.fits outfile=/scratch/kocevski/288685/expmap_392774401_393033601_4FGL_J1203.3+1119_daily_bin592.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/288685/ltcube_392774401_393033601_4FGL_J1203.3+1119_daily_bin592.fits
.....................!
real 190.62
user 185.12
sys 3.55

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/288685/ft1_filtered_4FGL_J1203.3+1119_daily_bin592.fits scfile=/scratch/kocevski/288685/ft2_4FGL_J1203.3+1119_daily_bin592.fits outfile=/scratch/kocevski/288685/cmap_392774401_393033601_4FGL_J1203.3+1119_daily_bin592.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288685/ft1_filtered_4FGL_J1203.3+1119_daily_bin592.fits scfile=/scratch/kocevski/288685/ft2_4FGL_J1203.3+1119_daily_bin592.fits outfile=/scratch/kocevski/288685/cmap_HighResolution_392774401_393033601_4FGL_J1203.3+1119_daily_bin592.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/288685/ft1_filtered_4FGL_J1203.3+1119_daily_bin592.fits evtable="EVENTS" scfile=/scratch/kocevski/288685/ft2_4FGL_J1203.3+1119_daily_bin592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/288685/Model_4FGL_J1203.3+1119_daily_bin592.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/288685/ft1_filtered_4FGL_J1203.3+1119_daily_bin592.fits.....................!
real 57.72
user 56.45
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1146       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40757E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10647E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.1630       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9070       1.0000         .10000E-03   10000.    
    18 'norm      '    11.816       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0125       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5231       1.0000         .10000E-03   10000.    
    22 'Prefactor '    115.28       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1607       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97166       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6312.426     FROM MIGRAD    STATUS=CONVERGED   1085 CALLS     3668 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4897        7.7390        .19001E-03    .16872E-04
   2  Prefactor     26.719        29.949        .77502E-04   -.11002E-04
   3  Prefactor     .10000E-03    4.2355        .15934E-02** at limit **
   4  Prefactor     1.1142        51.053        .44633E-03    .56037E-06
   5  Prefactor     .10000E-03    25.622        .18142E-02** at limit **
   6  Prefactor     .10000E-03    4.8104        .16987E-02** at limit **
   7  Prefactor     1.1435        7.2523        .20445E-02    .11940E-03
   8  Prefactor     .10000E-03    3.7498        .15023E-02** at limit **
   9  Prefactor     6.0411        4.4905        .13664E-03   -.23554E-03
  10  Prefactor     .10000E-03    43.791        .18185    ** at limit **
  11  Prefactor     17.766        33.848        .95029E-04   -.26678E-04
  12  Prefactor     .10000E-03    3.7543        .20999E-02** at limit **
  13  Prefactor     5.6465        3.2387        .10347E-03   -.45134E-03
  14  Prefactor     .10000E-03    51.131        .18142E-02** at limit **
  15  norm          7.1650        5.4084        .11265E-03   -.35262E-03
  16  Prefactor     .10000E-03    40.353        .18142E-02** at limit **
  17  norm          1.9069        .41046        .22651E-04   -.71751E-03
  18  norm          11.806        83.194        .11654E-03   -.65359E-05
  19  Prefactor     .10000E-03    49.281        .18142E-02** at limit **
  20  norm          1.0125        .63555        .47144E-03   -.28762E-03
  21  Prefactor     8.5226        8.3035        .13731E-03    .27820E-04
  22  Prefactor     115.28        41.759        .37471E-04   -.26335E-04
  23  norm          .10000E-03    .65125        .62028E-03** at limit **
  24  Prefactor     .10000E-03    38.562        .18142E-02** at limit **
  25  Normalizat    1.1608        .24950        .27327E-03   -.11104E-03
  26  Prefactor     .97147        .21562        .27139E-03   -.19508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.48974
  Prefactor  = 26.7191
  Prefactor  = 0.0001
  Prefactor  = 1.11419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14346
  Prefactor  = 0.0001
  Prefactor  = 6.04114
  Prefactor  = 0.0001
  Prefactor  = 17.7658
  Prefactor  = 0.0001
  Prefactor  = 5.64653
  Prefactor  = 0.0001
  norm       = 7.16504
  Prefactor  = 0.0001
  norm       = 1.90693
  norm       = 11.8058
  Prefactor  = 0.0001
  norm       = 1.01247
  Prefactor  = 8.5226
  Prefactor  = 115.28
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16084
  Prefactor  = 0.971473
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.426     FROM HESSE     STATUS=OK           444 CALLS     4112 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4897        7.7387        .76005E-05   -1.5284    
   2  Prefactor     26.719        29.939        .31001E-05   -1.4674    
   3  Prefactor     .10000E-03    4.2360        .31868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1142        51.048        .17853E-04   -1.5497    
   5  Prefactor     .10000E-03    25.622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8109        .33975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1435        7.2341        .81781E-04   -1.5494    
   8  Prefactor     .10000E-03    3.7498        .30045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0411        4.4900        .54657E-05   -1.5216    
  10  Prefactor     .10000E-03    43.844        .18163       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.766        33.816        .38012E-05   -1.4865    
  12  Prefactor     .10000E-03    3.7667        .41998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6465        3.2379        .41390E-05   -1.5233    
  14  Prefactor     .10000E-03    51.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.1650        5.4055        .45059E-05   -1.5173    
  16  Prefactor     .10000E-03    40.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9069        .41047        .45303E-05   -1.5432    
  18  norm          11.806        83.032        .46616E-05   -1.5021    
  19  Prefactor     .10000E-03    49.281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0125        .63552        .18857E-04   -1.5507    
  21  Prefactor     8.5226        8.3030        .54924E-05   -1.5124    
  22  Prefactor     115.28        41.757        .74943E-05   -1.3556    
  23  norm          .10000E-03    .65130        .12406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1608        .24973        .10931E-04   -.87822    
  26  Prefactor     .97147        .21583        .10856E-04   -.93687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93727e-10
Minuit parameter uncertainties:
  1  7.74038
  2  29.9554
  3  5.68674e-06
  4  15.0964
  5  9.95486e-06
  6  1.34677e-06
  7  5.75297
  8  1.079e-07
  9  4.49028
  10  0.000152495
  11  33.8525
  12  7.47833e-05
  13  3.23803
  14  0.000262476
  15  5.40591
  16  8.21064e-05
  17  0.410467
  18  62.7422
  19  0.000111315
  20  0.63552
  21  8.30408
  22  41.7672
  23  1.19691e-06
  24  9.94046e-05
  25  0.249991
  26  0.216024
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.525e-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.715e-01  2.160e-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.161e+00  2.500e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288685/likelihoodResults_392774401_393033601_4FGL_J1203.3+1119_daily_bin592.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) = 6312.42585416
delta logL = -8.18905300548e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6312.42585416
delta logL = -8.18884200271e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3389       1.0000          .0000       10.000    
     3 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97147       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=   6312.426     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      253 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    1.1176        .18843    ** at limit **
   2  Index         2.2322        7.9482        .50000        .22533E-06
   3  Normalizat    1.1608        .72928E-03    .61783E-01   -.25930E-03
   4  Prefactor     .97148        .67253E-03    .45910E-01    .46098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100279
  Index      = 2.23221
  Normalizat = 1.16083
  Prefactor  = 0.971479
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.426     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      294 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10028E-03    1.0275        .19753       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2322        8.1166        .50000       -.58663    
   3  Normalizat    1.1608        .71536E-03    .27327E-03   -.87822    
   4  Prefactor     .97148        .66003E-03    .27139E-03   -.93686    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86642e-13
Minuit parameter uncertainties:
  1  0.00107049
  2  20.5321
  3  0.000715357
  4  0.000660033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288685': 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) = 6312.42584595
delta logL = 2.13585735764e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.003e-04  1.070e-03  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.232e+00  2.053e+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.715e-01  6.600e-04  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.161e+00  7.154e-04  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/288685/cmap_HighResolution_392774401_393033601_4FGL_J1203.3+1119_daily_bin592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2021-09-04 22:20:24.512833', job_id='288685', GAL2='0.97', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630819224.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='592' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:20:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 288685: <4FGL_J1203.3+1119_daily_bin592> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin592 180.833 11.3231 392774401 393033601 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 :                                   856.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            884 sec.

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

