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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1640
RA = 341.491, Dec = 15.7479
tmin = 664416001, tmax = 664675201
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='284923', job_status='RUN', time_executed='2022-01-24 00:43:20.368608', time_epoch_executed='1643013800.37' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284923

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284923/ft1_4FGL_J2245.9+1544_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284923/ft2_4FGL_J2245.9+1544_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284923/ft1_4FGL_J2245.9+1544_daily_bin1640.fits outfile=/scratch/kocevski/284923/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1640.fits ra=341.491 dec=15.7479 rad=12.0 tmin=664416001.0 tmax=664675201.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.64
user 3.38
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284923/ft1_filtered_4FGL_J2245.9+1544_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284923/ft2_4FGL_J2245.9+1544_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/284923/ltcube_664416001_664675201_4FGL_J2245.9+1544_daily_bin1640.fits outfile=/scratch/kocevski/284923/expmap_664416001_664675201_4FGL_J2245.9+1544_daily_bin1640.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/284923/ltcube_664416001_664675201_4FGL_J2245.9+1544_daily_bin1640.fits
.....................!
real 190.15
user 185.13
sys 4.69

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/284923/ft1_filtered_4FGL_J2245.9+1544_daily_bin1640.fits scfile=/scratch/kocevski/284923/ft2_4FGL_J2245.9+1544_daily_bin1640.fits outfile=/scratch/kocevski/284923/cmap_664416001_664675201_4FGL_J2245.9+1544_daily_bin1640.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284923/ft1_filtered_4FGL_J2245.9+1544_daily_bin1640.fits scfile=/scratch/kocevski/284923/ft2_4FGL_J2245.9+1544_daily_bin1640.fits outfile=/scratch/kocevski/284923/cmap_HighResolution_664416001_664675201_4FGL_J2245.9+1544_daily_bin1640.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57617       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2751       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52636       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12500E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4603       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .85162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16456E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95094E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11749E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1501       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1143       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5078       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.360       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84748       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=   7190.278     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2379 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57636        .76832       -.23145E-06   -.19392E-02
   2  Prefactor     .10000E-03    8.0878        .15484E-05** at limit **
   3  norm          6.9411        5.0941        .20225E-05   -.16186E-03
   4  Prefactor     6.3232        11.585        .11750E-05   -.85390E-04
   5  Prefactor     8.1590        11.609       -.53316E-06   -.97346E-04
   6  Prefactor     .52622        .20998       -.18712E-07   -.74013E-03
   7  Prefactor     .10000E-03    4.0547        .36117E-07** at limit **
   8  norm          1.4595        1.5677       -.14842E-06   -.56507E-03
   9  Prefactor     .10000E-03    9.5676       -.37930E-05** at limit **
  10  Prefactor     .10000E-03    3.3115        .80087E-07** at limit **
  11  Prefactor     .10000E-03    11.679        .44767E-05** at limit **
  12  Prefactor     .85165        .18269        .50873E-08   -.45913E-03
  13  Prefactor     .10000E-03    8.2922        .68528E-06** at limit **
  14  Prefactor     .10000E-03    16.120        .14434E-05** at limit **
  15  Prefactor     .10000E-03    1.9654       -.99095E-07** at limit **
  16  Prefactor     3.7448        7.7961       -.63209E-06   -.18836E-03
  17  Prefactor     .10000E-03    13.617       -.27253E-05** at limit **
  18  Prefactor     2.1626        4.6788       -.28651E-05   -.87790E-03
  19  Prefactor     3.0609        13.134        .60600E-05   -.83542E-04
  20  norm          1.5398        20.634        .44346E-05   -.29318E-03
  21  Prefactor     .10000E-03    7.6573       -.60645E-06** at limit **
  22  norm          16.182        21.647       -.79235E-06   -.14657E-04
  23  Normalizat    1.2791        .22238       -.43068E-06   -.32581E-04
  24  Prefactor     .84756        .11674       -.12314E-06   -.58773E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.57636
  Prefactor  = 0.0001
  norm       = 6.94112
  Prefactor  = 6.32316
  Prefactor  = 8.15904
  Prefactor  = 0.526222
  Prefactor  = 0.0001
  norm       = 1.45951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.851649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74476
  Prefactor  = 0.0001
  Prefactor  = 2.16259
  Prefactor  = 3.06086
  norm       = 1.5398
  Prefactor  = 0.0001
  norm       = 16.1819
  Normalizat = 1.27907
  Prefactor  = 0.847558
 **********
 **   18 **HESSE 
 **********

 FCN=   7190.278     FROM HESSE     STATUS=OK           403 CALLS     2782 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57636        .68619        .84054E-03   -1.5556    
   2  Prefactor     .10000E-03    8.0950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9411        4.9917        .15229E-03   -1.5181    
   4  Prefactor     6.3232        11.529        .16024E-03   -1.5205    
   5  Prefactor     8.1590        11.713        .14069E-03   -1.5137    
   6  Prefactor     .52622        .20855        .22973E-04   -1.5563    
   7  Prefactor     .10000E-03    4.0645        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4595        1.5488        .10704E-03   -1.5466    
   9  Prefactor     .10000E-03    9.4992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3165        .15068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .85165        .18327        .15908E-04   -1.5523    
  13  Prefactor     .10000E-03    8.3682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.128        .20795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9732        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7448        7.8074        .20892E-03   -1.5321    
  17  Prefactor     .10000E-03    13.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1626        4.9633        .26938E-03   -1.5414    
  19  Prefactor     3.0609        12.751        .22976E-03   -1.5358    
  20  norm          1.5398        19.708        .34845E-03   -1.5460    
  21  Prefactor     .10000E-03    7.7304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.182        21.650        .99021E-04   -1.4903    
  23  Normalizat    1.2791        .26422        .30210E-03   -.84193    
  24  Prefactor     .84756        .13872        .20148E-03   -.97998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06482e-09
Minuit parameter uncertainties:
  1  0.686199
  2  2.34359e-06
  3  4.99203
  4  11.5327
  5  11.7163
  6  0.208547
  7  1.32871e-06
  8  1.54881
  9  9.09937e-07
  10  2.74852e-06
  11  4.86291e-07
  12  0.183268
  13  6.95796e-06
  14  1.16056e-06
  15  1.2858e-06
  16  7.80955
  17  7.29354e-06
  18  4.96429
  19  12.4989
  20  11.0215
  21  5.88454e-05
  22  21.6601
  23  0.264501
  24  0.138775
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  9.099e-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:  8.476e-01  1.388e-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.279e+00  2.645e-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: 4.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284923/likelihoodResults_664416001_664675201_4FGL_J2245.9+1544_daily_bin1640.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) = 7190.27815011
delta logL = -0.000499949053847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7190.2776507
delta logL = -5.40573637409e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9440       1.0000          .0000       10.000    
     3 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84746       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=   7190.278     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    300.05        .90712E-02** at limit **
   2  Index         1.9247        6.6532        .50000        .15262E-04
   3  Normalizat    1.2791        .31240E-01    .68282E-01    .47542E-04
   4  Prefactor     .84756        .17450E-01    .44332E-01    .51947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.92466
  Normalizat = 1.27907
  Prefactor  = 0.847558
 **********
 **   18 **HESSE 
 **********

 FCN=   7190.278     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1400.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9247        5.6229        .50000       -.66247    
   3  Normalizat    1.2791        .85687E-01    .30210E-03   -.84193    
   4  Prefactor     .84756        .47897E-01    .20148E-03   -.97998    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31106e-07
Minuit parameter uncertainties:
  1  0.005751
  2  48.4064
  3  0.0856964
  4  0.0478995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284923': 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) = 7190.27765
delta logL = 1.57848262461e-07

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  5.751e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.925e+00  4.841e+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:  8.476e-01  4.790e-02  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.279e+00  8.570e-02  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/284923/cmap_HighResolution_664416001_664675201_4FGL_J2245.9+1544_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.95e-08', time_completed='2022-01-24 00:54:44.205602', job_id='284923', GAL2='0.85', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1643014484.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1640' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:54:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 284923: <4FGL_J2245.9+1544_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:23 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:25 2022
Terminated at Mon Jan 24 00:54:45 2022
Results reported at Mon Jan 24 00:54:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1640 341.491 15.7479 664416001 664675201 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 :                                   685.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

