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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1631
RA = 341.491, Dec = 15.7479
tmin = 662083201, tmax = 662342401
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='561432', job_status='RUN', time_executed='2021-12-28 00:35:47.753068', time_epoch_executed='1640680547.75' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561432/ft1_4FGL_J2245.9+1544_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561432/ft2_4FGL_J2245.9+1544_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561432/ft1_4FGL_J2245.9+1544_daily_bin1631.fits outfile=/scratch/kocevski/561432/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1631.fits ra=341.491 dec=15.7479 rad=12.0 tmin=662083201.0 tmax=662342401.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.89
user 3.69
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561432/ft1_filtered_4FGL_J2245.9+1544_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/561432/ft2_4FGL_J2245.9+1544_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/561432/ltcube_662083201_662342401_4FGL_J2245.9+1544_daily_bin1631.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/561432/ft2_4FGL_J2245.9+1544_daily_bin1631.fits
.....................!
real 12.00
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561432/ft1_filtered_4FGL_J2245.9+1544_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561432/ft2_4FGL_J2245.9+1544_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/561432/ltcube_662083201_662342401_4FGL_J2245.9+1544_daily_bin1631.fits outfile=/scratch/kocevski/561432/expmap_662083201_662342401_4FGL_J2245.9+1544_daily_bin1631.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/561432/ltcube_662083201_662342401_4FGL_J2245.9+1544_daily_bin1631.fits
.....................!
real 189.99
user 185.01
sys 4.67

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/561432/ft1_filtered_4FGL_J2245.9+1544_daily_bin1631.fits scfile=/scratch/kocevski/561432/ft2_4FGL_J2245.9+1544_daily_bin1631.fits outfile=/scratch/kocevski/561432/cmap_662083201_662342401_4FGL_J2245.9+1544_daily_bin1631.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561432/ft1_filtered_4FGL_J2245.9+1544_daily_bin1631.fits scfile=/scratch/kocevski/561432/ft2_4FGL_J2245.9+1544_daily_bin1631.fits outfile=/scratch/kocevski/561432/cmap_HighResolution_662083201_662342401_4FGL_J2245.9+1544_daily_bin1631.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/561432/ft1_filtered_4FGL_J2245.9+1544_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561432/ft2_4FGL_J2245.9+1544_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561432/Model_4FGL_J2245.9+1544_daily_bin1631.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/561432/ft1_filtered_4FGL_J2245.9+1544_daily_bin1631.fits.....................!
real 102.05
user 100.66
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86357       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9737       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.811       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6736       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36174       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9122       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4219       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.581       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0320       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4948       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5298       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5203       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2868       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3723       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.419       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2333       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91025       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=   10163.01     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2722 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86355        .71272        .79591E-07    .25997E-03
   2  Prefactor     9.9687        17.634       -.12258E-05    .31875E-04
   3  norm          .10000E-03    2.0226        .76031E-07** at limit **
   4  Prefactor     16.808        14.887        .69243E-06   -.54006E-05
   5  Prefactor     1.6628        15.140       -.68922E-05    .14618E-04
   6  Prefactor     .36174        .16274        .62115E-08    .15253E-04
   7  Prefactor     2.9120        3.4527        .27341E-06    .28296E-06
   8  norm          2.4220        1.4974       -.71976E-08    .14922E-04
   9  Prefactor     18.580        19.944       -.32461E-06   -.74250E-06
  10  Prefactor     3.0324        8.7318        .18936E-05   -.10871E-03
  11  Prefactor     .10000E-03    5.5214       -.75874E-08** at limit **
  12  Prefactor     1.1164        .18633        .34340E-08   -.60682E-03
  13  Prefactor     8.4950        8.6424        .48105E-06   -.11916E-04
  14  Prefactor     .10000E-03    46.282        .19566E-05** at limit **
  15  Prefactor     2.5298        5.4071       -.39723E-06   -.65422E-04
  16  Prefactor     8.2063        10.448        .10719E-05   -.10403E-04
  17  Prefactor     .10000E-03    23.182        .53313E-06** at limit **
  18  Prefactor     1.5083        2.5829       -.60716E-08   -.10773E-02
  19  Prefactor     2.3100        36.460        .24448E-04   -.82861E-07
  20  norm          1.3709        7.9482       -.98458E-06   -.24375E-04
  21  Prefactor     .10000E-03    1.9727        .97531E-08** at limit **
  22  norm          12.418        11.946       -.25662E-07   -.23690E-04
  23  Normalizat    1.2333        .20375       -.11279E-05   -.44175E-04
  24  Prefactor     .91031        .10417       -.24591E-06   -.12934E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.863552
  Prefactor  = 9.96868
  norm       = 0.0001
  Prefactor  = 16.8082
  Prefactor  = 1.66277
  Prefactor  = 0.361738
  Prefactor  = 2.91201
  norm       = 2.42204
  Prefactor  = 18.5799
  Prefactor  = 3.03242
  Prefactor  = 0.0001
  Prefactor  = 1.11638
  Prefactor  = 8.49502
  Prefactor  = 0.0001
  Prefactor  = 2.52985
  Prefactor  = 8.20629
  Prefactor  = 0.0001
  Prefactor  = 1.50829
  Prefactor  = 2.30997
  norm       = 1.37094
  Prefactor  = 0.0001
  norm       = 12.4181
  Normalizat = 1.23334
  Prefactor  = 0.910309
 **********
 **   18 **HESSE 
 **********

 FCN=   10163.01     FROM HESSE     STATUS=OK           411 CALLS     3133 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86355        .69131        .74798E-03   -1.5522    
   2  Prefactor     9.9687        17.596        .12688E-03   -1.5076    
   3  norm          .10000E-03    2.0476        .13999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.808        14.880        .97684E-04   -1.4888    
   5  Prefactor     1.6628        15.159        .32579E-03   -1.5450    
   6  Prefactor     .36174        .16153        .25201E-04   -1.5588    
   7  Prefactor     2.9120        3.4486        .19871E-03   -1.5367    
   8  norm          2.4220        1.4944        .92950E-04   -1.5397    
   9  Prefactor     18.580        19.964        .92916E-04   -1.4846    
  10  Prefactor     3.0324        8.9015        .11652E-02   -1.5360    
  11  Prefactor     .10000E-03    5.5245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1164        .18683        .16664E-04   -1.5497    
  13  Prefactor     8.4950        8.6383        .13754E-03   -1.5125    
  14  Prefactor     .10000E-03    46.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5298        5.3816        .25681E-03   -1.5390    
  16  Prefactor     8.2063        10.465        .13994E-03   -1.5135    
  17  Prefactor     .10000E-03    23.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5083        7.4414        .17327E-02   -1.5462    
  19  Prefactor     2.3100        45.760        .27147E-03   -1.5404    
  20  norm          1.3709        8.0039        .37206E-03   -1.5474    
  21  Prefactor     .10000E-03    1.9743        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.418        11.949        .11367E-03   -1.5003    
  23  Normalizat    1.2333        .24401        .33045E-03   -.85579    
  24  Prefactor     .91031        .12377        .20658E-03   -.95782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25898e-09
Minuit parameter uncertainties:
  1  0.691316
  2  17.6046
  3  9.62749e-06
  4  14.8837
  5  10.0441
  6  0.161532
  7  3.44886
  8  1.49441
  9  19.9709
  10  8.90536
  11  1.52901e-06
  12  0.186829
  13  8.6396
  14  5.56459e-05
  15  5.38267
  16  10.4673
  17  4.30137e-07
  18  6.70149
  19  20.5801
  20  6.62614
  21  5.59401e-07
  22  11.9512
  23  0.244232
  24  0.123813
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.858e+01  1.997e+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:  9.103e-01  1.238e-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:  1.233e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.88e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/561432/likelihoodResults_662083201_662342401_4FGL_J2245.9+1544_daily_bin1631.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) = 10162.9558333
delta logL = 0.0578113854899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10162.9547642
delta logL = 0.0588804837589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.342       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2494       1.0000          .0000       10.000    
     3 'Normalizat'    1.2249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91179       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10162.95     FROM MIGRAD    STATUS=FAILED       104 CALLS      322 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.320        23.273        .10576E-03    .41922E-04
   2  Index         2.2482        .91584        .10320E-01    .89728E-03
   3  Normalizat    1.2249        .22484        .33130E-03   -.22662E-03
   4  Prefactor     .91204        .12229        .20635E-03   -.39636E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10162.95     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      395 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.320        23.273        .21489E-03   -1.4951    
   2  Index         2.2482        .91584        .62994E-03   -.58281    
   3  Normalizat    1.2249        .22484        .26663E-03   -.85837    
   4  Prefactor     .91204        .12229        .18087E-03   -.95722    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10162.95     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      423 TOTAL
                     EDM=   .82E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.320        20.617        .42305E-05   -.53747E-05
   2  Index         2.2482        .81260        .20641E-02    .34039E-05
   3  Normalizat    1.2249        .22431        .13252E-04   -.68632E-06
   4  Prefactor     .91204        .12229        .41269E-04   -.88153E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3202
  Index      = 2.24816
  Normalizat = 1.22488
  Prefactor  = 0.912038
 **********
 **   18 **HESSE 
 **********

 FCN=   10162.95     FROM HESSE     STATUS=OK            25 CALLS      448 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.320        20.125        .84610E-06   -1.4951    
   2  Index         2.2482        .79400        .82562E-04   -.58281    
   3  Normalizat    1.2249        .22437        .26504E-05   -.85837    
   4  Prefactor     .91204        .12235        .82538E-05   -.95722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80288e-13
Minuit parameter uncertainties:
  1  20.1344
  2  0.798866
  3  0.224543
  4  0.122392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561432': 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) = 10162.954751
delta logL = 0.0588936826716

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.432e+01  2.013e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.248e+00  7.989e-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:  9.120e-01  1.224e-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:  1.225e+00  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 341.491 15.748
Photon Index (Free Index): 2.25 +/- 0.80
Photon Flux (Free Index): 3.03e-08 +/- 4.66e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.27e-05

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/561432/cmap_HighResolution_662083201_662342401_4FGL_J2245.9+1544_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', comment='SUCCESS', photon_flux='1.88e-08', energy_flux2='1.25e-05', photon_flux_error='2.02e-08', dlogl='5.89e-02', energy_flux='1.42e-05', photon_flux2='3.03e-08', job_status='DONE', time_completed='2021-12-28 00:50:15.679396', photon_index_error2='0.80', photon_index2='2.25', ts='2.58', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.89e-08', energy_flux_error2='1.27e-05', EG='1.23', time_epoch_completed='1640681415.68', return_code='0', job_id='561432', GAL2='0.91', EG2='1.22', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.66e-08', ts2='2.71', photon_index='1.96' WHERE bin_id='1631' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:50:15 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 561432: <4FGL_J2245.9+1544_daily_bin1631> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:35:28 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:35:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:35:30 2021
Terminated at Tue Dec 28 00:50:16 2021
Results reported at Tue Dec 28 00:50:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1631 341.491 15.7479 662083201 662342401 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 :                                   869.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            888 sec.

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

