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


Performing analysis on: 4FGL_J0202.7+4204_daily_bin1776
RA = 30.6862, Dec = 42.0714
tmin = 699667201, tmax = 699926401
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='823919', job_status='RUN', time_executed='2023-03-08 00:05:47.712344', time_epoch_executed='1678262747.71' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823919/ft1_4FGL_J0202.7+4204_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823919/ft1_4FGL_J0202.7+4204_daily_bin1776.fits outfile=/scratch/kocevski/823919/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1776.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=699667201.0 tmax=699926401.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 3.96
user 3.70
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.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/823919/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.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.49
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 1037

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/823919/ltcube_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.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/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits
.....................!
real 12.01
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/823919/ltcube_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.fits outfile=/scratch/kocevski/823919/expmap_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.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/823919/ltcube_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.fits
.....................!
real 190.81
user 185.55
sys 4.81

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 176 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0202.7+4204 @ 30.6862 42.0714

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.fits scfile=/scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits outfile=/scratch/kocevski/823919/cmap_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.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.6862 yref=42.0714 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.fits scfile=/scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits outfile=/scratch/kocevski/823919/cmap_HighResolution_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.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.6862 yref=42.0714 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/823919/Model_4FGL_J0202.7+4204_daily_bin1776.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.fits.....................!
real 116.08
user 114.68
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.fits', '/scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits', expMap='/scratch/kocevski/823919/expmap_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.fits', expCube='/scratch/kocevski/823919/ltcube_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823919/Model_4FGL_J0202.7+4204_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0202.7+4204'

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  4.935e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/823919/ft1_filtered_4FGL_J0202.7+4204_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/823919/ft2_4FGL_J0202.7+4204_daily_bin1776.fits
Exposure map: /scratch/kocevski/823919/expmap_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.fits
Exposure cube: /scratch/kocevski/823919/ltcube_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823919/Model_4FGL_J0202.7+4204_daily_bin1776.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) = 10682.5860084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.652       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.147       1.0000          .0000       .10000E+07
     3 'norm      '    .22163       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22693E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .15704E-06   1.0000          .0000       .10000E+07
     6 'norm      '    2.7269       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.3967       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10856E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    34.680       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
    11 'norm      '    1.1440       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.1963       1.0000          .0000       .10000E+07
    13 'norm      '    .11563E-05   1.0000          .0000       .10000E+07
    14 'norm      '    1.2761       1.0000          .0000       .10000E+07
    15 'norm      '    .16205       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7739       1.0000          .0000       .10000E+07
    17 'norm      '    .64521E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .33520E-05   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1152       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0130       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10682.55     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1563 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.706        7.7112        .73773E-07    .45541E-01
   2  Prefactor     11.557        13.064       -.14341E-06    .35318E-02
   3  norm          .21268        5.4773        .32635E-06** at limit **
   4  Prefactor     .10547E-08    17.864        .71915E-06** at limit **
   5  norm           .0000        .36788       -.28419E-07** at limit **
   6  norm          2.7279        .93956        .51160E-07   -.17601E-02
   7  Prefactor     1.4206        14.869       -.98176E-06    .16077E-03
   8  Prefactor      .0000        1.5314        .97905E-07** at limit **
   9  Prefactor     35.225        28.540        .67794E-06    .57237E-02
  10  Prefactor     .22204E-08    19.038        .21217E-05** at limit **
  11  norm          1.1499        4.5310        .50573E-06   -.26460E-02
  12  Prefactor     6.1380        6.9242       -.11426E-06    .27363E-01
  13  norm           .0000        1.4880       -.35543E-08** at limit **
  14  norm          1.2768        .52174       -.28326E-07   -.56843E-03
  15  norm          .16214        .15123       -.18494E-07** at limit **
  16  Prefactor     3.7529        3.8152        .20025E-06    .19320E-02
  17  norm           .0000        1.9785        .36995E-07** at limit **
  18  norm           .0000        2.0687        .24322E-06** at limit **
  19  Normalizat    1.1144        .21493        .19979E-04   -.47530E-04
  20  Prefactor     1.0131        .91910E-01   -.57711E-05   -.65051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7056
  Prefactor  = 11.5568
  norm       = 0.212679
  Prefactor  = 1.05471e-09
  norm       = 0
  norm       = 2.72786
  Prefactor  = 1.42064
  Prefactor  = 0
  Prefactor  = 35.2252
  Prefactor  = 2.22045e-09
  norm       = 1.14993
  Prefactor  = 6.13798
  norm       = 0
  norm       = 1.27675
  norm       = 0.16214
  Prefactor  = 3.75288
  norm       = 0
  norm       = 0
  Normalizat = 1.11443
  Prefactor  = 1.01311
 **********
 **   18 **HESSE 
 **********

 FCN=   10682.55     FROM HESSE     STATUS=OK           339 CALLS     1902 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.706        9.9247        .21016E-03   -1.5613    
   2  Prefactor     11.557        13.093        .29982E-03   -1.5640    
   3  norm          .21268        1.7383        .42330E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10547E-08    17.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .36627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7279        .94186        .61641E-03   -1.5675    
   7  Prefactor     1.4206        14.842        .91829E-03   -1.5684    
   8  Prefactor      .0000        1.5245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.225        28.694        .16983E-03   -1.5589    
  10  Prefactor     .22204E-08    19.121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1499        6.9586        .10848E-02   -1.5687    
  12  Prefactor     6.1380        11.383        .40306E-03   -1.5658    
  13  norm           .0000        1.4805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2768        .52628        .98320E-03   -1.5685    
  15  norm          .16214        .14136        .85225E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7529        3.8210        .51943E-03   -1.5669    
  17  norm           .0000        1.9777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        2.0658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1144        .19552        .83711E-01   -.89290    
  20  Prefactor     1.0131        .81554E-01    .42925E-01   -.92294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3363e-08
Minuit parameter uncertainties:
  1  9.92466
  2  13.0926
  3  1.21606
  4  0.000278181
  5  1.67964e-07
  6  0.941864
  7  9.18374
  8  5.32347e-06
  9  28.6945
  10  0.000410744
  11  5.65753
  12  11.3826
  13  1.77069e-06
  14  0.526283
  15  0.141363
  16  3.82101
  17  4.90269e-06
  18  1.01207e-06
  19  0.195647
  20  0.0815641
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  2.220e-09  4.107e-04  0.000e+00  1.000e+06 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.013e+00  8.156e-02  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.114e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 30.686 42.071
Photon Flux Upper Limit: 5.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823919/likelihoodResults_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.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) = 10682.5779667
delta logL = -0.0250325701345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10682.5529342
delta logL = -4.54947439721e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19090E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .98314       1.0000          .0000       10.000    
     3 'Normalizat'    1.1144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10682.55     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      203 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24425E-08    21.668       -.67411E-05** at limit **
   2  Index         2.0582        5.8821        .37362E-03    .23669E-09
   3  Normalizat    1.1144        .20221       -.60073E-04   -.22969E-03
   4  Prefactor     1.0131        .90191E-01    .13211E-04   -.45050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44249e-09
  Index      = 2.05822
  Normalizat = 1.11443
  Prefactor  = 1.01311
 **********
 **   18 **HESSE 
 **********

 FCN=   10682.55     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      238 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24425E-08    .33028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0582        8.0395        .46056       -.62902    
   3  Normalizat    1.1144        .63098E-03    .83711E-01   -.89290    
   4  Prefactor     1.0131        .28036E-03    .42905E-01   -.92294    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25553e-12
Minuit parameter uncertainties:
  1  5.65236e-05
  2  2789.04
  3  0.000630981
  4  0.000280357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823919': 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) = 10682.5529341
delta logL = -3.27418092638e-11

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  2.442e-09  5.652e-05  0.000e+00  1.000e+06 ( 1.000e-14)
275        Index:  2.058e+00  2.789e+03  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.013e+00  2.804e-04  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.114e+00  6.310e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 30.686 42.071

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/823919/cmap_HighResolution_699667201_699926401_4FGL_J0202.7+4204_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2023-03-08 00:18:36.576278', job_id='823919', GAL2='1.01', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1678263516.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-3.27e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1776' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:18:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 823919: <4FGL_J0202.7+4204_daily_bin1776> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 00:04:53 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:04:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:04:58 2023
Terminated at Wed Mar  8 00:18:37 2023
Results reported at Wed Mar  8 00:18:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1776 30.6862 42.0714 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0202.7+4204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            824 sec.

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

