/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 6 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin52
RA = 180.833, Dec = 11.3231
tmin = 252806401, tmax = 253065601
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='285563', job_status='RUN', time_executed='2021-09-04 21:55:57.184622', time_epoch_executed='1630817757.18' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285563

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285563/ft1_4FGL_J1203.3+1119_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285563/ft2_4FGL_J1203.3+1119_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285563/ft1_4FGL_J1203.3+1119_daily_bin52.fits outfile=/scratch/kocevski/285563/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin52.fits ra=180.833 dec=11.3231 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.42
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285563/ft2_4FGL_J1203.3+1119_daily_bin52.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/285563/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/285563/ft1_filtered_4FGL_J1203.3+1119_daily_bin52.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285563/ft1_filtered_4FGL_J1203.3+1119_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/285563/ft2_4FGL_J1203.3+1119_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/285563/ltcube_252806401_253065601_4FGL_J1203.3+1119_daily_bin52.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/285563/ft2_4FGL_J1203.3+1119_daily_bin52.fits
.....................!
real 12.65
user 12.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285563/ft1_filtered_4FGL_J1203.3+1119_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/285563/ft2_4FGL_J1203.3+1119_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/285563/ltcube_252806401_253065601_4FGL_J1203.3+1119_daily_bin52.fits outfile=/scratch/kocevski/285563/expmap_252806401_253065601_4FGL_J1203.3+1119_daily_bin52.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/285563/ltcube_252806401_253065601_4FGL_J1203.3+1119_daily_bin52.fits
.....................!
real 191.52
user 187.11
sys 3.85

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/285563/ft1_filtered_4FGL_J1203.3+1119_daily_bin52.fits scfile=/scratch/kocevski/285563/ft2_4FGL_J1203.3+1119_daily_bin52.fits outfile=/scratch/kocevski/285563/cmap_252806401_253065601_4FGL_J1203.3+1119_daily_bin52.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285563/ft1_filtered_4FGL_J1203.3+1119_daily_bin52.fits scfile=/scratch/kocevski/285563/ft2_4FGL_J1203.3+1119_daily_bin52.fits outfile=/scratch/kocevski/285563/cmap_HighResolution_252806401_253065601_4FGL_J1203.3+1119_daily_bin52.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5873       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3864       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.498       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2945       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5754       1.0000         .10000E-03   10000.    
    17 'norm      '    .12502       1.0000         .10000E-03   10000.    
    18 'norm      '    24.651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8449       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.537       1.0000         .10000E-03   10000.    
    22 'Prefactor '    92.707       1.0000         .10000E-03   10000.    
    23 'norm      '    9.7005       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1895       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4789       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64773       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=   8424.358     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3104 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5875        5.3883        .78993E-07   -.16240E-04
   2  Prefactor     .10000E-03    10.194        .42843E-06** at limit **
   3  Prefactor     .10000E-03    2.1247        .13883E-07** at limit **
   4  Prefactor     .10000E-03    5.9190        .97572E-07** at limit **
   5  Prefactor     .10000E-03    26.891       -.23021E-05** at limit **
   6  Prefactor     .10000E-03    5.7216       -.11092E-06** at limit **
   7  Prefactor     4.9402        6.8585        .45831E-05   -.44664E-03
   8  Prefactor     3.3864        11.268        .30514E-06   -.97744E-05
   9  Prefactor     .10000E-03    1.3156        .43510E-07** at limit **
  10  Prefactor     .10000E-03    30.922        .19624E-05** at limit **
  11  Prefactor     40.492        33.759       -.20985E-05   -.15867E-04
  12  Prefactor     2.2946        1.8982       -.33770E-07   -.28932E-04
  13  Prefactor     1.3963        1.3941       -.34929E-07    .28062E-04
  14  Prefactor     .10000E-03    8.9053       -.29377E-06** at limit **
  15  norm          .10003E-03    1.4646       -.12793E-05** at limit **
  16  Prefactor     9.5723        18.027        .37007E-06    .21728E-04
  17  norm          .12512        .19357        .92116E-07    .59991E-03
  18  norm          24.613        34.418       -.61570E-05   -.19244E-03
  19  Prefactor     .10000E-03    37.729        .10496E-05** at limit **
  20  norm          2.8446        .70074        .41025E-06    .32477E-02
  21  Prefactor     14.541        13.503        .13163E-05    .55398E-04
  22  Prefactor     92.689        39.473       -.31567E-05   -.37657E-03
  23  norm          9.7001        2.1182        .86241E-07    .70136E-03
  24  Prefactor     4.1935        151.49        .46207E-05    .15120E-04
  25  Normalizat    1.4788        .17492        .12223E-05    .24540E-03
  26  Prefactor     .64778        .15400       -.93881E-06    .26532E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.58749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.94017
  Prefactor  = 3.3864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.4915
  Prefactor  = 2.2946
  Prefactor  = 1.39633
  Prefactor  = 0.0001
  norm       = 0.000100028
  Prefactor  = 9.57233
  norm       = 0.125123
  norm       = 24.613
  Prefactor  = 0.0001
  norm       = 2.84455
  Prefactor  = 14.5407
  Prefactor  = 92.6885
  norm       = 9.70014
  Prefactor  = 4.19353
  Normalizat = 1.4788
  Prefactor  = 0.647776
 **********
 **   18 **HESSE 
 **********

 FCN=   8424.358     FROM HESSE     STATUS=OK           458 CALLS     3562 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5875        5.3779        .21336E-03   -1.5329    
   2  Prefactor     .10000E-03    10.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1278        .13065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9402        7.1080        .90443E-03   -1.5263    
   8  Prefactor     3.3864        11.268        .21987E-03   -1.5340    
   9  Prefactor     .10000E-03    1.3388        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.492        33.718        .62988E-04   -1.4434    
  12  Prefactor     2.2946        1.8978        .10991E-03   -1.5405    
  13  Prefactor     1.3963        1.4058        .10445E-03   -1.5472    
  14  Prefactor     .10000E-03    8.9188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10003E-03    4.1437        .19573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.5723        18.019        .12950E-03   -1.5089    
  17  norm          .12512        .17040        .48232E-03   -1.5637    
  18  norm          24.613        35.454        .80680E-04   -1.4715    
  19  Prefactor     .10000E-03    37.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8446        .69981        .34621E-04   -1.5371    
  21  Prefactor     14.541        13.513        .10505E-03   -1.4945    
  22  Prefactor     92.689        40.061        .41738E-04   -1.3779    
  23  norm          9.7001        2.1174        .60143E-04   -1.5085    
  24  Prefactor     4.1935        151.44        .19690E-03   -1.5298    
  25  Normalizat    1.4788        .20626        .24035E-03   -.78376    
  26  Prefactor     .64778        .18110        .31226E-03   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03828e-09
Minuit parameter uncertainties:
  1  5.37867
  2  2.28294e-05
  3  1.24362e-06
  4  1.76803e-06
  5  0.00027734
  6  1.38822e-05
  7  7.10926
  8  11.275
  9  1.36073e-06
  10  0.000238748
  11  33.7338
  12  1.89784
  13  1.4058
  14  1.36489e-05
  15  0.000682282
  16  18.0288
  17  0.170397
  18  35.4839
  19  0.000151009
  20  0.699812
  21  13.5157
  22  40.0723
  23  2.11746
  24  50.5399
  25  0.206375
  26  0.181262
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.387e-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:  6.478e-01  1.813e-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.479e+00  2.064e-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: 5.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285563/likelihoodResults_252806401_253065601_4FGL_J1203.3+1119_daily_bin52.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) = 8424.35767309
delta logL = -0.000153772598424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8424.35751991
delta logL = -5.89428964304e-07

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.6990       1.0000          .0000       10.000    
     3 'Normalizat'    1.4788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64778       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=   8424.358     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10182E-03    162.23        .18142E-02** at limit **
   2  Index         2.6351        7.5952        .50000        .95658E-05
   3  Normalizat    1.4788        .11047E-01    .24035E-03   -.15553E-04
   4  Prefactor     .64777        .99684E-02    .31226E-03   -.11359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101815
  Index      = 2.63506
  Normalizat = 1.4788
  Prefactor  = 0.647775
 **********
 **   18 **HESSE 
 **********

 FCN=   8424.358     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10182E-03    695.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6351        7.9588        .50000       -.49268    
   3  Normalizat    1.4788        .23658E-01    .48069E-04   -.78376    
   4  Prefactor     .64777        .21348E-01    .12490E-04   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25535e-08
Minuit parameter uncertainties:
  1  0.0719031
  2  741.697
  3  0.0236583
  4  0.0213487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285563': 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) = 8424.3575198
delta logL = -4.80329617858e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.018e-04  7.190e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.635e+00  7.417e+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:  6.478e-01  2.135e-02  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.479e+00  2.366e-02  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/285563/cmap_HighResolution_252806401_253065601_4FGL_J1203.3+1119_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-04 22:11:58.720866', job_id='285563', GAL2='0.65', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630818718.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='-4.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='52' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:11:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 285563: <4FGL_J1203.3+1119_daily_bin52> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin52> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:55:41 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:55:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:55:42 2021
Terminated at Sat Sep  4 22:11:59 2021
Results reported at Sat Sep  4 22:11:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin52 180.833 11.3231 252806401 253065601 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 :                                   958.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

