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 154 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17510
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1203.3+1119_weekly_bin759
RA = 180.833, Dec = 11.3231
tmin = 698025601, tmax = 698630401
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='589683', job_status='RUN', time_executed='2023-02-21 03:33:05.602339', time_epoch_executed='1676979185.6' WHERE source_name='4FGL J1203.3+1119' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589683

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589683/ft1_4FGL_J1203.3+1119_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589683/ft1_4FGL_J1203.3+1119_weekly_bin759.fits outfile=/scratch/kocevski/589683/ft1_filteredMKT_4FGL_J1203.3+1119_weekly_bin759.fits ra=180.833 dec=11.3231 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.60
user 8.28
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.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/589683/ft1_filteredMKT_4FGL_J1203.3+1119_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.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.56
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 501

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/589683/ltcube_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.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/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits
.....................!
real 27.56
user 27.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/589683/ltcube_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.fits outfile=/scratch/kocevski/589683/expmap_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.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/589683/ltcube_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.fits
.....................!
real 192.38
user 186.80
sys 5.26

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1203.3+1119 @ 180.833 11.3231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.fits scfile=/scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits outfile=/scratch/kocevski/589683/cmap_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.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.833 yref=11.3231 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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.fits scfile=/scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits outfile=/scratch/kocevski/589683/cmap_HighResolution_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.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.833 yref=11.3231 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589683/Model_4FGL_J1203.3+1119_weekly_bin759.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/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.fits.....................!
real 52.99
user 51.67
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.fits', '/scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits', expMap='/scratch/kocevski/589683/expmap_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.fits', expCube='/scratch/kocevski/589683/ltcube_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/589683/Model_4FGL_J1203.3+1119_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.3+1119'

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.766e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/589683/ft1_filtered_4FGL_J1203.3+1119_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/589683/ft2_4FGL_J1203.3+1119_weekly_bin759.fits
Exposure map: /scratch/kocevski/589683/expmap_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.fits
Exposure cube: /scratch/kocevski/589683/ltcube_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/589683/Model_4FGL_J1203.3+1119_weekly_bin759.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5652.76546712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59998E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16598E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    60.586       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.6196       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19103E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18753E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.1511       1.0000          .0000       .10000E+07
     8 'Prefactor '    .53218E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14429E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58342E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.6900       1.0000          .0000       .10000E+07
    12 'Prefactor '    .33661E-02   1.0000          .0000       .10000E+07
    13 'norm      '    3.5176       1.0000          .0000       .10000E+07
    14 'Prefactor '    26.737       1.0000          .0000       .10000E+07
    15 'norm      '    .12038       1.0000          .0000       .10000E+07
    16 'norm      '    .45677E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .44091       1.0000          .0000       .10000E+07
    18 'Prefactor '    41.349       1.0000          .0000       .10000E+07
    19 'norm      '    1.5574       1.0000          .0000       .10000E+07
    20 'Normalizat'    .75177       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0550       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5651.054     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1072 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.8548        .25974E-07** at limit **
   2  Prefactor     .16653E-09    4.7235        .70706E-07** at limit **
   3  Prefactor     62.064        91.621       -.22062E-06   -.80719E-02
   4  Prefactor     8.5877        9.9183        .60249E-08    .90293E-03
   5  Prefactor     .88907E-06    46.274        .42782E-06** at limit **
   6  Prefactor     .87819E-07    10.511        .16335E-06** at limit **
   7  Prefactor     2.1528        3.8572       -.11079E-06   -.13811E-02
   8  Prefactor      .0000        34.771       -.10474E-06** at limit **
   9  Prefactor     .10358E-06    9.9613        .15476E-06** at limit **
  10  Prefactor      .0000        3.4880       -.43995E-07** at limit **
  11  Prefactor     2.6910        2.4242       -.51740E-08   -.26680E-03
  12  Prefactor     .50515E-08    13.402       -.29168E-06** at limit **
  13  norm          3.5196        3.2332        .10226E-06    .29619E-02
  14  Prefactor     26.546        7.5390        .13303E-07    .15586    
  15  norm          .12045        .18480       -.13126E-07** at limit **
  16  norm          .55511E-09    21.246       -.11576E-06** at limit **
  17  norm          .44091        .42883       -.76403E-08    .46984E-03
  18  Prefactor     41.509        14.489        .64315E-08    .39899E-01
  19  norm          1.5591        1.4859       -.15763E-07   -.65164E-03
  20  Normalizat    .75138        .21156        .27814E-05   -.99629E-05
  21  Prefactor     1.0550        .19405       -.24395E-05   -.71071E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 62.0636
  Prefactor  = 8.58766
  Prefactor  = 8.89067e-07
  Prefactor  = 8.78186e-08
  Prefactor  = 2.15279
  Prefactor  = 0
  Prefactor  = 1.03584e-07
  Prefactor  = 0
  Prefactor  = 2.69099
  Prefactor  = 5.05151e-09
  norm       = 3.51955
  Prefactor  = 26.5463
  norm       = 0.120452
  norm       = 5.55112e-10
  norm       = 0.440905
  Prefactor  = 41.5092
  norm       = 1.55906
  Normalizat = 0.751376
  Prefactor  = 1.05502
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.054     FROM HESSE     STATUS=OK           367 CALLS     1439 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.8590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    4.7196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.064        91.712        .12848E-03   -1.5550    
   4  Prefactor     8.5877        9.9238        .34119E-03   -1.5649    
   5  Prefactor     .88907E-06    5.2211        .60174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .87819E-07    10.598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1528        3.8757        .70224E-03   -1.5679    
   8  Prefactor      .0000        34.763        .15414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10358E-06    10.094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.4317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6910        2.4405        .62094E-03   -1.5675    
  12  Prefactor     .50515E-08    13.409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5196        3.2810        .53877E-03   -1.5670    
  14  Prefactor     26.546        28.525        .19343E-03   -1.5605    
  15  norm          .12045        .20101        .87255E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55511E-09    21.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .44091        .44557        .84892E-03   -1.5695    
  18  Prefactor     41.509        14.540        .15553E-03   -1.5579    
  19  norm          1.5591        1.5113        .85258E-03   -1.5683    
  20  Normalizat    .75138        .18275        .61489E-01   -1.0190    
  21  Prefactor     1.0550        .16635        .39625E-01   -.90917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7777e-07
Minuit parameter uncertainties:
  1  1.52296e-05
  2  5.70446e-05
  3  91.7143
  4  9.92378
  5  0.00430906
  6  0.00192964
  7  3.87567
  8  5.3176e-05
  9  0.00204501
  10  2.58741e-07
  11  2.44049
  12  0.000521206
  13  3.28097
  14  28.5252
  15  0.201012
  16  0.000221194
  17  0.445569
  18  14.5398
  19  1.5113
  20  0.1829
  21  0.166432
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  5.318e-05  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.055e+00  1.664e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  7.514e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589683/likelihoodResults_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5651.06778472
delta logL = -0.0137299995367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5651.05405815
delta logL = -3.4301310734e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30807E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .55577       1.0000          .0000       10.000    
     3 'Normalizat'    .75172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0547       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5651.054     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      213 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15654E-07    43.640       -.10006E-05** at limit **
   2  Index         2.4100        5.0422        .72274E-04    .84500E-09
   3  Normalizat    .75138        .20370        .40035E-04    .12232E-03
   4  Prefactor     1.0550        .19434       -.36442E-04    .14936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56541e-08
  Index      = 2.41004
  Normalizat = 0.751376
  Prefactor  = 1.05502
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.054     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      248 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15654E-07    2.5584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4100        5.0955        .40447       -.54450    
   3  Normalizat    .75138        .12086E-02    .61489E-01   -1.0190    
   4  Prefactor     1.0550        .11487E-02    .39643E-01   -.90917    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.23994e-11
Minuit parameter uncertainties:
  1  0.000400149
  2  5705.99
  3  0.00120865
  4  0.00114868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589683': 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) = 5651.05405472
delta logL = -2.4101609597e-10

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.565e-08  4.001e-04  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  2.410e+00  5.706e+03  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.055e+00  1.149e-03  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  7.514e-01  1.209e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 180.833 11.323

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/589683/cmap_HighResolution_698025601_698630401_4FGL_J1203.3+1119_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2023-02-21 03:42:46.629246', job_id='589683', GAL2='1.06', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1676979766.63', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-2.41e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='759' AND source_name='4FGL J1203.3+1119' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:42:46 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 589683: <4FGL_J1203.3+1119_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1203.3+1119_weekly_bin759> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 03:30:20 2023
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:30:21 2023
Terminated at Tue Feb 21 03:42:47 2023
Results reported at Tue Feb 21 03:42:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_weekly_bin759 180.833 11.3231 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.3+1119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

