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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1311
RA = 180.833, Dec = 11.3231
tmin = 579139201, tmax = 579398401
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='293349', job_status='RUN', time_executed='2021-09-04 22:23:43.232365', time_epoch_executed='1630819423.23' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293349/ft1_4FGL_J1203.3+1119_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293349/ft2_4FGL_J1203.3+1119_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293349/ft1_4FGL_J1203.3+1119_daily_bin1311.fits outfile=/scratch/kocevski/293349/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1311.fits ra=180.833 dec=11.3231 rad=12.0 tmin=579139201.0 tmax=579398401.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 4.99
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293349/ft1_filtered_4FGL_J1203.3+1119_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/293349/ft2_4FGL_J1203.3+1119_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/293349/ltcube_579139201_579398401_4FGL_J1203.3+1119_daily_bin1311.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/293349/ft2_4FGL_J1203.3+1119_daily_bin1311.fits
.....................!
real 12.50
user 12.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293349/ft1_filtered_4FGL_J1203.3+1119_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/293349/ft2_4FGL_J1203.3+1119_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/293349/ltcube_579139201_579398401_4FGL_J1203.3+1119_daily_bin1311.fits outfile=/scratch/kocevski/293349/expmap_579139201_579398401_4FGL_J1203.3+1119_daily_bin1311.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/293349/ltcube_579139201_579398401_4FGL_J1203.3+1119_daily_bin1311.fits
.....................!
real 190.73
user 185.41
sys 4.92

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/293349/ft1_filtered_4FGL_J1203.3+1119_daily_bin1311.fits scfile=/scratch/kocevski/293349/ft2_4FGL_J1203.3+1119_daily_bin1311.fits outfile=/scratch/kocevski/293349/cmap_579139201_579398401_4FGL_J1203.3+1119_daily_bin1311.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293349/ft1_filtered_4FGL_J1203.3+1119_daily_bin1311.fits scfile=/scratch/kocevski/293349/ft2_4FGL_J1203.3+1119_daily_bin1311.fits outfile=/scratch/kocevski/293349/cmap_HighResolution_579139201_579398401_4FGL_J1203.3+1119_daily_bin1311.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1129       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6753       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11462E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8306       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17339       1.0000         .10000E-03   10000.    
    18 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .63509       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7887       1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.773       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4093       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62461       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=   5008.681     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3077 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7854       -.15064E-06** at limit **
   2  Prefactor     63.076        40.220        .93420E-06   -.32189E-04
   3  Prefactor     2.1154        14.814       -.72123E-06   -.17448E-03
   4  Prefactor     .10000E-03    9.9520        .15906E-07** at limit **
   5  Prefactor     .10000E-03    60.909       -.16259E-05** at limit **
   6  Prefactor     .10000E-03    15.363        .12398E-06** at limit **
   7  Prefactor     3.6755        5.7785        .57748E-06   -.20769E-03
   8  Prefactor     .10000E-03    4.9218       -.10849E-06** at limit **
   9  Prefactor     .33500        2.7057       -.16675E-05   -.14630E-02
  10  Prefactor     .10001E-03    53.911        .22758E-04** at limit **
  11  Prefactor     .10000E-03    15.464       -.16747E-05** at limit **
  12  Prefactor     .10000E-03    .81173        .63782E-08** at limit **
  13  Prefactor     .10000E-03    1.5009        .10212E-06** at limit **
  14  Prefactor     .10001E-03    65.398       -.15528E-04** at limit **
  15  norm          3.8241        4.3086       -.10238E-06    .29772E-04
  16  Prefactor     .10000E-03    58.330        .65767E-05** at limit **
  17  norm          .17342        .18074       -.33240E-08   -.38964E-03
  18  norm          .10000E-03    31.931       -.73691E-05** at limit **
  19  Prefactor     .10000E-03    63.255       -.91315E-05** at limit **
  20  norm          .63545        .56914       -.49834E-07   -.17804E-03
  21  Prefactor     .10000E-03    15.140       -.38148E-06** at limit **
  22  Prefactor     .10000E-03    18.042        .36856E-05** at limit **
  23  norm          2.7887        1.7912        .18427E-07   -.10437E-03
  24  Prefactor     47.776        53.049        .24230E-05   -.41883E-04
  25  Normalizat    1.4093        .19765       -.73031E-08    .83124E-04
  26  Prefactor     .62459        .17344       -.86796E-07    .33922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 63.0757
  Prefactor  = 2.11543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67551
  Prefactor  = 0.0001
  Prefactor  = 0.335004
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 3.82412
  Prefactor  = 0.000100001
  norm       = 0.173416
  norm       = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.63545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.78868
  Prefactor  = 47.7757
  Normalizat = 1.40931
  Prefactor  = 0.624594
 **********
 **   18 **HESSE 
 **********

 FCN=   5008.681     FROM HESSE     STATUS=OK           450 CALLS     3527 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     63.076        40.276        .50527E-04   -1.4118    
   3  Prefactor     2.1154        14.911        .28379E-03   -1.5417    
   4  Prefactor     .10000E-03    9.9558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    60.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6755        5.7554        .20680E-03   -1.5325    
   8  Prefactor     .10000E-03    4.9270        .15334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33500        3.1671        .23976E-03   -1.5592    
  10  Prefactor     .10001E-03    51.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .81868        .62238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5291        .84594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    64.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8241        4.2460        .13931E-03   -1.5317    
  16  Prefactor     .10000E-03    58.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .17342        .17350        .29664E-03   -1.5625    
  18  norm          .10000E-03    31.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    62.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .63545        .53892        .46464E-03   -1.5549    
  21  Prefactor     .10000E-03    15.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7887        1.7844        .72892E-04   -1.5374    
  24  Prefactor     47.776        52.950        .58014E-04   -1.4324    
  25  Normalizat    1.4093        .23410        .21485E-03   -.80360    
  26  Prefactor     .62459        .20436        .28025E-03   -1.0656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4281e-09
Minuit parameter uncertainties:
  1  1.58551e-06
  2  40.2931
  3  11.2364
  4  1.15135e-06
  5  0.000125029
  6  1.1976e-05
  7  5.7563
  8  1.41047e-06
  9  2.05993
  10  0.00159987
  11  6.66002e-05
  12  1.45477e-06
  13  2.15481e-07
  14  0.00137094
  15  4.24634
  16  0.000503434
  17  0.173496
  18  0.000448618
  19  0.000708804
  20  0.538921
  21  1.23315e-05
  22  0.000159416
  23  1.78445
  24  53.0026
  25  0.234279
  26  0.204609
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.600e-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:  6.246e-01  2.046e-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.409e+00  2.343e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293349/likelihoodResults_579139201_579398401_4FGL_J1203.3+1119_daily_bin1311.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) = 5008.68064052
delta logL = -9.24205505726e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5008.68054844
delta logL = -3.37938217854e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6941       1.0000          .0000       10.000    
     3 'Normalizat'    1.4093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62459       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=   5008.681     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10158E-03    254.58        .18142E-02** at limit **
   2  Index         2.6361        5.8088        .50000        .54761E-05
   3  Normalizat    1.4093        .12157E-01    .21485E-03   -.44574E-04
   4  Prefactor     .62459        .11051E-01    .28025E-03   -.38010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010158
  Index      = 2.63606
  Normalizat = 1.40931
  Prefactor  = 0.624594
 **********
 **   18 **HESSE 
 **********

 FCN=   5008.681     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10158E-03    1100.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6361        6.1349        .50000       -.49245    
   3  Normalizat    1.4093        .26270E-01    .42971E-04   -.80360    
   4  Prefactor     .62459        .23881E-01    .11210E-04   -1.0656    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.92063e-09
Minuit parameter uncertainties:
  1  0.0850124
  2  892.303
  3  0.0262701
  4  0.0238812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293349': 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) = 5008.68054838
delta logL = -2.75901584246e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.016e-04  8.501e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.636e+00  8.923e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  6.246e-01  2.388e-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:  1.409e+00  2.627e-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/293349/cmap_HighResolution_579139201_579398401_4FGL_J1203.3+1119_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2021-09-04 22:35:38.496887', job_id='293349', GAL2='0.62', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630820138.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='-2.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1311' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 293349: <4FGL_J1203.3+1119_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1311 180.833 11.3231 579139201 579398401 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 :                                   699.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

