/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 63 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin2
RA = 180.833, Dec = 11.3231
tmin = 239846401, tmax = 240105601
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='285476', job_status='RUN', time_executed='2021-09-04 21:56:48.338266', time_epoch_executed='1630817808.34' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285476/ft1_4FGL_J1203.3+1119_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285476/ft2_4FGL_J1203.3+1119_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285476/ft1_4FGL_J1203.3+1119_daily_bin2.fits outfile=/scratch/kocevski/285476/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin2.fits ra=180.833 dec=11.3231 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.44
user 1.27
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285476/ft2_4FGL_J1203.3+1119_daily_bin2.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/285476/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/285476/ft1_filtered_4FGL_J1203.3+1119_daily_bin2.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/285476/ft1_filtered_4FGL_J1203.3+1119_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/285476/ft2_4FGL_J1203.3+1119_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/285476/ltcube_239846401_240105601_4FGL_J1203.3+1119_daily_bin2.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/285476/ft2_4FGL_J1203.3+1119_daily_bin2.fits
.....................!
real 12.55
user 12.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285476/ft1_filtered_4FGL_J1203.3+1119_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/285476/ft2_4FGL_J1203.3+1119_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/285476/ltcube_239846401_240105601_4FGL_J1203.3+1119_daily_bin2.fits outfile=/scratch/kocevski/285476/expmap_239846401_240105601_4FGL_J1203.3+1119_daily_bin2.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/285476/ltcube_239846401_240105601_4FGL_J1203.3+1119_daily_bin2.fits
.....................!
real 191.33
user 185.92
sys 4.78

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/285476/ft1_filtered_4FGL_J1203.3+1119_daily_bin2.fits scfile=/scratch/kocevski/285476/ft2_4FGL_J1203.3+1119_daily_bin2.fits outfile=/scratch/kocevski/285476/cmap_239846401_240105601_4FGL_J1203.3+1119_daily_bin2.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285476/ft1_filtered_4FGL_J1203.3+1119_daily_bin2.fits scfile=/scratch/kocevski/285476/ft2_4FGL_J1203.3+1119_daily_bin2.fits outfile=/scratch/kocevski/285476/cmap_HighResolution_239846401_240105601_4FGL_J1203.3+1119_daily_bin2.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.833 yref=11.3231 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.112       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.828       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3146       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.432       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9076       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8240       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13164E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.2817       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .66552E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    14.539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.5213       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31551       1.0000         .10000E-03   10000.    
    23 'norm      '    3.2993       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69814       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1539       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=   5734.204     FROM MIGRAD    STATUS=CONVERGED   1118 CALLS     3197 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.110        12.874        .85181E-04    .36836E-04
   2  Prefactor     .10000E-03    21.594        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.1237        .16686E-02** at limit **
   4  Prefactor     .10000E-03    8.8790        .18142E-02** at limit **
   5  Prefactor     .10000E-03    27.880        .18142E-02** at limit **
   6  Prefactor     27.827        14.059        .75945E-04    .54040E-04
   7  Prefactor     4.3141        6.2192        .19394E-03   -.47054E-03
   8  Prefactor     36.432        22.850        .66398E-04    .72255E-04
   9  Prefactor     5.9074        4.4102        .12775E-03    .15039E-04
  10  Prefactor     .10002E-03    149.15        .18142E-02** at limit **
  11  Prefactor     .10000E-03    15.194        .18142E-02** at limit **
  12  Prefactor     1.8254        2.8509        .14775E-03    .52323E-04
  13  Prefactor     .10000E-03    3.7682        .20506E-02** at limit **
  14  Prefactor     .10001E-03    33.248        .18142E-02** at limit **
  15  norm          9.2812        4.2147        .46875E-03    .64744E-03
  16  Prefactor     .10000E-03    19.581        .18142E-02** at limit **
  17  norm          .66622E-01    .12381        .42297E-03    .48086E-02
  18  norm          14.566        31.798        .10504E-03   -.65154E-04
  19  Prefactor     .10000E-03    85.938        .18142E-02** at limit **
  20  norm          2.5213        .79555        .34356E-04   -.41363E-04
  21  Prefactor     .10000E-03    4.2921        .15299E-02** at limit **
  22  Prefactor     .27405        28.970        .97093E-01    .16674E-03
  23  norm          3.2992        1.9144        .76062E-04    .13392E-03
  24  Prefactor     .10000E-03    30.236        .18142E-02** at limit **
  25  Normalizat    .69817        .22684        .30101E-03    .63905E-04
  26  Prefactor     1.1539        .20546        .22828E-03   -.57769E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 22.1103
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 27.8268
  Prefactor  = 4.31413
  Prefactor  = 36.4318
  Prefactor  = 5.90738
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 1.82541
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  norm       = 9.28124
  Prefactor  = 0.000100001
  norm       = 0.0666221
  norm       = 14.5661
  Prefactor  = 0.0001
  norm       = 2.52125
  Prefactor  = 0.0001
  Prefactor  = 0.274052
  norm       = 3.29921
  Prefactor  = 0.000100001
  Normalizat = 0.698165
  Prefactor  = 1.15388
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.204     FROM HESSE     STATUS=OK           442 CALLS     3639 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.110        12.873        .34072E-05   -1.4767    
   2  Prefactor     .10000E-03    21.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1247        .33373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.827        14.058        .30378E-05   -1.4652    
   7  Prefactor     4.3141        6.2188        .77576E-05   -1.5293    
   8  Prefactor     36.432        22.850        .26559E-05   -1.4500    
   9  Prefactor     5.9074        4.4096        .51101E-05   -1.5222    
  10  Prefactor     .10002E-03    149.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8254        2.8492        .59099E-05   -1.5438    
  13  Prefactor     .10000E-03    3.7777        .41012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    33.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.2812        4.2144        .18750E-04   -1.5099    
  16  Prefactor     .10000E-03    19.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .66622E-01    .12370        .16919E-04   -1.5656    
  18  norm          14.566        31.795        .42017E-05   -1.4944    
  19  Prefactor     .10000E-03    85.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5213        .79553        .13742E-05   -1.5390    
  21  Prefactor     .10000E-03    4.2923        .30597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .27405        26.074        .10390       -1.5603    
  23  norm          3.2992        1.9143        .30425E-05   -1.5345    
  24  Prefactor     .10000E-03    30.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .69817        .22701        .12040E-04   -1.0397    
  26  Prefactor     1.1539        .20560        .91313E-05   -.87763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03726e-09
Minuit parameter uncertainties:
  1  12.8745
  2  0.000441539
  3  6.06166e-07
  4  9.02566e-07
  5  0.000529406
  6  14.0595
  7  6.21973
  8  22.8556
  9  4.40981
  10  0.00304101
  11  2.82523e-05
  12  2.84944
  13  0.000163998
  14  0.000928176
  15  4.21457
  16  0.000211569
  17  0.123703
  18  31.8316
  19  0.000260122
  20  0.79553
  21  4.75658e-06
  22  5.34773
  23  1.91437
  24  0.000356877
  25  0.22732
  26  0.205741
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.041e-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.154e+00  2.057e-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.982e-01  2.273e-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: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285476/likelihoodResults_239846401_240105601_4FGL_J1203.3+1119_daily_bin2.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) = 5734.20445241
delta logL = -3.18116935887e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5734.20442063
delta logL = -3.62333594239e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3041       1.0000          .0000       10.000    
     3 'Normalizat'    .69817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1539       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=   5734.204     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      248 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8634.5        .90712E-02** at limit **
   2  Index         2.3705        5.2881        .50000       -.47258E-05
   3  Normalizat    .69816        .40738E-01    .68023E-01   -.22833E-03
   4  Prefactor     1.1539        .39012E-01    .51637E-01    .82959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.37054
  Normalizat = 0.698159
  Prefactor  = 1.15389
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.204     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      279 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9976.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3705        5.9079        .50000       -.55376    
   3  Normalizat    .69816        .83361E-01    .30101E-03   -1.0397    
   4  Prefactor     1.1539        .79970E-01    .22828E-03   -.87762    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.66266e-10
Minuit parameter uncertainties:
  1  0.0133938
  2  55.7446
  3  0.083376
  4  0.0799786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285476': 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) = 5734.20442056
delta logL = 3.38186509907e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.339e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.371e+00  5.574e+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.154e+00  7.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  6.982e-01  8.338e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/285476/cmap_HighResolution_239846401_240105601_4FGL_J1203.3+1119_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.09e-08', time_completed='2021-09-04 22:09:20.075826', job_id='285476', GAL2='1.15', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630818560.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='2' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:09:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 285476: <4FGL_J1203.3+1119_daily_bin2> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin2> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:55:34 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:55:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:55:36 2021
Terminated at Sat Sep  4 22:09:20 2021
Results reported at Sat Sep  4 22:09:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin2 180.833 11.3231 239846401 240105601 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 :                                   747.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

