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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin1225
RA = 180.788, Dec = 60.518
tmin = 556848001, tmax = 557107201
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='283514', job_status='RUN', time_executed='2021-09-04 21:50:34.631757', time_epoch_executed='1630817434.63' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283514/ft1_4FGL_J1203.1+6031_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283514/ft2_4FGL_J1203.1+6031_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283514/ft1_4FGL_J1203.1+6031_daily_bin1225.fits outfile=/scratch/kocevski/283514/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin1225.fits ra=180.788 dec=60.518 rad=12.0 tmin=556848001.0 tmax=557107201.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.63
user 3.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283514/ft1_filtered_4FGL_J1203.1+6031_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/283514/ft2_4FGL_J1203.1+6031_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/283514/ltcube_556848001_557107201_4FGL_J1203.1+6031_daily_bin1225.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/283514/ft2_4FGL_J1203.1+6031_daily_bin1225.fits
.....................!
real 12.93
user 12.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283514/ft1_filtered_4FGL_J1203.1+6031_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/283514/ft2_4FGL_J1203.1+6031_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/283514/ltcube_556848001_557107201_4FGL_J1203.1+6031_daily_bin1225.fits outfile=/scratch/kocevski/283514/expmap_556848001_557107201_4FGL_J1203.1+6031_daily_bin1225.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/283514/ltcube_556848001_557107201_4FGL_J1203.1+6031_daily_bin1225.fits
.....................!
real 189.92
user 184.95
sys 4.55

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/283514/ft1_filtered_4FGL_J1203.1+6031_daily_bin1225.fits scfile=/scratch/kocevski/283514/ft2_4FGL_J1203.1+6031_daily_bin1225.fits outfile=/scratch/kocevski/283514/cmap_556848001_557107201_4FGL_J1203.1+6031_daily_bin1225.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/283514/ft1_filtered_4FGL_J1203.1+6031_daily_bin1225.fits scfile=/scratch/kocevski/283514/ft2_4FGL_J1203.1+6031_daily_bin1225.fits outfile=/scratch/kocevski/283514/cmap_HighResolution_556848001_557107201_4FGL_J1203.1+6031_daily_bin1225.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.174       1.0000         .10000E-03   10000.    
     2 'norm      '    .27803E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3836       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.795       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2885       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    862.48       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.271       1.0000         .10000E-03   10000.    
    26 'norm      '    3.1789       1.0000         .10000E-03   10000.    
    27 'norm      '    2.5596       1.0000         .10000E-03   10000.    
    28 'Prefactor '    84.621       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5532       1.0000         .10000E-03   10000.    
    30 'Prefactor '    35.180       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .28226       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .54439       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1596       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=   3621.223     FROM MIGRAD    STATUS=CONVERGED   1610 CALLS     6083 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.212        27.076        .81471E-04    .13737E-03
   2  norm          .10001E-03    14.373        .17030E-02** at limit **
   3  norm          4.0536        3.8919        .11092E-03    .74000E-04
   4  Prefactor     .10000E-03    68.796        .18142E-02** at limit **
   5  norm          4.3818        8.4851        .83267E-04    .37751E-04
   6  Prefactor     .10000E-03    144.40        .18142E-02** at limit **
   7  norm          5.1532        4.4995        .11559E-03    .51951E-04
   8  Prefactor     1.8254        47.877        .27896E-03    .17198E-04
   9  Prefactor     50.698        153.11        .28135E-03   -.44448E-06
  10  Prefactor     .10000E-03    20.644        .18142E-02** at limit **
  11  Prefactor     .10000E-03    16.808        .18142E-02** at limit **
  12  Prefactor     .10000E-03    21.645        .18142E-02** at limit **
  13  Prefactor     .10000E-03    55.354        .18142E-02** at limit **
  14  Prefactor     2.2887        3.2615        .12384E-03    .20243E-04
  15  norm          .10000E-03    9.9837        .18142E-02** at limit **
  16  Prefactor     .10000E-03    18.693        .18142E-02** at limit **
  17  norm          .10000E-03    23.156        .18142E-02** at limit **
  18  Prefactor     862.59        249.81        .71243E-04   -.23617E-05
  19  Prefactor     .10000E-03    43.370        .18142E-02** at limit **
  20  norm          .10000E-03    6.9858        .15521E-02** at limit **
  21  Prefactor     .10000E-03    29.587        .18142E-02** at limit **
  22  Prefactor     .10000E-03    364.91        .18142E-02** at limit **
  23  norm          .10000E-03    3.9996        .23047E-03** at limit **
  24  norm          .10000E-03    10.450        .18142E-02** at limit **
  25  Prefactor     18.271        13.359        .93701E-04   -.49138E-05
  26  norm          3.1787        4.1338        .12513E-03    .31798E-05
  27  norm          2.5596        2.3088        .84420E-04    .26934E-05
  28  Prefactor     84.620        76.284        .43669E-04   -.43476E-05
  29  Prefactor     2.5543        13.567        .12776E-02    .96948E-05
  30  Prefactor     35.177        30.953        .67565E-04   -.23557E-05
  31  Prefactor     .30051        10.674        .17578E-02   -.84753E-04
  32  Normalizat    .54416        .26985        .28602E-03    .22497E-04
  33  Prefactor     1.1598        .29581        .24607E-03    .63407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2119
  norm       = 0.000100006
  norm       = 4.05364
  Prefactor  = 0.0001
  norm       = 4.38184
  Prefactor  = 0.0001
  norm       = 5.15322
  Prefactor  = 1.82541
  Prefactor  = 50.6978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28869
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 862.594
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2715
  norm       = 3.17873
  norm       = 2.55962
  Prefactor  = 84.6197
  Prefactor  = 2.55433
  Prefactor  = 35.1765
  Prefactor  = 0.30051
  Normalizat = 0.54416
  Prefactor  = 1.15978
 **********
 **   18 **HESSE 
 **********

 FCN=   3621.223     FROM HESSE     STATUS=OK           665 CALLS     6748 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.212        26.981        .16294E-04   -1.4723    
   2  norm          .10001E-03    14.404        .34060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0536        3.8916        .44369E-05   -1.5305    
   4  Prefactor     .10000E-03    68.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3818        8.2947        .33307E-05   -1.5289    
   6  Prefactor     .10000E-03    144.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1532        4.4993        .23118E-04   -1.5254    
   8  Prefactor     1.8254        45.704        .11158E-04   -1.5438    
   9  Prefactor     50.698        153.09        .11254E-04   -1.4283    
  10  Prefactor     .10000E-03    20.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2887        3.2599        .49535E-05   -1.5405    
  15  norm          .10000E-03    9.9838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    23.156        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     862.59        249.60        .14249E-04   -.97461    
  19  Prefactor     .10000E-03    43.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.9862        .31042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    364.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.9996        .46093E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.271        13.356        .37480E-05   -1.4853    
  26  norm          3.1787        4.1324        .50054E-05   -1.5351    
  27  norm          2.5596        2.3087        .33768E-05   -1.5388    
  28  Prefactor     84.620        76.284        .87338E-05   -1.3866    
  29  Prefactor     2.5543        13.522        .51104E-04   -1.5388    
  30  Prefactor     35.177        30.949        .27026E-05   -1.4521    
  31  Prefactor     .30051        10.507        .70313E-04   -1.5598    
  32  Normalizat    .54416        .26851        .11441E-04   -1.1041    
  33  Prefactor     1.1598        .29577        .49213E-04   -.87578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61878e-10
Minuit parameter uncertainties:
  1  26.9943
  2  0.000576393
  3  3.89182
  4  3.85908e-05
  5  8.29692
  6  1.44873e-07
  7  4.49964
  8  18.283
  9  154.304
  10  2.99242e-07
  11  3.1488e-05
  12  2.82484e-05
  13  4.56825e-05
  14  3.26016
  15  5.16055e-06
  16  5.7601e-06
  17  0.00013765
  18  249.93
  19  7.60309e-05
  20  1.1428e-05
  21  0.00016156
  22  0.000489812
  23  8.7005e-06
  24  1.27811e-06
  25  13.3582
  26  4.13273
  27  2.30879
  28  76.3729
  29  11.758
  30  30.9632
  31  3.55401
  32  0.269154
  33  0.296194
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  8.626e+02  2.499e+02  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.160e+00  2.962e-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.442e-01  2.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.08
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.69e-06 +/- 7.79e-07
Energy Flux (Fixed Index): 1.41e-03 +/- 4.09e-04

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) = 3585.40646353
delta logL = 35.8167748183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3585.31003743
delta logL = 35.9132009146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6788       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7335       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5277       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=   3585.310     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      319 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6664        13.650        .38817E-02    .15304E-04
   2  Index         4.7342        .81547        .15238E-01    .11263E-03
   3  Normalizat    .10000E-01    .54495E-01    .17375    ** at limit **
   4  Prefactor     1.5280        .12972        .47710E-01   -.18224E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66635
  Index      = 4.73424
  Normalizat = 0.01
  Prefactor  = 1.528
 **********
 **   18 **HESSE 
 **********

 FCN=   3585.310     FROM HESSE     STATUS=OK            31 CALLS      350 TOTAL
                     EDM=   .62E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6664        8.3757        .21721E-04   -1.5192    
   2  Index         4.7342        .50117        .67473E-04   -.53177E-01
   3  Normalizat    .10000E-01    .84361E-01    .87411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5280        .13647        .21085E-03   -.76759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20091e-14
Minuit parameter uncertainties:
  1  8.37713
  2  0.502011
  3  2.68372e-08
  4  0.136499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283514': 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) = 3585.31003433
delta logL = 35.9132040184

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  6.666e+00  8.377e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  4.734e+00  5.020e-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.528e+00  1.365e-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  2.684e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 114.46
Ra Dec: 180.788 60.518
Photon Index (Free Index): 4.73 +/- 0.50
Photon Flux (Free Index): 8.53e-06 +/- 1.27e-06
Energy Flux (Free Index): 1.16e-03 +/- 1.81e-04

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/283514/cmap_HighResolution_556848001_557107201_4FGL_J1203.1+6031_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-06', energy_flux2='1.16e-03', photon_flux_error='7.79e-07', dlogl='3.59e+01', energy_flux='1.41e-03', photon_flux2='8.53e-06', job_status='DONE', time_completed='2021-09-04 22:03:55.231326', photon_index_error2='0.50', photon_index2='4.73', ts='26.08', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.81e-04', EG='0.54', time_epoch_completed='1630818235.23', return_code='0', job_id='283514', GAL2='1.53', EG2='0.01', return_code2='0', energy_flux_error='4.09e-04', photon_flux_error2='1.27e-06', ts2='114.46', photon_index='2.12' WHERE bin_id='1225' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 283514: <4FGL_J1203.1+6031_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin1225 180.788 60.518 556848001 557107201 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 :                                   793.00 sec.
    Max Memory :                                 1150 MB
    Average Memory :                             324.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

