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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin905
RA = 180.788, Dec = 60.518
tmin = 473904001, tmax = 474163201
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='280808', job_status='RUN', time_executed='2021-09-04 21:43:52.321020', time_epoch_executed='1630817032.32' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280808

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280808/ft1_4FGL_J1203.1+6031_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280808/ft2_4FGL_J1203.1+6031_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280808/ft1_4FGL_J1203.1+6031_daily_bin905.fits outfile=/scratch/kocevski/280808/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin905.fits ra=180.788 dec=60.518 rad=12.0 tmin=473904001.0 tmax=474163201.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.11
user 4.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/280808/ft2_4FGL_J1203.1+6031_daily_bin905.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/280808/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/280808/ft1_filtered_4FGL_J1203.1+6031_daily_bin905.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280808/ft1_filtered_4FGL_J1203.1+6031_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/280808/ft2_4FGL_J1203.1+6031_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/280808/ltcube_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.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/280808/ft2_4FGL_J1203.1+6031_daily_bin905.fits
.....................!
real 11.97
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280808/ft1_filtered_4FGL_J1203.1+6031_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/280808/ft2_4FGL_J1203.1+6031_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/280808/ltcube_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.fits outfile=/scratch/kocevski/280808/expmap_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.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/280808/ltcube_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.fits
.....................!
real 192.59
user 187.11
sys 4.89

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/280808/ft1_filtered_4FGL_J1203.1+6031_daily_bin905.fits scfile=/scratch/kocevski/280808/ft2_4FGL_J1203.1+6031_daily_bin905.fits outfile=/scratch/kocevski/280808/cmap_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280808/ft1_filtered_4FGL_J1203.1+6031_daily_bin905.fits scfile=/scratch/kocevski/280808/ft2_4FGL_J1203.1+6031_daily_bin905.fits outfile=/scratch/kocevski/280808/cmap_HighResolution_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/280808/ft1_filtered_4FGL_J1203.1+6031_daily_bin905.fits', '/scratch/kocevski/280808/ft2_4FGL_J1203.1+6031_daily_bin905.fits', expMap='/scratch/kocevski/280808/expmap_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.fits', expCube='/scratch/kocevski/280808/ltcube_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/280808/Model_4FGL_J1203.1+6031_daily_bin905.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/280808/ft1_filtered_4FGL_J1203.1+6031_daily_bin905.fits
Spacecraft file(s): /scratch/kocevski/280808/ft2_4FGL_J1203.1+6031_daily_bin905.fits
Exposure map: /scratch/kocevski/280808/expmap_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.fits
Exposure cube: /scratch/kocevski/280808/ltcube_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/280808/Model_4FGL_J1203.1+6031_daily_bin905.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) = 3746.51922657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.329       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5691       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11524E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2244       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1630       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6148       1.0000         .10000E-03   10000.    
    15 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7566       1.0000         .10000E-03   10000.    
    17 'norm      '    .38630E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.690       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.093       1.0000         .10000E-03   10000.    
    22 'Prefactor '    200.39       1.0000         .10000E-03   10000.    
    23 'norm      '    .85613       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0702       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.3067       1.0000         .10000E-03   10000.    
    27 'norm      '    .10902E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .62583       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0973       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=   3746.472     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4613 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.332        22.254       -.38875E-07    .35366E-04
   2  norm          4.5689        2.6864       -.20851E-07    .60399E-04
   3  norm          2.3336        1.8069        .11862E-06    .30504E-03
   4  Prefactor     .10000E-03    55.753       -.18142E-05** at limit **
   5  norm          .10000E-03    .97983       -.12361E-06** at limit **
   6  Prefactor     .10000E-03    67.529        .25723E-05** at limit **
   7  norm          .10000E-03    2.2915        .25636E-05** at limit **
   8  Prefactor     .10000E-03    1.9618       -.11943E-06** at limit **
   9  Prefactor     52.446        58.325       -.56059E-07    .14800E-04
  10  Prefactor     7.1315        28.271        .14399E-05    .11307E-04
  11  Prefactor     5.2255        5.9601        .17375E-06    .37086E-04
  12  Prefactor     .10000E-03    10.958        .23524E-06** at limit **
  13  Prefactor     8.1602        20.195       -.35237E-06    .12222E-04
  14  Prefactor     5.6141        4.7525       -.94847E-07    .41598E-04
  15  norm          .10000E-03    45.820       -.22724E-05** at limit **
  16  Prefactor     9.7574        6.3171       -.15726E-06    .90840E-04
  17  norm          .10012E-03    11.812        .57271E-05** at limit **
  18  Prefactor     .10000E-03    19.785        .37959E-06** at limit **
  19  Prefactor     28.736        53.355       -.43650E-06   -.12458E-03
  20  norm          .10000E-03    1.7179       -.38994E-06** at limit **
  21  Prefactor     11.099        32.964       -.82781E-06   -.10488E-04
  22  Prefactor     200.33        141.09        .33982E-05   -.38461E-05
  23  norm          .85451        6.5740       -.37961E-06    .81825E-04
  24  norm          6.0693        9.1617        .46925E-06    .64662E-03
  25  Prefactor     .10000E-03    6.1150       -.35991E-06** at limit **
  26  norm          7.3076        3.6606       -.76483E-07    .10484E-03
  27  norm          .10000E-03    2.2330       -.10429E-05** at limit **
  28  Prefactor     .10000E-03    18.976       -.78973E-06** at limit **
  29  Prefactor     .10000E-03    3.6148       -.95594E-07** at limit **
  30  Prefactor     .10000E-03    29.108        .17388E-05** at limit **
  31  Prefactor     .10000E-03    10.671       -.10484E-05** at limit **
  32  Normalizat    .62531        .20496       -.16864E-07    .24364E-03
  33  Prefactor     1.0980        .24067        .29079E-05    .44686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3323
  norm       = 4.56887
  norm       = 2.33357
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 52.4463
  Prefactor  = 7.13155
  Prefactor  = 5.22548
  Prefactor  = 0.0001
  Prefactor  = 8.16018
  Prefactor  = 5.61411
  norm       = 0.0001
  Prefactor  = 9.75742
  norm       = 0.000100123
  Prefactor  = 0.0001
  Prefactor  = 28.7363
  norm       = 0.0001
  Prefactor  = 11.0992
  Prefactor  = 200.33
  norm       = 0.854511
  norm       = 6.06933
  Prefactor  = 0.0001
  norm       = 7.30755
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.625313
  Prefactor  = 1.09801
 **********
 **   18 **HESSE 
 **********

 FCN=   3746.472     FROM HESSE     STATUS=OK           693 CALLS     5306 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.332        22.408        .78071E-04   -1.4681    
   2  norm          4.5689        2.7038        .66352E-04   -1.5280    
   3  norm          2.3336        1.7970        .69598E-04   -1.5402    
   4  Prefactor     .10000E-03    55.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .98821        .59199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7206        .15392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9680        .83746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.446        58.298        .55383E-04   -1.4258    
  10  Prefactor     7.1315        27.232        .15082E-03   -1.5174    
  11  Prefactor     5.2255        5.9464        .15210E-03   -1.5251    
  12  Prefactor     .10000E-03    10.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1602        20.188        .14032E-03   -1.5137    
  14  Prefactor     5.6141        4.7528        .11811E-03   -1.5234    
  15  norm          .10000E-03    47.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7574        6.3245        .11756E-03   -1.5083    
  17  norm          .10012E-03    21.068        .25001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.736        51.160        .74797E-04   -1.4635    
  20  norm          .10000E-03    1.7689        .78567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.099        32.948        .12029E-03   -1.5042    
  22  Prefactor     200.33        141.12        .14272E-03   -1.2868    
  23  norm          .85451        6.6570        .30259E-03   -1.5523    
  24  norm          6.0693        9.2652        .81480E-03   -1.5215    
  25  Prefactor     .10000E-03    6.1674        .14775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.3076        3.6588        .79886E-04   -1.5167    
  27  norm          .10000E-03    4.6865        .17576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.6181        .11366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    29.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    11.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .62531        .24013        .25601E-03   -1.0692    
  33  Prefactor     1.0980        .28702        .24923E-03   -.89530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22168e-09
Minuit parameter uncertainties:
  1  22.4151
  2  2.7039
  3  1.79705
  4  0.000226367
  5  8.57844e-06
  6  0.000289312
  7  0.000168882
  8  1.14205e-05
  9  58.3618
  10  27.279
  11  5.94708
  12  1.05474e-05
  13  20.2053
  14  4.75311
  15  0.00025336
  16  6.32493
  17  0.00322276
  18  4.20966e-05
  19  51.2378
  20  3.98005e-05
  21  33.0024
  22  141.356
  23  4.77057
  24  9.26742
  25  6.02592e-05
  26  3.65888
  27  6.53645e-05
  28  7.99881e-05
  29  1.22019e-05
  30  0.000110841
  31  0.000186959
  32  0.240528
  33  0.287427
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  4.210e-05  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.098e+00  2.874e-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.253e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.788 60.518
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280808/likelihoodResults_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.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) = 3746.47186609
delta logL = -0.00023917225235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3745.66866001
delta logL = 0.802966908465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89954E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.5926       1.0000          .0000       10.000    
     3 'Normalizat'    .53641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1681       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.

 FCN=   3745.669     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      319 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87940E-01    1.3766        .34580E-02    .28637E-02
   2  Index         4.6020        2.4289        .91160E-01    .15410E-03
   3  Normalizat    .53725        .45863E-01    .62008E-01    .29755E-04
   4  Prefactor     1.1669        .58100E-01    .54815E-01    .12571E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0879396
  Index      = 4.60201
  Normalizat = 0.537252
  Prefactor  = 1.16692
 **********
 **   18 **HESSE 
 **********

 FCN=   3745.669     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      352 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87940E-01    3.3781        .15629E-04   -1.5649    
   2  Index         4.6020        4.1378        .33897E-02   -.79682E-01
   3  Normalizat    .53725        .19353        .27437E-03   -1.1072    
   4  Prefactor     1.1669        .24164        .24236E-03   -.87355    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.40703e-11
Minuit parameter uncertainties:
  1  1.08953
  2  4.88167
  3  0.193778
  4  0.241867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280808': 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) = 3745.66864394
delta logL = 0.802982975619

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  8.794e-02  1.090e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  4.602e+00  4.882e+00  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.167e+00  2.419e-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.373e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 180.788 60.518
Photon Index (Free Index): 4.60 +/- 4.88
Photon Flux (Free Index): 8.09e-08 +/- 7.31e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.29e-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/280808/cmap_HighResolution_473904001_474163201_4FGL_J1203.1+6031_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='8.03e-01', photon_flux2='8.09e-08', job_status='DONE', time_completed='2021-09-04 21:57:09.978700', photon_index_error2='4.88', photon_index2='4.60', ts='-0.00', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.29e-05', EG='0.63', time_epoch_completed='1630817829.98', return_code='0', job_id='280808', GAL2='1.17', EG2='0.54', return_code2='102', photon_flux_error2='7.31e-08', ts2='1.73', photon_index='2.12' WHERE bin_id='905' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 280808: <4FGL_J1203.1+6031_daily_bin905> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin905> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 21:40:34 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:40: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 21:40:36 2021
Terminated at Sat Sep  4 21:57:10 2021
Results reported at Sat Sep  4 21:57:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin905 180.788 60.518 473904001 474163201 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 :                                   795.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             264.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

