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


Performing analysis on: 4FGL_J0203.7+3042_daily_bin1710
RA = 30.9327, Dec = 30.7139
tmin = 682560001, tmax = 682819201
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='2681', job_status='RUN', time_executed='2022-09-16 10:23:08.037606', time_epoch_executed='1663348988.04' WHERE source_name='4FGL J0203.7+3042' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2681/ft1_4FGL_J0203.7+3042_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2681/ft1_4FGL_J0203.7+3042_daily_bin1710.fits outfile=/scratch/kocevski/2681/ft1_filteredMKT_4FGL_J0203.7+3042_daily_bin1710.fits ra=30.9327 dec=30.7139 rad=12.0 tmin=682560001.0 tmax=682819201.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.13
user 3.46
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.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/2681/ft1_filteredMKT_4FGL_J0203.7+3042_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 827

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/2681/ltcube_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.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/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits
.....................!
real 16.29
user 15.63
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/2681/ltcube_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.fits outfile=/scratch/kocevski/2681/expmap_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.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/2681/ltcube_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.fits
.....................!
real 193.64
user 186.88
sys 5.84

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

Setting source of interest to:
4FGL J0203.7+3042 @ 30.9327 30.7139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.fits scfile=/scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits outfile=/scratch/kocevski/2681/cmap_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.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=30.9327 yref=30.7139 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.61
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.fits scfile=/scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits outfile=/scratch/kocevski/2681/cmap_HighResolution_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.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=30.9327 yref=30.7139 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2681/Model_4FGL_J0203.7+3042_daily_bin1710.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/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.fits.....................!
real 97.16
user 94.87
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.fits', '/scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits', expMap='/scratch/kocevski/2681/expmap_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.fits', expCube='/scratch/kocevski/2681/ltcube_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2681/Model_4FGL_J0203.7+3042_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0203.7+3042'

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  3.872e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
256        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.853e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/2681/ft1_filtered_4FGL_J0203.7+3042_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/2681/ft2_4FGL_J0203.7+3042_daily_bin1710.fits
Exposure map: /scratch/kocevski/2681/expmap_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.fits
Exposure cube: /scratch/kocevski/2681/ltcube_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2681/Model_4FGL_J0203.7+3042_daily_bin1710.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) = 8824.3687357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3505       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50247E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .24035E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12846E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .47835       1.0000          .0000       .10000E+07
     6 'Prefactor '    .37552E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .52736E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    16.864       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17621E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .70109E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .86945E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    21.071       1.0000          .0000       .10000E+07
    13 'norm      '    .47192E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6724       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29321E-06   1.0000          .0000       .10000E+07
    16 'norm      '    6.2133       1.0000          .0000       .10000E+07
    17 'norm      '    .46630       1.0000          .0000       .10000E+07
    18 'norm      '    .26480E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.5890       1.0000          .0000       .10000E+07
    20 'Prefactor '    33.910       1.0000          .0000       .10000E+07
    21 'norm      '    3.0788       1.0000          .0000       .10000E+07
    22 'norm      '    .59238       1.0000          .0000       .10000E+07
    23 'Prefactor '    6.6914       1.0000          .0000       .10000E+07
    24 'Prefactor '    .17859E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    .88734       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8824.339     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     2323 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3486        1.8080        .52895E-07    .26135E-02
   2  Prefactor     .33836E-05    196.25       -.16072E-04** at limit **
   3  Prefactor     .61062E-08    19.314        .15036E-05** at limit **
   4  Prefactor      .0000        2.9869        .28082E-06** at limit **
   5  norm          .47831        .48823       -.46746E-07    .97357E-03
   6  Prefactor     .17159E-05    50.877        .23943E-05** at limit **
   7  norm           .0000        .16542        .13041E-06** at limit **
   8  Prefactor     16.854        11.141       -.17549E-06    .19921E-03
   9  Prefactor     .72327E-05    57.323        .55004E-05** at limit **
  10  Prefactor      .0000        1.0403       -.29368E-06** at limit **
  11  Prefactor     .27756E-09    10.491        .90083E-06** at limit **
  12  Prefactor     20.261        23.261        .11610E-06   -.74815E-01
  13  norm          .11102E-09    6.1812        .34590E-06** at limit **
  14  Prefactor     2.5664        4.7190       -.11964E-06    .68657E-03
  15  Prefactor      .0000        1.5653       -.72344E-06** at limit **
  16  norm          6.2243        3.6329        .33496E-07   -.53624E-03
  17  norm          .46548        .58105       -.66214E-07   -.37398E-03
  18  norm          .55511E-09    23.350        .30070E-06** at limit **
  19  Prefactor     1.6180        5.4050       -.15568E-06    .10415E-02
  20  Prefactor     34.037        9.1442        .24383E-06    .45874E-01
  21  norm          3.0581        6.1534       -.19949E-06    .11647E-02
  22  norm          .59151        .91335       -.13889E-06   -.95851E-03
  23  Prefactor     6.6734        8.6367       -.51877E-06   -.49116E-03
  24  Prefactor     .45519E-08    17.729        .14281E-05** at limit **
  25  Normalizat    .88783        .22762        .14042E-04    .18854E-03
  26  Prefactor     1.1138        .12533        .45945E-05    .31831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.34856
  Prefactor  = 3.38357e-06
  Prefactor  = 6.10623e-09
  Prefactor  = 0
  norm       = 0.478305
  Prefactor  = 1.71591e-06
  norm       = 0
  Prefactor  = 16.8544
  Prefactor  = 7.23271e-06
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 20.2612
  norm       = 1.11022e-10
  Prefactor  = 2.56635
  Prefactor  = 0
  norm       = 6.22432
  norm       = 0.465475
  norm       = 5.55112e-10
  Prefactor  = 1.61796
  Prefactor  = 34.0371
  norm       = 3.05812
  norm       = 0.591512
  Prefactor  = 6.67335
  Prefactor  = 4.55191e-09
  Normalizat = 0.887825
  Prefactor  = 1.1138
 **********
 **   18 **HESSE 
 **********

 FCN=   8824.339     FROM HESSE     STATUS=OK           512 CALLS     2835 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3486        1.8107        .43424E-03   -1.5662    
   2  Prefactor     .33836E-05    198.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .61062E-08    19.121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.9961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47831        .45933        .14046E-02   -1.5694    
   6  Prefactor     .17159E-05    55.654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .16432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.854        11.143        .24362E-03   -1.5626    
   9  Prefactor     .72327E-05    70.067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.0394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .27756E-09    10.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.261        47.650        .21791E-03   -1.5618    
  13  norm          .11102E-09    6.0920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5664        4.7363        .62314E-03   -1.5676    
  15  Prefactor      .0000        1.5665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2243        3.7416        .40250E-03   -1.5658    
  17  norm          .46548        .61878        .82174E-03   -1.5694    
  18  norm          .55511E-09    23.464        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6180        5.7925        .84158E-03   -1.5683    
  20  Prefactor     34.037        34.098        .17175E-03   -1.5591    
  21  norm          3.0581        6.5757        .57780E-03   -1.5673    
  22  norm          .59151        .93541        .69913E-03   -1.5693    
  23  Prefactor     6.6734        8.6418        .38767E-03   -1.5656    
  24  Prefactor     .45519E-08    17.852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88783        .19981        .79727E-01   -.96889    
  26  Prefactor     1.1138        .10905        .37087E-01   -.89027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55823e-07
Minuit parameter uncertainties:
  1  1.81071
  2  0.0518696
  3  0.000682084
  4  7.62475e-06
  5  0.459328
  6  0.0195446
  7  1.90705e-07
  8  11.1427
  9  0.045024
  10  1.38333e-06
  11  0.000108657
  12  47.6509
  13  5.71116e-05
  14  4.73627
  15  1.67283e-06
  16  3.74163
  17  0.618785
  18  0.000223023
  19  5.79251
  20  34.0977
  21  6.57576
  22  0.935412
  23  8.6418
  24  0.000571467
  25  0.199973
  26  0.109077
Done.

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

Extracting fit parameters...

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  1.110e-10  5.711e-05  0.000e+00  1.000e+06 ( 1.000e-12)
256        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.853e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.114e+00  1.091e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  8.878e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 30.933 30.714
Photon Flux Upper Limit: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2681/likelihoodResults_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.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) = 8824.33943335
delta logL = -0.000232534881434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8824.3392057
delta logL = -4.88938894705e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37330E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    1.4026       1.0000          .0000       5.0000    
     3 'Normalizat'    .88847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8824.339     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      247 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.2791        .42118E-03** at limit **
   2  alpha         2.6939        1.1470        .37256E-04     .0000    
   3  Normalizat    .88782        1.2239       -.73732E-05    .74898E-04
   4  Prefactor     1.1138        1.1404        .31275E-05    .13475E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.69394
  Normalizat = 0.887825
  Prefactor  = 1.1138
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8824.339     FROM HESSE     STATUS=FAILED         9 CALLS      256 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.2791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4525        1.2197        .37256E-04    .77653E-01
   3  Normalizat    .88782        1.2239       -.73732E-05   -.96889    
   4  Prefactor     1.1138        1.1404        .31275E-05   -.89027    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.95707e-12
Minuit parameter uncertainties:
  1  1.41308e-06
  2  1.1919
  3  1.26575
  4  1.16703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2681': 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): 101
logL (Free Index) = 8824.33920081
delta logL = 3.09228198603e-11

Extracting fit parameters...

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  0.000e+00  1.413e-06  0.000e+00  1.000e+06 ( 1.000e-12)
256        alpha:  2.694e+00  1.192e+00  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  9.853e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.114e+00  1.167e+00  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  8.878e-01  1.266e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 30.933 30.714

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/2681/cmap_HighResolution_682560001_682819201_4FGL_J0203.7+3042_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2022-09-16 10:37:12.914834', job_id='2681', GAL2='1.11', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1663349832.91', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1710' AND source_name='4FGL J0203.7+3042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:37:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 2681: <4FGL_J0203.7+3042_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0203.7+3042_daily_bin1710> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:21:06 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:22:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:22:50 2022
Terminated at Fri Sep 16 10:37:13 2022
Results reported at Fri Sep 16 10:37:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0203.7+3042_daily_bin1710 30.9327 30.7139 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0203.7+3042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   840.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             336.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            967 sec.

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

