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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin662
RA = 180.788, Dec = 60.518
tmin = 410918401, tmax = 411177601
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='279225', job_status='RUN', time_executed='2021-09-04 21:38:09.589028', time_epoch_executed='1630816689.59' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279225/ft1_4FGL_J1203.1+6031_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279225/ft2_4FGL_J1203.1+6031_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279225/ft1_4FGL_J1203.1+6031_daily_bin662.fits outfile=/scratch/kocevski/279225/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin662.fits ra=180.788 dec=60.518 rad=12.0 tmin=410918401.0 tmax=411177601.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 6.96
user 6.71
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279225/ft1_filtered_4FGL_J1203.1+6031_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/279225/ft2_4FGL_J1203.1+6031_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/279225/ltcube_410918401_411177601_4FGL_J1203.1+6031_daily_bin662.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/279225/ft2_4FGL_J1203.1+6031_daily_bin662.fits
.....................!
real 12.02
user 11.69
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279225/ft1_filtered_4FGL_J1203.1+6031_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/279225/ft2_4FGL_J1203.1+6031_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/279225/ltcube_410918401_411177601_4FGL_J1203.1+6031_daily_bin662.fits outfile=/scratch/kocevski/279225/expmap_410918401_411177601_4FGL_J1203.1+6031_daily_bin662.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/279225/ltcube_410918401_411177601_4FGL_J1203.1+6031_daily_bin662.fits
.....................!
real 189.26
user 185.09
sys 3.79

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/279225/ft1_filtered_4FGL_J1203.1+6031_daily_bin662.fits scfile=/scratch/kocevski/279225/ft2_4FGL_J1203.1+6031_daily_bin662.fits outfile=/scratch/kocevski/279225/cmap_410918401_411177601_4FGL_J1203.1+6031_daily_bin662.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279225/ft1_filtered_4FGL_J1203.1+6031_daily_bin662.fits scfile=/scratch/kocevski/279225/ft2_4FGL_J1203.1+6031_daily_bin662.fits outfile=/scratch/kocevski/279225/cmap_HighResolution_410918401_411177601_4FGL_J1203.1+6031_daily_bin662.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.10       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2946       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12677E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.0207       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.960       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    134.95       1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9638       1.0000         .10000E-03   10000.    
    15 'norm      '    .21421E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4925       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12346E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5324       1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.529       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11716E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .47426E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.4533       1.0000         .10000E-03   10000.    
    27 'norm      '    4.9886       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    31.896       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .18204       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2193       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=   1896.248     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     4676 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.10        49.278       -.26507E-06   -.32229E-04
   2  norm          3.2942        4.2939        .46488E-07   -.16580E-04
   3  norm          3.0849        2.7482        .29285E-07   -.34033E-04
   4  Prefactor     .10000E-03    414.20       -.15335E-05** at limit **
   5  norm          7.0286        16.826        .15676E-05   -.63759E-04
   6  Prefactor     .10000E-03    77.246       -.86190E-07** at limit **
   7  norm          .10000E-03    1.8259        .43419E-06** at limit **
   8  Prefactor     5.7593        54.032       -.44191E-05   -.48428E-05
   9  Prefactor     43.963        73.537       -.52200E-06   -.44594E-05
  10  Prefactor     .10000E-03    54.106        .72177E-05** at limit **
  11  Prefactor     .10000E-03    4.3126        .12656E-05** at limit **
  12  Prefactor     134.84        97.560       -.55930E-05   -.62839E-04
  13  Prefactor     70.088        76.765       -.15228E-06    .39936E-05
  14  Prefactor     5.9627        11.239       -.23961E-06   -.54871E-05
  15  norm          .10051E-03    360.42        .30166E-04** at limit **
  16  Prefactor     .10000E-03    3.8615        .11075E-06** at limit **
  17  norm          6.5178        17.992        .13330E-05    .17316E-03
  18  Prefactor     .10000E-03    28.335       -.35881E-05** at limit **
  19  Prefactor     .10002E-03    485.59       -.25555E-04** at limit **
  20  norm          1.5314        2.6482        .86870E-07    .25281E-03
  21  Prefactor     41.542        82.448        .39803E-05    .48184E-04
  22  Prefactor     .10000E-03    698.10        .25038E-05** at limit **
  23  norm          .10000E-03    9.2903       -.39218E-06** at limit **
  24  norm          .10017E-03    16.451        .76784E-06** at limit **
  25  Prefactor     .10000E-03    4.2979        .13906E-06** at limit **
  26  norm          3.4545        5.0043        .26065E-06    .10684E-03
  27  norm          4.9876        3.4463        .35617E-07    .17185E-03
  28  Prefactor     .10000E-03    66.363        .21061E-06** at limit **
  29  Prefactor     31.886        27.740        .56590E-06    .78063E-04
  30  Prefactor     .10000E-03    29.809       -.39349E-07** at limit **
  31  Prefactor     .10000E-03    2.5289       -.59739E-07** at limit **
  32  Normalizat    .18221        .30727        .62604E-05    .14695E-03
  33  Prefactor     1.2192        .35039       -.18315E-05    .21459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.101
  norm       = 3.29417
  norm       = 3.08487
  Prefactor  = 0.000100001
  norm       = 7.02862
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.75935
  Prefactor  = 43.9628
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 134.845
  Prefactor  = 70.0877
  Prefactor  = 5.96274
  norm       = 0.000100511
  Prefactor  = 0.0001
  norm       = 6.51785
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 1.53144
  Prefactor  = 41.5418
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.000100167
  Prefactor  = 0.0001
  norm       = 3.45454
  norm       = 4.98763
  Prefactor  = 0.0001
  Prefactor  = 31.8859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.18221
  Prefactor  = 1.21916
 **********
 **   18 **HESSE 
 **********

 FCN=   1896.248     FROM HESSE     STATUS=OK           689 CALLS     5365 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.10        49.270        .39410E-04   -1.3664    
   2  norm          3.2942        4.2842        .92077E-04   -1.5345    
   3  norm          3.0849        2.7538        .66075E-04   -1.5357    
   4  Prefactor     .10000E-03    414.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0286        17.889        .10178E-03   -1.5178    
   6  Prefactor     .10000E-03    77.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8336        .57466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7593        60.840        .16726E-03   -1.5228    
   9  Prefactor     43.963        73.634        .60466E-04   -1.4381    
  10  Prefactor     .10000E-03    54.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3188        .88365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     134.84        98.745        .17334E-03   -1.3380    
  13  Prefactor     70.088        76.760        .47947E-04   -1.4032    
  14  Prefactor     5.9627        11.249        .16443E-03   -1.5220    
  15  norm          .10051E-03    408.86        .53647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9382        .83596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5178        17.675        .15751E-03   -1.5197    
  18  Prefactor     .10000E-03    28.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    495.38        .20617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5314        2.6093        .88769E-04   -1.5460    
  21  Prefactor     41.542        82.435        .62204E-04   -1.4418    
  22  Prefactor     .10000E-03    697.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.3652        .12963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10017E-03    36.662        .27103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.2977        .88117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.4545        4.9812        .99070E-04   -1.5336    
  27  norm          4.9876        3.4595        .64025E-04   -1.5261    
  28  Prefactor     .10000E-03    66.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     31.886        27.755        .70948E-04   -1.4578    
  30  Prefactor     .10000E-03    29.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.5302        .67639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .18221        .31207        .44144E-03   -1.3074    
  33  Prefactor     1.2192        .35353        .21874E-03   -.85744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25554e-09
Minuit parameter uncertainties:
  1  49.2892
  2  4.28464
  3  2.75392
  4  0.00123278
  5  17.9022
  6  6.93755e-05
  7  4.63312e-06
  8  37.4864
  9  73.7864
  10  0.000417865
  11  2.32558e-05
  12  98.8664
  13  76.8687
  14  11.2532
  15  0.0291098
  16  6.66516e-06
  17  17.6887
  18  0.000181653
  19  0.00658254
  20  2.60945
  21  82.6625
  22  0.00351496
  23  1.25242e-05
  24  0.00495677
  25  1.00915e-05
  26  4.98179
  27  3.45962
  28  6.99069e-05
  29  27.7663
  30  2.07164e-06
  31  1.8867e-06
  32  0.31515
  33  0.354224
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  1.817e-04  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.219e+00  3.542e-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:  1.822e-01  3.151e-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.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279225/likelihoodResults_410918401_411177601_4FGL_J1203.1+6031_daily_bin662.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) = 1896.24784013
delta logL = -0.000166767096516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1896.24767381
delta logL = -4.51097548648e-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.0466       1.0000          .0000       10.000    
     3 'Normalizat'    .18221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2192       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=   1896.248     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1353.4        .18142E-02** at limit **
   2  Index         2.1080        6.0534        .50000       -.25781E-04
   3  Normalizat    .18221        .46290E-01    .44143E-03   -.38310E-05
   4  Prefactor     1.2192        .57910E-01    .21874E-03    .10057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.10799
  Normalizat = 0.182206
  Prefactor  = 1.21916
 **********
 **   18 **HESSE 
 **********

 FCN=   1896.248     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7050.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1080        6.0319        .50000       -.61677    
   3  Normalizat    .18221        .11428        .17657E-04   -1.3074    
   4  Prefactor     1.2192        .14308        .87495E-05   -.85744    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79447e-09
Minuit parameter uncertainties:
  1  0.0167183
  2  54.6036
  3  0.114427
  4  0.143127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279225': 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) = 1896.24767345
delta logL = -8.54886366142e-08

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  1.672e-02  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.108e+00  5.460e+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.219e+00  1.431e-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:  1.822e-01  1.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.788 60.518

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/279225/cmap_HighResolution_410918401_411177601_4FGL_J1203.1+6031_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.72e-07', time_completed='2021-09-04 21:47:37.437168', job_id='279225', GAL2='1.22', fit_tolerance='1e-08', EG2='0.18', EG='0.18', time_epoch_completed='1630817257.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='-8.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='662' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:47:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 279225: <4FGL_J1203.1+6031_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin662 180.788 60.518 410918401 411177601 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 :                                   566.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

