aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 229 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1203.1+6031_monthly_bin169
RA = 180.788, Dec = 60.518
tmin = 675043201, tmax = 677635201
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='166073', job_status='RUN', time_executed='2022-06-23 02:16:11.401227', time_epoch_executed='1655975771.4' WHERE source_name='4FGL J1203.1+6031' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166073

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166073/ft1_4FGL_J1203.1+6031_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166073/ft2_4FGL_J1203.1+6031_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166073/ft1_4FGL_J1203.1+6031_monthly_bin169.fits outfile=/scratch/kocevski/166073/ft1_filteredMKT_4FGL_J1203.1+6031_monthly_bin169.fits ra=180.788 dec=60.518 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.99
user 27.17
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166073/ft2_4FGL_J1203.1+6031_monthly_bin169.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/166073/ft1_filteredMKT_4FGL_J1203.1+6031_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/166073/ft1_filtered_4FGL_J1203.1+6031_monthly_bin169.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 1.08
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 8595

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166073/ft1_filtered_4FGL_J1203.1+6031_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/166073/ft2_4FGL_J1203.1+6031_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/166073/ltcube_675043201_677635201_4FGL_J1203.1+6031_monthly_bin169.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/166073/ft2_4FGL_J1203.1+6031_monthly_bin169.fits
.....................!
real 137.14
user 136.12
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166073/ft1_filtered_4FGL_J1203.1+6031_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/166073/ft2_4FGL_J1203.1+6031_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/166073/ltcube_675043201_677635201_4FGL_J1203.1+6031_monthly_bin169.fits outfile=/scratch/kocevski/166073/expmap_675043201_677635201_4FGL_J1203.1+6031_monthly_bin169.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/166073/ltcube_675043201_677635201_4FGL_J1203.1+6031_monthly_bin169.fits
.....................!
real 193.24
user 187.78
sys 4.87

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/166073/ft1_filtered_4FGL_J1203.1+6031_monthly_bin169.fits scfile=/scratch/kocevski/166073/ft2_4FGL_J1203.1+6031_monthly_bin169.fits outfile=/scratch/kocevski/166073/cmap_675043201_677635201_4FGL_J1203.1+6031_monthly_bin169.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.80
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166073/ft1_filtered_4FGL_J1203.1+6031_monthly_bin169.fits scfile=/scratch/kocevski/166073/ft2_4FGL_J1203.1+6031_monthly_bin169.fits outfile=/scratch/kocevski/166073/cmap_HighResolution_675043201_677635201_4FGL_J1203.1+6031_monthly_bin169.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.81
user 0.63
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6915       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7530       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41226       1.0000         .10000E-03   10000.    
     5 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.772       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0547       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7715       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0189       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14385E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1757       1.0000         .10000E-03   10000.    
    15 'norm      '    .96227       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0340       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3515       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2517       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.134       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5258       1.0000         .10000E-03   10000.    
    23 'norm      '    .81962       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0511       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0636       1.0000         .10000E-03   10000.    
    26 'norm      '    4.6310       1.0000         .10000E-03   10000.    
    27 'norm      '    1.9424       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.1992       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.2924       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.0321       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98777       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=   92688.10     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     4092 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6914        5.4737       -.24189E-06   -.19376E-03
   2  norm          2.7529        .72093        .15758E-07   -.82000E-03
   3  norm          5.2263        .59630       -.12127E-07    .44539E-05
   4  Prefactor     .36992        6.4124       -.12609E-05    .21571E-03
   5  norm          .10000E-03    .11816        .12945E-07** at limit **
   6  Prefactor     21.758        22.902       -.11597E-05   -.29221E-04
   7  norm          3.0547        .58265       -.78212E-07   -.62773E-03
   8  Prefactor     7.1433        1.7184        .65530E-08   -.49317E-03
   9  Prefactor     54.794        15.080        .77897E-06    .85211E-04
  10  Prefactor     4.7714        4.6098        .27156E-05    .19656E-03
  11  Prefactor     3.0187        1.3107       -.14637E-06   -.14488E-02
  12  Prefactor     11.201        4.5688        .40456E-06    .69162E-04
  13  Prefactor     .10001E-03    .86439        .37775E-07** at limit **
  14  Prefactor     2.1757        .71753       -.10857E-08   -.32017E-03
  15  norm          .96211        1.2684       -.11346E-07   -.44143E-04
  16  Prefactor     1.0339        .65559        .34317E-08   -.18589E-02
  17  norm          .10000E-03    .19604       -.11049E-07** at limit **
  18  Prefactor     3.2504        1.5625        .17415E-09   -.88760E-03
  19  Prefactor     5.3516        3.4828        .49595E-06   -.30946E-02
  20  norm          1.2516        .46913        .13704E-07   -.21849E-02
  21  Prefactor     10.135        4.2438       -.18834E-06   -.12574E-03
  22  Prefactor     6.5245        7.7563       -.31205E-05   -.18649E-03
  23  norm          .81935        .67178        .57250E-07   -.22565E-02
  24  norm          1.0494        1.1076        .57945E-07   -.29533E-02
  25  Prefactor     1.0636        .87046        .22658E-07   -.10042E-02
  26  norm          4.6310        .62659        .67583E-08    .47018E-04
  27  norm          1.9424        .44850        .10533E-08   -.39306E-03
  28  Prefactor     2.1995        5.9687       -.24519E-05   -.20835E-03
  29  Prefactor     1.2921        1.4131        .69161E-07   -.24545E-02
  30  Prefactor     .10000E-03    3.0218       -.63139E-07** at limit **
  31  Prefactor     1.0318        .87494        .53667E-07   -.23770E-02
  32  Normalizat    1.0347        .42895E-01   -.17953E-06    .32292E-03
  33  Prefactor     .98779        .52400E-01    .13298E-06    .38983E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69143
  norm       = 2.75293
  norm       = 5.22635
  Prefactor  = 0.369915
  norm       = 0.0001
  Prefactor  = 21.7577
  norm       = 3.05471
  Prefactor  = 7.14332
  Prefactor  = 54.7941
  Prefactor  = 4.7714
  Prefactor  = 3.01871
  Prefactor  = 11.2012
  Prefactor  = 0.000100006
  Prefactor  = 2.17574
  norm       = 0.96211
  Prefactor  = 1.03392
  norm       = 0.0001
  Prefactor  = 3.25037
  Prefactor  = 5.35158
  norm       = 1.25165
  Prefactor  = 10.1348
  Prefactor  = 6.52448
  norm       = 0.819348
  norm       = 1.04941
  Prefactor  = 1.06356
  norm       = 4.63095
  norm       = 1.94235
  Prefactor  = 2.19954
  Prefactor  = 1.29213
  Prefactor  = 0.0001
  Prefactor  = 1.03182
  Normalizat = 1.03471
  Prefactor  = 0.987794
 **********
 **   18 **HESSE 
 **********

 FCN=   92688.10     FROM HESSE     STATUS=OK           745 CALLS     4837 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6914        5.5490        .16837E-03   -1.5231    
   2  norm          2.7529        .72830        .10123E-03   -1.5376    
   3  norm          5.2263        .59622        .76949E-04   -1.5251    
   4  Prefactor     .36992        6.2813        .29870       -1.5586    
   5  norm          .10000E-03    .34636        .30683E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.758        22.908        .85842E-04   -1.4775    
   7  norm          3.0547        .58208        .95412E-04   -1.5358    
   8  Prefactor     7.1433        1.9639        .15008E-03   -1.5173    
   9  Prefactor     54.794        15.084        .54189E-04   -1.4226    
  10  Prefactor     4.7714        4.6064        .18419E-03   -1.5271    
  11  Prefactor     3.0187        1.3205        .22020E-03   -1.5360    
  12  Prefactor     11.201        4.5631        .11970E-03   -1.5038    
  13  Prefactor     .10001E-03    .80933        .97483E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1757        .71703        .14356E-03   -1.5413    
  15  norm          .96211        1.2684        .52127E-04   -1.5512    
  16  Prefactor     1.0339        .65996        .19121E-03   -1.5505    
  17  norm          .10000E-03    .19620        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2504        1.5586        .22464E-03   -1.5347    
  19  Prefactor     5.3516        4.2735        .86863E-03   -1.5245    
  20  norm          1.2516        .46588        .12218E-03   -1.5484    
  21  Prefactor     10.135        4.2456        .12587E-03   -1.5071    
  22  Prefactor     6.5245        7.7459        .15710E-03   -1.5197    
  23  norm          .81935        .63482        .22440E-02   -1.5527    
  24  norm          1.0494        1.1772        .34476E-03   -1.5503    
  25  Prefactor     1.0636        .86397        .24349E-03   -1.5502    
  26  norm          4.6310        .62244        .83260E-04   -1.5278    
  27  norm          1.9424        .44782        .95125E-04   -1.5429    
  28  Prefactor     2.1995        5.9998        .27745E-03   -1.5411    
  29  Prefactor     1.2921        1.4970        .38888E-03   -1.5481    
  30  Prefactor     .10000E-03    3.0313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.0318        .88894        .26187E-03   -1.5505    
  32  Normalizat    1.0347        .50116E-01    .22180E-03   -.91876    
  33  Prefactor     .98779        .60884E-01    .28541E-03   -.93138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03605e-07
Minuit parameter uncertainties:
  1  5.54951
  2  0.728305
  3  0.596225
  4  3.0486
  5  1.12547e-06
  6  22.9172
  7  0.582081
  8  1.96391
  9  15.0848
  10  4.60673
  11  1.32054
  12  4.56326
  13  0.000140176
  14  0.717036
  15  1.26843
  16  0.659961
  17  1.56328e-08
  18  1.55861
  19  4.27374
  20  0.465882
  21  4.24573
  22  7.74713
  23  0.634821
  24  1.17728
  25  0.86398
  26  0.622445
  27  0.447821
  28  6.00146
  29  1.49702
  30  2.75408e-08
  31  0.888951
  32  0.0501186
  33  0.0608886
Done.

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

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.250e+00  1.559e+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:  9.878e-01  6.089e-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.035e+00  5.012e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.65
Ra Dec: 180.788 60.518
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.01e-08 +/- 4.86e-09
Energy Flux (Fixed Index): 5.32e-06 +/- 2.55e-06

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) = 92688.095694
delta logL = 0.000681693796651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 92688.0954811
delta logL = 0.000894673750736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2174       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1352       1.0000          .0000       10.000    
     3 'Normalizat'    1.0345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98792       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   92688.10     FROM MIGRAD    STATUS=FAILED        77 CALLS      230 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2174        1.7580        .22585E-03   -.42444E-03
   2  Index         2.1352        .34648        .10656E-01    .19924E-02
   3  Normalizat    1.0345        .47792E-01    .22182E-03   -.13276E-02
   4  Prefactor     .98792        .60254E-01    .28539E-03   -.10893E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   92688.10     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      299 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2174        1.7580        .31006E-04   -1.5349    
   2  Index         2.1352        .34648        .39804E-03   -.61010    
   3  Normalizat    1.0345        .47792E-01    .58352E-04   -.91883    
   4  Prefactor     .98792        .60254E-01    .89246E-04   -.93133    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   92688.10     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      327 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2174        1.6763        .90341E-05   -.72485E-04
   2  Index         2.1352        .33047        .21312E-02    .45236E-05
   3  Normalizat    1.0345        .47805E-01    .88728E-05   -.82003E-05
   4  Prefactor     .98792        .60293E-01    .11416E-04   -.31868E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21741
  Index      = 2.13524
  Normalizat = 1.03452
  Prefactor  = 0.987924
 **********
 **   18 **HESSE 
 **********

 FCN=   92688.10     FROM HESSE     STATUS=OK            23 CALLS      350 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2174        1.6618        .18068E-05   -1.5349    
   2  Index         2.1352        .32753        .85248E-04   -.61010    
   3  Normalizat    1.0345        .47851E-01    .17746E-05   -.91883    
   4  Prefactor     .98792        .60363E-01    .22831E-05   -.93133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0446e-13
Minuit parameter uncertainties:
  1  1.66178
  2  0.32788
  3  0.0478528
  4  0.0603674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166073': 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) = 92688.0954811
delta logL = 0.000894674041774

Extracting fit parameters...

4FGL J1203.1+6031
   Spectrum: PowerLaw
391    Prefactor:  3.217e+00  1.662e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.135e+00  3.279e-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.879e-01  6.037e-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.035e+00  4.785e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 180.788 60.518
Photon Index (Free Index): 2.14 +/- 0.33
Photon Flux (Free Index): 1.03e-08 +/- 6.01e-09
Energy Flux (Free Index): 5.25e-06 +/- 2.86e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/166073/cmap_HighResolution_675043201_677635201_4FGL_J1203.1+6031_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-08', energy_flux2='5.25e-06', photon_flux_error='4.86e-09', dlogl='8.95e-04', energy_flux='5.32e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2022-06-23 05:00:59.543883', photon_index_error2='0.33', photon_index2='2.14', ts='7.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.86e-06', EG='1.03', time_epoch_completed='1655985659.54', return_code='0', job_id='166073', GAL2='0.99', EG2='1.03', return_code2='0', energy_flux_error='2.55e-06', photon_flux_error2='6.01e-09', ts2='7.65', photon_index='2.12' WHERE bin_id='169' AND source_name='4FGL J1203.1+6031' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:00:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 166073: <4FGL_J1203.1+6031_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1203.1+6031_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:35:33 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:12:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:12:11 2022
Terminated at Thu Jun 23 05:01:00 2022
Results reported at Thu Jun 23 05:01:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.1+6031_monthly_bin169 180.788 60.518 675043201 677635201 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 :                                   9853.00 sec.
    Max Memory :                                 773 MB
    Average Memory :                             447.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10129 sec.
    Turnaround time :                            12327 sec.

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

