/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 67 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1122
RA = 180.833, Dec = 11.3231
tmin = 530150401, tmax = 530409601
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='292217', job_status='RUN', time_executed='2021-09-04 22:17:57.468167', time_epoch_executed='1630819077.47' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292217/ft1_4FGL_J1203.3+1119_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292217/ft2_4FGL_J1203.3+1119_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292217/ft1_4FGL_J1203.3+1119_daily_bin1122.fits outfile=/scratch/kocevski/292217/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1122.fits ra=180.833 dec=11.3231 rad=12.0 tmin=530150401.0 tmax=530409601.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.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292217/ft1_filtered_4FGL_J1203.3+1119_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/292217/ft2_4FGL_J1203.3+1119_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/292217/ltcube_530150401_530409601_4FGL_J1203.3+1119_daily_bin1122.fits outfile=/scratch/kocevski/292217/expmap_530150401_530409601_4FGL_J1203.3+1119_daily_bin1122.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/292217/ltcube_530150401_530409601_4FGL_J1203.3+1119_daily_bin1122.fits
.....................!
real 190.33
user 185.12
sys 4.81

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/292217/ft1_filtered_4FGL_J1203.3+1119_daily_bin1122.fits scfile=/scratch/kocevski/292217/ft2_4FGL_J1203.3+1119_daily_bin1122.fits outfile=/scratch/kocevski/292217/cmap_530150401_530409601_4FGL_J1203.3+1119_daily_bin1122.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292217/ft1_filtered_4FGL_J1203.3+1119_daily_bin1122.fits scfile=/scratch/kocevski/292217/ft2_4FGL_J1203.3+1119_daily_bin1122.fits outfile=/scratch/kocevski/292217/cmap_HighResolution_530150401_530409601_4FGL_J1203.3+1119_daily_bin1122.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0325       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .83886E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .93896E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2098       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70725E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.491       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .58225       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6287       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.925       1.0000         .10000E-03   10000.    
    15 'norm      '    .14062E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7323       1.0000         .10000E-03   10000.    
    17 'norm      '    .33008       1.0000         .10000E-03   10000.    
    18 'norm      '    46.751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .30215       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2767       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.9368       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .60732       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5277       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=   5597.609     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3224 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0325        9.7269        .97566E-06    .18769E-03
   2  Prefactor     72.070        45.557        .42363E-06    .30041E-04
   3  Prefactor     .10000E-03    6.5821       -.52352E-07** at limit **
   4  Prefactor     .10003E-03    32.817       -.15172E-05** at limit **
   5  Prefactor     .10000E-03    60.364       -.21353E-05** at limit **
   6  Prefactor     4.8202        9.0031        .11262E-05    .15726E-03
   7  Prefactor     .12111        18.573        .63294E-05   -.79785E-03
   8  Prefactor     7.2014        15.225        .20093E-05    .14681E-03
   9  Prefactor     .10000E-03    2.4264       -.17723E-06** at limit **
  10  Prefactor     36.499        50.410       -.14619E-06    .11062E-04
  11  Prefactor     .10000E-03    10.212        .15270E-07** at limit **
  12  Prefactor     .57843        3.6867        .48846E-06    .97620E-04
  13  Prefactor     2.6242        3.7486        .18360E-06    .32537E-03
  14  Prefactor     12.930        19.472       -.29631E-06   -.59342E-04
  15  norm          .10000E-03    3.4993        .74550E-06** at limit **
  16  Prefactor     9.7136        36.047       -.97370E-06   -.23806E-04
  17  norm          .33001        .23112        .20353E-07    .51658E-03
  18  norm          46.825        55.378       -.40489E-05   -.18792E-03
  19  Prefactor     .10000E-03    144.33       -.22611E-05** at limit **
  20  norm          .30157        .69595        .55325E-06    .12299E-02
  21  Prefactor     4.2769        8.9238        .29116E-05    .81885E-03
  22  Prefactor     .10000E-03    8.7551        .12446E-06** at limit **
  23  norm          4.9379        2.2616       -.18851E-07   -.24656E-03
  24  Prefactor     .10000E-03    61.900       -.30760E-07** at limit **
  25  Normalizat    .60731        .21263       -.53370E-06   -.28732E-04
  26  Prefactor     1.5276        .19698       -.49209E-06   -.10807E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.03254
  Prefactor  = 72.0696
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.000100001
  Prefactor  = 4.82024
  Prefactor  = 0.121115
  Prefactor  = 7.2014
  Prefactor  = 0.0001
  Prefactor  = 36.4995
  Prefactor  = 0.0001
  Prefactor  = 0.578429
  Prefactor  = 2.62416
  Prefactor  = 12.9298
  norm       = 0.000100001
  Prefactor  = 9.71359
  norm       = 0.330012
  norm       = 46.8255
  Prefactor  = 0.0001
  norm       = 0.301572
  Prefactor  = 4.27691
  Prefactor  = 0.0001
  norm       = 4.93792
  Prefactor  = 0.0001
  Normalizat = 0.607312
  Prefactor  = 1.52763
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.609     FROM HESSE     STATUS=OK           480 CALLS     3704 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0325        9.7057        .14147E-03   -1.5141    
   2  Prefactor     72.070        45.518        .47289E-04   -1.4008    
   3  Prefactor     .10000E-03    6.6074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    34.512        .12425       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    60.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8202        8.9701        .18328E-03   -1.5269    
   7  Prefactor     .12111        6.3136        .57761E-01   -1.5638    
   8  Prefactor     7.2014        15.163        .14939E-03   -1.5171    
   9  Prefactor     .10000E-03    16.127        .20941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.499        50.378        .66344E-04   -1.4499    
  11  Prefactor     .10000E-03    10.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .57843        4.9390        .20609E-02   -1.5556    
  13  Prefactor     2.6242        3.4756        .13585E-03   -1.5384    
  14  Prefactor     12.930        19.466        .11142E-03   -1.4989    
  15  norm          .10000E-03    3.6039        .27142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7136        36.022        .12845E-03   -1.5085    
  17  norm          .33001        .22405        .28852E-03   -1.5593    
  18  norm          46.825        55.323        .58642E-04   -1.4338    
  19  Prefactor     .10000E-03    144.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .30157        .67947        .79634E-04   -1.5598    
  21  Prefactor     4.2769        9.2177        .97411E-03   -1.5294    
  22  Prefactor     .10000E-03    8.7617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.9379        2.2473        .72072E-04   -1.5264    
  24  Prefactor     .10000E-03    61.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .60731        .23672        .33483E-03   -1.0767    
  26  Prefactor     1.5276        .22679        .21941E-03   -.76769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00451e-09
Minuit parameter uncertainties:
  1  9.7076
  2  45.5403
  3  7.59173e-06
  4  0.0019542
  5  0.000415394
  6  8.97263
  7  1.74838
  8  15.1712
  9  2.18272e-05
  10  50.4368
  11  1.94435e-06
  12  3.38054
  13  3.47587
  14  19.4758
  15  8.94822e-05
  16  36.1028
  17  0.224049
  18  55.3835
  19  0.000432566
  20  0.679492
  21  9.22072
  22  1.44092e-05
  23  2.24731
  24  4.25232e-06
  25  0.237115
  26  0.226945
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  3.650e+01  5.044e+01  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.528e+00  2.269e-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:  6.073e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.51e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 5.37e-06 +/- 7.42e-06

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

Saving results to:
/scratch/kocevski/292217/likelihoodResults_530150401_530409601_4FGL_J1203.3+1119_daily_bin1122.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) = 5597.13068143
delta logL = 0.478149777461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5597.05509419
delta logL = 0.553737012758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.511       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5637       1.0000          .0000       10.000    
     3 'Normalizat'    .61572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5216       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=   5597.055     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      275 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.516        86.920        .23104E-03   -.40304E-03
   2  Index         1.5623        .65283        .10042E-01   -.29064E-03
   3  Normalizat    .61604        .22341        .33256E-03    .87960E-04
   4  Prefactor     1.5213        .22295        .21969E-03    .14430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5162
  Index      = 1.56229
  Normalizat = 0.616042
  Prefactor  = 1.52133
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.055     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.516        87.183        .46207E-04   -1.3968    
   2  Index         1.5623        .65496        .40167E-03   -.75810    
   3  Normalizat    .61604        .22355        .13302E-04   -1.0731    
   4  Prefactor     1.5213        .22310        .43939E-04   -.76944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95302e-09
Minuit parameter uncertainties:
  1  87.3307
  2  0.658565
  3  0.223882
  4  0.223243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292217': 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) = 5597.05509099
delta logL = 0.55374020899

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  7.552e+01  8.733e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.562e+00  6.586e-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:  1.521e+00  2.232e-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:  6.160e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 180.833 11.323
Photon Index (Free Index): 1.56 +/- 0.66
Photon Flux (Free Index): 8.92e-09 +/- 1.27e-08
Energy Flux (Free Index): 2.29e-05 +/- 4.10e-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/292217/cmap_HighResolution_530150401_530409601_4FGL_J1203.3+1119_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', comment='SUCCESS', photon_flux='1.51e-08', energy_flux2='2.29e-05', photon_flux_error='2.08e-08', dlogl='5.54e-01', energy_flux='5.37e-06', photon_flux2='8.92e-09', job_status='DONE', time_completed='2021-09-04 22:31:16.193633', photon_index_error2='0.66', photon_index2='1.56', ts='1.08', fit_tolerance='1e-08', GAL='1.53', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='4.10e-05', EG='0.61', time_epoch_completed='1630819876.19', return_code='0', job_id='292217', GAL2='1.52', EG2='0.62', return_code2='0', energy_flux_error='7.42e-06', photon_flux_error2='1.27e-08', ts2='2.19', photon_index='2.34' WHERE bin_id='1122' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:31:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 292217: <4FGL_J1203.3+1119_daily_bin1122> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1122> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 22:16:32 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:16:34 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:34 2021
Terminated at Sat Sep  4 22:31:16 2021
Results reported at Sat Sep  4 22:31:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1122 180.833 11.3231 530150401 530409601 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 :                                   732.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

