/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 83 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 = 7571
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1203.1+6031_daily_bin1348
RA = 180.788, Dec = 60.518
tmin = 588729601, tmax = 588988801
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='283745', job_status='RUN', time_executed='2021-09-04 21:52:08.728861', time_epoch_executed='1630817528.73' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283745

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283745/ft1_4FGL_J1203.1+6031_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283745/ft2_4FGL_J1203.1+6031_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283745/ft1_4FGL_J1203.1+6031_daily_bin1348.fits outfile=/scratch/kocevski/283745/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1348.fits ra=180.788 dec=60.518 rad=12.0 tmin=588729601.0 tmax=588988801.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 3.12
user 2.92
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283745/ft1_filtered_4FGL_J1203.1+6031_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/283745/ft2_4FGL_J1203.1+6031_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/283745/ltcube_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.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/283745/ft2_4FGL_J1203.1+6031_daily_bin1348.fits
.....................!
real 12.28
user 11.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283745/ft1_filtered_4FGL_J1203.1+6031_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/283745/ft2_4FGL_J1203.1+6031_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/283745/ltcube_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.fits outfile=/scratch/kocevski/283745/expmap_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.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/283745/ltcube_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.fits
.....................!
real 189.91
user 185.18
sys 4.39

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/283745/ft1_filtered_4FGL_J1203.1+6031_daily_bin1348.fits scfile=/scratch/kocevski/283745/ft2_4FGL_J1203.1+6031_daily_bin1348.fits outfile=/scratch/kocevski/283745/cmap_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283745/ft1_filtered_4FGL_J1203.1+6031_daily_bin1348.fits scfile=/scratch/kocevski/283745/ft2_4FGL_J1203.1+6031_daily_bin1348.fits outfile=/scratch/kocevski/283745/cmap_HighResolution_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.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.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/283745/ft1_filtered_4FGL_J1203.1+6031_daily_bin1348.fits', '/scratch/kocevski/283745/ft2_4FGL_J1203.1+6031_daily_bin1348.fits', expMap='/scratch/kocevski/283745/expmap_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.fits', expCube='/scratch/kocevski/283745/ltcube_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/283745/Model_4FGL_J1203.1+6031_daily_bin1348.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/283745/ft1_filtered_4FGL_J1203.1+6031_daily_bin1348.fits
Spacecraft file(s): /scratch/kocevski/283745/ft2_4FGL_J1203.1+6031_daily_bin1348.fits
Exposure map: /scratch/kocevski/283745/expmap_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.fits
Exposure cube: /scratch/kocevski/283745/ltcube_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/283745/Model_4FGL_J1203.1+6031_daily_bin1348.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3011.43994304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.3384       1.0000         .10000E-03   10000.    
     3 'norm      '    7.1011       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8700       1.0000         .10000E-03   10000.    
    15 'norm      '    19.972       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2868.4       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.101       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3523.8       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3170       1.0000         .10000E-03   10000.    
    24 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .41077E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    246.39       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.8110       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.5161       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3011.303     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     4008 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.634        .39035E-04** at limit **
   2  norm          9.3389        3.9605       -.93582E-06   -.32030E-04
   3  norm          7.1011        3.4074        .25103E-05    .88701E-04
   4  Prefactor     .10006E-03    93.719        .45734E-05** at limit **
   5  norm          .10000E-03    1.9945       -.40185E-05** at limit **
   6  Prefactor     .10004E-03    74.499       -.65492E-04** at limit **
   7  norm          .10000E-03    1.2187        .29785E-05** at limit **
   8  Prefactor     .10000E-03    8.9783       -.16861E-04** at limit **
   9  Prefactor     34.741        63.512        .24409E-04   -.27715E-02
  10  Prefactor     .10000E-03    20.920        .38250E-05** at limit **
  11  Prefactor     .10000E-03    4.1968        .16391E-06** at limit **
  12  Prefactor     .10000E-03    10.204       -.19119E-04** at limit **
  13  Prefactor     .10000E-03    7.6738       -.60566E-05** at limit **
  14  Prefactor     6.8687        4.1880        .94695E-06    .39746E-05
  15  norm          19.968        1.5582        .60863E-06   -.10319E-02
  16  Prefactor     .28047E-03    599.73       -.10521E-03** at limit **
  17  norm          .10000E-03    2.9270       -.41805E-05** at limit **
  18  Prefactor     .10000E-03    7.5836        .12132E-04** at limit **
  19  Prefactor     .10001E-03    5.8371        .10110E-04** at limit **
  20  norm          2868.4        3.9291       -.21409E-06    .82683E-02
  21  Prefactor     10.105        1.2638        .15317E-06    .28657E-03
  22  Prefactor     3523.8        1.3207       -.45914E-07    .19255E-02
  23  norm          1.3170        3.9984        .60657E-05    .14401E-04
  24  norm          .10000E-03    13.540       -.45694E-06** at limit **
  25  Prefactor     .10001E-03    6.0175        .10028E-04** at limit **
  26  norm          .10000E-03    3.6249       -.41490E-05** at limit **
  27  norm          .10000E-03    31.615       -.56760E-05** at limit **
  28  Prefactor     246.36        7.2621       -.11486E-05    .41413E-02
  29  Prefactor     .10000E-03    4.6850       -.54788E-06** at limit **
  30  Prefactor     9.8439        6.9329        .19765E-05    .26200E-02
  31  Prefactor     .10000E-03    .95191        .79049E-07** at limit **
  32  Normalizat    .10000E-01    .76851E-01   -.16253E-04** at limit **
  33  Prefactor     1.5161        .15744       -.15697E-04   -.48570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 9.33892
  norm       = 7.10108
  Prefactor  = 0.000100057
  norm       = 0.0001
  Prefactor  = 0.00010004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.7412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.86868
  norm       = 19.9679
  Prefactor  = 0.000280469
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 2868.35
  Prefactor  = 10.1047
  Prefactor  = 3523.79
  norm       = 1.31701
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 246.359
  Prefactor  = 0.0001
  Prefactor  = 9.84385
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.51609
 **********
 **   18 **HESSE 
 **********

 FCN=   3011.303     FROM HESSE     STATUS=OK           759 CALLS     4767 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3389        3.9827        .32786E-02   -1.5097    
   3  norm          7.1011        3.4072        .37634E-02   -1.5175    
   4  Prefactor     .10006E-03    94.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    74.695        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2180        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6855        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.741        91.323        .17066E-02   -1.4528    
  10  Prefactor     .10000E-03    20.848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8687        4.1941        .38268E-02   -1.5184    
  15  norm          19.968        28.243        .22406E-02   -1.4814    
  16  Prefactor     .28047E-03    1181.8        .90712E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9265        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    11.571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2868.4        631.04        .22110E-03   -.44043    
  21  Prefactor     10.105        38.258        .31519E-02   -1.5072    
  22  Prefactor     3523.8        2412.3        .20933E-03   -.29971    
  23  norm          1.3170        4.0349        .95927E-02   -1.5478    
  24  norm          .10000E-03    13.547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    11.631        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.6184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.6945        .61462E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     246.36        188.40        .64507E-03   -1.2556    
  29  Prefactor     .10000E-03    4.6846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     9.8439        45.102        .31983E-02   -1.5080    
  31  Prefactor     .10000E-03    .94866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .67473E-01    .21165       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.5161        .18880        .49919E-01   -.77090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77747e-06
Minuit parameter uncertainties:
  1  0.000527078
  2  3.98278
  3  3.40725
  4  0.00461857
  5  3.48442e-06
  6  0.00345488
  7  1.97679e-06
  8  2.74439e-05
  9  91.6935
  10  2.28385e-05
  11  2.10616e-07
  12  6.69928e-05
  13  1.30248e-05
  14  4.19425
  15  28.2616
  16  0.942873
  17  4.29333e-06
  18  2.23838e-05
  19  0.000680678
  20  633.102
  21  38.3514
  22  2528.81
  23  4.03577
  24  1.68889e-05
  25  0.000630859
  26  4.74397e-06
  27  3.35952e-05
  28  188.863
  29  7.04842e-07
  30  42.194
  31  4.2354e-08
  32  8.93048e-08
  33  0.188884
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  2.238e-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:  1.516e+00  1.889e-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.000e-02  8.930e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.788 60.518
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283745/likelihoodResults_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.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) = 3011.30404159
delta logL = -0.000618515111455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3011.30342283
delta logL = 2.46692707151e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0905       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5161       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=   3011.303     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      253 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10325E-03    9.0898        .15336E-01** at limit **
   2  Index         2.0071        8.7435        .50000        .27206E-04
   3  Normalizat    .10000E-01    .16069E-03    .76249E-02** at limit **
   4  Prefactor     1.5161        .67446E-02    .22063E-03    .25511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103255
  Index      = 2.00708
  Normalizat = 0.01
  Prefactor  = 1.51609
 **********
 **   18 **HESSE 
 **********

 FCN=   3011.303     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10325E-03    84.325        .15823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0071        5.6775        .50000       -.64173    
   3  Normalizat    .10000E-01    .15217E-02    .15250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5161        .20749E-01    .44126E-04   -.77090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.8319e-09
Minuit parameter uncertainties:
  1  0.0331796
  2  285.502
  3  2.58166e-08
  4  0.0207488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283745': 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) = 3011.3034224
delta logL = 6.68003394821e-07

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.033e-04  3.318e-02  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.007e+00  2.855e+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:  1.516e+00  2.075e-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.000e-02  2.582e-08  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/283745/cmap_HighResolution_588729601_588988801_4FGL_J1203.1+6031_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-04 22:05:56.891817', job_id='283745', GAL2='1.52', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630818356.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.52', dlogl='6.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1348' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:05:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 283745: <4FGL_J1203.1+6031_daily_bin1348> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin1348> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 21:50:27 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:50:29 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:50:29 2021
Terminated at Sat Sep  4 22:05:57 2021
Results reported at Sat Sep  4 22:05:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin1348 180.788 60.518 588729601 588988801 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 :                                   687.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

