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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin995
RA = 180.788, Dec = 60.518
tmin = 497232001, tmax = 497491201
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='282067', job_status='RUN', time_executed='2021-09-04 21:47:24.799102', time_epoch_executed='1630817244.8' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282067/ft1_4FGL_J1203.1+6031_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282067/ft2_4FGL_J1203.1+6031_daily_bin995.fits


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

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

Done.
real 6.74
user 6.43
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282067/ft2_4FGL_J1203.1+6031_daily_bin995.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/282067/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin995.fits evtable="EVENTS" outfile="/scratch/kocevski/282067/ft1_filtered_4FGL_J1203.1+6031_daily_bin995.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282067/ft1_filtered_4FGL_J1203.1+6031_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/282067/ft2_4FGL_J1203.1+6031_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/282067/ltcube_497232001_497491201_4FGL_J1203.1+6031_daily_bin995.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/282067/ft2_4FGL_J1203.1+6031_daily_bin995.fits
.....................!
real 12.37
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282067/ft1_filtered_4FGL_J1203.1+6031_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/282067/ft2_4FGL_J1203.1+6031_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/282067/ltcube_497232001_497491201_4FGL_J1203.1+6031_daily_bin995.fits outfile=/scratch/kocevski/282067/expmap_497232001_497491201_4FGL_J1203.1+6031_daily_bin995.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/282067/ltcube_497232001_497491201_4FGL_J1203.1+6031_daily_bin995.fits
.....................!
real 190.79
user 185.76
sys 4.65

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/282067/ft1_filtered_4FGL_J1203.1+6031_daily_bin995.fits scfile=/scratch/kocevski/282067/ft2_4FGL_J1203.1+6031_daily_bin995.fits outfile=/scratch/kocevski/282067/cmap_497232001_497491201_4FGL_J1203.1+6031_daily_bin995.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.83
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282067/ft1_filtered_4FGL_J1203.1+6031_daily_bin995.fits scfile=/scratch/kocevski/282067/ft2_4FGL_J1203.1+6031_daily_bin995.fits outfile=/scratch/kocevski/282067/cmap_HighResolution_497232001_497491201_4FGL_J1203.1+6031_daily_bin995.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.63
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2602       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2685       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2666       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36272E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1982       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    111.63       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.372       1.0000         .10000E-03   10000.    
    28 'Prefactor '    132.48       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    192.14       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0866       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0332       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=   2508.102     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     4535 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.969        .11535E-06** at limit **
   2  norm          1.2582        2.7131        .25615E-06    .29609E-04
   3  norm          1.9467        2.0410        .77851E-07    .89123E-04
   4  Prefactor     .10000E-03    189.42        .14472E-04** at limit **
   5  norm          6.2684        5.7034        .23695E-06    .22183E-05
   6  Prefactor     .10000E-03    110.11       -.78864E-05** at limit **
   7  norm          .10000E-03    1.3061        .34457E-07** at limit **
   8  Prefactor     .10000E-03    20.989        .95438E-07** at limit **
   9  Prefactor     .10000E-03    55.774        .40648E-05** at limit **
  10  Prefactor     .10000E-03    36.304       -.24545E-05** at limit **
  11  Prefactor     1.2575        48.637        .27219E-04   -.19534E-04
  12  Prefactor     .10000E-03    77.423       -.25235E-05** at limit **
  13  Prefactor     .10000E-03    20.314        .30483E-06** at limit **
  14  Prefactor     .10000E-03    2.9782       -.21929E-08** at limit **
  15  norm          .10000E-03    53.348        .37512E-05** at limit **
  16  Prefactor     .10000E-03    7.0780        .35737E-05** at limit **
  17  norm          .10000E-03    2.8524       -.21186E-07** at limit **
  18  Prefactor     6.1975        12.376        .65201E-06    .28241E-05
  19  Prefactor     .10000E-03    16.775       -.70868E-06** at limit **
  20  norm          .10000E-03    4.2881        .35376E-07** at limit **
  21  Prefactor     111.61        124.77        .30510E-05    .12268E-04
  22  Prefactor     .10000E-03    79.526       -.37433E-05** at limit **
  23  norm          .10000E-03    19.193        .43476E-06** at limit **
  24  norm          .10000E-03    11.191        .69549E-08** at limit **
  25  Prefactor     .10000E-03    4.2994       -.10650E-07** at limit **
  26  norm          .10000E-03    1.4368       -.37594E-07** at limit **
  27  norm          10.372        5.1726        .25534E-06    .36358E-04
  28  Prefactor     132.47        157.79        .21168E-05    .64575E-05
  29  Prefactor     .10000E-03    5.8682       -.35682E-07** at limit **
  30  Prefactor     192.14        164.93        .25625E-06   -.63447E-05
  31  Prefactor     .10000E-03    10.346        .12562E-07** at limit **
  32  Normalizat    1.0866        .29148       -.23171E-05    .11001E-03
  33  Prefactor     1.0332        .34521       -.12512E-05    .88431E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.25822
  norm       = 1.94671
  Prefactor  = 0.000100003
  norm       = 6.26839
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.19752
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 111.607
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.3721
  Prefactor  = 132.472
  Prefactor  = 0.0001
  Prefactor  = 192.137
  Prefactor  = 0.0001
  Normalizat = 1.0866
  Prefactor  = 1.03324
 **********
 **   18 **HESSE 
 **********

 FCN=   2508.102     FROM HESSE     STATUS=OK           677 CALLS     5212 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2582        2.6654        .11464E-03   -1.5484    
   3  norm          1.9467        2.0300        .71165E-04   -1.5429    
   4  Prefactor     .10000E-03    189.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2684        5.6502        .10681E-03   -1.5207    
   6  Prefactor     .10000E-03    110.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3087        .55889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    55.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2575        51.184        .19786E-02   -1.5484    
  12  Prefactor     .10000E-03    77.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9794        .84409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    53.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.661        .24937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8533        .82609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1975        12.372        .80624E-03   -1.5210    
  19  Prefactor     .10000E-03    16.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.3917        .20229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     111.61        125.06        .38073E-04   -1.3591    
  22  Prefactor     .10000E-03    79.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    19.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.255        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3106        .10142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.4408        .58629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.372        5.1764        .77473E-04   -1.5064    
  28  Prefactor     132.47        157.81        .34985E-04   -1.3401    
  29  Prefactor     .10000E-03    5.8744        .11849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     192.14        164.90        .14569E-03   -1.2927    
  31  Prefactor     .10000E-03    10.668        .31445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0866        .35982        .24538E-03   -.90183    
  33  Prefactor     1.0332        .42529        .30387E-03   -.91630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38126e-10
Minuit parameter uncertainties:
  1  4.37653e-05
  2  2.66562
  3  2.03002
  4  0.00151294
  5  5.65071
  6  0.000629961
  7  5.87066e-07
  8  8.55871e-05
  9  0.000225894
  10  7.39299e-05
  11  16.0594
  12  0.000190432
  13  8.1567e-06
  14  1.9265e-06
  15  2.2077e-05
  16  0.000179047
  17  3.58684e-06
  18  12.3772
  19  3.34351e-05
  20  1.01281e-05
  21  125.353
  22  0.000341676
  23  8.01538e-05
  24  9.38119e-06
  25  3.9871e-06
  26  1.93586e-06
  27  5.17662
  28  158.32
  29  4.79583e-06
  30  165.302
  31  2.46102e-05
  32  0.360638
  33  0.426683
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.033e+00  4.267e-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.087e+00  3.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/282067/likelihoodResults_497232001_497491201_4FGL_J1203.1+6031_daily_bin995.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): 0
logL (Free Index) = 2507.93639441
delta logL = 0.165123784197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2507.91271505
delta logL = 0.188803144597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.798       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5173       1.0000          .0000       10.000    
     3 'Normalizat'    1.0964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0207       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=   2507.913     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.798        18.461        .11663E-03   -.18862E-04
   2  Index         1.5173        .83218        .95600E-02   -.50987E-05
   3  Normalizat    1.0963        .34390        .24436E-03    .15725E-04
   4  Prefactor     1.0208        .41781        .30525E-03    .28137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7982
  Index      = 1.51728
  Normalizat = 1.09634
  Prefactor  = 1.02077
 **********
 **   18 **HESSE 
 **********

 FCN=   2507.913     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.798        18.417        .46652E-05   -1.5021    
   2  Index         1.5173        .83045        .38240E-03   -.77057    
   3  Normalizat    1.0963        .34434        .97746E-05   -.89870    
   4  Prefactor     1.0208        .41835        .12210E-04   -.92040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82469e-12
Minuit parameter uncertainties:
  1  18.4263
  2  0.838047
  3  0.345048
  4  0.419689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282067': 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) = 2507.91271503
delta logL = 0.188803160529

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.180e+01  1.843e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.517e+00  8.380e-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.021e+00  4.197e-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.096e+00  3.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/282067/cmap_HighResolution_497232001_497491201_4FGL_J1203.1+6031_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-09-04 21:58:13.804596', job_id='282067', GAL2='1.02', fit_tolerance='1e-08', EG2='1.10', EG='1.09', time_epoch_completed='1630817893.8', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.89e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='995' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:58:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 282067: <4FGL_J1203.1+6031_daily_bin995> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin995> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 21:45:17 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:45:20 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:45:20 2021
Terminated at Sat Sep  4 21:58:14 2021
Results reported at Sat Sep  4 21:58:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin995 180.788 60.518 497232001 497491201 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 :                                   641.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            777 sec.

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

