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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin21
RA = 180.788, Dec = 60.518
tmin = 244771201, tmax = 245030401
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='274936', job_status='RUN', time_executed='2021-09-04 21:21:23.101942', time_epoch_executed='1630815683.1' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274936/ft1_4FGL_J1203.1+6031_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274936/ft2_4FGL_J1203.1+6031_daily_bin21.fits


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

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

Done.
real 1.47
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274936/ft1_filtered_4FGL_J1203.1+6031_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/274936/ft2_4FGL_J1203.1+6031_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/274936/ltcube_244771201_245030401_4FGL_J1203.1+6031_daily_bin21.fits outfile=/scratch/kocevski/274936/expmap_244771201_245030401_4FGL_J1203.1+6031_daily_bin21.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/274936/ltcube_244771201_245030401_4FGL_J1203.1+6031_daily_bin21.fits
.....................!
real 190.82
user 185.80
sys 4.68

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/274936/ft1_filtered_4FGL_J1203.1+6031_daily_bin21.fits scfile=/scratch/kocevski/274936/ft2_4FGL_J1203.1+6031_daily_bin21.fits outfile=/scratch/kocevski/274936/cmap_244771201_245030401_4FGL_J1203.1+6031_daily_bin21.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274936/ft1_filtered_4FGL_J1203.1+6031_daily_bin21.fits scfile=/scratch/kocevski/274936/ft2_4FGL_J1203.1+6031_daily_bin21.fits outfile=/scratch/kocevski/274936/cmap_HighResolution_244771201_245030401_4FGL_J1203.1+6031_daily_bin21.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    2.0653       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1318       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13504E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1935       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4861       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.778       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4237       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1934       1.0000         .10000E-03   10000.    
    22 'Prefactor '    80.261       1.0000         .10000E-03   10000.    
    23 'norm      '    .16712E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.064       1.0000         .10000E-03   10000.    
    26 'norm      '    5.4092       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3383       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.817       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1467       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .78475       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=   4491.864     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     4606 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.735        .12326E-06** at limit **
   2  norm          2.0645        2.1285        .54367E-08   -.59806E-04
   3  norm          2.1317        1.8698       -.59301E-08   -.27236E-04
   4  Prefactor     .10000E-03    62.587       -.41520E-07** at limit **
   5  norm          .10000E-03    3.7959       -.82366E-06** at limit **
   6  Prefactor     .10000E-03    148.21        .33210E-06** at limit **
   7  norm          4.8426        3.6861       -.44845E-07   -.92840E-05
   8  Prefactor     6.6324        9.1457        .99603E-06    .46466E-03
   9  Prefactor     .10000E-03    80.596        .61969E-06** at limit **
  10  Prefactor     .10000E-03    18.930        .69633E-07** at limit **
  11  Prefactor     8.1914        10.071        .27762E-05    .35647E-03
  12  Prefactor     .10000E-03    24.860       -.11372E-07** at limit **
  13  Prefactor     .10000E-03    8.3812        .52040E-07** at limit **
  14  Prefactor     6.4862        5.4789        .94576E-07   -.89094E-04
  15  norm          .10000E-03    6.2612        .54891E-07** at limit **
  16  Prefactor     .10000E-03    1.5277        .21944E-06** at limit **
  17  norm          .10000E-03    2.0724       -.36826E-06** at limit **
  18  Prefactor     .10000E-03    4.5060       -.82887E-06** at limit **
  19  Prefactor     44.791        47.970        .25798E-06   -.12552E-04
  20  norm          2.4234        2.9301        .21708E-08   -.41652E-05
  21  Prefactor     8.1423        45.801       -.59067E-06   -.29331E-04
  22  Prefactor     79.932        122.67       -.11987E-05   -.57068E-04
  23  norm          .10005E-03    7.2720        .36164E-05** at limit **
  24  norm          .10000E-03    2.2408        .83522E-07** at limit **
  25  Prefactor     12.060        11.875        .20140E-05    .24810E-03
  26  norm          5.4091        3.9698       -.43984E-06   -.33603E-04
  27  norm          1.3379        2.8295        .67287E-06    .15769E-03
  28  Prefactor     .10000E-03    18.261       -.26075E-06** at limit **
  29  Prefactor     .10000E-03    9.5347        .46345E-07** at limit **
  30  Prefactor     .10000E-03    23.615        .10026E-06** at limit **
  31  Prefactor     10.816        7.4196        .65148E-07   -.27177E-04
  32  Normalizat    1.1469        .22023        .14649E-05   -.25519E-03
  33  Prefactor     .78458        .24700       -.44198E-05   -.19023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.06451
  norm       = 2.13166
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.84258
  Prefactor  = 6.63236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.19137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48619
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.7906
  norm       = 2.42338
  Prefactor  = 8.14226
  Prefactor  = 79.9319
  norm       = 0.00010005
  norm       = 0.0001
  Prefactor  = 12.0604
  norm       = 5.40909
  norm       = 1.33787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8163
  Normalizat = 1.1469
  Prefactor  = 0.784578
 **********
 **   18 **HESSE 
 **********

 FCN=   4491.864     FROM HESSE     STATUS=OK           695 CALLS     5301 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0645        2.1183        .96226E-04   -1.5421    
   3  norm          2.1317        1.8758        .83029E-04   -1.5416    
   4  Prefactor     .10000E-03    62.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.3793        .21609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    148.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8426        3.6796        .10671E-03   -1.5268    
   8  Prefactor     6.6324        7.9924        .15626E-03   -1.5193    
   9  Prefactor     .10000E-03    80.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1914        10.343        .70031E-03   -1.5135    
  12  Prefactor     .10000E-03    24.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4862        5.4683        .13763E-03   -1.5199    
  15  norm          .10000E-03    6.2626        .16380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5424        .80914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0765        .94238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5118        .13892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.791        47.910        .59914E-04   -1.4368    
  20  norm          2.4234        2.9247        .11864E-03   -1.5397    
  21  Prefactor     8.1423        46.046        .14006E-03   -1.5137    
  22  Prefactor     79.932        122.94        .22415E-03   -1.3917    
  23  norm          .10005E-03    14.279        .29090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.2426        .97984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.060        11.985        .57667E-03   -1.5013    
  26  norm          5.4091        3.9666        .98700E-04   -1.5243    
  27  norm          1.3379        2.8018        .15621E-03   -1.5477    
  28  Prefactor     .10000E-03    18.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.5912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    23.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     10.816        7.4361        .12181E-03   -1.5050    
  32  Normalizat    1.1469        .25589        .22558E-03   -.88260    
  33  Prefactor     .78458        .28230        .32025E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30622e-09
Minuit parameter uncertainties:
  1  1.80011e-06
  2  2.11835
  3  1.87589
  4  7.0519e-05
  5  5.63225e-05
  6  0.000148962
  7  3.67982
  8  7.99364
  9  0.000114039
  10  3.64164e-05
  11  10.3448
  12  4.22537e-05
  13  2.55336e-06
  14  5.46867
  15  3.3332e-06
  16  5.17628e-06
  17  9.55902e-06
  18  2.68895e-05
  19  47.9511
  20  2.92485
  21  38.7711
  22  123.338
  23  0.00169569
  24  2.46725e-06
  25  11.9876
  26  3.96678
  27  2.80204
  28  2.0903e-05
  29  1.12277e-05
  30  1.7089e-05
  31  7.43671
  32  0.256173
  33  0.282822
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  2.689e-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:  7.846e-01  2.828e-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.147e+00  2.562e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274936/likelihoodResults_244771201_245030401_4FGL_J1203.1+6031_daily_bin21.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) = 4491.86543323
delta logL = -0.00104175224988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4491.86439137
delta logL = 1.13903297461e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1021       1.0000          .0000       10.000    
     3 'Normalizat'    1.1469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78455       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=   4491.864     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10255E-03    4.3823        .14101E-01** at limit **
   2  Index         2.0043        5.8241        .50000        .27104E-04
   3  Normalizat    1.1469        .46257E-02    .22557E-03   -.44099E-04
   4  Prefactor     .78458        .55566E-02    .32025E-03    .10980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102546
  Index      = 2.00425
  Normalizat = 1.14689
  Prefactor  = 0.784583
 **********
 **   18 **HESSE 
 **********

 FCN=   4491.864     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10255E-03    89.332        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0043        7.3145        .50000       -.64244    
   3  Normalizat    1.1469        .21265E-01    .90229E-05   -.88260    
   4  Prefactor     .78458        .25544E-01    .12810E-04   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44803e-08
Minuit parameter uncertainties:
  1  0.0302054
  2  464.086
  3  0.0212649
  4  0.025544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274936': 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) = 4491.86439084
delta logL = 6.38865458313e-07

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.025e-04  3.021e-02  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.004e+00  4.641e+02  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:  7.846e-01  2.554e-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.147e+00  2.126e-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/274936/cmap_HighResolution_244771201_245030401_4FGL_J1203.1+6031_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-04 21:35:55.505128', job_id='274936', GAL2='0.78', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630816555.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='21' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:35:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 274936: <4FGL_J1203.1+6031_daily_bin21> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin21 180.788 60.518 244771201 245030401 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 :                                   871.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

