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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin465
RA = 180.833, Dec = 11.3231
tmin = 359856001, tmax = 360115201
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='287338', job_status='RUN', time_executed='2021-09-04 22:01:00.890014', time_epoch_executed='1630818060.89' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287338

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287338/ft1_4FGL_J1203.3+1119_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287338/ft2_4FGL_J1203.3+1119_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287338/ft1_4FGL_J1203.3+1119_daily_bin465.fits outfile=/scratch/kocevski/287338/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin465.fits ra=180.833 dec=11.3231 rad=12.0 tmin=359856001.0 tmax=360115201.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 3.24
user 3.01
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287338/ft1_filtered_4FGL_J1203.3+1119_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/287338/ft2_4FGL_J1203.3+1119_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/287338/ltcube_359856001_360115201_4FGL_J1203.3+1119_daily_bin465.fits outfile=/scratch/kocevski/287338/expmap_359856001_360115201_4FGL_J1203.3+1119_daily_bin465.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/287338/ltcube_359856001_360115201_4FGL_J1203.3+1119_daily_bin465.fits
.....................!
real 191.17
user 185.92
sys 4.87

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/287338/ft1_filtered_4FGL_J1203.3+1119_daily_bin465.fits scfile=/scratch/kocevski/287338/ft2_4FGL_J1203.3+1119_daily_bin465.fits outfile=/scratch/kocevski/287338/cmap_359856001_360115201_4FGL_J1203.3+1119_daily_bin465.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287338/ft1_filtered_4FGL_J1203.3+1119_daily_bin465.fits scfile=/scratch/kocevski/287338/ft2_4FGL_J1203.3+1119_daily_bin465.fits outfile=/scratch/kocevski/287338/cmap_HighResolution_359856001_360115201_4FGL_J1203.3+1119_daily_bin465.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/287338/ft1_filtered_4FGL_J1203.3+1119_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/287338/ft2_4FGL_J1203.3+1119_daily_bin465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287338/Model_4FGL_J1203.3+1119_daily_bin465.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/287338/ft1_filtered_4FGL_J1203.3+1119_daily_bin465.fits.....................!
real 54.43
user 53.04
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.649       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.942       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.799       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27618E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.397       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7749       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6386       1.0000         .10000E-03   10000.    
    18 'norm      '    23.957       1.0000         .10000E-03   10000.    
    19 'Prefactor '    158.36       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6475       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .96721       1.0000         .10000E-03   10000.    
    24 'Prefactor '    86.596       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0231       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0707       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=   5867.902     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3094 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.651        11.761        .18430E-06    .21142E-04
   2  Prefactor     14.923        36.040       -.11990E-04    .79266E-05
   3  Prefactor     .10000E-03    4.7658       -.13608E-06** at limit **
   4  Prefactor     35.302        31.907       -.97398E-06    .38085E-05
   5  Prefactor     .10000E-03    198.58        .16497E-05** at limit **
   6  Prefactor     3.5082        5.3958       -.20237E-05   -.15462E-03
   7  Prefactor     20.715        13.257       -.11837E-05   -.46558E-03
   8  Prefactor     13.522        19.959        .45769E-05    .29906E-04
   9  Prefactor     .10000E-03    1.1806       -.67041E-07** at limit **
  10  Prefactor     .10000E-03    35.543       -.36940E-06** at limit **
  11  Prefactor     57.797        47.524       -.35222E-05   -.17305E-04
  12  Prefactor     .10000E-03    1.6274       -.42928E-06** at limit **
  13  Prefactor     5.5003        3.6378       -.51256E-06    .36803E-03
  14  Prefactor     14.396        19.328        .11457E-05   -.85512E-05
  15  norm          5.7778        6.0708        .89816E-05   -.29678E-03
  16  Prefactor     .10001E-03    21.828        .18132E-05** at limit **
  17  norm          1.6389        .37609       -.57057E-07    .10998E-02
  18  norm          23.958        25.241       -.38146E-06   -.33447E-04
  19  Prefactor     158.01        226.12       -.27318E-03   -.16229E-04
  20  norm          1.6474        .89968       -.68179E-06    .28678E-03
  21  Prefactor     .10000E-03    6.9588       -.89887E-07** at limit **
  22  Prefactor     .10000E-03    8.4361       -.41631E-07** at limit **
  23  norm          .96865        2.1122        .21475E-05    .27765E-03
  24  Prefactor     86.598        69.660        .31410E-06   -.47353E-05
  25  Normalizat    1.0228        .21060        .20571E-05    .67280E-04
  26  Prefactor     1.0711        .18662        .55845E-05   -.15058E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6508
  Prefactor  = 14.9235
  Prefactor  = 0.0001
  Prefactor  = 35.3023
  Prefactor  = 0.000100001
  Prefactor  = 3.50819
  Prefactor  = 20.7155
  Prefactor  = 13.5216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.7968
  Prefactor  = 0.0001
  Prefactor  = 5.50035
  Prefactor  = 14.3959
  norm       = 5.7778
  Prefactor  = 0.000100008
  norm       = 1.63886
  norm       = 23.9583
  Prefactor  = 158.007
  norm       = 1.64743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.968652
  Prefactor  = 86.5976
  Normalizat = 1.02276
  Prefactor  = 1.07105
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.902     FROM HESSE     STATUS=OK           458 CALLS     3552 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.651        11.761        .98157E-04   -1.4892    
   2  Prefactor     14.923        36.155        .10362E-03   -1.4935    
   3  Prefactor     .10000E-03    4.7912        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.302        31.904        .67447E-04   -1.4519    
   5  Prefactor     .10000E-03    199.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5082        5.3839        .21457E-03   -1.5333    
   7  Prefactor     20.715        13.256        .44000E-03   -1.4797    
   8  Prefactor     13.522        20.017        .10890E-03   -1.4972    
   9  Prefactor     .10000E-03    1.1883        .81254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     57.797        47.524        .52769E-04   -1.4186    
  12  Prefactor     .10000E-03    6.8822        .17284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5003        3.3716        .10430E-03   -1.5239    
  14  Prefactor     14.396        19.316        .10556E-03   -1.4949    
  15  norm          5.7778        6.0414        .14754E-03   -1.5227    
  16  Prefactor     .10001E-03    21.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6389        .37655        .21674E-04   -1.5452    
  18  norm          23.958        25.240        .81839E-04   -1.4729    
  19  Prefactor     158.01        225.95        .16021E-03   -1.3187    
  20  norm          1.6474        .88898        .44311E-04   -1.5451    
  21  Prefactor     .10000E-03    7.0339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96865        2.0588        .15038E-03   -1.5511    
  24  Prefactor     86.598        69.714        .43172E-04   -1.3844    
  25  Normalizat    1.0228        .25063        .28153E-03   -.92272    
  26  Prefactor     1.0711        .22162        .26015E-03   -.90397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00338e-09
Minuit parameter uncertainties:
  1  11.7622
  2  36.2083
  3  2.94036e-05
  4  31.9195
  5  0.00065817
  6  5.38462
  7  13.2575
  8  20.0268
  9  7.19957e-06
  10  0.000120765
  11  47.5551
  12  8.81517e-05
  13  3.37171
  14  19.3247
  15  6.04203
  16  0.000832421
  17  0.376546
  18  25.251
  19  227.203
  20  0.888982
  21  1.93566e-05
  22  1.63613e-05
  23  2.05898
  24  69.78
  25  0.250921
  26  0.221813
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.208e-04  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.071e+00  2.218e-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.023e+00  2.509e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287338/likelihoodResults_359856001_360115201_4FGL_J1203.3+1119_daily_bin465.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) = 5867.90196195
delta logL = -0.000133868907142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5867.90182908
delta logL = -9.91654815152e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6308       1.0000          .0000       10.000    
     3 'Normalizat'    1.0227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0711       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=   5867.902     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      282 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10527E-03    10.226        .18142E-01** at limit **
   2  Index         2.5277        6.2124        .50000        .14613E-04
   3  Normalizat    1.0228        .31686E-02    .28153E-03   -.10217E-03
   4  Prefactor     1.0711        .30042E-02    .26015E-03   -.11922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105266
  Index      = 2.52771
  Normalizat = 1.02275
  Prefactor  = 1.07106
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.902     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10527E-03    86.019        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5277        5.9839        .50000       -.51721    
   3  Normalizat    1.0228        .92150E-02    .11261E-04   -.92272    
   4  Prefactor     1.0711        .87368E-02    .10406E-04   -.90397    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.84496e-09
Minuit parameter uncertainties:
  1  0.0426259
  2  248.263
  3  0.00921505
  4  0.00873686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287338': 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) = 5867.90182869
delta logL = -6.0264574131e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.053e-04  4.263e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.528e+00  2.483e+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.071e+00  8.737e-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.023e+00  9.215e-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/287338/cmap_HighResolution_359856001_360115201_4FGL_J1203.3+1119_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-04 22:14:13.272683', job_id='287338', GAL2='1.07', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630818853.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-6.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='465' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:14:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 287338: <4FGL_J1203.3+1119_daily_bin465> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin465> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 22:00:40 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:00:41 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:00:41 2021
Terminated at Sat Sep  4 22:14:14 2021
Results reported at Sat Sep  4 22:14:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin465 180.833 11.3231 359856001 360115201 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 :                                   786.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

