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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin1692
RA = 190.984, Dec = -2.3082
tmin = 677894401, tmax = 678153601
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='405390', job_status='RUN', time_executed='2022-06-29 04:29:48.989129', time_epoch_executed='1656502188.99' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405390

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405390/ft1_4FGL_J1243.9-0218_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405390/ft1_4FGL_J1243.9-0218_daily_bin1692.fits outfile=/scratch/kocevski/405390/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1692.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=677894401.0 tmax=678153601.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.46
user 4.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.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/405390/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.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.53
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 938

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405390/ltcube_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.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/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits
.....................!
real 13.37
user 12.96
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405390/ltcube_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.fits outfile=/scratch/kocevski/405390/expmap_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.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/405390/ltcube_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.fits
.....................!
real 192.26
user 186.21
sys 5.60

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

Setting source of interest to:
4FGL J1243.9-0218 @ 190.984 -2.3082

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.fits scfile=/scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits outfile=/scratch/kocevski/405390/cmap_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.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=190.984 yref=-2.3082 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.72
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.fits scfile=/scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits outfile=/scratch/kocevski/405390/cmap_HighResolution_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.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=190.984 yref=-2.3082 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 1.17
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405390/Model_4FGL_J1243.9-0218_daily_bin1692.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/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.fits.....................!
real 76.05
user 74.40
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.fits', '/scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits', expMap='/scratch/kocevski/405390/expmap_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.fits', expCube='/scratch/kocevski/405390/ltcube_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405390/Model_4FGL_J1243.9-0218_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1243.9-0218'

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.163e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/405390/ft1_filtered_4FGL_J1243.9-0218_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/405390/ft2_4FGL_J1243.9-0218_daily_bin1692.fits
Exposure map: /scratch/kocevski/405390/expmap_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.fits
Exposure cube: /scratch/kocevski/405390/ltcube_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405390/Model_4FGL_J1243.9-0218_daily_bin1692.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) = 9871.32096406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50891       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .71207       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94322       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.668       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9211       1.0000         .10000E-03   10000.    
     8 'norm      '    .10529E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    26.569       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57826       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9835       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8729       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.877       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8644       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8186       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92991       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0455       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9871.318     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3548 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51416        4.9271       -.25371E-06   -.14039E-03
   2  Prefactor     .71164        5.3071       -.31944E-06   -.15893E-03
   3  Prefactor     .10000E-03    8.1211        .22463E-06** at limit **
   4  Prefactor     5.7302        45.656        .60218E-06   -.58549E-04
   5  Prefactor     .77827        8.9287        .10297E-05   -.12763E-03
   6  Prefactor     14.665        21.110       -.14443E-06   -.30040E-04
   7  Prefactor     5.9193        7.4982       -.13411E-05   -.11352E-02
   8  norm          .10000E-03    .94977        .94446E-06** at limit **
   9  norm          10.647        3.8569        .57931E-07   -.86882E-03
  10  Prefactor     .10000E-03    23.327        .62432E-08** at limit **
  11  norm          26.564        32.532        .18829E-07   -.55914E-04
  12  Prefactor     .10001E-03    111.62        .23684E-05** at limit **
  13  Prefactor     .10000E-03    1.5771        .10465E-07** at limit **
  14  norm          .10000E-03    .92760E-01   -.29597E-07** at limit **
  15  Prefactor     .10000E-03    7.3138       -.15166E-06** at limit **
  16  Prefactor     .58262        9.1860        .71918E-05    .23516E-03
  17  norm          2.9831        1.3591       -.10398E-07   -.12134E-03
  18  Prefactor     2.8722        5.9812        .79491E-07   -.69742E-06
  19  Prefactor     1.4173        24.304        .55951E-05   -.44028E-03
  20  Prefactor     33.877        28.367       -.51901E-08    .29840E-04
  21  norm          1.8634        26.322        .34226E-05   -.35842E-03
  22  norm          2.8185        .31204        .22744E-07    .49573E-02
  23  Prefactor     .10001E-03    99.330       -.14979E-05** at limit **
  24  norm          .10000E-03    4.6878       -.32246E-07** at limit **
  25  norm          .10000E-03    2.2272       -.17718E-07** at limit **
  26  Prefactor     .10000E-03    8.9879       -.13920E-06** at limit **
  27  Normalizat    .93014        .17759       -.13266E-06   -.39714E-04
  28  Prefactor     1.0455        .12551       -.18285E-06    .43837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.514159
  Prefactor  = 0.711637
  Prefactor  = 0.0001
  Prefactor  = 5.73022
  Prefactor  = 0.778267
  Prefactor  = 14.6648
  Prefactor  = 5.91934
  norm       = 0.000100001
  norm       = 10.6475
  Prefactor  = 0.0001
  norm       = 26.5638
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.582625
  norm       = 2.98308
  Prefactor  = 2.87219
  Prefactor  = 1.41735
  Prefactor  = 33.877
  norm       = 1.86342
  norm       = 2.81846
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.930144
  Prefactor  = 1.04546
 **********
 **   18 **HESSE 
 **********

 FCN=   9871.318     FROM HESSE     STATUS=OK           533 CALLS     4081 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51416        19.183        .41376E-02   -1.5565    
   2  Prefactor     .71164        17.387        .43632E-02   -1.5539    
   3  Prefactor     .10000E-03    8.1205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7302        45.330        .83895E-03   -1.5229    
   5  Prefactor     .77827        67.220        .54306E-02   -1.5532    
   6  Prefactor     14.665        21.101        .10458E-03   -1.4942    
   7  Prefactor     5.9193        7.4614        .16503E-03   -1.5221    
   8  norm          .10000E-03    1.8673        .17900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.647        3.8794        .49104E-03   -1.5055    
  10  Prefactor     .10000E-03    23.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          26.564        32.623        .77719E-04   -1.4677    
  12  Prefactor     .10001E-03    111.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5812        .12184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .11766        .58256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58262        10.361        .37226E-02   -1.5555    
  17  norm          2.9831        1.3568        .74498E-04   -1.5363    
  18  Prefactor     2.8722        5.9654        .23981E-03   -1.5369    
  19  Prefactor     1.4173        42.214        .18160E-02   -1.5470    
  20  Prefactor     33.877        28.450        .68848E-04   -1.4543    
  21  norm          1.8634        33.310        .15256E-02   -1.5435    
  22  norm          2.8185        .31468        .17136E-04   -1.5372    
  23  Prefactor     .10001E-03    99.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.2284        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.0534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .93014        .20551        .31906E-03   -.95409    
  28  Prefactor     1.0455        .14602        .22533E-03   -.91229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29066e-07
Minuit parameter uncertainties:
  1  6.28269
  2  7.03689
  3  3.63182e-05
  4  32.267
  5  14.4818
  6  21.1117
  7  7.46255
  8  6.55112e-05
  9  3.87951
  10  4.56168e-05
  11  32.6448
  12  0.00152198
  13  6.34798e-07
  14  6.38013e-07
  15  2.20055e-05
  16  4.91444
  17  1.35681
  18  5.96661
  19  15.4817
  20  28.4617
  21  15.7667
  22  0.314681
  23  0.00146319
  24  1.57912e-06
  25  4.6443e-07
  26  1.63549e-06
  27  0.205688
  28  0.146072
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  2.872e+00  5.967e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.045e+00  1.461e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  9.301e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 190.984 -2.308
Photon Flux Upper Limit: 7.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405390/likelihoodResults_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.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) = 9870.86907721
delta logL = 0.448629988654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9870.86611599
delta logL = 0.451591204883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71027       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3648       1.0000          .0000       10.000    
     3 'Normalizat'    .88592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0646       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9870.866     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      315 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71107        7.9439        .12101E-01    .19490E-02
   2  Index         3.3652        1.6803        .14961        .17870E-03
   3  Normalizat    .88583        .30784E-01    .73654E-01    .33149E-04
   4  Prefactor     1.0646        .22947E-01    .39122E-01    .33865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.711074
  Index      = 3.36519
  Normalizat = 0.885826
  Prefactor  = 1.06464
 **********
 **   18 **HESSE 
 **********

 FCN=   9870.866     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      348 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71107        33.220        .79942E-04   -1.5539    
   2  Index         3.3652        6.6825        .51540E-02   -.33309    
   3  Normalizat    .88583        .18950        .32594E-03   -.96960    
   4  Prefactor     1.0646        .13794        .22344E-03   -.90605    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.88175e-07
Minuit parameter uncertainties:
  1  9.72552
  2  5.79793
  3  0.189641
  4  0.137989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405390': 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) = 9870.86611411
delta logL = 0.451593087082

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  7.111e-01  9.726e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.365e+00  5.798e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.065e+00  1.380e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  8.858e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 190.984 -2.308
Photon Index (Free Index): 3.37 +/- 5.80
Photon Flux (Free Index): 4.88e-08 +/- 5.62e-08
Energy Flux (Free Index): 8.44e-06 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/405390/cmap_HighResolution_677894401_678153601_4FGL_J1243.9-0218_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', comment='SUCCESS', energy_flux2='8.44e-06', dlogl='4.52e-01', photon_flux2='4.88e-08', job_status='DONE', time_completed='2022-06-29 04:48:55.515273', photon_index_error2='5.80', photon_index2='3.37', ts='0.29', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.67e-08', energy_flux_error2='1.30e-05', EG='0.93', time_epoch_completed='1656503335.52', return_code='0', job_id='405390', GAL2='1.06', EG2='0.89', return_code2='102', photon_flux_error2='5.62e-08', ts2='1.27', photon_index='2.19' WHERE bin_id='1692' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:48:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 405391: <4FGL_J1243.9-0218_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:46 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:29:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:29:06 2022
Terminated at Wed Jun 29 04:45:07 2022
Results reported at Wed Jun 29 04:45:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin1692 190.984 -2.3082 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1243.9-0218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   938.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            16701 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 405390: <4FGL_J1243.9-0218_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:46 2022
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:29:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:29:06 2022
Terminated at Wed Jun 29 04:48:56 2022
Results reported at Wed Jun 29 04:48:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin1692 190.984 -2.3082 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1243.9-0218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1145.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   1189 sec.
    Turnaround time :                            16930 sec.

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

