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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin791
RA = 180.788, Dec = 60.518
tmin = 444355201, tmax = 444614401
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='279430', job_status='RUN', time_executed='2021-09-04 21:37:54.586458', time_epoch_executed='1630816674.59' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='791'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279430

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279430/ft1_4FGL_J1203.1+6031_daily_bin791.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279430/ft2_4FGL_J1203.1+6031_daily_bin791.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279430/ft1_4FGL_J1203.1+6031_daily_bin791.fits outfile=/scratch/kocevski/279430/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin791.fits ra=180.788 dec=60.518 rad=12.0 tmin=444355201.0 tmax=444614401.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.56
user 6.28
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279430/ft1_filtered_4FGL_J1203.1+6031_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/279430/ft2_4FGL_J1203.1+6031_daily_bin791.fits sctable="SC_DATA" expcube=/scratch/kocevski/279430/ltcube_444355201_444614401_4FGL_J1203.1+6031_daily_bin791.fits outfile=/scratch/kocevski/279430/expmap_444355201_444614401_4FGL_J1203.1+6031_daily_bin791.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/279430/ltcube_444355201_444614401_4FGL_J1203.1+6031_daily_bin791.fits
.....................!
real 191.09
user 186.88
sys 3.90

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/279430/ft1_filtered_4FGL_J1203.1+6031_daily_bin791.fits scfile=/scratch/kocevski/279430/ft2_4FGL_J1203.1+6031_daily_bin791.fits outfile=/scratch/kocevski/279430/cmap_444355201_444614401_4FGL_J1203.1+6031_daily_bin791.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/279430/ft1_filtered_4FGL_J1203.1+6031_daily_bin791.fits scfile=/scratch/kocevski/279430/ft2_4FGL_J1203.1+6031_daily_bin791.fits outfile=/scratch/kocevski/279430/cmap_HighResolution_444355201_444614401_4FGL_J1203.1+6031_daily_bin791.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8896       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    84.135       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4883       1.0000         .10000E-03   10000.    
     6 'Prefactor '    123.37       1.0000         .10000E-03   10000.    
     7 'norm      '    .27686E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2687       1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60182       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10700E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.014       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3521       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .97974E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.5234       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.5980       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3695       1.0000         .10000E-03   10000.    
    28 'Prefactor '    58.158       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.4284       1.0000         .10000E-03   10000.    
    30 'Prefactor '    30.174       1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.3250       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .56680       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1748       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=   4218.851     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4679 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.838        .23067E-06** at limit **
   2  norm          7.8895        3.3865       -.49751E-07   -.33930E-03
   3  norm          .10000E-03    .90812        .34062E-06** at limit **
   4  Prefactor     84.151        171.26        .41161E-05   -.17074E-05
   5  norm          1.4887        1.7715        .12152E-06   -.60705E-04
   6  Prefactor     123.65        141.47       -.46243E-05   -.10861E-03
   7  norm          .10016E-03    1.9860        .23641E-05** at limit **
   8  Prefactor     .10000E-03    3.3703        .11401E-06** at limit **
   9  Prefactor     .10000E-03    35.565        .25291E-05** at limit **
  10  Prefactor     .10000E-03    22.895       -.62106E-06** at limit **
  11  Prefactor     4.2703        7.4708       -.42666E-06   -.18549E-03
  12  Prefactor     72.348        40.123       -.24053E-05   -.18488E-03
  13  Prefactor     .10000E-03    5.7232        .22632E-06** at limit **
  14  Prefactor     .60300        3.9121        .22830E-05    .44270E-04
  15  norm          .10000E-03    5.0242       -.24928E-06** at limit **
  16  Prefactor     .10000E-03    2.6966        .70810E-07** at limit **
  17  norm          .10000E-03    11.766        .11048E-06** at limit **
  18  Prefactor     37.963        14.584       -.14735E-06    .25586E-03
  19  Prefactor     .10000E-03    22.913       -.12594E-05** at limit **
  20  norm          3.3522        2.3547        .27694E-06   -.27431E-06
  21  Prefactor     .10000E-03    16.386        .13929E-05** at limit **
  22  Prefactor     .10000E-03    533.95       -.51371E-04** at limit **
  23  norm          6.5239        5.3001        .36785E-06   -.56067E-04
  24  norm          .10000E-03    3.5306       -.17747E-06** at limit **
  25  Prefactor     .10000E-03    3.8656        .21540E-06** at limit **
  26  norm          2.5979        2.1422        .84476E-07    .54361E-04
  27  norm          1.3700        2.0873        .37981E-06    .73553E-04
  28  Prefactor     58.158        59.432        .83299E-06    .25821E-05
  29  Prefactor     5.4286        8.9990        .73463E-06   -.11816E-05
  30  Prefactor     30.173        48.496        .28629E-06   -.86196E-05
  31  Prefactor     8.3262        6.7828        .17551E-05   -.60166E-04
  32  Normalizat    .56673        .18155       -.32009E-05   -.34811E-03
  33  Prefactor     1.1747        .22502       -.30640E-05   -.30660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.88949
  norm       = 0.0001
  Prefactor  = 84.151
  norm       = 1.48867
  Prefactor  = 123.654
  norm       = 0.000100157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.27033
  Prefactor  = 72.3478
  Prefactor  = 0.0001
  Prefactor  = 0.602997
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 37.963
  Prefactor  = 0.0001
  norm       = 3.35225
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 6.52391
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59792
  norm       = 1.36998
  Prefactor  = 58.1576
  Prefactor  = 5.42864
  Prefactor  = 30.1726
  Prefactor  = 8.32616
  Normalizat = 0.566733
  Prefactor  = 1.17468
 **********
 **   18 **HESSE 
 **********

 FCN=   4218.851     FROM HESSE     STATUS=OK           691 CALLS     5370 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8895        3.3784        .75371E-04   -1.5146    
   3  norm          .10000E-03    1.3933        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     84.151        171.23        .43794E-04   -1.3871    
   5  norm          1.4887        1.7562        .91132E-04   -1.5464    
   6  Prefactor     123.65        142.05        .18119E-03   -1.3479    
   7  norm          .10016E-03    10.832        .16048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3943        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2703        7.4428        .19501E-03   -1.5295    
  12  Prefactor     72.348        40.132        .47190E-04   -1.4005    
  13  Prefactor     .10000E-03    5.7242        .15177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .60300        3.9146        .24840E-03   -1.5553    
  15  norm          .10000E-03    5.0246        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7841        .20831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.086        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.963        14.450        .65006E-04   -1.4475    
  19  Prefactor     .10000E-03    22.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3522        2.3556        .79796E-04   -1.5342    
  21  Prefactor     .10000E-03    16.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    531.84        .41552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5239        5.2969        .13015E-03   -1.5197    
  24  norm          .10000E-03    3.5427        .11917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.8952        .12469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.5979        2.1436        .82854E-04   -1.5386    
  27  norm          1.3700        2.0555        .11199E-03   -1.5474    
  28  Prefactor     58.158        59.475        .52606E-04   -1.4181    
  29  Prefactor     5.4286        8.9862        .17247E-03   -1.5242    
  30  Prefactor     30.173        48.510        .72939E-04   -1.4609    
  31  Prefactor     8.3262        6.7866        .69472E-03   -1.5131    
  32  Normalizat    .56673        .21255        .26633E-03   -1.0942    
  33  Prefactor     1.1747        .26421        .24495E-03   -.87114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48059e-08
Minuit parameter uncertainties:
  1  0.000119892
  2  3.37844
  3  5.81865e-06
  4  172.249
  5  1.75626
  6  142.446
  7  0.00260954
  8  5.55964e-06
  9  0.000146744
  10  2.92381e-05
  11  7.44437
  12  40.1473
  13  7.04872e-06
  14  3.07282
  15  4.13731e-06
  16  2.34284e-05
  17  0.000268541
  18  14.4513
  19  0.000102371
  20  2.35565
  21  0.00013357
  22  0.00238369
  23  5.29725
  24  7.8962e-06
  25  2.30915e-05
  26  2.14361
  27  2.05559
  28  59.536
  29  8.98844
  30  48.5736
  31  6.78722
  32  0.212856
  33  0.264512
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.175e+00  2.645e-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.667e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.29
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 4.51e-08
Energy Flux (Fixed Index): 6.21e-05 +/- 2.36e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4217.37366544
delta logL = 1.47688582981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4217.37160718
delta logL = 1.47894409189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.078       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8185       1.0000          .0000       10.000    
     3 'Normalizat'    .48832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2467       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=   4217.372     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      275 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.064        62.260        .27690E-02    .74715E-04
   2  Index         2.8190        1.9763        .49464E-01    .13663E-03
   3  Normalizat    .48775        .10688        .64395E-01   -.11073E-03
   4  Prefactor     1.2475        .12459        .53965E-01   -.13441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.064
  Index      = 2.81899
  Normalizat = 0.487748
  Prefactor  = 1.24749
 **********
 **   18 **HESSE 
 **********

 FCN=   4217.372     FROM HESSE     STATUS=OK            31 CALLS      306 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.064        15.421        .74583E-04   -1.4985    
   2  Index         2.8190        .57103        .21335E-02   -.45137    
   3  Normalizat    .48775        .21015        .28499E-03   -1.1299    
   4  Prefactor     1.2475        .26807        .23859E-03   -.84882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29896e-11
Minuit parameter uncertainties:
  1  15.4254
  2  0.57257
  3  0.210489
  4  0.268369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279430': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4217.37160253
delta logL = 1.47894874612

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.306e+01  1.543e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.819e+00  5.726e-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.247e+00  2.684e-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:  4.877e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.41
Ra Dec: 180.788 60.518
Photon Index (Free Index): 2.82 +/- 0.57
Photon Flux (Free Index): 1.73e-07 +/- 6.25e-08
Energy Flux (Free Index): 3.82e-05 +/- 1.57e-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/279430/cmap_HighResolution_444355201_444614401_4FGL_J1203.1+6031_daily_bin791.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='3.82e-05', photon_flux_error='4.51e-08', dlogl='1.48e+00', energy_flux='6.21e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-04 21:50:46.442416', photon_index_error2='0.57', photon_index2='2.82', ts='15.29', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='0.57', time_epoch_completed='1630817446.44', return_code='0', job_id='279430', GAL2='1.25', EG2='0.49', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='6.25e-08', ts2='18.41', photon_index='2.12' WHERE bin_id='791' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 279430: <4FGL_J1203.1+6031_daily_bin791> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin791 180.788 60.518 444355201 444614401 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.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             283.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

