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: DanUser defined signal 2
ocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1542.3+1801_weekly_bin728
RA = 235.579, Dec = 18.0322
tmin = 679276801, tmax = 679881601
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='644640', job_status='RUN', time_executed='2022-07-19 00:46:52.363207', time_epoch_executed='1658216812.36' WHERE source_name='4FGL J1542.3+1801' and cadence='weekly' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644640

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644640/ft1_4FGL_J1542.3+1801_weekly_bin728.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644640/ft1_4FGL_J1542.3+1801_weekly_bin728.fits outfile=/scratch/kocevski/644640/ft1_filteredMKT_4FGL_J1542.3+1801_weekly_bin728.fits ra=235.579 dec=18.0322 rad=12.0 tmin=679276801.0 tmax=679881601.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 7.50
user 7.20
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.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/644640/ft1_filteredMKT_4FGL_J1542.3+1801_weekly_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.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.38
sys 0.16

Number of photons that the gtmktime cut: 1729

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/644640/ltcube_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.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/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits
.....................!
real 27.37
user 26.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/644640/ltcube_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.fits outfile=/scratch/kocevski/644640/expmap_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.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/644640/ltcube_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.fits
.....................!
real 193.03
user 187.40
sys 5.23

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

Setting source of interest to:
4FGL J1542.3+1801 @ 235.579 18.0322

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.fits scfile=/scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits outfile=/scratch/kocevski/644640/cmap_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.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=235.579 yref=18.0322 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.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.fits scfile=/scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits outfile=/scratch/kocevski/644640/cmap_HighResolution_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.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=235.579 yref=18.0322 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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644640/Model_4FGL_J1542.3+1801_weekly_bin728.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/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.fits.....................!
real 119.69
user 118.12
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.fits', '/scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits', expMap='/scratch/kocevski/644640/expmap_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.fits', expCube='/scratch/kocevski/644640/ltcube_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/644640/Model_4FGL_J1542.3+1801_weekly_bin728.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1542.3+1801'

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  4.061e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/644640/ft1_filtered_4FGL_J1542.3+1801_weekly_bin728.fits
Spacecraft file(s): /scratch/kocevski/644640/ft2_4FGL_J1542.3+1801_weekly_bin728.fits
Exposure map: /scratch/kocevski/644640/expmap_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.fits
Exposure cube: /scratch/kocevski/644640/ltcube_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/644640/Model_4FGL_J1542.3+1801_weekly_bin728.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) = 18209.8662724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7502       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3873       1.0000         .10000E-03   10000.    
     4 'norm      '    .65085       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66817       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70725       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0002       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.088       1.0000         .10000E-03   10000.    
    14 'norm      '    8.1502       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4255       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    54.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25023E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1682       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18209.83     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2084 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7503        12.751        .82092E-06   -.32306E-03
   2  Prefactor     .10000E-03    5.4573       -.10734E-06** at limit **
   3  Prefactor     6.3873        5.0795        .24752E-09   -.10962E-03
   4  norm          .65085        .18066        .23613E-08   -.22723E-03
   5  norm          .10000E-03    7.0187       -.85815E-07** at limit **
   6  Prefactor     .10000E-03    11.445       -.12253E-06** at limit **
   7  Prefactor     .66830        1.6634        .19920E-06   -.77192E-03
   8  Prefactor     13.972        21.301        .33760E-06    .96697E-05
   9  Prefactor     .70718        .98985        .26232E-06   -.46475E-03
  10  Prefactor     .10000E-03    8.6433       -.72396E-07** at limit **
  11  norm          1.0005        1.3292       -.16507E-07   -.10639E-03
  12  Prefactor     11.129        13.863        .50058E-06   -.21623E-03
  13  Prefactor     19.082        27.939       -.37314E-05   -.20655E-03
  14  norm          8.1499        5.1371        .38396E-07   -.77524E-04
  15  norm          3.4256        1.0913        .54592E-08   -.95305E-05
  16  Prefactor     .10000E-03    1.6550       -.81196E-07** at limit **
  17  norm          54.275        12.348        .71251E-07    .28620E-05
  18  Prefactor     .10000E-03    2.2419        .79305E-07** at limit **
  19  Normalizat    1.1682        .14055       -.20395E-06   -.79248E-04
  20  Prefactor     .98577        .77245E-01   -.22895E-07   -.11489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.75029
  Prefactor  = 0.0001
  Prefactor  = 6.38725
  norm       = 0.650854
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.6683
  Prefactor  = 13.972
  Prefactor  = 0.707181
  Prefactor  = 0.0001
  norm       = 1.00051
  Prefactor  = 11.1285
  Prefactor  = 19.0821
  norm       = 8.14991
  norm       = 3.42558
  Prefactor  = 0.0001
  norm       = 54.2755
  Prefactor  = 0.000100001
  Normalizat = 1.16817
  Prefactor  = 0.985768
 **********
 **   18 **HESSE 
 **********

 FCN=   18209.83     FROM HESSE     STATUS=OK           305 CALLS     2389 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7503        13.751        .67753E-03   -1.5116    
   2  Prefactor     .10000E-03    5.4597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3873        5.0847        .15881E-03   -1.5202    
   4  norm          .65085        .17991        .29207E-04   -1.5547    
   5  norm          .10000E-03    7.0200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .66830        2.0250        .28360E-02   -1.5544    
   8  Prefactor     13.972        21.405        .10716E-03   -1.4960    
   9  Prefactor     .70718        .92593        .16568E-02   -1.5540    
  10  Prefactor     .10000E-03    8.6730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0005        1.3285        .52666E-04   -1.5508    
  12  Prefactor     11.129        14.250        .60048E-03   -1.5041    
  13  Prefactor     19.082        29.278        .91674E-04   -1.4834    
  14  norm          8.1499        5.1342        .14044E-03   -1.5137    
  15  norm          3.4256        1.0919        .76944E-04   -1.5338    
  16  Prefactor     .10000E-03    1.6678        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          54.275        12.345        .54445E-04   -1.4233    
  18  Prefactor     .10000E-03    49.355        .38546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1682        .17037        .31370E-03   -.87592    
  20  Prefactor     .98577        .94366E-01    .19157E-03   -.93205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66662e-08
Minuit parameter uncertainties:
  1  13.7558
  2  6.18613e-06
  3  5.08501
  4  0.179906
  5  5.49085e-06
  6  1.07693e-05
  7  2.02523
  8  21.4164
  9  0.925948
  10  5.86482e-06
  11  1.3285
  12  14.2544
  13  29.2999
  14  5.13449
  15  1.09187
  16  2.56834e-06
  17  12.3451
  18  0.000538099
  19  0.170446
  20  0.0943821
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.000e-04  5.865e-06  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.858e-01  9.438e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.168e+00  1.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 235.579 18.032
Photon Flux Upper Limit: 4.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644640/likelihoodResults_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18209.8296147
delta logL = -0.000549608354049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18209.8290651
delta logL = 1.71676219907e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5137       1.0000          .0000       10.000    
     3 'Normalizat'    1.1682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   18209.83     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    109.61        .18142E-02** at limit **
   2  Index         2.4811        6.2111        .50000        .69746E-05
   3  Normalizat    1.1682        .12172E-01    .31370E-03   -.31892E-05
   4  Prefactor     .98577        .69352E-02    .19157E-03   -.21364E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100343
  Index      = 2.48112
  Normalizat = 1.16817
  Prefactor  = 0.985768
 **********
 **   18 **HESSE 
 **********

 FCN=   18209.83     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10034E-03    473.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4811        8.3283        .50000       -.52796    
   3  Normalizat    1.1682        .26788E-01    .12548E-04   -.87592    
   4  Prefactor     .98577        .15263E-01    .76629E-05   -.93205    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.20637e-09
Minuit parameter uncertainties:
  1  0.0256816
  2  916.208
  3  0.0267881
  4  0.0152628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644640': 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) = 18209.829065
delta logL = 5.58720785193e-08

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.003e-04  2.568e-02  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.481e+00  9.162e+02  0.000e+00  1.000e+01 (-1.000e+00)
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.858e-01  1.526e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.168e+00  2.679e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.579 18.032

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/644640/cmap_HighResolution_679276801_679881601_4FGL_J1542.3+1801_weekly_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.35e-08', time_completed='2022-07-19 01:05:24.068135', job_id='644640', GAL2='0.99', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1658217924.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='728' AND source_name='4FGL J1542.3+1801' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 19 01:05:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 644640: <4FGL_J1542.3+1801_weekly_bin728> in cluster <slac> Done

Job <4FGL_J1542.3+1801_weekly_bin728> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Jul 19 00:45:28 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 19 00:45:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 19 00:45:29 2022
Terminated at Tue Jul 19 01:05:24 2022
Results reported at Tue Jul 19 01:05:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_weekly_bin728 235.579 18.0322 679276801 679881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1542.3+1801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1112.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1195 sec.
    Turnaround time :                            1196 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 633906: <4FGL_J1542.3+1801_weekly_bin728> in cluster <slac> Exited

Job <4FGL_J1542.3+1801_weekly_bin728> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jul 19 00:06:53 2022
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 19 00:07:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 19 00:07:10 2022
Terminated at Tue Jul 19 16:47:29 2022
Results reported at Tue Jul 19 16:47:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_weekly_bin728 235.579 18.0322 679276801 679881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1542.3+1801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

TERM_RUNLIMIT: job killed after reaching LSF run time limit.
Exited with exit code 140.

Resource usage summary:

    CPU time :                                   23.41 sec.
    Max Memory :                                 47 MB
    Average Memory :                             46.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              4
    Max Threads :                                19
    Run time :                                   60018 sec.
    Turnaround time :                            60036 sec.

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

