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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin509
RA = 180.788, Dec = 60.518
tmin = 371260801, tmax = 371520001
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='277747', job_status='RUN', time_executed='2021-09-04 21:30:51.239582', time_epoch_executed='1630816251.24' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277747

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277747/ft1_4FGL_J1203.1+6031_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277747/ft2_4FGL_J1203.1+6031_daily_bin509.fits


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

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

Done.
real 5.33
user 5.07
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277747/ft1_filtered_4FGL_J1203.1+6031_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/277747/ft2_4FGL_J1203.1+6031_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/277747/ltcube_371260801_371520001_4FGL_J1203.1+6031_daily_bin509.fits outfile=/scratch/kocevski/277747/expmap_371260801_371520001_4FGL_J1203.1+6031_daily_bin509.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/277747/ltcube_371260801_371520001_4FGL_J1203.1+6031_daily_bin509.fits
.....................!
real 189.66
user 185.26
sys 4.01

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/277747/ft1_filtered_4FGL_J1203.1+6031_daily_bin509.fits scfile=/scratch/kocevski/277747/ft2_4FGL_J1203.1+6031_daily_bin509.fits outfile=/scratch/kocevski/277747/cmap_371260801_371520001_4FGL_J1203.1+6031_daily_bin509.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277747/ft1_filtered_4FGL_J1203.1+6031_daily_bin509.fits scfile=/scratch/kocevski/277747/ft2_4FGL_J1203.1+6031_daily_bin509.fits outfile=/scratch/kocevski/277747/cmap_HighResolution_371260801_371520001_4FGL_J1203.1+6031_daily_bin509.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.788 yref=60.518 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.086       1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.035       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4767       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8141       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0928       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6869       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0537       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2863       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.5962       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9552       1.0000         .10000E-03   10000.    
    24 'norm      '    1.2693       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.8651       1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.638       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.5700       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.2681       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .94279       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0845       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=   6329.880     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4574 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.082        18.148        .29550E-06   -.18175E-04
   2  norm          .10000E-03    1.5235       -.16226E-06** at limit **
   3  norm          .10000E-03    .53979        .10950E-06** at limit **
   4  Prefactor     .10000E-03    44.859        .54616E-06** at limit **
   5  norm          1.4305        1.6883        .64122E-07   -.43889E-04
   6  Prefactor     .10000E-03    37.164       -.97870E-06** at limit **
   7  norm          .10000E-03    .83827        .30321E-06** at limit **
   8  Prefactor     .10000E-03    3.1729       -.20364E-08** at limit **
   9  Prefactor     15.068        37.896       -.33373E-05    .61867E-05
  10  Prefactor     6.4756        21.984        .64086E-06   -.14551E-03
  11  Prefactor     1.8159        5.1307       -.14528E-05   -.77990E-03
  12  Prefactor     3.0703        72.525        .98469E-05    .52791E-04
  13  Prefactor     .10000E-03    4.4409        .26898E-08** at limit **
  14  Prefactor     1.6868        3.4067        .31696E-06   -.66353E-05
  15  norm          .10000E-03    5.9448       -.20295E-06** at limit **
  16  Prefactor     .10000E-03    1.9615        .47846E-07** at limit **
  17  norm          5.0542        4.8483       -.28116E-06   -.59273E-03
  18  Prefactor     5.2863        5.2904       -.17096E-06   -.10501E-03
  19  Prefactor     .10000E-03    6.4723        .76944E-07** at limit **
  20  norm          7.5960        2.7472        .93335E-07   -.12628E-03
  21  Prefactor     .10000E-03    16.133       -.13353E-06** at limit **
  22  Prefactor     .10000E-03    25.199        .23085E-06** at limit **
  23  norm          2.9550        4.1851        .22866E-06   -.94675E-05
  24  norm          1.2692        4.8008        .65559E-06   -.82468E-05
  25  Prefactor     .10000E-03    2.5358        .10504E-07** at limit **
  26  norm          .10000E-03    .89655        .12827E-07** at limit **
  27  norm          2.8651        2.7497        .41463E-07   -.37879E-04
  28  Prefactor     36.636        27.214        .14318E-06   -.90166E-05
  29  Prefactor     1.5698        5.8931        .10930E-04   -.22220E-03
  30  Prefactor     .10000E-03    24.327        .49028E-06** at limit **
  31  Prefactor     2.2674        4.9662        .35973E-06   -.35382E-04
  32  Normalizat    .94291        .16179       -.85703E-06   -.32094E-03
  33  Prefactor     1.0844        .19460       -.10770E-05   -.25533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0816
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0684
  Prefactor  = 6.47557
  Prefactor  = 1.81592
  Prefactor  = 3.07029
  Prefactor  = 0.0001
  Prefactor  = 1.68676
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.0542
  Prefactor  = 5.28627
  Prefactor  = 0.0001
  norm       = 7.596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.955
  norm       = 1.26921
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.86513
  Prefactor  = 36.6361
  Prefactor  = 1.56976
  Prefactor  = 0.0001
  Prefactor  = 2.26737
  Normalizat = 0.942912
  Prefactor  = 1.08438
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.880     FROM HESSE     STATUS=OK           695 CALLS     5269 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.082        18.002        .87225E-04   -1.4789    
   2  norm          .10000E-03    1.5382        .18964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .88699        .11394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4305        1.6584        .10840E-03   -1.5469    
   6  Prefactor     .10000E-03    37.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .85181        .71010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2223        .27528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.068        37.728        .10330E-03   -1.4931    
  10  Prefactor     6.4756        21.883        .78850E-03   -1.5199    
  11  Prefactor     1.8159        5.1001        .28018E-03   -1.5438    
  12  Prefactor     3.0703        72.512        .23061E-03   -1.5358    
  13  Prefactor     .10000E-03    4.4415        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6868        3.3814        .20098E-03   -1.5448    
  15  norm          .10000E-03    5.9559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0293        .21756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0542        4.8368        .15710E-03   -1.5258    
  18  Prefactor     5.2863        5.2877        .86258E-03   -1.5248    
  19  Prefactor     .10000E-03    6.4794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.5960        2.7507        .75604E-04   -1.5157    
  21  Prefactor     .10000E-03    16.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9550        4.1727        .18655E-03   -1.5364    
  24  norm          1.2692        4.7733        .32838E-03   -1.5483    
  25  Prefactor     .10000E-03    2.5558        .12370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .91507        .73548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.8651        2.7405        .12393E-03   -1.5369    
  28  Prefactor     36.636        27.221        .66211E-04   -1.4497    
  29  Prefactor     1.5698        5.8976        .16965E-02   -1.5457    
  30  Prefactor     .10000E-03    24.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.2674        4.9506        .25007E-03   -1.5407    
  32  Normalizat    .94291        .19394        .22912E-03   -.94968    
  33  Prefactor     1.0844        .23276        .27186E-03   -.89967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59406e-09
Minuit parameter uncertainties:
  1  18.0064
  2  1.32976e-05
  3  5.78065e-06
  4  1.76694e-05
  5  1.65844
  6  0.000183663
  7  1.91806e-05
  8  4.35742e-07
  9  37.7882
  10  21.9098
  11  5.10137
  12  29.8821
  13  5.96656e-07
  14  3.3818
  15  2.11302e-05
  16  5.35292e-06
  17  4.83719
  18  5.28818
  19  1.93755e-06
  20  2.7507
  21  2.04411e-05
  22  4.57827e-06
  23  4.17311
  24  4.77469
  25  8.30458e-07
  26  1.16243e-06
  27  2.74059
  28  27.2306
  29  5.89973
  30  7.15587e-06
  31  4.95154
  32  0.194081
  33  0.232974
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  5.286e+00  5.288e+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

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.084e+00  2.330e-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:  9.429e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.65e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 8.65e-06 +/- 8.65e-06

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) = 6329.57319077
delta logL = 0.306560869644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6329.54617826
delta logL = 0.333573383085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4687       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6266       1.0000          .0000       10.000    
     3 'Normalizat'    .94959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0793       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=   6329.546     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4706        400.79        .36688E-02   -.49056E-04
   2  Index         1.6264        5.7082        .20186        .74537E-05
   3  Normalizat    .94962        .16860        .45532E-01    .31303E-04
   4  Prefactor     1.0792        .17736        .61600E-01   -.74778E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.47059
  Index      = 1.62642
  Normalizat = 0.949619
  Prefactor  = 1.0792
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.546     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4706        7.2878        .14675E-03   -1.5161    
   2  Index         1.6264        .56739        .10205E-01   -.74058    
   3  Normalizat    .94962        .18006        .22841E-03   -.94738    
   4  Prefactor     1.0792        .22843        .27244E-03   -.90134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12146e-11
Minuit parameter uncertainties:
  1  7.28868
  2  0.569653
  3  0.180178
  4  0.228635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277747': 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) = 6329.54617816
delta logL = 0.333573476436

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  7.471e+00  7.289e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.626e+00  5.697e-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.079e+00  2.286e-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:  9.496e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.02
Ra Dec: 180.788 60.518
Photon Index (Free Index): 1.63 +/- 0.57
Photon Flux (Free Index): 1.05e-08 +/- 1.25e-08
Energy Flux (Free Index): 2.18e-05 +/- 3.36e-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/277747/cmap_HighResolution_371260801_371520001_4FGL_J1203.1+6031_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-08', energy_flux2='2.18e-05', photon_flux_error='1.65e-08', dlogl='3.34e-01', energy_flux='8.65e-06', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-04 21:47:03.062961', photon_index_error2='0.57', photon_index2='1.63', ts='4.35', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.36e-05', EG='0.94', time_epoch_completed='1630817223.06', return_code='0', job_id='277747', GAL2='1.08', EG2='0.95', return_code2='0', energy_flux_error='8.65e-06', photon_flux_error2='1.25e-08', ts2='5.02', photon_index='2.12' WHERE bin_id='509' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:47:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 277747: <4FGL_J1203.1+6031_daily_bin509> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin509> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 21:30:33 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:30:34 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:30:34 2021
Terminated at Sat Sep  4 21:47:03 2021
Results reported at Sat Sep  4 21:47:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin509 180.788 60.518 371260801 371520001 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 :                                   966.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             353.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

