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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1430
RA = 180.833, Dec = 11.3231
tmin = 609984001, tmax = 610243201
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='293532', job_status='RUN', time_executed='2021-09-04 22:23:57.505623', time_epoch_executed='1630819437.51' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293532/ft1_4FGL_J1203.3+1119_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293532/ft2_4FGL_J1203.3+1119_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293532/ft1_4FGL_J1203.3+1119_daily_bin1430.fits outfile=/scratch/kocevski/293532/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1430.fits ra=180.833 dec=11.3231 rad=12.0 tmin=609984001.0 tmax=610243201.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.16
user 4.87
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293532/ft1_filtered_4FGL_J1203.3+1119_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/293532/ft2_4FGL_J1203.3+1119_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/293532/ltcube_609984001_610243201_4FGL_J1203.3+1119_daily_bin1430.fits outfile=/scratch/kocevski/293532/expmap_609984001_610243201_4FGL_J1203.3+1119_daily_bin1430.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/293532/ltcube_609984001_610243201_4FGL_J1203.3+1119_daily_bin1430.fits
.....................!
real 192.92
user 187.66
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/293532/ft1_filtered_4FGL_J1203.3+1119_daily_bin1430.fits scfile=/scratch/kocevski/293532/ft2_4FGL_J1203.3+1119_daily_bin1430.fits outfile=/scratch/kocevski/293532/cmap_609984001_610243201_4FGL_J1203.3+1119_daily_bin1430.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.73
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293532/ft1_filtered_4FGL_J1203.3+1119_daily_bin1430.fits scfile=/scratch/kocevski/293532/ft2_4FGL_J1203.3+1119_daily_bin1430.fits outfile=/scratch/kocevski/293532/cmap_HighResolution_609984001_610243201_4FGL_J1203.3+1119_daily_bin1430.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.69
user 0.37
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3286       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.799       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-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 '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.234       1.0000         .10000E-03   10000.    
    17 'norm      '    .25138       1.0000         .10000E-03   10000.    
    18 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.871       1.0000         .10000E-03   10000.    
    20 'norm      '    .53938       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.022       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.949       1.0000         .10000E-03   10000.    
    23 'norm      '    .37899       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4953       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .55402       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=   4845.318     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3468 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.807        .36379E-05** at limit **
   2  Prefactor     3.3103        102.89       -.72425E-04   -.16827E-04
   3  Prefactor     .10000E-03    6.6067       -.41919E-05** at limit **
   4  Prefactor     .10000E-03    32.766       -.35981E-06** at limit **
   5  Prefactor     .10000E-03    35.531       -.17017E-04** at limit **
   6  Prefactor     .10000E-03    3.3494       -.28817E-07** at limit **
   7  Prefactor     .10000E-03    5.9987        .29296E-05** at limit **
   8  Prefactor     .10000E-03    7.0712        .60185E-05** at limit **
   9  Prefactor     .10000E-03    2.9765       -.12246E-06** at limit **
  10  Prefactor     63.789        71.447       -.12337E-04   -.99273E-05
  11  Prefactor     .10000E-03    18.289       -.26380E-05** at limit **
  12  Prefactor     .10000E-03    1.1148       -.37251E-07** at limit **
  13  Prefactor     .10000E-03    1.3420       -.57432E-07** at limit **
  14  Prefactor     .10000E-03    6.5946       -.44386E-05** at limit **
  15  norm          .10000E-03    .97978        .93743E-07** at limit **
  16  Prefactor     54.236        44.630        .29320E-05    .21436E-04
  17  norm          .25138        .21902       -.64011E-07   -.27976E-03
  18  norm          .10000E-03    28.665        .19715E-04** at limit **
  19  Prefactor     35.816        137.30       -.90187E-04    .30685E-05
  20  norm          .53932        .42957       -.59890E-07   -.58395E-03
  21  Prefactor     18.021        12.477       -.24087E-08    .86517E-05
  22  Prefactor     29.946        25.161       -.28422E-05    .10830E-04
  23  norm          .37884        1.3557       -.74697E-06   -.14032E-02
  24  Prefactor     .10000E-03    15.345       -.49869E-05** at limit **
  25  Normalizat    1.4955        .20159        .22924E-05    .79366E-04
  26  Prefactor     .55384        .17850        .39697E-05    .98835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 3.31027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.7885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.2357
  norm       = 0.251379
  norm       = 0.0001
  Prefactor  = 35.8162
  norm       = 0.539317
  Prefactor  = 18.0208
  Prefactor  = 29.9455
  norm       = 0.378844
  Prefactor  = 0.0001
  Normalizat = 1.49554
  Prefactor  = 0.553845
 **********
 **   18 **HESSE 
 **********

 FCN=   4845.318     FROM HESSE     STATUS=OK           446 CALLS     3914 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3103        104.19        .22186E-03   -1.5344    
   3  Prefactor     .10000E-03    6.6261        .17473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3521        .12441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1084        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0826        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0211        .11722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     63.789        71.521        .50241E-04   -1.4109    
  11  Prefactor     .10000E-03    18.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1230        .71747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3573        .78720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5923        .17455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .98750        .67232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     54.236        44.611        .54466E-04   -1.4234    
  17  norm          .25138        .21350        .29544E-04   -1.5608    
  18  norm          .10000E-03    28.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.816        137.00        .66913E-04   -1.4510    
  20  norm          .53932        .41636        .39185E-03   -1.5561    
  21  Prefactor     18.021        12.474        .94345E-04   -1.4859    
  22  Prefactor     29.946        25.175        .73212E-04   -1.4613    
  23  norm          .37884        1.3706        .14580E-03   -1.5585    
  24  Prefactor     .10000E-03    15.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4955        .23542        .21577E-03   -.77904    
  26  Prefactor     .55384        .20741        .29552E-03   -1.0957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23985e-09
Minuit parameter uncertainties:
  1  0.000262331
  2  37.2129
  3  7.82793e-06
  4  0.000153541
  5  2.48226e-05
  6  4.1247e-06
  7  5.68786e-05
  8  2.09179e-05
  9  1.74748e-05
  10  71.6177
  11  4.77262e-05
  12  4.65977e-06
  13  5.96216e-06
  14  8.37137e-06
  15  4.53353e-06
  16  44.6384
  17  0.213497
  18  9.96525e-06
  19  138.232
  20  0.416366
  21  12.476
  22  25.1839
  23  1.37069
  24  2.02106e-06
  25  0.23559
  26  0.207693
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  5.538e-01  2.077e-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.496e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 9.39e-06 +/- 1.05e-05

TS (Fixed Index): 1.27
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293532/likelihoodResults_609984001_610243201_4FGL_J1203.3+1119_daily_bin1430.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4845.27119932
delta logL = 0.0470154843279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4845.2706978
delta logL = 0.0475170006985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.152       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6307       1.0000          .0000       10.000    
     3 'Normalizat'    1.4878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55800       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=   4845.271     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      286 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.129        92.825        .59667E-04    .15102E-03
   2  Index         2.6301        1.1446        .75585E-02    .81868E-04
   3  Normalizat    1.4877        .23465        .21622E-03   -.89536E-03
   4  Prefactor     .55826        .20448        .29442E-03   -.74453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1289
  Index      = 2.63011
  Normalizat = 1.48771
  Prefactor  = 0.558259
 **********
 **   18 **HESSE 
 **********

 FCN=   4845.271     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.129        80.086        .11933E-04   -1.4363    
   2  Index         2.6301        .98908        .30234E-03   -.49380    
   3  Normalizat    1.4877        .23433        .43245E-04   -.78124    
   4  Prefactor     .55826        .20434        .58884E-04   -1.0937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27311e-09
Minuit parameter uncertainties:
  1  80.2779
  2  0.997591
  3  0.234504
  4  0.204613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293532': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4845.27069465
delta logL = 0.0475201517384

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  4.513e+01  8.028e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.630e+00  9.976e-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:  5.583e-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.488e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 180.833 11.323
Photon Index (Free Index): 2.63 +/- 1.00
Photon Flux (Free Index): 3.36e-08 +/- 4.25e-08
Energy Flux (Free Index): 8.56e-06 +/- 9.42e-06

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/293532/cmap_HighResolution_609984001_610243201_4FGL_J1203.3+1119_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='8.56e-06', photon_flux_error='2.95e-08', dlogl='4.75e-02', energy_flux='9.39e-06', photon_flux2='3.36e-08', job_status='DONE', time_completed='2021-09-04 22:35:58.160328', photon_index_error2='1.00', photon_index2='2.63', ts='1.27', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='9.42e-06', EG='1.50', time_epoch_completed='1630820158.16', return_code='0', job_id='293532', GAL2='0.56', EG2='1.49', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.25e-08', ts2='1.36', photon_index='2.34' WHERE bin_id='1430' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:35:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 293532: <4FGL_J1203.3+1119_daily_bin1430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1430 180.833 11.3231 609984001 610243201 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 :                                   704.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

