/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 71 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1203.1+6031_daily_bin43
RA = 180.788, Dec = 60.518
tmin = 250473601, tmax = 250732801
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='274968', job_status='RUN', time_executed='2021-09-04 21:22:12.106555', time_epoch_executed='1630815732.11' WHERE source_name='4FGL J1203.1+6031' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274968

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274968/ft1_4FGL_J1203.1+6031_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274968/ft2_4FGL_J1203.1+6031_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274968/ft1_4FGL_J1203.1+6031_daily_bin43.fits outfile=/scratch/kocevski/274968/ft1_filteredMKT_4FGL_J1203.1+6031_daily_bin43.fits ra=180.788 dec=60.518 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.33
user 1.17
sys 0.14

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274968/ft1_filtered_4FGL_J1203.1+6031_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/274968/ft2_4FGL_J1203.1+6031_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/274968/ltcube_250473601_250732801_4FGL_J1203.1+6031_daily_bin43.fits outfile=/scratch/kocevski/274968/expmap_250473601_250732801_4FGL_J1203.1+6031_daily_bin43.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/274968/ltcube_250473601_250732801_4FGL_J1203.1+6031_daily_bin43.fits
.....................!
real 189.41
user 185.15
sys 3.93

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/274968/ft1_filtered_4FGL_J1203.1+6031_daily_bin43.fits scfile=/scratch/kocevski/274968/ft2_4FGL_J1203.1+6031_daily_bin43.fits outfile=/scratch/kocevski/274968/cmap_250473601_250732801_4FGL_J1203.1+6031_daily_bin43.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.51
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274968/ft1_filtered_4FGL_J1203.1+6031_daily_bin43.fits scfile=/scratch/kocevski/274968/ft2_4FGL_J1203.1+6031_daily_bin43.fits outfile=/scratch/kocevski/274968/cmap_HighResolution_250473601_250732801_4FGL_J1203.1+6031_daily_bin43.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1294       1.0000         .10000E-03   10000.    
     3 'norm      '    .76287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    212.28       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7713       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6669       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41680E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6858       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.716       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4631       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0647       1.0000         .10000E-03   10000.    
    17 'norm      '    .12975E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.159       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6485       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4029       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.642       1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.089       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.9657       1.0000         .10000E-03   10000.    
    27 'norm      '    1.0400       1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.918       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.5581       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .65040       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2405       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5642.997     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     3900 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.648       -.22980E-05** at limit **
   2  norm          2.1294        2.0395        .48730E-07    .69262E-04
   3  norm          .76283        1.4095       -.72779E-08    .20791E-04
   4  Prefactor     212.27        2.8824       -.88897E-07    .38588E-03
   5  norm          5.7603        3.3705        .18562E-06    .21174E-03
   6  Prefactor     .10004E-03    55.157       -.19914E-06** at limit **
   7  norm          3.6670        2.1087        .54254E-07    .12501E-03
   8  Prefactor     .10000E-03    16.310       -.26404E-06** at limit **
   9  Prefactor     .10001E-03    44.303       -.12329E-06** at limit **
  10  Prefactor     6.5418        1.3211        .13040E-06   -.15126E-02
  11  Prefactor     .10000E-03    2.8730       -.65265E-07** at limit **
  12  Prefactor     5.6911        3.2222       -.22544E-06    .51025E-02
  13  Prefactor     14.724        1.4629       -.28701E-07    .26696E-03
  14  Prefactor     .10000E-03    2.4875        .18672E-07** at limit **
  15  norm          6.4618        4.4607       -.35123E-06   -.49020E-02
  16  Prefactor     3.0647        3.5157       -.23449E-06   -.43117E-04
  17  norm          .10000E-03    4.1748        .41109E-07** at limit **
  18  Prefactor     10.169        6.6220       -.24197E-06    .38681E-02
  19  Prefactor     4.5502        42.063       -.76268E-05    .62012E-04
  20  norm          2.4030        2.0269        .47050E-07    .66998E-04
  21  Prefactor     19.644        6.9416        .39051E-06    .23548E-02
  22  Prefactor     51.433        104.52        .69430E-05   -.17159E-03
  23  norm          .10000E-03    3.9147       -.91700E-06** at limit **
  24  norm          .10000E-03    4.8366       -.67977E-06** at limit **
  25  Prefactor     .10000E-03    4.3365        .57695E-06** at limit **
  26  norm          1.9655        1.7600       -.10413E-06   -.59167E-04
  27  norm          1.0400        1.4407       -.17576E-07    .10292E-04
  28  Prefactor     30.908        3.2742       -.33755E-06   -.17557E-02
  29  Prefactor     .10000E-03    3.5017        .47406E-06** at limit **
  30  Prefactor     .10005E-03    73.132        .16296E-05** at limit **
  31  Prefactor     2.5582        3.5313       -.54158E-06   -.14810E-03
  32  Normalizat    .65014        .18643       -.98601E-06    .54852E-04
  33  Prefactor     1.2408        .23526        .14047E-05    .83072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.12937
  norm       = 0.762826
  Prefactor  = 212.27
  norm       = 5.7603
  Prefactor  = 0.000100041
  norm       = 3.66703
  Prefactor  = 0.000100005
  Prefactor  = 0.000100008
  Prefactor  = 6.54184
  Prefactor  = 0.0001
  Prefactor  = 5.69115
  Prefactor  = 14.724
  Prefactor  = 0.0001
  norm       = 6.46181
  Prefactor  = 3.06468
  norm       = 0.0001
  Prefactor  = 10.169
  Prefactor  = 4.55016
  norm       = 2.40301
  Prefactor  = 19.6439
  Prefactor  = 51.4327
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96553
  norm       = 1.04005
  Prefactor  = 30.9077
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 2.55816
  Normalizat = 0.650144
  Prefactor  = 1.24084
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.997     FROM HESSE     STATUS=OK           781 CALLS     4681 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1294        2.0582        .70638E-02   -1.5416    
   3  norm          .76283        1.5365        .27484E-01   -1.5533    
   4  Prefactor     212.27        180.80        .69376E-03   -1.2784    
   5  norm          5.7603        4.1428        .41797E-02   -1.5228    
   6  Prefactor     .10004E-03    55.623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6670        2.1453        .52734E-02   -1.5325    
   8  Prefactor     .10000E-03    5.5068        .78936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    44.341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5418        13.263        .39223E-02   -1.5196    
  11  Prefactor     .10000E-03    2.8447        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6911        12.968        .42114E-02   -1.5231    
  13  Prefactor     14.724        18.247        .26103E-02   -1.4940    
  14  Prefactor     .10000E-03    2.4642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4618        7.4661        .39467E-02   -1.5200    
  16  Prefactor     3.0647        3.5338        .57930E-02   -1.5358    
  17  norm          .10000E-03    4.0358        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.169        8.1978        .31428E-02   -1.5070    
  19  Prefactor     4.5502        46.945        .46666E-02   -1.5281    
  20  norm          2.4030        2.0389        .66035E-02   -1.5398    
  21  Prefactor     19.644        22.961        .22593E-02   -1.4821    
  22  Prefactor     51.433        107.02        .14027E-02   -1.4272    
  23  norm          .10000E-03    3.8359        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.2068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.9655        1.7590        .73951E-02   -1.5428    
  27  norm          1.0400        1.6585        .24231E-01   -1.5504    
  28  Prefactor     30.908        29.870        .18015E-02   -1.4595    
  29  Prefactor     .10000E-03    3.4913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10005E-03    73.643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.5582        3.5455        .63814E-02   -1.5388    
  32  Normalizat    .65014        .16179        .41624E-01   -1.0590    
  33  Prefactor     1.2408        .20001        .55233E-01   -.85084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60206e-07
Minuit parameter uncertainties:
  1  0.000136231
  2  2.05827
  3  1.53658
  4  181.275
  5  4.14297
  6  0.00303226
  7  2.1453
  8  0.00032853
  9  0.00117481
  10  13.2687
  11  2.08077e-06
  12  12.9742
  13  18.2535
  14  2.27622e-07
  15  7.46719
  16  3.53399
  17  5.25557e-07
  18  8.19866
  19  29.2599
  20  2.03896
  21  22.9709
  22  107.423
  23  2.89943e-05
  24  2.44355e-05
  25  1.8449e-05
  26  1.75904
  27  1.65855
  28  29.8841
  29  1.35941e-05
  30  0.00371172
  31  3.54575
  32  0.161912
  33  0.200136
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  1.017e+01  8.199e+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

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.241e+00  2.001e-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:  6.501e-01  1.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.89
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.34e-05

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) = 5642.8351053
delta logL = 0.16151330239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5642.82445921
delta logL = 0.172159392624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8841       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5501       1.0000          .0000       10.000    
     3 'Normalizat'    .67147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2301       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=   5642.824     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      251 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8817        9.9204        .13447E-03   -.56897E-04
   2  Index         1.5500        .86776        .10710E-01   -.18087E-03
   3  Normalizat    .67148        .17935        .24882E-03    .61865E-04
   4  Prefactor     1.2301        .23284        .24531E-03    .51535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88167
  Index      = 1.55005
  Normalizat = 0.671481
  Prefactor  = 1.23015
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.824     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8817        10.149        .53790E-05   -1.5112    
   2  Index         1.5500        .88727        .21420E-02   -.76148    
   3  Normalizat    .67148        .17952        .99528E-05   -1.0503    
   4  Prefactor     1.2301        .23307        .98123E-05   -.85409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33026e-12
Minuit parameter uncertainties:
  1  10.1505
  2  0.896405
  3  0.179672
  4  0.233269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274968': 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) = 5642.82445918
delta logL = 0.172159429268

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  8.882e+00  1.015e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.550e+00  8.964e-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.230e+00  2.333e-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:  6.715e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.23
Ra Dec: 180.788 60.518
Photon Index (Free Index): 1.55 +/- 0.90
Photon Flux (Free Index): 1.14e-08 +/- 2.19e-08
Energy Flux (Free Index): 3.05e-05 +/- 4.81e-05

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/274968/cmap_HighResolution_250473601_250732801_4FGL_J1203.1+6031_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='3.05e-05', photon_flux_error='2.56e-08', dlogl='1.72e-01', energy_flux='1.66e-05', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-09-04 21:35:49.966881', photon_index_error2='0.90', photon_index2='1.55', ts='7.89', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='4.81e-05', EG='0.65', time_epoch_completed='1630816549.97', return_code='0', job_id='274968', GAL2='1.23', EG2='0.67', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='2.19e-08', ts2='8.23', photon_index='2.12' WHERE bin_id='43' AND source_name='4FGL J1203.1+6031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:35:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 274968: <4FGL_J1203.1+6031_daily_bin43> in cluster <slac> Done

Job <4FGL_J1203.1+6031_daily_bin43> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 21:20:49 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:20:51 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:20:51 2021
Terminated at Sat Sep  4 21:35:50 2021
Results reported at Sat Sep  4 21:35:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_daily_bin43 180.788 60.518 250473601 250732801 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 :                                   816.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             286.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

