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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin749
RA = 180.788, Dec = 60.518
tmin = 433468801, tmax = 433728001
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='279364', job_status='RUN', time_executed='2021-09-04 21:37:39.792904', time_epoch_executed='1630816659.79' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279364/ft1_4FGL_J1203.1+6031_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279364/ft2_4FGL_J1203.1+6031_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279364/ft1_4FGL_J1203.1+6031_daily_bin749.fits outfile=/scratch/kocevski/279364/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin749.fits ra=180.788 dec=60.518 rad=12.0 tmin=433468801.0 tmax=433728001.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.08
user 5.80
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279364/ft1_filtered_4FGL_J1203.1+6031_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/279364/ft2_4FGL_J1203.1+6031_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/279364/ltcube_433468801_433728001_4FGL_J1203.1+6031_daily_bin749.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/279364/ft2_4FGL_J1203.1+6031_daily_bin749.fits
.....................!
real 12.26
user 11.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279364/ft1_filtered_4FGL_J1203.1+6031_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/279364/ft2_4FGL_J1203.1+6031_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/279364/ltcube_433468801_433728001_4FGL_J1203.1+6031_daily_bin749.fits outfile=/scratch/kocevski/279364/expmap_433468801_433728001_4FGL_J1203.1+6031_daily_bin749.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/279364/ltcube_433468801_433728001_4FGL_J1203.1+6031_daily_bin749.fits
.....................!
real 192.72
user 187.22
sys 5.13

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/279364/ft1_filtered_4FGL_J1203.1+6031_daily_bin749.fits scfile=/scratch/kocevski/279364/ft2_4FGL_J1203.1+6031_daily_bin749.fits outfile=/scratch/kocevski/279364/cmap_433468801_433728001_4FGL_J1203.1+6031_daily_bin749.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3724       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2623       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.754       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1576       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9376       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10981E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.856       1.0000         .10000E-03   10000.    
    24 'norm      '    .10337E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.7756       1.0000         .10000E-03   10000.    
    27 'norm      '    6.7978       1.0000         .10000E-03   10000.    
    28 'Prefactor '    865.60       1.0000         .10000E-03   10000.    
    29 'Prefactor '    39.709       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.0075       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2313       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .49536       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=   3377.173     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     4534 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4504        .22925E-05** at limit **
   2  norm          .10000E-03    .55365        .68148E-08** at limit **
   3  norm          2.3724        1.4288       -.18184E-07    .11814E-03
   4  Prefactor     .10000E-03    47.537        .10633E-04** at limit **
   5  norm          .10000E-03    1.0296       -.12677E-06** at limit **
   6  Prefactor     .10000E-03    57.486       -.51577E-04** at limit **
   7  norm          1.2619        2.9288       -.19470E-05   -.82064E-03
   8  Prefactor     9.6716        6.0867        .22926E-06   -.20103E-04
   9  Prefactor     .10000E-03    42.625        .28202E-04** at limit **
  10  Prefactor     22.764        28.822        .92032E-05    .47672E-04
  11  Prefactor     5.1140        7.8479       -.97489E-06   -.27100E-03
  12  Prefactor     .10000E-03    13.887       -.14919E-05** at limit **
  13  Prefactor     .10000E-03    24.758       -.21077E-04** at limit **
  14  Prefactor     3.1578        3.2253        .98919E-07    .13304E-03
  15  norm          8.9318        17.508       -.71762E-06    .84487E-05
  16  Prefactor     .10000E-03    3.1672       -.51751E-06** at limit **
  17  norm          .10000E-03    4.6628       -.18358E-05** at limit **
  18  Prefactor     .10000E-03    4.2863       -.10922E-05** at limit **
  19  Prefactor     .10000E-03    9.4822       -.47448E-05** at limit **
  20  norm          .10000E-03    3.3809        .16125E-05** at limit **
  21  Prefactor     .10000E-03    35.797        .30591E-04** at limit **
  22  Prefactor     .10000E-03    52.322       -.16157E-04** at limit **
  23  norm          18.857        8.5885        .53627E-07   -.36858E-04
  24  norm          .10000E-03    12.216        .91397E-05** at limit **
  25  Prefactor     .10000E-03    25.618       -.15712E-04** at limit **
  26  norm          4.7734        5.4941        .14105E-06    .38095E-03
  27  norm          6.7978        4.7583        .10568E-07    .22338E-04
  28  Prefactor     865.67        398.67        .26735E-04   -.10768E-04
  29  Prefactor     39.711        33.565        .16961E-05    .96063E-04
  30  Prefactor     .10000E-03    31.745        .17856E-04** at limit **
  31  Prefactor     7.0075        8.7945        .17551E-06    .25760E-03
  32  Normalizat    1.2306        .22683       -.34477E-05   -.54300E-04
  33  Prefactor     .49615        .26677        .24341E-05   -.13496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.37239
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26187
  Prefactor  = 9.67165
  Prefactor  = 0.0001
  Prefactor  = 22.7644
  Prefactor  = 5.11399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15778
  norm       = 8.93178
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.857
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77341
  norm       = 6.79779
  Prefactor  = 865.671
  Prefactor  = 39.711
  Prefactor  = 0.0001
  Prefactor  = 7.0075
  Normalizat = 1.23064
  Prefactor  = 0.496149
 **********
 **   18 **HESSE 
 **********

 FCN=   3377.173     FROM HESSE     STATUS=OK           689 CALLS     5223 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4593        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .56329        .42219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3724        1.4325        .52456E-04   -1.5400    
   4  Prefactor     .10000E-03    47.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0326        .57430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    57.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2619        2.8385        .12744E-03   -1.5483    
   8  Prefactor     9.6716        6.0764        .10873E-03   -1.5086    
   9  Prefactor     .10000E-03    42.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.764        28.391        .83971E-04   -1.4753    
  11  Prefactor     5.1140        7.8814        .17785E-03   -1.5256    
  12  Prefactor     .10000E-03    13.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1578        3.2294        .10243E-03   -1.5353    
  15  norm          8.9318        17.566        .13407E-03   -1.5110    
  16  Prefactor     .10000E-03    6.9286        .20087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.7084        .12237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2901        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4835        .17480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.7892        .20389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    52.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.857        8.5827        .92235E-04   -1.4839    
  24  norm          .10000E-03    12.622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.7734        5.4778        .13748E-03   -1.5271    
  27  norm          6.7978        4.7589        .10314E-03   -1.5186    
  28  Prefactor     865.67        398.39        .71127E-04   -.97351    
  29  Prefactor     39.711        33.598        .63608E-04   -1.4447    
  30  Prefactor     .10000E-03    31.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     7.0075        8.7942        .75773E-03   -1.5178    
  32  Normalizat    1.2306        .25358        .19925E-03   -.85661    
  33  Prefactor     .49615        .29628        .36343E-03   -1.1215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65996e-09
Minuit parameter uncertainties:
  1  4.99343e-07
  2  1.46088e-07
  3  1.43256
  4  6.36587e-06
  5  3.64658e-07
  6  1.46849e-05
  7  2.83878
  8  6.07682
  9  1.39979e-06
  10  28.4076
  11  7.88302
  12  3.94284e-06
  13  0.000151067
  14  3.22962
  15  17.5766
  16  0.000228629
  17  8.93405e-06
  18  1.30336e-07
  19  3.3264e-06
  20  0.000282725
  21  0.000123875
  22  3.35734e-05
  23  8.58327
  24  9.30823e-05
  25  2.09464e-05
  26  5.47836
  27  4.75921
  28  399.733
  29  33.6145
  30  5.74249e-06
  31  8.79587
  32  0.253837
  33  0.297211
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  1.303e-07  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:  4.961e-01  2.972e-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.231e+00  2.538e-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: 6.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279364/likelihoodResults_433468801_433728001_4FGL_J1203.1+6031_daily_bin749.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) = 3377.17414399
delta logL = -0.00107412788611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3377.17307036
delta logL = -5.00065198139e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1038       1.0000          .0000       10.000    
     3 'Normalizat'    1.2308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49597       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=   3377.173     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10474E-03    6.0746        .11901E-01** at limit **
   2  Index         1.9109        8.4988        .50000        .21890E-04
   3  Normalizat    1.2306        .57219E-02    .19925E-03   -.14373E-03
   4  Prefactor     .49615        .69068E-02    .36343E-03   -.21761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104741
  Index      = 1.91093
  Normalizat = 1.23064
  Prefactor  = 0.496147
 **********
 **   18 **HESSE 
 **********

 FCN=   3377.173     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10474E-03    196.33        .12562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9109        5.8588        .50000       -.66596    
   3  Normalizat    1.2306        .34080E-01    .39850E-04   -.85661    
   4  Prefactor     .49615        .41130E-01    .14537E-04   -1.1215    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09876e-07
Minuit parameter uncertainties:
  1  0.0612203
  2  1091.59
  3  0.0340809
  4  0.0411321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279364': 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) = 3377.17306889
delta logL = 9.71228018898e-07

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.047e-04  6.122e-02  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.911e+00  1.092e+03  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:  4.961e-01  4.113e-02  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.231e+00  3.408e-02  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/279364/cmap_HighResolution_433468801_433728001_4FGL_J1203.1+6031_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-09-04 21:50:30.494676', job_id='279364', GAL2='0.50', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630817430.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='9.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='749' 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@bullet0276>
Subject: Job 279364: <4FGL_J1203.1+6031_daily_bin749> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin749> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:35:32 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:35:33 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:33 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_bin749 180.788 60.518 433468801 433728001 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 :                                   769.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

