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


Performing analysis on: 4FGL_J1203.1+6031_daily_bin974
RA = 180.788, Dec = 60.518
tmin = 491788801, tmax = 492048001
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='280948', job_status='RUN', time_executed='2021-09-04 21:42:38.552885', time_epoch_executed='1630816958.55' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280948

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280948/ft1_4FGL_J1203.1+6031_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280948/ft2_4FGL_J1203.1+6031_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280948/ft1_4FGL_J1203.1+6031_daily_bin974.fits outfile=/scratch/kocevski/280948/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin974.fits ra=180.788 dec=60.518 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.23
user 4.01
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280948/ft1_filtered_4FGL_J1203.1+6031_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/280948/ft2_4FGL_J1203.1+6031_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/280948/ltcube_491788801_492048001_4FGL_J1203.1+6031_daily_bin974.fits outfile=/scratch/kocevski/280948/expmap_491788801_492048001_4FGL_J1203.1+6031_daily_bin974.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/280948/ltcube_491788801_492048001_4FGL_J1203.1+6031_daily_bin974.fits
.....................!
real 191.18
user 186.31
sys 4.50

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/280948/ft1_filtered_4FGL_J1203.1+6031_daily_bin974.fits scfile=/scratch/kocevski/280948/ft2_4FGL_J1203.1+6031_daily_bin974.fits outfile=/scratch/kocevski/280948/cmap_491788801_492048001_4FGL_J1203.1+6031_daily_bin974.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280948/ft1_filtered_4FGL_J1203.1+6031_daily_bin974.fits scfile=/scratch/kocevski/280948/ft2_4FGL_J1203.1+6031_daily_bin974.fits outfile=/scratch/kocevski/280948/cmap_HighResolution_491788801_492048001_4FGL_J1203.1+6031_daily_bin974.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.483       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    485.76       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.892       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17886E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.172       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .85695E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.930       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.219       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1432       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.7527       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.5626       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .40948       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96593       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=   844.5738     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4551 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.516       -.27800E-04** at limit **
   2  norm          10.484        7.8992        .36700E-06    .43595E-03
   3  norm          .10000E-03    6.7766        .17897E-07** at limit **
   4  Prefactor     485.64        606.91       -.55370E-04    .60356E-05
   5  norm          4.7000        6.3667        .16808E-06    .31395E-03
   6  Prefactor     .10000E-03    258.99        .28405E-04** at limit **
   7  norm          .10002E-03    9.0198       -.75724E-05** at limit **
   8  Prefactor     .10000E-03    29.372       -.66771E-05** at limit **
   9  Prefactor     .10000E-03    99.049        .43549E-04** at limit **
  10  Prefactor     .10000E-03    225.42        .99158E-04** at limit **
  11  Prefactor     50.902        30.340        .13622E-06    .97243E-03
  12  Prefactor     .10003E-03    389.47       -.28918E-03** at limit **
  13  Prefactor     .10000E-03    28.472       -.11082E-04** at limit **
  14  Prefactor     18.171        16.137       -.19220E-06    .58815E-04
  15  norm          .10000E-03    20.709        .79473E-05** at limit **
  16  Prefactor     .10014E-03    10.275       -.15537E-05** at limit **
  17  norm          .10000E-03    13.557        .14799E-04** at limit **
  18  Prefactor     .10000E-03    14.108       -.57669E-05** at limit **
  19  Prefactor     .10000E-03    39.994        .35224E-04** at limit **
  20  norm          13.929        7.7272       -.12258E-06    .20329E-03
  21  Prefactor     39.219        52.619       -.79633E-06    .95266E-05
  22  Prefactor     .10000E-03    74.358       -.34021E-04** at limit **
  23  norm          1.1416        25.120       -.29514E-05   -.16576E-03
  24  norm          .10000E-03    9.6104        .32753E-06** at limit **
  25  Prefactor     .10000E-03    10.979       -.13790E-05** at limit **
  26  norm          6.7526        5.9615       -.97818E-06    .76762E-04
  27  norm          .10000E-03    3.6013        .18562E-07** at limit **
  28  Prefactor     .10000E-03    85.938       -.42994E-05** at limit **
  29  Prefactor     .10000E-03    30.270       -.22472E-05** at limit **
  30  Prefactor     .10000E-03    90.569        .11821E-04** at limit **
  31  Prefactor     4.5622        10.864       -.82002E-06   -.33228E-04
  32  Normalizat    .40949        .40036        .87463E-05    .31838E-03
  33  Prefactor     .96602        .45565       -.15810E-05    .29382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.4835
  norm       = 0.0001
  Prefactor  = 485.638
  norm       = 4.70002
  Prefactor  = 0.0001
  norm       = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 50.9019
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 18.1705
  norm       = 0.0001
  Prefactor  = 0.000100141
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9293
  Prefactor  = 39.2187
  Prefactor  = 0.0001
  norm       = 1.14164
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.7526
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56218
  Normalizat = 0.409495
  Prefactor  = 0.966023
 **********
 **   18 **HESSE 
 **********

 FCN=   844.5738     FROM HESSE     STATUS=OK           675 CALLS     5226 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.484        7.8889        .68615E-04   -1.5060    
   3  norm          .10000E-03    6.9013        .73819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     485.64        606.71        .93032E-04   -1.1264    
   5  norm          4.7000        6.3091        .81383E-04   -1.5274    
   6  Prefactor     .10000E-03    259.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10002E-03    14.243        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.480        .15260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    99.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    226.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.902        30.460        .56217E-04   -1.4280    
  12  Prefactor     .10003E-03    392.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.475        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.171        16.115        .93956E-04   -1.4855    
  15  norm          .10000E-03    20.713        .12924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10014E-03    98.475        .17894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.657        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.127        .10665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.006        .17964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.929        7.7226        .57210E-04   -1.4961    
  21  Prefactor     39.219        52.668        .64003E-04   -1.4455    
  22  Prefactor     .10000E-03    74.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1416        25.253        .27705E-03   -1.5494    
  24  norm          .10000E-03    9.6196        .88019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.010        .94023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.7526        5.9702        .64253E-04   -1.5188    
  27  norm          .10000E-03    3.6434        .53863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    85.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    30.433        .15617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    90.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.5622        10.895        .14021E-03   -1.5281    
  32  Normalizat    .40949        .45099        .28315E-03   -1.1681    
  33  Prefactor     .96602        .52236        .23660E-03   -.93871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29849e-09
Minuit parameter uncertainties:
  1  1.91029e-05
  2  7.88963
  3  9.26262e-06
  4  615.071
  5  6.30996
  6  6.00595e-05
  7  0.00105868
  8  0.000181171
  9  7.53109e-06
  10  0.00119971
  11  30.4696
  12  0.00684974
  13  4.54005e-08
  14  16.1186
  15  3.42885e-06
  16  0.00747426
  17  1.68533e-06
  18  1.19554e-05
  19  2.3629e-05
  20  7.72313
  21  52.7306
  22  2.13958e-05
  23  10.7433
  24  4.77185e-06
  25  4.3996e-06
  26  5.97077
  27  6.73843e-06
  28  5.27155e-05
  29  4.76798e-05
  30  1.902e-05
  31  10.9
  32  0.45508
  33  0.52512
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  1.196e-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:  9.660e-01  5.251e-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:  4.095e-01  4.551e-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: 1.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280948/likelihoodResults_491788801_492048001_4FGL_J1203.1+6031_daily_bin974.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) = 844.574117212
delta logL = -0.000333983159294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 844.573783217
delta logL = 1.22402070701e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1120       1.0000          .0000       10.000    
     3 'Normalizat'    .40948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96604       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=   844.5738     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.155        .90712E-02** at limit **
   2  Index         2.1025        6.0483        .50000        .54564E-05
   3  Normalizat    .40949        .34643        .63970E-01    .66029E-05
   4  Prefactor     .96603        .43823        .45841E-01    .19631E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10246
  Normalizat = 0.409486
  Prefactor  = 0.966026
 **********
 **   18 **HESSE 
 **********

 FCN=   844.5738     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6291.2        .10705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1025        5.5440        .50000       -.61812    
   3  Normalizat    .40949        .19438        .28315E-03   -1.1681    
   4  Prefactor     .96603        .24604        .23660E-03   -.93871    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.51737e-09
Minuit parameter uncertainties:
  1  8.61984e-05
  2  57.7295
  3  0.194698
  4  0.246324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280948': 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) = 844.573783203
delta logL = 2.62759840552e-08

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  8.620e-05  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.102e+00  5.773e+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:  9.660e-01  2.463e-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:  4.095e-01  1.947e-01  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/280948/cmap_HighResolution_491788801_492048001_4FGL_J1203.1+6031_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2021-09-04 21:50:08.258920', job_id='280948', GAL2='0.97', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1630817408.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='974' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:50:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 280948: <4FGL_J1203.1+6031_daily_bin974> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin974> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 21:40:42 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:40:45 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:40:45 2021
Terminated at Sat Sep  4 21:50:09 2021
Results reported at Sat Sep  4 21:50:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin974 180.788 60.518 491788801 492048001 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 :                                   446.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            567 sec.

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

