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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin758
RA = 180.788, Dec = 60.518
tmin = 435801601, tmax = 436060801
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='279378', job_status='RUN', time_executed='2021-09-04 21:37:38.276840', time_epoch_executed='1630816658.28' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279378/ft1_4FGL_J1203.1+6031_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279378/ft2_4FGL_J1203.1+6031_daily_bin758.fits


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

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

Done.
real 5.59
user 5.32
sys 0.23

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279378/ft1_filtered_4FGL_J1203.1+6031_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/279378/ft2_4FGL_J1203.1+6031_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/279378/ltcube_435801601_436060801_4FGL_J1203.1+6031_daily_bin758.fits outfile=/scratch/kocevski/279378/expmap_435801601_436060801_4FGL_J1203.1+6031_daily_bin758.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/279378/ltcube_435801601_436060801_4FGL_J1203.1+6031_daily_bin758.fits
.....................!
real 189.87
user 185.13
sys 4.40

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/279378/ft1_filtered_4FGL_J1203.1+6031_daily_bin758.fits scfile=/scratch/kocevski/279378/ft2_4FGL_J1203.1+6031_daily_bin758.fits outfile=/scratch/kocevski/279378/cmap_435801601_436060801_4FGL_J1203.1+6031_daily_bin758.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/279378/ft1_filtered_4FGL_J1203.1+6031_daily_bin758.fits scfile=/scratch/kocevski/279378/ft2_4FGL_J1203.1+6031_daily_bin758.fits outfile=/scratch/kocevski/279378/cmap_HighResolution_435801601_436060801_4FGL_J1203.1+6031_daily_bin758.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/279378/ft1_filtered_4FGL_J1203.1+6031_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/279378/ft2_4FGL_J1203.1+6031_daily_bin758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279378/Model_4FGL_J1203.1+6031_daily_bin758.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/279378/ft1_filtered_4FGL_J1203.1+6031_daily_bin758.fits.....................!
real 43.80
user 42.53
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.144       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5686       1.0000         .10000E-03   10000.    
     4 'Prefactor '    116.60       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9047       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2967       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.013       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.165       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4165       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.876       1.0000         .10000E-03   10000.    
    20 'norm      '    .10541E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.682       1.0000         .10000E-03   10000.    
    24 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.8500       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.3729       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.478       1.0000         .10000E-03   10000.    
    30 'Prefactor '    26.855       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .55677       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=   4106.731     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     4574 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.141        19.617        .29560E-06   -.12819E-04
   2  norm          .10000E-03    1.2301       -.38691E-07** at limit **
   3  norm          2.5687        1.7499        .27232E-07   -.29984E-04
   4  Prefactor     116.51        135.88       -.26214E-06   -.24455E-04
   5  norm          .10000E-03    .69888       -.17189E-07** at limit **
   6  Prefactor     .10000E-03    44.539        .17475E-06** at limit **
   7  norm          .10000E-03    .81284        .30028E-06** at limit **
   8  Prefactor     .10000E-03    1.6531       -.93325E-08** at limit **
   9  Prefactor     .10000E-03    57.596        .75364E-07** at limit **
  10  Prefactor     2.8883        49.296       -.38079E-05   -.27749E-04
  11  Prefactor     1.2956        12.723        .48011E-05   -.17119E-04
  12  Prefactor     17.023        29.570       -.11889E-05   -.10179E-03
  13  Prefactor     33.165        21.930        .34467E-07   -.84525E-05
  14  Prefactor     .10000E-03    3.1098        .62191E-07** at limit **
  15  norm          .10000E-03    9.3374       -.18445E-06** at limit **
  16  Prefactor     3.4160        4.0066        .87842E-07   -.25137E-04
  17  norm          2.0595        6.3464        .60037E-06   -.52463E-04
  18  Prefactor     .10000E-03    3.8094       -.89445E-07** at limit **
  19  Prefactor     30.881        22.590       -.90762E-07   -.40811E-04
  20  norm          .10000E-03    1.7822       -.17264E-07** at limit **
  21  Prefactor     .10000E-03    28.055        .16254E-06** at limit **
  22  Prefactor     .10000E-03    31.802       -.88379E-07** at limit **
  23  norm          15.682        6.8883        .30041E-07   -.13138E-04
  24  norm          .10000E-03    5.6813        .99223E-07** at limit **
  25  Prefactor     4.8494        6.3825        .13362E-06   -.13070E-04
  26  norm          .10000E-03    1.4465        .33962E-07** at limit **
  27  norm          5.3726        2.8139       -.11691E-08   -.53560E-05
  28  Prefactor     .10000E-03    29.423        .31034E-07** at limit **
  29  Prefactor     13.475        13.744        .10417E-06   -.81334E-05
  30  Prefactor     26.577        71.906        .22059E-06   -.91343E-05
  31  Prefactor     .10000E-03    4.9201       -.68872E-07** at limit **
  32  Normalizat    1.1919        .20350       -.98385E-06   -.66284E-04
  33  Prefactor     .55712        .23426        .80261E-06   -.67931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1408
  norm       = 0.0001
  norm       = 2.56872
  Prefactor  = 116.514
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88831
  Prefactor  = 1.29555
  Prefactor  = 17.0226
  Prefactor  = 33.165
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.41596
  norm       = 2.05947
  Prefactor  = 0.0001
  Prefactor  = 30.8807
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6815
  norm       = 0.0001
  Prefactor  = 4.84935
  norm       = 0.0001
  norm       = 5.3726
  Prefactor  = 0.0001
  Prefactor  = 13.4747
  Prefactor  = 26.5768
  Prefactor  = 0.0001
  Normalizat = 1.19195
  Prefactor  = 0.557123
 **********
 **   18 **HESSE 
 **********

 FCN=   4106.731     FROM HESSE     STATUS=OK           691 CALLS     5265 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.141        19.524        .87106E-04   -1.4788    
   2  norm          .10000E-03    1.2401        .68992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5687        1.7548        .68001E-04   -1.5387    
   4  Prefactor     116.51        135.71        .18631E-03   -1.3545    
   5  norm          .10000E-03    .70100        .52314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    44.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .81507        .56386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6568        .80464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    57.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8883        50.321        .23841E-03   -1.5368    
  11  Prefactor     1.2956        12.737        .38835E-03   -1.5480    
  12  Prefactor     17.023        29.498        .97102E-04   -1.4883    
  13  Prefactor     33.165        21.927        .69581E-04   -1.4556    
  14  Prefactor     .10000E-03    3.1480        .11034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.3689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4160        3.9974        .13386E-03   -1.5338    
  17  norm          2.0595        6.2837        .25775E-03   -1.5421    
  18  Prefactor     .10000E-03    3.8117        .12208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.881        22.551        .72107E-04   -1.4596    
  20  norm          .10000E-03    3.6159        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.682        6.8862        .10114E-03   -1.4916    
  24  norm          .10000E-03    5.7263        .14917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.8494        6.3529        .17563E-03   -1.5268    
  26  norm          .10000E-03    1.4551        .74980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.3726        2.8147        .75663E-04   -1.5244    
  28  Prefactor     .10000E-03    29.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.475        13.729        .10910E-03   -1.4974    
  30  Prefactor     26.577        71.913        .77305E-04   -1.4676    
  31  Prefactor     .10000E-03    4.9715        .13874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1919        .23060        .19546E-03   -.86852    
  33  Prefactor     .55712        .26441        .33749E-03   -1.0942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98403e-11
Minuit parameter uncertainties:
  1  19.5297
  2  6.52839e-07
  3  1.75481
  4  136.074
  5  3.10378e-07
  6  4.96894e-05
  7  2.76057e-09
  8  5.71643e-07
  9  7.57078e-05
  10  24.135
  11  8.12627
  12  29.5233
  13  21.9325
  14  1.65648e-06
  15  7.1649e-07
  16  3.99772
  17  6.28574
  18  3.39386e-06
  19  22.5577
  20  9.38296e-06
  21  3.93673e-05
  22  9.54038e-06
  23  6.8865
  24  6.40401e-07
  25  6.35374
  26  8.25316e-07
  27  2.81482
  28  2.33908e-05
  29  13.7318
  30  72.1486
  31  4.27027e-06
  32  0.230792
  33  0.265002
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  3.394e-06  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:  5.571e-01  2.650e-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.192e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.788 60.518
Photon Flux Upper Limit: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279378/likelihoodResults_435801601_436060801_4FGL_J1203.1+6031_daily_bin758.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) = 4106.73263731
delta logL = -0.00123621196053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4106.73140101
delta logL = 8.40509528643e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1073       1.0000          .0000       10.000    
     3 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55712       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=   4106.731     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10206E-03    2.8638        .12307E-01** at limit **
   2  Index         1.9979        8.0615        .50000        .21874E-04
   3  Normalizat    1.1919        .37882E-02    .19546E-03    .69330E-05
   4  Prefactor     .55712        .46385E-02    .33748E-03    .28634E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010206
  Index      = 1.99787
  Normalizat = 1.19195
  Prefactor  = 0.557124
 **********
 **   18 **HESSE 
 **********

 FCN=   4106.731     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10206E-03    123.15        .12596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9979        8.6677        .50000       -.64403    
   3  Normalizat    1.1919        .25682E-01    .39093E-04   -.86852    
   4  Prefactor     .55712        .31441E-01    .13499E-04   -1.0942    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.14606e-08
Minuit parameter uncertainties:
  1  0.0319216
  2  742.737
  3  0.0256821
  4  0.0314422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279378': 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) = 4106.73140055
delta logL = 5.47496711079e-07

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.021e-04  3.192e-02  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.998e+00  7.427e+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:  5.571e-01  3.144e-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.192e+00  2.568e-02  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/279378/cmap_HighResolution_435801601_436060801_4FGL_J1203.1+6031_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2021-09-04 21:51:45.658604', job_id='279378', GAL2='0.56', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630817505.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='5.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='758' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 279378: <4FGL_J1203.1+6031_daily_bin758> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin758> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:35:33 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:35:35 2021
Terminated at Sat Sep  4 21:51:46 2021
Results reported at Sat Sep  4 21:51:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin758 180.788 60.518 435801601 436060801 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 :                                   845.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

