/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 123 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 = 7378
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1483
RA = 341.491, Dec = 15.7479
tmin = 623721601, tmax = 623980801
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='468846', job_status='RUN', time_executed='2021-09-28 20:22:58.555608', time_epoch_executed='1632885778.56' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468846

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468846/ft1_4FGL_J2245.9+1544_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468846/ft1_4FGL_J2245.9+1544_daily_bin1483.fits outfile=/scratch/kocevski/468846/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1483.fits ra=341.491 dec=15.7479 rad=12.0 tmin=623721601.0 tmax=623980801.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.19
user 4.91
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.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/468846/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1483.fits evtable="EVENTS" outfile="/scratch/kocevski/468846/ft1_filtered_4FGL_J2245.9+1544_daily_bin1483.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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468846/ft1_filtered_4FGL_J2245.9+1544_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/468846/ltcube_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.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/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.fits
.....................!
real 11.60
user 11.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468846/ft1_filtered_4FGL_J2245.9+1544_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/468846/ltcube_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.fits outfile=/scratch/kocevski/468846/expmap_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.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/468846/ltcube_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.fits
.....................!
real 190.88
user 186.32
sys 4.25

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/468846/ft1_filtered_4FGL_J2245.9+1544_daily_bin1483.fits scfile=/scratch/kocevski/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.fits outfile=/scratch/kocevski/468846/cmap_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468846/ft1_filtered_4FGL_J2245.9+1544_daily_bin1483.fits scfile=/scratch/kocevski/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.fits outfile=/scratch/kocevski/468846/cmap_HighResolution_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468846/ft1_filtered_4FGL_J2245.9+1544_daily_bin1483.fits', '/scratch/kocevski/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.fits', expMap='/scratch/kocevski/468846/expmap_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.fits', expCube='/scratch/kocevski/468846/ltcube_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468846/Model_4FGL_J2245.9+1544_daily_bin1483.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/468846/ft1_filtered_4FGL_J2245.9+1544_daily_bin1483.fits
Spacecraft file(s): /scratch/kocevski/468846/ft2_4FGL_J2245.9+1544_daily_bin1483.fits
Exposure map: /scratch/kocevski/468846/expmap_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.fits
Exposure cube: /scratch/kocevski/468846/ltcube_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468846/Model_4FGL_J2245.9+1544_daily_bin1483.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) = 7129.92328004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4871       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5283       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32415E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2240       1.0000         .10000E-03   10000.    
     8 'norm      '    .48962       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    111.48       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.214       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.551       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89536       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0960       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=   7129.919     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2728 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .36896       -.98489E-07** at limit **
   2  Prefactor     5.4862        15.410       -.88172E-06   -.53306E-04
   3  norm          .10000E-03    1.8212        .15309E-06** at limit **
   4  Prefactor     5.5218        11.423        .15603E-05    .86950E-05
   5  Prefactor     .10000E-03    7.6705       -.11777E-05** at limit **
   6  Prefactor     .32400E-01    .95467E-01   -.19083E-06   -.57276E-02
   7  Prefactor     5.2237        5.1821        .12981E-06    .25914E-04
   8  norm          .48900        1.2661       -.55123E-06   -.21733E-02
   9  Prefactor     .10000E-03    15.833       -.14737E-04** at limit **
  10  Prefactor     .10000E-03    10.142        .54215E-05** at limit **
  11  Prefactor     11.148        12.731        .11323E-06    .29305E-04
  12  Prefactor     .31166        .13428        .31005E-07    .14485E-02
  13  Prefactor     .10000E-03    5.7410       -.14159E-05** at limit **
  14  Prefactor     111.48        46.022        .14539E-05    .18223E-04
  15  Prefactor     .10004E-03    4.5267       -.57488E-06** at limit **
  16  Prefactor     .10000E-03    7.1810       -.29576E-05** at limit **
  17  Prefactor     .10000E-03    19.056        .13318E-04** at limit **
  18  Prefactor     .10000E-03    3.4963       -.33815E-07** at limit **
  19  Prefactor     11.211        14.015        .79320E-07   -.20515E-04
  20  norm          .10000E-03    6.4056        .29764E-05** at limit **
  21  Prefactor     12.549        9.5445       -.10115E-06   -.12109E-03
  22  norm          .10000E-03    5.8147        .65524E-06** at limit **
  23  Normalizat    .89564        .21389        .41377E-06    .15650E-03
  24  Prefactor     1.0959        .11880        .24104E-06    .25669E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.48616
  norm       = 0.0001
  Prefactor  = 5.52183
  Prefactor  = 0.0001
  Prefactor  = 0.0324001
  Prefactor  = 5.22365
  norm       = 0.489002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1479
  Prefactor  = 0.311657
  Prefactor  = 0.0001
  Prefactor  = 111.481
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2115
  norm       = 0.0001
  Prefactor  = 12.5494
  norm       = 0.0001
  Normalizat = 0.895637
  Prefactor  = 1.09588
 **********
 **   18 **HESSE 
 **********

 FCN=   7129.919     FROM HESSE     STATUS=OK           403 CALLS     3131 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51501        .99388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4862        15.410        .17153E-03   -1.5239    
   3  norm          .10000E-03    1.8336        .11126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5218        11.238        .17088E-03   -1.5238    
   5  Prefactor     .10000E-03    7.7287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32400E-01    .10283        .42081E-03   -1.5672    
   7  Prefactor     5.2237        5.1773        .17587E-03   -1.5251    
   8  norm          .48900        1.1411        .15100E-02   -1.5568    
   9  Prefactor     .10000E-03    15.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.148        12.728        .11999E-03   -1.5040    
  12  Prefactor     .31166        .13290        .19203E-04   -1.5596    
  13  Prefactor     .10000E-03    5.7647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     111.48        45.998        .38098E-04   -1.3592    
  15  Prefactor     .10004E-03    45.393        .34484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5637        .15405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.211        14.003        .11964E-03   -1.5038    
  20  norm          .10000E-03    6.4115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.549        9.5502        .11307E-03   -1.4999    
  22  norm          .10000E-03    5.8147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89564        .24470        .33759E-03   -.96614    
  24  Prefactor     1.0959        .13790        .17872E-03   -.89598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67265e-09
Minuit parameter uncertainties:
  1  6.18446e-08
  2  15.4215
  3  1.00665e-06
  4  11.2424
  5  1.49402e-07
  6  0.102832
  7  5.17779
  8  1.14118
  9  5.29879e-07
  10  8.40643e-06
  11  12.7309
  12  0.132901
  13  4.30609e-06
  14  46.0127
  15  0.00258071
  16  2.45265e-06
  17  2.37313e-05
  18  4.59237e-06
  19  14.0069
  20  5.90239e-06
  21  9.5514
  22  6.23323e-07
  23  0.245
  24  0.13794
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  5.299e-07  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:  1.096e+00  1.379e-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:  8.956e-01  2.450e-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: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468846/likelihoodResults_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.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) = 7129.91932759
delta logL = -0.000308526291519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7129.91901991
delta logL = -8.48170202516e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11819E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2014       1.0000          .0000       10.000    
     3 'Normalizat'    .89563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0959       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=   7129.919     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      232 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0751        .90712E-02** at limit **
   2  Index         2.1927        5.6801        .50000        .49708E-05
   3  Normalizat    .89564        .19686E-02    .76277E-01   -.18054E-04
   4  Prefactor     1.0959        .11465E-02    .37745E-01   -.41501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19272
  Normalizat = 0.895636
  Prefactor  = 1.09588
 **********
 **   18 **HESSE 
 **********

 FCN=   7129.919     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1927        8.6504        .50000       -.59615    
   3  Normalizat    .89564        .94877E-02    .33759E-03   -.96614    
   4  Prefactor     1.0959        .55359E-02    .17872E-03   -.89598    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20655e-08
Minuit parameter uncertainties:
  1  0.000157196
  2  119.14
  3  0.00948775
  4  0.00553595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468846': 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) = 7129.91901927
delta logL = -2.0874904294e-07

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.572e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.193e+00  1.191e+02  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:  1.096e+00  5.536e-03  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:  8.956e-01  9.488e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/468846/cmap_HighResolution_623721601_623980801_4FGL_J2245.9+1544_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-28 20:35:26.305072', job_id='468846', GAL2='1.10', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632886526.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1483' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:35:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 468846: <4FGL_J2245.9+1544_daily_bin1483> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1483> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:20:46 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:20:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:20:48 2021
Terminated at Tue Sep 28 20:35:26 2021
Results reported at Tue Sep 28 20:35:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1483 341.491 15.7479 623721601 623980801 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 :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

