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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin620
RA = 180.833, Dec = 11.3231
tmin = 400032001, tmax = 400291201
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='288729', job_status='RUN', time_executed='2021-09-04 22:05:56.692006', time_epoch_executed='1630818356.69' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288729/ft1_4FGL_J1203.3+1119_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288729/ft2_4FGL_J1203.3+1119_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288729/ft1_4FGL_J1203.3+1119_daily_bin620.fits outfile=/scratch/kocevski/288729/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin620.fits ra=180.833 dec=11.3231 rad=12.0 tmin=400032001.0 tmax=400291201.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.33
user 4.11
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288729/ft1_filtered_4FGL_J1203.3+1119_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/288729/ft2_4FGL_J1203.3+1119_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/288729/ltcube_400032001_400291201_4FGL_J1203.3+1119_daily_bin620.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/288729/ft2_4FGL_J1203.3+1119_daily_bin620.fits
.....................!
real 13.86
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288729/ft1_filtered_4FGL_J1203.3+1119_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/288729/ft2_4FGL_J1203.3+1119_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/288729/ltcube_400032001_400291201_4FGL_J1203.3+1119_daily_bin620.fits outfile=/scratch/kocevski/288729/expmap_400032001_400291201_4FGL_J1203.3+1119_daily_bin620.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/288729/ltcube_400032001_400291201_4FGL_J1203.3+1119_daily_bin620.fits
.....................!
real 192.06
user 186.56
sys 4.49

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/288729/ft1_filtered_4FGL_J1203.3+1119_daily_bin620.fits scfile=/scratch/kocevski/288729/ft2_4FGL_J1203.3+1119_daily_bin620.fits outfile=/scratch/kocevski/288729/cmap_400032001_400291201_4FGL_J1203.3+1119_daily_bin620.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.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9672       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.528       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.372       1.0000         .10000E-03   10000.    
     5 'Prefactor '    212.85       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.175       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.164       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.2249       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1656       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3837       1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .70631       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2824       1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.149       1.0000         .10000E-03   10000.    
    23 'norm      '    9.3687       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.938       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3692       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94608       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=   7362.671     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3082 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9664        12.393        .35753E-06   -.82763E-05
   2  Prefactor     51.537        48.646        .47457E-06    .15748E-04
   3  Prefactor     .10000E-03    4.8562        .85548E-07** at limit **
   4  Prefactor     15.371        20.794        .57699E-07   -.42630E-05
   5  Prefactor     212.89        151.01        .88139E-06    .23603E-04
   6  Prefactor     .10000E-03    3.7978        .12971E-06** at limit **
   7  Prefactor     10.175        8.8098        .97016E-07   -.91582E-05
   8  Prefactor     13.167        22.530        .34169E-06   -.37756E-05
   9  Prefactor     .10000E-03    2.4713        .89990E-07** at limit **
  10  Prefactor     .10000E-03    43.753        .27781E-06** at limit **
  11  Prefactor     .10000E-03    14.080        .33901E-06** at limit **
  12  Prefactor     .10000E-03    2.6730        .91352E-07** at limit **
  13  Prefactor     .10000E-03    3.2857       -.58728E-08** at limit **
  14  Prefactor     .10000E-03    19.761       -.82806E-07** at limit **
  15  norm          7.2257        4.7391        .23697E-08    .28784E-04
  16  Prefactor     2.1385        136.39       -.10133E-05   -.21013E-04
  17  norm          7.3839        .78579        .11678E-07   -.20288E-03
  18  norm          .10000E-03    13.421       -.60578E-07** at limit **
  19  Prefactor     .10000E-03    53.049       -.32489E-06** at limit **
  20  norm          .70673        .57638        .56363E-07    .16760E-03
  21  Prefactor     5.2873        9.9144        .39304E-05   -.32714E-04
  22  Prefactor     43.127        36.352       -.14063E-05   -.99751E-04
  23  norm          9.3687        2.6623       -.16572E-07   -.37417E-04
  24  Prefactor     16.903        45.340       -.76078E-06   -.60176E-04
  25  Normalizat    1.3689        .23615       -.18534E-05    .44549E-04
  26  Prefactor     .94643        .19328        .10357E-05   -.82467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.96643
  Prefactor  = 51.5372
  Prefactor  = 0.0001
  Prefactor  = 15.3712
  Prefactor  = 212.888
  Prefactor  = 0.0001
  Prefactor  = 10.1746
  Prefactor  = 13.1674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.22571
  Prefactor  = 2.13847
  norm       = 7.38395
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.706735
  Prefactor  = 5.28729
  Prefactor  = 43.1273
  norm       = 9.36867
  Prefactor  = 16.9031
  Normalizat = 1.36887
  Prefactor  = 0.946428
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.671     FROM HESSE     STATUS=OK           460 CALLS     3542 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9664        12.380        .16438E-03   -1.5219    
   2  Prefactor     51.537        49.010        .55870E-04   -1.4271    
   3  Prefactor     .10000E-03    4.8687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.371        20.791        .10215E-03   -1.4924    
   5  Prefactor     212.89        151.74        .13857E-03   -1.2779    
   6  Prefactor     .10000E-03    3.8012        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.175        8.8113        .12562E-03   -1.5070    
   8  Prefactor     13.167        22.574        .11040E-03   -1.4982    
   9  Prefactor     .10000E-03    2.5006        .13169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7617        .27364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3892        .30332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2257        4.7078        .13654E-03   -1.5170    
  16  Prefactor     2.1385        138.98        .27987E-03   -1.5415    
  17  norm          7.3839        .78854        .23694E-04   -1.5164    
  18  norm          .10000E-03    13.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .70673        .54263        .54685E-03   -1.5540    
  21  Prefactor     5.2873        9.9989        .87439E-03   -1.5248    
  22  Prefactor     43.127        36.667        .61030E-04   -1.4394    
  23  norm          9.3687        2.6598        .71531E-04   -1.5096    
  24  Prefactor     16.903        45.600        .97316E-04   -1.4885    
  25  Normalizat    1.3689        .28162        .30740E-03   -.81533    
  26  Prefactor     .94643        .22905        .31646E-03   -.94537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04055e-10
Minuit parameter uncertainties:
  1  12.3855
  2  49.0479
  3  3.01811e-06
  4  20.8009
  5  152.018
  6  1.55491e-07
  7  8.81245
  8  22.5891
  9  3.20374e-06
  10  0.000133047
  11  7.01659e-05
  12  3.67115e-06
  13  4.90329e-06
  14  3.12321e-05
  15  4.708
  16  34.562
  17  0.788544
  18  4.91587e-05
  19  7.64042e-05
  20  0.542633
  21  10.0021
  22  36.6861
  23  2.65987
  24  45.6944
  25  0.281941
  26  0.229286
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.330e-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:  9.464e-01  2.293e-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.369e+00  2.819e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288729/likelihoodResults_400032001_400291201_4FGL_J1203.3+1119_daily_bin620.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) = 7362.67077102
delta logL = -0.000108695340714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7362.67066229
delta logL = 3.84961822419e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2763       1.0000          .0000       10.000    
     3 'Normalizat'    1.3689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94643       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=   7362.671     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      245 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7405.7        .90712E-02** at limit **
   2  Index         2.2629        7.6744        .50000        .24447E-05
   3  Normalizat    1.3689        .77937E-01    .69482E-01    .86480E-05
   4  Prefactor     .94643        .68559E-01    .71527E-01    .16588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26291
  Normalizat = 1.36887
  Prefactor  = 0.94643
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.671     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2629        5.8657        .50000       -.57928    
   3  Normalizat    1.3689        .25471        .30741E-03   -.81533    
   4  Prefactor     .94643        .22399        .31645E-03   -.94537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.3952e-12
Minuit parameter uncertainties:
  1  6.77801e-05
  2  6.09548
  3  0.254947
  4  0.224213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288729': 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) = 7362.67066228
delta logL = 4.74174157716e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.778e-05  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.263e+00  6.095e+00  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:  9.464e-01  2.242e-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.369e+00  2.549e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/288729/cmap_HighResolution_400032001_400291201_4FGL_J1203.3+1119_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.82e-08', time_completed='2021-09-04 22:20:33.916704', job_id='288729', GAL2='0.95', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630819233.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='620' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:20:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 288729: <4FGL_J1203.3+1119_daily_bin620> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin620> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:05:44 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:05:46 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:46 2021
Terminated at Sat Sep  4 22:20:34 2021
Results reported at Sat Sep  4 22:20:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin620 180.833 11.3231 400032001 400291201 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 :                                   870.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

