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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1542
RA = 180.833, Dec = 11.3231
tmin = 639014401, tmax = 639273601
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='293667', job_status='RUN', time_executed='2021-09-04 22:23:12.906371', time_epoch_executed='1630819392.91' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293667/ft1_4FGL_J1203.3+1119_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293667/ft2_4FGL_J1203.3+1119_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293667/ft1_4FGL_J1203.3+1119_daily_bin1542.fits outfile=/scratch/kocevski/293667/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1542.fits ra=180.833 dec=11.3231 rad=12.0 tmin=639014401.0 tmax=639273601.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.38
user 5.07
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293667/ft1_filtered_4FGL_J1203.3+1119_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/293667/ft2_4FGL_J1203.3+1119_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/293667/ltcube_639014401_639273601_4FGL_J1203.3+1119_daily_bin1542.fits outfile=/scratch/kocevski/293667/expmap_639014401_639273601_4FGL_J1203.3+1119_daily_bin1542.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/293667/ltcube_639014401_639273601_4FGL_J1203.3+1119_daily_bin1542.fits
.....................!
real 191.61
user 186.50
sys 4.72

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/293667/ft1_filtered_4FGL_J1203.3+1119_daily_bin1542.fits scfile=/scratch/kocevski/293667/ft2_4FGL_J1203.3+1119_daily_bin1542.fits outfile=/scratch/kocevski/293667/cmap_639014401_639273601_4FGL_J1203.3+1119_daily_bin1542.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.58
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0197       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12609E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32414       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5014       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.855       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7126       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.892       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5482       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.803       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3938       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0729       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84560       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=   4825.734     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3066 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8051       -.44429E-08** at limit **
   2  Prefactor     .10000E-03    7.2109        .80083E-06** at limit **
   3  Prefactor     .10000E-03    2.4692       -.97279E-07** at limit **
   4  Prefactor     .10000E-03    10.045       -.23442E-05** at limit **
   5  Prefactor     18.605        99.818       -.42856E-04   -.13705E-04
   6  Prefactor     .10000E-03    10.183        .42019E-06** at limit **
   7  Prefactor     2.0196        6.2218       -.97822E-06   -.53887E-03
   8  Prefactor     .10000E-03    44.187        .34938E-04** at limit **
   9  Prefactor     .31993        2.3073       -.68685E-06    .33544E-05
  10  Prefactor     .10000E-03    62.020       -.45953E-04** at limit **
  11  Prefactor     .10000E-03    51.281        .15736E-04** at limit **
  12  Prefactor     .10000E-03    1.3511       -.18119E-06** at limit **
  13  Prefactor     .10000E-03    .99727       -.69202E-07** at limit **
  14  Prefactor     .10000E-03    13.405        .31573E-05** at limit **
  15  norm          1.5001        3.4621        .16887E-06   -.62454E-03
  16  Prefactor     15.853        24.393       -.82362E-06   -.11807E-04
  17  norm          .10000E-03    .19929        .14744E-07** at limit **
  18  norm          3.7093        143.62       -.12207E-04   -.14833E-04
  19  Prefactor     20.883        94.294       -.16928E-04   -.13960E-05
  20  norm          1.5483        .73937        .81288E-07   -.27302E-03
  21  Prefactor     .10000E-03    4.8827        .42864E-07** at limit **
  22  Prefactor     24.807        23.997        .13622E-05   -.28122E-05
  23  norm          3.3940        1.7317       -.73701E-08    .57818E-05
  24  Prefactor     .10000E-03    28.797       -.14584E-04** at limit **
  25  Normalizat    1.0728        .19289        .15693E-05   -.18232E-03
  26  Prefactor     .84558        .17736        .22043E-06   -.10239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6049
  Prefactor  = 0.0001
  Prefactor  = 2.01958
  Prefactor  = 0.000100003
  Prefactor  = 0.319926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50008
  Prefactor  = 15.8533
  norm       = 0.0001
  norm       = 3.70929
  Prefactor  = 20.8833
  norm       = 1.54831
  Prefactor  = 0.0001
  Prefactor  = 24.8072
  norm       = 3.394
  Prefactor  = 0.0001
  Normalizat = 1.07277
  Prefactor  = 0.845582
 **********
 **   18 **HESSE 
 **********

 FCN=   4825.734     FROM HESSE     STATUS=OK           456 CALLS     3522 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8150        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4714        .10660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.605        100.55        .92805E-04   -1.4845    
   6  Prefactor     .10000E-03    10.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0196        6.2097        .29121E-03   -1.5424    
   8  Prefactor     .10000E-03    44.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31993        10.506        .19269E-02   -1.5595    
  10  Prefactor     .10000E-03    62.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6657        .15153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0052        .67679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5001        3.3530        .16729E-03   -1.5463    
  16  Prefactor     15.853        24.384        .10059E-03   -1.4911    
  17  norm          .10000E-03    .20216        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7093        140.36        .20958E-03   -1.5323    
  19  Prefactor     20.883        94.298        .87630E-04   -1.4794    
  20  norm          1.5483        .73328        .36529E-04   -1.5459    
  21  Prefactor     .10000E-03    4.8900        .14979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.807        23.990        .80433E-04   -1.4711    
  23  norm          3.3940        1.7308        .63032E-04   -1.5339    
  24  Prefactor     .10000E-03    28.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0728        .22483        .22555E-03   -.90631    
  26  Prefactor     .84558        .20765        .23741E-03   -.98069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02011e-10
Minuit parameter uncertainties:
  1  3.72709e-06
  2  3.13144e-06
  3  1.54884e-06
  4  2.36878e-06
  5  86.7308
  6  1.86049e-05
  7  6.21165
  8  0.000676273
  9  3.66689
  10  8.01636e-05
  11  0.000240017
  12  2.95805e-05
  13  2.58103e-06
  14  1.53257e-05
  15  3.3534
  16  24.3998
  17  3.38675e-07
  18  45.7503
  19  88.9861
  20  0.733281
  21  1.67886e-05
  22  23.9991
  23  1.73086
  24  9.79447e-06
  25  0.225025
  26  0.207839
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.016e-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:  8.456e-01  2.078e-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.073e+00  2.250e-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: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293667/likelihoodResults_639014401_639273601_4FGL_J1203.3+1119_daily_bin1542.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) = 4825.73424845
delta logL = -7.65658987802e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4825.73417186
delta logL = 1.93049345398e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6290       1.0000          .0000       10.000    
     3 'Normalizat'    1.0728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84558       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=   4825.734     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.283        .90712E-02** at limit **
   2  Index         2.6295        6.0261        .50000       -.47385E-07
   3  Normalizat    1.0728        .35909E-02    .39236E-01    .61655E-05
   4  Prefactor     .84558        .34141E-02    .44308E-01    .10301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.62946
  Normalizat = 1.07277
  Prefactor  = 0.845581
 **********
 **   18 **HESSE 
 **********

 FCN=   4825.734     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    280.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6295        5.3821        .50000       -.49395    
   3  Normalizat    1.0728        .96566E-02    .22555E-03   -.90631    
   4  Prefactor     .84558        .91788E-02    .23741E-03   -.98069    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3867e-11
Minuit parameter uncertainties:
  1  5.87339e-05
  2  303.533
  3  0.00965664
  4  0.00917882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293667': 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) = 4825.73417186
delta logL = 2.41789166466e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.873e-05  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.629e+00  3.035e+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:  8.456e-01  9.179e-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:  1.073e+00  9.657e-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/293667/cmap_HighResolution_639014401_639273601_4FGL_J1203.3+1119_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-04 22:34:55.081738', job_id='293667', GAL2='0.85', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630820095.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1542' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:34:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 293667: <4FGL_J1203.3+1119_daily_bin1542> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1542> 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) <bullet0299>, 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:55 2021
Results reported at Sat Sep  4 22:34:55 2021

Your job looked like:

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

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

