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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1410
RA = 341.491, Dec = 15.7479
tmin = 604800001, tmax = 605059201
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='468740', job_status='RUN', time_executed='2021-09-28 20:24:13.654795', time_epoch_executed='1632885853.65' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468740

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468740/ft1_4FGL_J2245.9+1544_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468740/ft2_4FGL_J2245.9+1544_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468740/ft1_4FGL_J2245.9+1544_daily_bin1410.fits outfile=/scratch/kocevski/468740/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1410.fits ra=341.491 dec=15.7479 rad=12.0 tmin=604800001.0 tmax=605059201.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.10
user 4.82
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468740/ft1_filtered_4FGL_J2245.9+1544_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/468740/ft2_4FGL_J2245.9+1544_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/468740/ltcube_604800001_605059201_4FGL_J2245.9+1544_daily_bin1410.fits outfile=/scratch/kocevski/468740/expmap_604800001_605059201_4FGL_J2245.9+1544_daily_bin1410.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/468740/ltcube_604800001_605059201_4FGL_J2245.9+1544_daily_bin1410.fits
.....................!
real 192.50
user 187.17
sys 4.96

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/468740/ft1_filtered_4FGL_J2245.9+1544_daily_bin1410.fits scfile=/scratch/kocevski/468740/ft2_4FGL_J2245.9+1544_daily_bin1410.fits outfile=/scratch/kocevski/468740/cmap_604800001_605059201_4FGL_J2245.9+1544_daily_bin1410.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/468740/ft1_filtered_4FGL_J2245.9+1544_daily_bin1410.fits scfile=/scratch/kocevski/468740/ft2_4FGL_J2245.9+1544_daily_bin1410.fits outfile=/scratch/kocevski/468740/cmap_HighResolution_604800001_605059201_4FGL_J2245.9+1544_daily_bin1410.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10280E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .39175E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37831       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4015       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.296       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4841       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44280       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3845       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.1159       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4061       1.0000         .10000E-03   10000.    
    22 'norm      '    30.153       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95218       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0409       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=   6533.577     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2735 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .31502       -.28506E-07** at limit **
   2  Prefactor     .10045E-03    14.237       -.16980E-05** at limit **
   3  norm          .10000E-03    3.9777       -.22498E-06** at limit **
   4  Prefactor     .10000E-03    4.7970        .20681E-07** at limit **
   5  Prefactor     8.0747        12.225        .31792E-06    .23822E-04
   6  Prefactor     .37826        .19826       -.11012E-07   -.49856E-03
   7  Prefactor     5.4006        7.2747       -.87410E-06   -.38084E-04
   8  norm          2.1168        1.6858        .27367E-08    .43038E-04
   9  Prefactor     14.297        15.046       -.10870E-06    .20442E-04
  10  Prefactor     6.4784        11.498       -.87154E-06   -.54745E-04
  11  Prefactor     .10000E-03    7.1512        .68257E-07** at limit **
  12  Prefactor     .44276        .16343        .22890E-07    .29089E-03
  13  Prefactor     30.826        14.937        .92592E-06   -.92200E-04
  14  Prefactor     .10000E-03    30.060       -.58236E-07** at limit **
  15  Prefactor     4.1410        6.8215       -.38496E-05   -.12635E-04
  16  Prefactor     5.3839        8.3619       -.37773E-06   -.20939E-04
  17  Prefactor     .10000E-03    16.976        .55282E-06** at limit **
  18  Prefactor     22.978        9.0374       -.24767E-06    .79343E-04
  19  Prefactor     .10000E-03    19.627       -.69247E-06** at limit **
  20  norm          8.1236        15.241       -.66764E-05    .70680E-04
  21  Prefactor     8.3872        12.345        .40221E-05   -.91820E-04
  22  norm          30.159        20.354       -.91586E-06    .49687E-04
  23  Normalizat    .95215        .24946        .91718E-06    .12894E-03
  24  Prefactor     1.0410        .13256        .32215E-06    .22317E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100447
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.07468
  Prefactor  = 0.378256
  Prefactor  = 5.4006
  norm       = 2.11679
  Prefactor  = 14.297
  Prefactor  = 6.47838
  Prefactor  = 0.0001
  Prefactor  = 0.442759
  Prefactor  = 30.8261
  Prefactor  = 0.0001
  Prefactor  = 4.14104
  Prefactor  = 5.38392
  Prefactor  = 0.0001
  Prefactor  = 22.9777
  Prefactor  = 0.0001
  norm       = 8.12364
  Prefactor  = 8.38723
  norm       = 30.1591
  Normalizat = 0.952149
  Prefactor  = 1.04098
 **********
 **   18 **HESSE 
 **********

 FCN=   6533.577     FROM HESSE     STATUS=OK           411 CALLS     3146 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .62164        .88174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10045E-03    147.59        .57685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.9577        .30964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8031        .17288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.0747        12.172        .14107E-03   -1.5140    
   6  Prefactor     .37826        .19537        .24684E-04   -1.5585    
   7  Prefactor     5.4006        7.2862        .17291E-03   -1.5243    
   8  norm          2.1168        1.6817        .89743E-04   -1.5417    
   9  Prefactor     14.297        15.050        .10593E-03   -1.4952    
  10  Prefactor     6.4784        11.493        .15761E-03   -1.5199    
  11  Prefactor     .10000E-03    7.1554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .44276        .16235        .18788E-04   -1.5575    
  13  Prefactor     30.826        14.905        .72159E-04   -1.4597    
  14  Prefactor     .10000E-03    30.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1410        6.9526        .19808E-03   -1.5301    
  16  Prefactor     5.3839        8.3563        .17318E-03   -1.5244    
  17  Prefactor     .10000E-03    17.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.978        9.0536        .83529E-04   -1.4749    
  19  Prefactor     .10000E-03    19.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.1236        15.171        .14073E-03   -1.5138    
  21  Prefactor     8.3872        12.225        .13827E-03   -1.5129    
  22  norm          30.159        20.344        .72964E-04   -1.4609    
  23  Normalizat    .95215        .28802        .35343E-03   -.94651    
  24  Prefactor     1.0410        .15484        .19272E-03   -.91376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88033e-09
Minuit parameter uncertainties:
  1  1.86139e-06
  2  0.0162835
  3  3.71219e-05
  4  2.69987e-06
  5  12.1755
  6  0.195366
  7  7.28739
  8  1.68175
  9  15.0544
  10  11.4968
  11  1.80161e-06
  12  0.162354
  13  14.9068
  14  6.48776e-07
  15  6.95393
  16  8.35814
  17  3.03477e-05
  18  9.05414
  19  3.94871e-05
  20  15.1786
  21  12.2286
  22  20.3484
  23  0.288487
  24  0.15491
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.430e+01  1.505e+01  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.041e+00  1.549e-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:  9.521e-01  2.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.78
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.52e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/468740/likelihoodResults_604800001_605059201_4FGL_J2245.9+1544_daily_bin1410.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): 0
logL (Free Index) = 6532.62328612
delta logL = 0.953732077853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6532.53169161
delta logL = 1.04532658558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.972       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0495       1.0000          .0000       10.000    
     3 'Normalizat'    .95790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0401       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6532.532     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      255 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.991        26.082        .81813E-04    .15286E-05
   2  Index         1.0497        .60841        .12564E-01   -.21473E-05
   3  Normalizat    .95806        .26698        .35245E-03   -.30837E-04
   4  Prefactor     1.0400        .15270        .19280E-03    .54249E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9911
  Index      = 1.04971
  Normalizat = 0.95806
  Prefactor  = 1.04
 **********
 **   18 **HESSE 
 **********

 FCN=   6532.532     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.991        26.412        .32725E-05   -1.4728    
   2  Index         1.0497        .61611        .50255E-03   -.91090    
   3  Normalizat    .95806        .26719        .14098E-04   -.94449    
   4  Prefactor     1.0400        .15283        .77120E-05   -.91408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36063e-12
Minuit parameter uncertainties:
  1  26.425
  2  0.620331
  3  0.267562
  4  0.152891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468740': 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): 0
logL (Free Index) = 6532.53169117
delta logL = 1.04532702838

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.399e+01  2.642e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.050e+00  6.203e-01  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.040e+00  1.529e-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:  9.581e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.87
Ra Dec: 341.491 15.748
Photon Index (Free Index): 1.05 +/- 0.62
Photon Flux (Free Index): 5.56e-09 +/- 6.49e-09
Energy Flux (Free Index): 7.09e-05 +/- 1.04e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/468740/cmap_HighResolution_604800001_605059201_4FGL_J2245.9+1544_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='7.09e-05', photon_flux_error='1.52e-08', dlogl='1.05e+00', energy_flux='1.09e-05', photon_flux2='5.56e-09', job_status='DONE', time_completed='2021-09-28 20:36:56.867638', photon_index_error2='0.62', photon_index2='1.05', ts='3.78', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='6.80e-08', energy_flux_error2='1.04e-04', EG='0.95', time_epoch_completed='1632886616.87', return_code='0', job_id='468740', GAL2='1.04', EG2='0.96', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.49e-09', ts2='5.87', photon_index='1.96' WHERE bin_id='1410' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:36:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 468740: <4FGL_J2245.9+1544_daily_bin1410> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1410> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:20:38 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:20:40 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:40 2021
Terminated at Tue Sep 28 20:36:57 2021
Results reported at Tue Sep 28 20:36:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1410 341.491 15.7479 604800001 605059201 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 :                                   681.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             248.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

