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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin600
RA = 180.833, Dec = 11.3231
tmin = 394848001, tmax = 395107201
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='288697', job_status='RUN', time_executed='2021-09-04 22:07:04.390340', time_epoch_executed='1630818424.39' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288697

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288697/ft1_4FGL_J1203.3+1119_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288697/ft2_4FGL_J1203.3+1119_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288697/ft1_4FGL_J1203.3+1119_daily_bin600.fits outfile=/scratch/kocevski/288697/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin600.fits ra=180.833 dec=11.3231 rad=12.0 tmin=394848001.0 tmax=395107201.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.22
user 4.96
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288697/ft1_filtered_4FGL_J1203.3+1119_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/288697/ft2_4FGL_J1203.3+1119_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/288697/ltcube_394848001_395107201_4FGL_J1203.3+1119_daily_bin600.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/288697/ft2_4FGL_J1203.3+1119_daily_bin600.fits
.....................!
real 12.20
user 11.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288697/ft1_filtered_4FGL_J1203.3+1119_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/288697/ft2_4FGL_J1203.3+1119_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/288697/ltcube_394848001_395107201_4FGL_J1203.3+1119_daily_bin600.fits outfile=/scratch/kocevski/288697/expmap_394848001_395107201_4FGL_J1203.3+1119_daily_bin600.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/288697/ltcube_394848001_395107201_4FGL_J1203.3+1119_daily_bin600.fits
.....................!
real 193.66
user 187.06
sys 4.85

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/288697/ft1_filtered_4FGL_J1203.3+1119_daily_bin600.fits scfile=/scratch/kocevski/288697/ft2_4FGL_J1203.3+1119_daily_bin600.fits outfile=/scratch/kocevski/288697/cmap_394848001_395107201_4FGL_J1203.3+1119_daily_bin600.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.65
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288697/ft1_filtered_4FGL_J1203.3+1119_daily_bin600.fits scfile=/scratch/kocevski/288697/ft2_4FGL_J1203.3+1119_daily_bin600.fits outfile=/scratch/kocevski/288697/cmap_HighResolution_394848001_395107201_4FGL_J1203.3+1119_daily_bin600.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12558E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12917E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11715E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    153.01       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1209       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3080       1.0000         .10000E-03   10000.    
    18 'norm      '    14.410       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .70070       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20735E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4407       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23541E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2957       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87162       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=   6518.683     FROM MIGRAD    STATUS=CONVERGED   1135 CALLS     3643 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.374        15.773        .79522E-04    .49894E-04
   2  Prefactor     17.280        42.386        .96328E-04    .12864E-04
   3  Prefactor     12.195        17.194        .11467E-03    .15039E-03
   4  Prefactor     .10000E-03    6.0764        .18142E-02** at limit **
   5  Prefactor     .10000E-03    35.619        .18142E-02** at limit **
   6  Prefactor     .10000E-03    8.2168        .18142E-02** at limit **
   7  Prefactor     .10001E-03    11.096        .32137E-02** at limit **
   8  Prefactor     .10000E-03    17.659        .18142E-02** at limit **
   9  Prefactor     .10000E-03    10.046        .23789E-02** at limit **
  10  Prefactor     153.09        103.34        .16294E-03    .40469E-05
  11  Prefactor     2.1249        80.125        .28319E-03   -.16861E-04
  12  Prefactor     .10000E-03    1.1687        .84810E-03** at limit **
  13  Prefactor     3.0747        2.8932        .12763E-03    .15696E-03
  14  Prefactor     .10000E-03    14.682        .18142E-02** at limit **
  15  norm          1.5311        3.2965        .18855E-03    .21405E-03
  16  Prefactor     .10000E-03    34.320        .18142E-02** at limit **
  17  norm          2.3079        .48476        .24707E-04    .78491E-03
  18  norm          14.403        25.103        .10551E-03    .34910E-04
  19  Prefactor     .10000E-03    40.191        .18142E-02** at limit **
  20  norm          .70057        .44824        .41242E-04   -.23494E-02
  21  Prefactor     6.0900        8.5880        .16278E-03    .36673E-03
  22  Prefactor     .10001E-03    30.871        .11262    ** at limit **
  23  norm          1.4402        1.6365        .10555E-03   -.21995E-03
  24  Prefactor     .10001E-03    287.69        .87066E-02** at limit **
  25  Normalizat    1.2959        .24618        .25997E-03    .24533E-04
  26  Prefactor     .87166        .20104        .27519E-03    .29332E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3743
  Prefactor  = 17.2803
  Prefactor  = 12.1952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 153.088
  Prefactor  = 2.12489
  Prefactor  = 0.0001
  Prefactor  = 3.07471
  Prefactor  = 0.0001
  norm       = 1.53108
  Prefactor  = 0.0001
  norm       = 2.30794
  norm       = 14.4029
  Prefactor  = 0.000100002
  norm       = 0.700567
  Prefactor  = 6.08996
  Prefactor  = 0.000100012
  norm       = 1.44024
  Prefactor  = 0.000100006
  Normalizat = 1.29588
  Prefactor  = 0.871662
 **********
 **   18 **HESSE 
 **********

 FCN=   6518.683     FROM HESSE     STATUS=OK           442 CALLS     4085 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.374        15.774        .31809E-05   -1.4700    
   2  Prefactor     17.280        42.420        .38531E-05   -1.4876    
   3  Prefactor     12.195        17.192        .45870E-05   -1.5009    
   4  Prefactor     .10000E-03    6.0764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    11.169        .64273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.106        .47578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     153.09        103.33        .65174E-05   -1.3227    
  11  Prefactor     2.1249        80.093        .11328E-04   -1.5416    
  12  Prefactor     .10000E-03    1.1687        .16962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0747        2.8930        .51050E-05   -1.5357    
  14  Prefactor     .10000E-03    14.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5311        3.2945        .75418E-05   -1.5460    
  16  Prefactor     .10000E-03    34.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3079        .48475        .49414E-05   -1.5404    
  18  norm          14.403        25.097        .42205E-05   -1.4949    
  19  Prefactor     .10000E-03    40.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .70057        .44819        .16497E-05   -1.5541    
  21  Prefactor     6.0900        8.5867        .65113E-05   -1.5214    
  22  Prefactor     .10001E-03    29.941        .11493       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4402        1.6364        .42219E-05   -1.5468    
  24  Prefactor     .10001E-03    300.01        .34827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2959        .24636        .10399E-04   -.83689    
  26  Prefactor     .87166        .20121        .55038E-04   -.97138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66757e-09
Minuit parameter uncertainties:
  1  15.7765
  2  42.4943
  3  17.1985
  4  2.47489e-06
  5  4.15283e-05
  6  9.73051e-05
  7  0.000487309
  8  0.000297748
  9  0.000275841
  10  103.455
  11  26.1284
  12  5.2333e-06
  13  2.89317
  14  7.43416e-05
  15  3.29492
  16  0.000228139
  17  0.484753
  18  25.1149
  19  0.000512421
  20  0.448192
  21  8.58846
  22  0.00122314
  23  1.63645
  24  0.00268322
  25  0.246584
  26  0.201384
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.531e+02  1.035e+02  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:  8.717e-01  2.014e-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.296e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.48
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 6.31e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.52e-05

TS (Fixed Index): 3.48
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288697/likelihoodResults_394848001_395107201_4FGL_J1203.3+1119_daily_bin600.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): 0
logL (Free Index) = 6518.46189648
delta logL = 0.220711218234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6518.41868389
delta logL = 0.263923807872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.187       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8050       1.0000          .0000       10.000    
     3 'Normalizat'    1.2631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89136       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=   6518.419     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      309 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.097        139.09        .44041E-04    .93188E-04
   2  Index         2.8053        .88566        .43655E-02    .11867E-03
   3  Normalizat    1.2617        .23384        .26287E-03    .21856E-03
   4  Prefactor     .89267        .20423        .27233E-03   -.35020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.0972
  Index      = 2.80532
  Normalizat = 1.26173
  Prefactor  = 0.892667
 **********
 **   18 **HESSE 
 **********

 FCN=   6518.419     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.097        109.96        .88082E-05   -1.3882    
   2  Index         2.8053        .69996        .17462E-03   -.45442    
   3  Normalizat    1.2617        .23222        .52574E-04   -.84716    
   4  Prefactor     .89267        .20306        .54467E-04   -.96398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46596e-09
Minuit parameter uncertainties:
  1  110.229
  2  0.702826
  3  0.232408
  4  0.203228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288697': 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): 0
logL (Free Index) = 6518.41866157
delta logL = 0.263946122851

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.310e+01  1.102e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.805e+00  7.028e-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:  8.927e-01  2.032e-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.262e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 180.833 11.323
Photon Index (Free Index): 2.81 +/- 0.70
Photon Flux (Free Index): 8.96e-08 +/- 6.24e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.25e-05

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/288697/cmap_HighResolution_394848001_395107201_4FGL_J1203.3+1119_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='6.31e-08', energy_flux2='2.00e-05', photon_flux_error='4.26e-08', dlogl='2.64e-01', energy_flux='2.25e-05', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-09-04 22:21:26.860172', photon_index_error2='0.70', photon_index2='2.81', ts='3.48', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.25e-05', EG='1.30', time_epoch_completed='1630819286.86', return_code='0', job_id='288697', GAL2='0.89', EG2='1.26', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.24e-08', ts2='4.01', photon_index='2.34' WHERE bin_id='600' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:21:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 288697: <4FGL_J1203.3+1119_daily_bin600> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin600> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:05:42 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:05:44 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:44 2021
Terminated at Sat Sep  4 22:21:27 2021
Results reported at Sat Sep  4 22:21:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin600 180.833 11.3231 394848001 395107201 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 :                                   855.32 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             286.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

