/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7342
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1543
RA = 180.833, Dec = 11.3231
tmin = 639273601, tmax = 639532801
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='293668', job_status='RUN', time_executed='2021-09-04 22:21:19.224554', time_epoch_executed='1630819279.22' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293668/ft1_4FGL_J1203.3+1119_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293668/ft2_4FGL_J1203.3+1119_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293668/ft1_4FGL_J1203.3+1119_daily_bin1543.fits outfile=/scratch/kocevski/293668/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1543.fits ra=180.833 dec=11.3231 rad=12.0 tmin=639273601.0 tmax=639532801.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.24
user 4.97
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293668/ft1_filtered_4FGL_J1203.3+1119_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/293668/ft2_4FGL_J1203.3+1119_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/293668/ltcube_639273601_639532801_4FGL_J1203.3+1119_daily_bin1543.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/293668/ft2_4FGL_J1203.3+1119_daily_bin1543.fits
.....................!
real 11.90
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293668/ft1_filtered_4FGL_J1203.3+1119_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/293668/ft2_4FGL_J1203.3+1119_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/293668/ltcube_639273601_639532801_4FGL_J1203.3+1119_daily_bin1543.fits outfile=/scratch/kocevski/293668/expmap_639273601_639532801_4FGL_J1203.3+1119_daily_bin1543.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/293668/ltcube_639273601_639532801_4FGL_J1203.3+1119_daily_bin1543.fits
.....................!
real 190.91
user 186.52
sys 4.02

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/293668/ft1_filtered_4FGL_J1203.3+1119_daily_bin1543.fits scfile=/scratch/kocevski/293668/ft2_4FGL_J1203.3+1119_daily_bin1543.fits outfile=/scratch/kocevski/293668/cmap_639273601_639532801_4FGL_J1203.3+1119_daily_bin1543.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293668/ft1_filtered_4FGL_J1203.3+1119_daily_bin1543.fits scfile=/scratch/kocevski/293668/ft2_4FGL_J1203.3+1119_daily_bin1543.fits outfile=/scratch/kocevski/293668/cmap_HighResolution_639273601_639532801_4FGL_J1203.3+1119_daily_bin1543.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/293668/ft1_filtered_4FGL_J1203.3+1119_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/293668/ft2_4FGL_J1203.3+1119_daily_bin1543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293668/Model_4FGL_J1203.3+1119_daily_bin1543.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/293668/ft1_filtered_4FGL_J1203.3+1119_daily_bin1543.fits.....................!
real 52.39
user 51.07
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11494E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .79649       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98181E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3798       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    67.048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .38845       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.0144       1.0000         .10000E-03   10000.    
    24 'Prefactor '    141.32       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .70888       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5215       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=   5692.188     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3191 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9532        .12582E-06** at limit **
   2  Prefactor     14.098        32.388       -.10080E-04   -.34159E-05
   3  Prefactor     12.810        12.647       -.82644E-06   -.11118E-02
   4  Prefactor     .10000E-03    22.364        .19911E-05** at limit **
   5  Prefactor     .10000E-03    81.743        .38933E-05** at limit **
   6  Prefactor     .10000E-03    4.2136        .95558E-07** at limit **
   7  Prefactor     .10000E-03    27.554        .35498E-05** at limit **
   8  Prefactor     1.6739        9.7073       -.16512E-04   -.39584E-03
   9  Prefactor     .10000E-03    1.9527        .62262E-07** at limit **
  10  Prefactor     .10000E-03    22.971       -.54722E-05** at limit **
  11  Prefactor     34.094        39.709        .39070E-06   -.23989E-04
  12  Prefactor     .10000E-03    1.0365        .59383E-07** at limit **
  13  Prefactor     .79545        1.9738       -.36943E-06   -.10255E-02
  14  Prefactor     .10012E-03    37.592       -.73707E-06** at limit **
  15  norm          5.3870        5.4794        .46896E-06   -.30985E-03
  16  Prefactor     .10000E-03    19.613        .14097E-05** at limit **
  17  norm          .10000E-03    .48241E-01    .41991E-08** at limit **
  18  norm          67.032        57.391       -.59376E-05   -.12106E-05
  19  Prefactor     .10000E-03    50.509       -.37946E-05** at limit **
  20  norm          .38651        .83608        .87232E-07   -.14486E-02
  21  Prefactor     .10000E-03    10.813       -.16114E-06** at limit **
  22  Prefactor     .10000E-03    8.7677       -.96058E-07** at limit **
  23  norm          2.0151        1.5994       -.15081E-06   -.30398E-03
  24  Prefactor     141.38        92.224        .36132E-04   -.24479E-05
  25  Normalizat    .70903        .20557        .41189E-06    .12364E-04
  26  Prefactor     1.5214        .19271       -.74976E-06    .10893E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 14.098
  Prefactor  = 12.8099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0936
  Prefactor  = 0.0001
  Prefactor  = 0.795451
  Prefactor  = 0.000100119
  norm       = 5.38703
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 67.0319
  Prefactor  = 0.0001
  norm       = 0.386511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01507
  Prefactor  = 141.38
  Normalizat = 0.709026
  Prefactor  = 1.52135
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.188     FROM HESSE     STATUS=OK           464 CALLS     3655 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.098        32.416        .10679E-03   -1.4957    
   3  Prefactor     12.810        12.754        .55966E-03   -1.4992    
   4  Prefactor     .10000E-03    22.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    81.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2267        .15124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.586        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6739        10.028        .32552E-03   -1.5449    
   9  Prefactor     .10000E-03    1.9846        .10284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.094        39.695        .68659E-04   -1.4540    
  12  Prefactor     .10000E-03    1.0578        .14959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .79545        1.8627        .15862E-02   -1.5530    
  14  Prefactor     .10012E-03    39.033        .12176       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3870        5.2530        .12994E-03   -1.5244    
  16  Prefactor     .10000E-03    19.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .49401E-01    .32329E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          67.032        56.738        .49016E-04   -1.4069    
  19  Prefactor     .10000E-03    50.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .38651        .76540        .77385E-04   -1.5584    
  21  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0151        1.5929        .81775E-04   -1.5424    
  24  Prefactor     141.38        90.835        .16944E-03   -1.3324    
  25  Normalizat    .70903        .23809        .31486E-03   -1.0354    
  26  Prefactor     1.5214        .22636        .22289E-03   -.76944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08489e-09
Minuit parameter uncertainties:
  1  3.25183e-05
  2  32.4566
  3  12.7564
  4  1.29533e-06
  5  3.95744e-05
  6  1.98376e-05
  7  7.72823e-05
  8  8.19569
  9  7.77671e-06
  10  8.18881e-05
  11  39.726
  12  5.13267e-06
  13  1.86284
  14  0.00430831
  15  5.25345
  16  1.19256e-05
  17  5.59106e-08
  18  56.7841
  19  5.34868e-06
  20  0.765421
  21  7.27996e-05
  22  2.54311e-05
  23  1.59296
  24  90.9251
  25  0.238436
  26  0.226513
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.189e-05  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.521e+00  2.265e-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:  7.090e-01  2.384e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293668/likelihoodResults_639273601_639532801_4FGL_J1203.3+1119_daily_bin1543.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) = 5692.18868089
delta logL = -0.000206958988201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5692.18847614
delta logL = -2.20901347348e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14489E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5674       1.0000          .0000       10.000    
     3 'Normalizat'    .70902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5214       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=   5692.188     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      280 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10259E-03    9.0400        .18142E-01** at limit **
   2  Index         2.4939        6.2766        .50000        .18067E-04
   3  Normalizat    .70903        .33992E-02    .31485E-03   -.16487E-03
   4  Prefactor     1.5213        .33974E-02    .22290E-03   -.22956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010259
  Index      = 2.49385
  Normalizat = 0.709026
  Prefactor  = 1.52135
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10259E-03    58.550        .31666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4939        6.2395        .50000       -.52502    
   3  Normalizat    .70903        .86751E-02    .12594E-04   -1.0354    
   4  Prefactor     1.5213        .86706E-02    .44579E-04   -.76944    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97359e-09
Minuit parameter uncertainties:
  1  0.0246541
  2  167.299
  3  0.00867515
  4  0.0086706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293668': 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) = 5692.18847452
delta logL = -5.96572135692e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.026e-04  2.465e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.494e+00  1.673e+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:  1.521e+00  8.671e-03  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:  7.090e-01  8.675e-03  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/293668/cmap_HighResolution_639273601_639532801_4FGL_J1203.3+1119_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-04 22:34:03.227983', job_id='293668', GAL2='1.52', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630820043.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.52', dlogl='-5.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1543' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 293668: <4FGL_J1203.3+1119_daily_bin1543> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1543> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:21:02 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:21:04 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:21:04 2021
Terminated at Sat Sep  4 22:34:06 2021
Results reported at Sat Sep  4 22:34:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1543 180.833 11.3231 639273601 639532801 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 :                                   757.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            784 sec.

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

