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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin554
RA = 180.833, Dec = 11.3231
tmin = 382924801, tmax = 383184001
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='288624', job_status='RUN', time_executed='2021-09-04 22:05:47.105286', time_epoch_executed='1630818347.11' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288624/ft1_4FGL_J1203.3+1119_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288624/ft2_4FGL_J1203.3+1119_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288624/ft1_4FGL_J1203.3+1119_daily_bin554.fits outfile=/scratch/kocevski/288624/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin554.fits ra=180.833 dec=11.3231 rad=12.0 tmin=382924801.0 tmax=383184001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.44
user 4.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288624/ft2_4FGL_J1203.3+1119_daily_bin554.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/288624/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/288624/ft1_filtered_4FGL_J1203.3+1119_daily_bin554.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.48
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288624/ft1_filtered_4FGL_J1203.3+1119_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/288624/ft2_4FGL_J1203.3+1119_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/288624/ltcube_382924801_383184001_4FGL_J1203.3+1119_daily_bin554.fits outfile=/scratch/kocevski/288624/expmap_382924801_383184001_4FGL_J1203.3+1119_daily_bin554.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/288624/ltcube_382924801_383184001_4FGL_J1203.3+1119_daily_bin554.fits
.....................!
real 190.06
user 185.17
sys 4.54

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/288624/ft1_filtered_4FGL_J1203.3+1119_daily_bin554.fits scfile=/scratch/kocevski/288624/ft2_4FGL_J1203.3+1119_daily_bin554.fits outfile=/scratch/kocevski/288624/cmap_382924801_383184001_4FGL_J1203.3+1119_daily_bin554.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288624/ft1_filtered_4FGL_J1203.3+1119_daily_bin554.fits scfile=/scratch/kocevski/288624/ft2_4FGL_J1203.3+1119_daily_bin554.fits outfile=/scratch/kocevski/288624/cmap_HighResolution_382924801_383184001_4FGL_J1203.3+1119_daily_bin554.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.007       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4315       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1307       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21338       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4551       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .41648       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.902       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5567       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8127       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    21.265       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.606       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74577       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2359       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=   5635.375     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3695 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4717        .28532E-07** at limit **
   2  Prefactor     12.006        31.417       -.65743E-05   -.94495E-05
   3  Prefactor     .10000E-03    5.7720       -.27890E-07** at limit **
   4  Prefactor     .10000E-03    26.444       -.20767E-06** at limit **
   5  Prefactor     71.605        95.891       -.56188E-06    .44375E-05
   6  Prefactor     3.9956        7.6397       -.37398E-06   -.18400E-03
   7  Prefactor     .10000E-03    2.4440       -.30299E-07** at limit **
   8  Prefactor     .10000E-03    4.4693       -.74445E-08** at limit **
   9  Prefactor     3.4314        2.8338        .16202E-07   -.14033E-04
  10  Prefactor     .10000E-03    22.052        .23706E-06** at limit **
  11  Prefactor     37.052        40.781        .11151E-04    .29746E-04
  12  Prefactor     .10000E-03    .66427        .46938E-08** at limit **
  13  Prefactor     8.1303        3.3205        .11977E-07   -.98426E-05
  14  Prefactor     .10012E-03    27.150       -.13979E-05** at limit **
  15  norm          5.4595        4.6409       -.75872E-06   -.13152E-03
  16  Prefactor     .10000E-03    39.161        .48666E-07** at limit **
  17  norm          .41647        .25978       -.47854E-08   -.67362E-03
  18  norm          .10000E-03    84.000       -.69209E-06** at limit **
  19  Prefactor     41.902        205.89        .13121E-04    .69083E-05
  20  norm          1.5566        .72941       -.14164E-07   -.15127E-03
  21  Prefactor     3.8039        10.546       -.15774E-05   -.14857E-03
  22  Prefactor     .10000E-03    46.109        .56884E-06** at limit **
  23  norm          21.265        3.6411       -.20231E-08    .12015E-03
  24  Prefactor     13.591        72.898       -.37834E-05   -.15566E-05
  25  Normalizat    .74575        .19980       -.10219E-06    .32048E-04
  26  Prefactor     1.2359        .18588        .42717E-07    .56826E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.0059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.6045
  Prefactor  = 3.99557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.43141
  Prefactor  = 0.0001
  Prefactor  = 37.052
  Prefactor  = 0.0001
  Prefactor  = 8.1303
  Prefactor  = 0.000100122
  norm       = 5.45953
  Prefactor  = 0.0001
  norm       = 0.416467
  norm       = 0.0001
  Prefactor  = 41.9018
  norm       = 1.5566
  Prefactor  = 3.80387
  Prefactor  = 0.0001
  norm       = 21.2651
  Prefactor  = 13.5909
  Normalizat = 0.745751
  Prefactor  = 1.23594
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.375     FROM HESSE     STATUS=OK           464 CALLS     4159 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4734        .11526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.006        31.529        .11560E-03   -1.5015    
   3  Prefactor     .10000E-03    5.8065        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     71.605        95.919        .47442E-04   -1.4014    
   6  Prefactor     3.9956        7.6493        .20176E-03   -1.5308    
   7  Prefactor     .10000E-03    2.4459        .11462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4727        .15499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4314        2.8352        .11092E-03   -1.5337    
  10  Prefactor     .10000E-03    22.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.052        40.676        .65851E-04   -1.4490    
  12  Prefactor     .10000E-03    .66622        .59719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1303        3.3211        .83826E-04   -1.5138    
  14  Prefactor     .10012E-03    30.876        .11954       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4595        4.6316        .12996E-03   -1.5241    
  16  Prefactor     .10000E-03    39.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .41647        .25498        .29016E-04   -1.5579    
  18  norm          .10000E-03    84.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.902        206.24        .61928E-04   -1.4412    
  20  norm          1.5566        .72328        .40921E-04   -1.5458    
  21  Prefactor     3.8039        10.595        .20671E-03   -1.5318    
  22  Prefactor     .10000E-03    46.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          21.265        3.6400        .56534E-04   -1.4785    
  24  Prefactor     13.591        72.971        .10859E-03   -1.4970    
  25  Normalizat    .74575        .23411        .30744E-03   -1.0211    
  26  Prefactor     1.2359        .21908        .23672E-03   -.85232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68702e-10
Minuit parameter uncertainties:
  1  2.16182e-06
  2  31.5728
  3  3.92722e-06
  4  2.03624e-05
  5  96.1268
  6  7.65115
  7  8.29783e-06
  8  6.43506e-07
  9  2.83527
  10  4.01168e-07
  11  40.7065
  12  1.63371e-07
  13  3.32113
  14  0.00388074
  15  4.63189
  16  5.85304e-05
  17  0.254979
  18  0.000120066
  19  186.966
  20  0.723286
  21  10.6005
  22  0.000171544
  23  3.64003
  24  63.1037
  25  0.234426
  26  0.219242
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.012e-07  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.236e+00  2.192e-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.458e-01  2.344e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288624/likelihoodResults_382924801_383184001_4FGL_J1203.3+1119_daily_bin554.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) = 5635.37561312
delta logL = -0.000215307924918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5635.37539892
delta logL = -1.11344525067e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6088       1.0000          .0000       10.000    
     3 'Normalizat'    .74574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2359       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=   5635.375     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      286 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10332E-03    9.0681        .18142E-01** at limit **
   2  Index         2.5255        8.6660        .50000        .20578E-04
   3  Normalizat    .74575        .35799E-02    .30744E-03   -.12942E-04
   4  Prefactor     1.2359        .34816E-02    .23672E-03   -.62915E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103324
  Index      = 2.52552
  Normalizat = 0.745751
  Prefactor  = 1.23594
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.375     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10332E-03    61.225        .30113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5255        7.4732        .50000       -.51771    
   3  Normalizat    .74575        .93348E-02    .12298E-04   -1.0211    
   4  Prefactor     1.2359        .90785E-02    .94686E-05   -.85232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.95926e-09
Minuit parameter uncertainties:
  1  0.0285611
  2  186.597
  3  0.00933483
  4  0.00907854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288624': 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) = 5635.37539861
delta logL = -7.93756044004e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.033e-04  2.856e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.526e+00  1.866e+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.236e+00  9.079e-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.458e-01  9.335e-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/288624/cmap_HighResolution_382924801_383184001_4FGL_J1203.3+1119_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.85e-08', time_completed='2021-09-04 22:19:25.126895', job_id='288624', GAL2='1.24', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630819165.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-7.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='554' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:19:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 288624: <4FGL_J1203.3+1119_daily_bin554> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin554> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:05:35 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:05:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:05:36 2021
Terminated at Sat Sep  4 22:19:25 2021
Results reported at Sat Sep  4 22:19:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin554 180.833 11.3231 382924801 383184001 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 :                                   815.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

