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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1707
RA = 341.491, Dec = 15.7479
tmin = 681782401, tmax = 682041601
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='551528', job_status='RUN', time_executed='2022-08-13 00:36:11.085010', time_epoch_executed='1660376171.09' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551528

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551528/ft1_4FGL_J2245.9+1544_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551528/ft1_4FGL_J2245.9+1544_daily_bin1707.fits outfile=/scratch/kocevski/551528/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1707.fits ra=341.491 dec=15.7479 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.47
user 5.15
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.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/551528/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.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.48
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 596

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551528/ltcube_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.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/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits
.....................!
real 11.77
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551528/ltcube_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.fits outfile=/scratch/kocevski/551528/expmap_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.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/551528/ltcube_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.fits
.....................!
real 191.53
user 185.74
sys 5.43

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

Setting source of interest to:
4FGL J2245.9+1544 @ 341.491 15.7479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.fits scfile=/scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits outfile=/scratch/kocevski/551528/cmap_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.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=341.491 yref=15.7479 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.fits scfile=/scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits outfile=/scratch/kocevski/551528/cmap_HighResolution_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.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=341.491 yref=15.7479 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551528/Model_4FGL_J2245.9+1544_daily_bin1707.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/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.fits.....................!
real 73.66
user 72.24
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.fits', '/scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits', expMap='/scratch/kocevski/551528/expmap_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.fits', expCube='/scratch/kocevski/551528/ltcube_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551528/Model_4FGL_J2245.9+1544_daily_bin1707.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2245.9+1544'

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  5.169e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551528/ft1_filtered_4FGL_J2245.9+1544_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/551528/ft2_4FGL_J2245.9+1544_daily_bin1707.fits
Exposure map: /scratch/kocevski/551528/expmap_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.fits
Exposure cube: /scratch/kocevski/551528/ltcube_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551528/Model_4FGL_J2245.9+1544_daily_bin1707.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) = 6561.6817364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3795       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8715       1.0000         .10000E-03   10000.    
     8 'norm      '    .11151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .99848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.321       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.723       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65702       1.0000         .10000E-03   10000.    
    20 'norm      '    .10572E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.933       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .55846       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6561.677     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2815 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .37787        .82250E-07** at limit **
   2  Prefactor     .10000E-03    5.7895        .20978E-05** at limit **
   3  norm          2.3793        3.2779       -.18574E-07   -.85635E-04
   4  Prefactor     .10000E-03    7.6294       -.35799E-05** at limit **
   5  Prefactor     .10000E-03    4.8286        .19290E-06** at limit **
   6  Prefactor     .95648        .29578        .83812E-08    .48675E-03
   7  Prefactor     6.8721        13.321       -.40840E-06   -.59927E-04
   8  norm          .10000E-03    .93421        .52746E-07** at limit **
   9  Prefactor     .10000E-03    19.244        .15440E-05** at limit **
  10  Prefactor     48.560        17.206       -.45653E-06   -.20239E-03
  11  Prefactor     7.4492        21.751       -.14492E-05   -.66926E-04
  12  Prefactor     .99844        .22555       -.20858E-08    .41017E-04
  13  Prefactor     12.321        12.563        .28115E-06   -.16109E-04
  14  Prefactor     .10000E-03    12.754       -.30278E-05** at limit **
  15  Prefactor     9.1109        9.3272        .59321E-06   -.70221E-03
  16  Prefactor     5.0369        8.4401       -.58656E-07   -.44891E-04
  17  Prefactor     45.716        37.531       -.40052E-05   -.32140E-03
  18  Prefactor     5.5798        6.2412        .24981E-05   -.17833E-02
  19  Prefactor     .51354        12.729       -.18371E-05   -.39572E-04
  20  norm          .10000E-03    8.7817        .43790E-05** at limit **
  21  Prefactor     26.932        13.447       -.11165E-06   -.17509E-03
  22  norm          .10000E-03    5.4354       -.16020E-05** at limit **
  23  Normalizat    .55870        .24929        .25632E-06    .55142E-04
  24  Prefactor     .98268        .12754        .10314E-06    .14275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.3793
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.956478
  Prefactor  = 6.87211
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.5599
  Prefactor  = 7.44916
  Prefactor  = 0.998442
  Prefactor  = 12.3207
  Prefactor  = 0.000100002
  Prefactor  = 9.11091
  Prefactor  = 5.03695
  Prefactor  = 45.7161
  Prefactor  = 5.57984
  Prefactor  = 0.51354
  norm       = 0.000100003
  Prefactor  = 26.9325
  norm       = 0.0001
  Normalizat = 0.558699
  Prefactor  = 0.98268
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.677     FROM HESSE     STATUS=OK           403 CALLS     3218 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .49814        .96396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3793        3.2652        .16674E-03   -1.5399    
   4  Prefactor     .10000E-03    7.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8387        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .95648        .29647        .21791E-04   -1.5512    
   7  Prefactor     6.8721        13.430        .15305E-03   -1.5184    
   8  norm          .10000E-03    2.4263        .15127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.560        17.096        .57538E-04   -1.4313    
  11  Prefactor     7.4492        21.828        .14693E-03   -1.5162    
  12  Prefactor     .99844        .22579        .16646E-04   -1.5508    
  13  Prefactor     12.321        12.542        .11412E-03   -1.5006    
  14  Prefactor     .10000E-03    12.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1109        9.5059        .66385E-03   -1.5104    
  16  Prefactor     5.0369        8.4266        .17916E-03   -1.5259    
  17  Prefactor     45.716        38.091        .59294E-04   -1.4355    
  18  Prefactor     5.5798        7.9487        .85162E-03   -1.5235    
  19  Prefactor     .51354        135.82        .52381E-02   -1.5565    
  20  norm          .10000E-03    9.0559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.932        13.472        .77193E-04   -1.4670    
  22  norm          .10000E-03    5.4732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .55870        .27407        .42976E-03   -1.0977    
  24  Prefactor     .98268        .14261        .18215E-03   -.93309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49039e-08
Minuit parameter uncertainties:
  1  4.04129e-06
  2  0.000130566
  3  3.26545
  4  0.000272889
  5  5.41667e-06
  6  0.296468
  7  13.4356
  8  2.15565e-06
  9  0.000176043
  10  17.0981
  11  21.8513
  12  0.225787
  13  12.545
  14  0.000297015
  15  9.50744
  16  8.42863
  17  38.1108
  18  7.95024
  19  16.7401
  20  0.000343164
  21  13.4739
  22  0.000101105
  23  0.27474
  24  0.142661
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.760e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  9.827e-01  1.427e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  5.587e-01  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551528/likelihoodResults_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.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) = 6561.67764334
delta logL = -0.000246914139097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6561.35362159
delta logL = 0.323774833671

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6561.354     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      286 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70431        14.900        .12078E-01    .47439E-03
   2  Index         3.5363        2.0419        .90748E-01    .15693E-03
   3  Normalizat    .50064        .43081E-01    .10192       -.12337E-03
   4  Prefactor     .99873        .23870E-01    .46251E-01   -.57017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.704315
  Index      = 3.53631
  Normalizat = 0.500636
  Prefactor  = 0.998735
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.354     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      317 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70431        55.599        .83551E-04   -1.5540    
   2  Index         3.5363        6.7583        .47735E-02   -.29709    
   3  Normalizat    .50064        .22201        .45172E-03   -1.1239    
   4  Prefactor     .99873        .12149        .18056E-03   -.92772    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17392e-06
Minuit parameter uncertainties:
  1  12.5266
  2  5.66388
  3  0.222403
  4  0.121519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551528': 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) = 6561.35362055
delta logL = 0.323775875161

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  7.043e-01  1.253e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.536e+00  5.664e+00  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  9.987e-01  1.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  5.006e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 341.491 15.748

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/551528/cmap_HighResolution_681782401_682041601_4FGL_J2245.9+1544_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2022-08-13 00:47:31.578538', job_id='551528', GAL2='1.00', fit_tolerance='1e-08', EG2='0.50', EG='0.56', time_epoch_completed='1660376851.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.24e-01', ts2='0.69', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1707' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:47:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 551528: <4FGL_J2245.9+1544_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:22 2022
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:24 2022
Terminated at Sat Aug 13 00:47:32 2022
Results reported at Sat Aug 13 00:47:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1707 341.491 15.7479 681782401 682041601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2245.9+1544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            730 sec.

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

