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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin739
RA = 180.788, Dec = 60.518
tmin = 430876801, tmax = 431136001
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='279348', job_status='RUN', time_executed='2021-09-04 21:37:29.473357', time_epoch_executed='1630816649.47' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279348/ft1_4FGL_J1203.1+6031_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279348/ft1_4FGL_J1203.1+6031_daily_bin739.fits outfile=/scratch/kocevski/279348/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin739.fits ra=180.788 dec=60.518 rad=12.0 tmin=430876801.0 tmax=431136001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.37
user 5.09
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.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/279348/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin739.fits evtable="EVENTS" outfile="/scratch/kocevski/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/279348/ltcube_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.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/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits
.....................!
real 12.10
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/279348/ltcube_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.fits outfile=/scratch/kocevski/279348/expmap_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.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/279348/ltcube_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.fits
.....................!
real 192.25
user 187.36
sys 4.23

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 227 point sources and 0 extended sources

Setting source of interest to:
4FGL J1203.1+6031 @ 180.788 60.518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.fits scfile=/scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits outfile=/scratch/kocevski/279348/cmap_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.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.788 yref=60.518 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.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.fits scfile=/scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits outfile=/scratch/kocevski/279348/cmap_HighResolution_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.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.788 yref=60.518 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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279348/Model_4FGL_J1203.1+6031_daily_bin739.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/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.fits.....................!
real 45.25
user 43.71
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.fits', '/scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits', expMap='/scratch/kocevski/279348/expmap_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.fits', expCube='/scratch/kocevski/279348/ltcube_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279348/Model_4FGL_J1203.1+6031_daily_bin739.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.1+6031'

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.279e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/279348/ft1_filtered_4FGL_J1203.1+6031_daily_bin739.fits
Spacecraft file(s): /scratch/kocevski/279348/ft2_4FGL_J1203.1+6031_daily_bin739.fits
Exposure map: /scratch/kocevski/279348/expmap_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.fits
Exposure cube: /scratch/kocevski/279348/ltcube_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279348/Model_4FGL_J1203.1+6031_daily_bin739.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) = 4284.62131185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13390E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .11084       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5904       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6375       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.174       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7665       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9522       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .28068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.7891       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.238       1.0000         .10000E-03   10000.    
    23 'norm      '    19.095       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3282       1.0000         .10000E-03   10000.    
    26 'norm      '    2.7460       1.0000         .10000E-03   10000.    
    27 'norm      '    3.5237       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    71.593       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.1801       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .62873       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4284.616     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     4622 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10124E-03    17.039        .55284E-06** at limit **
   2  norm          .96464E-01    2.7641        .15640E-05   -.16318E-02
   3  norm          1.5904        1.3996        .97820E-08   -.95638E-04
   4  Prefactor     .10000E-03    63.852        .97886E-07** at limit **
   5  norm          .10000E-03    1.0044       -.23293E-07** at limit **
   6  Prefactor     .10000E-03    151.41       -.41674E-06** at limit **
   7  norm          2.6375        2.2443       -.10205E-07   -.11487E-03
   8  Prefactor     .10000E-03    2.2284       -.19783E-07** at limit **
   9  Prefactor     .10000E-03    21.673       -.19248E-06** at limit **
  10  Prefactor     17.179        22.433        .25943E-06   -.52868E-04
  11  Prefactor     2.7661        4.5930        .25584E-06   -.36917E-05
  12  Prefactor     .10000E-03    11.774       -.23513E-06** at limit **
  13  Prefactor     .10000E-03    21.931       -.10534E-06** at limit **
  14  Prefactor     6.9520        4.8186        .46104E-07    .50970E-04
  15  norm          .10000E-03    7.6214       -.94306E-07** at limit **
  16  Prefactor     .10000E-03    3.3473       -.17294E-06** at limit **
  17  norm          .28082        5.6635        .39036E-06   -.78628E-04
  18  Prefactor     39.409        19.711       -.26547E-06   -.25103E-03
  19  Prefactor     .10000E-03    29.987        .13481E-05** at limit **
  20  norm          6.7891        3.4047        .67937E-07   -.45753E-04
  21  Prefactor     .10000E-03    23.082        .81836E-06** at limit **
  22  Prefactor     26.294        93.067        .14970E-05    .23731E-04
  23  norm          19.095        8.4184        .60973E-07   -.47680E-05
  24  norm          .10000E-03    10.996       -.23610E-07** at limit **
  25  Prefactor     1.3287        4.7516        .16047E-05    .31303E-03
  26  norm          2.7463        2.8206       -.10226E-06   -.69403E-05
  27  norm          3.5237        3.2839        .89624E-07    .59543E-04
  28  Prefactor     .10000E-03    33.142       -.99151E-07** at limit **
  29  Prefactor     .10000E-03    6.6583       -.73986E-07** at limit **
  30  Prefactor     71.635        80.604       -.11768E-05    .17527E-04
  31  Prefactor     1.1831        5.3815        .35604E-05    .50939E-03
  32  Normalizat    .62820        .20530       -.21306E-05   -.21593E-03
  33  Prefactor     1.3852        .25329        .95785E-06   -.19278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101243
  norm       = 0.0964636
  norm       = 1.59036
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1794
  Prefactor  = 2.76612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.95204
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.280817
  Prefactor  = 39.4087
  Prefactor  = 0.000100001
  norm       = 6.78914
  Prefactor  = 0.0001
  Prefactor  = 26.2945
  norm       = 19.0947
  norm       = 0.0001
  Prefactor  = 1.32866
  norm       = 2.74627
  norm       = 3.52367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.6348
  Prefactor  = 1.18313
  Normalizat = 0.628201
  Prefactor  = 1.38518
 **********
 **   18 **HESSE 
 **********

 FCN=   4284.616     FROM HESSE     STATUS=OK           699 CALLS     5321 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10124E-03    157.96        .45234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .96464E-01    8.0098        .14389E-02   -1.5646    
   3  norm          1.5904        1.3932        .70723E-04   -1.5456    
   4  Prefactor     .10000E-03    63.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0099        .64049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    151.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6375        2.2458        .86187E-04   -1.5383    
   8  Prefactor     .10000E-03    2.2356        .95413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.179        22.452        .96646E-04   -1.4879    
  11  Prefactor     2.7661        4.5722        .17416E-03   -1.5375    
  12  Prefactor     .10000E-03    11.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9520        4.8186        .11616E-03   -1.5181    
  15  norm          .10000E-03    7.6308        .17649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4396        .23369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28082        47.768        .25298E-02   -1.5602    
  18  Prefactor     39.409        20.461        .63824E-04   -1.4452    
  19  Prefactor     .10000E-03    30.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7891        3.4040        .81093E-04   -1.5187    
  21  Prefactor     .10000E-03    23.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.294        92.911        .78208E-04   -1.4682    
  23  norm          19.095        8.4176        .91658E-04   -1.4834    
  24  norm          .10000E-03    11.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.3287        4.7212        .25611E-03   -1.5477    
  26  norm          2.7463        2.8077        .10446E-03   -1.5377    
  27  norm          3.5237        3.2803        .11043E-03   -1.5333    
  28  Prefactor     .10000E-03    33.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.6803        .16492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     71.635        80.507        .23723E-03   -1.4013    
  31  Prefactor     1.1831        5.5907        .29566E-03   -1.5490    
  32  Normalizat    .62820        .24161        .27699E-03   -1.0680    
  33  Prefactor     1.3852        .30434        .25270E-03   -.80808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36629e-08
Minuit parameter uncertainties:
  1  0.0280937
  2  1.75735
  3  1.39318
  4  9.58053e-05
  5  3.61449e-07
  6  0.000350256
  7  2.24589
  8  2.12085e-07
  9  6.31985e-05
  10  22.4629
  11  4.57276
  12  3.60252e-05
  13  2.0905e-05
  14  4.81888
  15  1.06886e-05
  16  6.35437e-06
  17  7.32965
  18  20.4648
  19  0.00029068
  20  3.40408
  21  0.000197767
  22  93.4284
  23  8.41812
  24  1.28262e-05
  25  4.72255
  26  2.80779
  27  3.28048
  28  0.000109748
  29  7.80026e-06
  30  80.63
  31  5.1443
  32  0.242021
  33  0.304732
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.941e+01  2.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.121e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.385e+00  3.047e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  6.282e-01  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.24
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 6.38e-08
Energy Flux (Fixed Index): 6.44e-05 +/- 3.35e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4283.59284615
delta logL = 1.02351255625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4283.58394085
delta logL = 1.03241785196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.116       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6660       1.0000          .0000       10.000    
     3 'Normalizat'    .54870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+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=   4283.584     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.118        17.714        .91606E-04   -.38745E-03
   2  Index         2.6660        .47004        .23764E-02   -.12747E-03
   3  Normalizat    .54884        .23918        .29431E-03   -.20280E-04
   4  Prefactor     1.4520        .30696        .24752E-03    .68362E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1176
  Index      = 2.66598
  Normalizat = 0.548837
  Prefactor  = 1.452
 **********
 **   18 **HESSE 
 **********

 FCN=   4283.584     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.118        15.543        .36643E-05   -1.4833    
   2  Index         2.6660        .41233        .95057E-04   -.48567    
   3  Normalizat    .54884        .23832        .11773E-04   -1.1020    
   4  Prefactor     1.4520        .30615        .49504E-04   -.78893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81316e-11
Minuit parameter uncertainties:
  1  15.5467
  2  0.412928
  3  0.238767
  4  0.306533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279348': 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) = 4283.58394058
delta logL = 1.03241811828

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.912e+01  1.555e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.666e+00  4.129e-01  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.582e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.452e+00  3.065e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  5.488e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.45
Ra Dec: 180.788 60.518
Photon Index (Free Index): 2.67 +/- 0.41
Photon Flux (Free Index): 1.81e-07 +/- 7.12e-08
Energy Flux (Free Index): 4.47e-05 +/- 1.80e-05

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/279348/cmap_HighResolution_430876801_431136001_4FGL_J1203.1+6031_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='4.47e-05', photon_flux_error='6.38e-08', dlogl='1.03e+00', energy_flux='6.44e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-04 21:50:30.635135', photon_index_error2='0.41', photon_index2='2.67', ts='12.24', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.63', time_epoch_completed='1630817430.64', return_code='0', job_id='279348', GAL2='1.45', EG2='0.55', return_code2='0', energy_flux_error='3.35e-05', photon_flux_error2='7.12e-08', ts2='14.45', photon_index='2.12' WHERE bin_id='739' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:50:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 279348: <4FGL_J1203.1+6031_daily_bin739> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin739> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:35:31 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:35:32 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:35:32 2021
Terminated at Sat Sep  4 21:50:31 2021
Results reported at Sat Sep  4 21:50:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin739 180.788 60.518 430876801 431136001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.1+6031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

