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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1500
RA = 341.491, Dec = 15.7479
tmin = 628128001, tmax = 628387201
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='468871', job_status='RUN', time_executed='2021-09-28 20:23:30.120495', time_epoch_executed='1632885810.12' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468871

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468871/ft1_4FGL_J2245.9+1544_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468871/ft2_4FGL_J2245.9+1544_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468871/ft1_4FGL_J2245.9+1544_daily_bin1500.fits outfile=/scratch/kocevski/468871/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1500.fits ra=341.491 dec=15.7479 rad=12.0 tmin=628128001.0 tmax=628387201.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.21
user 4.99
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468871/ft1_filtered_4FGL_J2245.9+1544_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/468871/ft2_4FGL_J2245.9+1544_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/468871/ltcube_628128001_628387201_4FGL_J2245.9+1544_daily_bin1500.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/468871/ft2_4FGL_J2245.9+1544_daily_bin1500.fits
.....................!
real 11.68
user 11.35
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468871/ft1_filtered_4FGL_J2245.9+1544_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/468871/ft2_4FGL_J2245.9+1544_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/468871/ltcube_628128001_628387201_4FGL_J2245.9+1544_daily_bin1500.fits outfile=/scratch/kocevski/468871/expmap_628128001_628387201_4FGL_J2245.9+1544_daily_bin1500.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/468871/ltcube_628128001_628387201_4FGL_J2245.9+1544_daily_bin1500.fits
.....................!
real 189.76
user 185.13
sys 4.26

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/468871/ft1_filtered_4FGL_J2245.9+1544_daily_bin1500.fits scfile=/scratch/kocevski/468871/ft2_4FGL_J2245.9+1544_daily_bin1500.fits outfile=/scratch/kocevski/468871/cmap_628128001_628387201_4FGL_J2245.9+1544_daily_bin1500.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468871/ft1_filtered_4FGL_J2245.9+1544_daily_bin1500.fits scfile=/scratch/kocevski/468871/ft2_4FGL_J2245.9+1544_daily_bin1500.fits outfile=/scratch/kocevski/468871/cmap_HighResolution_628128001_628387201_4FGL_J2245.9+1544_daily_bin1500.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/468871/ft1_filtered_4FGL_J2245.9+1544_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/468871/ft2_4FGL_J2245.9+1544_daily_bin1500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468871/Model_4FGL_J2245.9+1544_daily_bin1500.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/468871/ft1_filtered_4FGL_J2245.9+1544_daily_bin1500.fits.....................!
real 72.24
user 70.93
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1011       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .63586       1.0000         .10000E-03   10000.    
     8 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7325       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.508       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33282       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.616       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15326E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11582E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96412       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0316       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=   6946.120     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2748 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .29315        .18379E-07** at limit **
   2  Prefactor     .10000E-03    5.4478        .16254E-06** at limit **
   3  norm          4.1012        4.4351        .11494E-05    .40703E-03
   4  Prefactor     12.201        10.006        .18247E-07   -.17625E-05
   5  Prefactor     3.9375        6.9589        .26130E-05   -.13571E-02
   6  Prefactor     .28194        .20137        .41895E-08   -.50880E-03
   7  Prefactor     .64211        6.1265       -.81869E-07   -.10809E-03
   8  norm          .10000E-03    .88627       -.12220E-06** at limit **
   9  Prefactor     .10000E-03    23.579        .49115E-05** at limit **
  10  Prefactor     9.7343        10.009        .47576E-06   -.49190E-03
  11  Prefactor     17.507        13.706        .30664E-07    .41148E-05
  12  Prefactor     .33281        .12805        .83720E-08    .30126E-03
  13  Prefactor     14.602        10.778        .16973E-06   -.20843E-03
  14  Prefactor     22.617        41.808        .88921E-06    .14913E-04
  15  Prefactor     .10000E-03    3.7583        .13212E-06** at limit **
  16  Prefactor     .10000E-03    6.5009        .10049E-05** at limit **
  17  Prefactor     .10000E-03    11.040        .63424E-05** at limit **
  18  Prefactor     .10001E-03    3.8105       -.94216E-06** at limit **
  19  Prefactor     .10000E-03    15.188       -.69177E-05** at limit **
  20  norm          .10000E-03    5.7778       -.67855E-06** at limit **
  21  Prefactor     .10000E-03    9.3079       -.14606E-05** at limit **
  22  norm          .10000E-03    49.820       -.33083E-05** at limit **
  23  Normalizat    .96424        .20788       -.66398E-06    .18442E-03
  24  Prefactor     1.0315        .11513       -.18659E-06    .27734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.10119
  Prefactor  = 12.2008
  Prefactor  = 3.93746
  Prefactor  = 0.281939
  Prefactor  = 0.642111
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.73427
  Prefactor  = 17.5074
  Prefactor  = 0.332809
  Prefactor  = 14.6016
  Prefactor  = 22.6169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100008
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.964239
  Prefactor  = 1.03151
 **********
 **   18 **HESSE 
 **********

 FCN=   6946.120     FROM HESSE     STATUS=OK           403 CALLS     3151 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .30169        .88067E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1012        4.4496        .17668E-03   -1.5303    
   4  Prefactor     12.201        9.9912        .11468E-03   -1.5009    
   5  Prefactor     3.9375        9.8246        .10164E-02   -1.5311    
   6  Prefactor     .28194        .19248        .28787E-03   -1.5602    
   7  Prefactor     .64211        17.583        .39075E-02   -1.5548    
   8  norm          .10000E-03    1.4419        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.7343        10.051        .64225E-03   -1.5084    
  11  Prefactor     17.507        13.712        .95720E-04   -1.4871    
  12  Prefactor     .33281        .12759        .17621E-04   -1.5593    
  13  Prefactor     14.602        10.801        .52409E-03   -1.4944    
  14  Prefactor     22.617        41.925        .84227E-04   -1.4756    
  15  Prefactor     .10000E-03    3.7956        .15774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    9.3309        .30830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.8243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    50.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96424        .23959        .32457E-03   -.94238    
  24  Prefactor     1.0315        .13328        .18173E-03   -.91686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85451e-08
Minuit parameter uncertainties:
  1  2.79341e-07
  2  7.56743e-06
  3  4.44992
  4  9.99261
  5  9.82862
  6  0.192477
  7  6.7219
  8  2.07574e-06
  9  0.000481914
  10  10.0532
  11  13.7141
  12  0.127592
  13  10.8023
  14  41.9799
  15  7.09429e-06
  16  5.39196e-05
  17  0.000450609
  18  0.000537289
  19  0.000508782
  20  2.90935e-05
  21  7.89539e-05
  22  0.000407976
  23  0.239858
  24  0.133327
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.032e+00  1.333e-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.642e-01  2.399e-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: 5.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468871/likelihoodResults_628128001_628387201_4FGL_J2245.9+1544_daily_bin1500.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) = 6946.11972147
delta logL = -0.000198725368136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6946.11952541
delta logL = -2.67011637334e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19810E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0760       1.0000          .0000       10.000    
     3 'Normalizat'    .96424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0315       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=   6946.120     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0879        .90712E-02** at limit **
   2  Index         2.0380        6.0132        .50000        .12584E-04
   3  Normalizat    .96424        .27683E-02    .73353E-01    .13103E-04
   4  Prefactor     1.0315        .16056E-02    .41141E-01   -.83577E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.03797
  Normalizat = 0.964238
  Prefactor  = 1.03151
 **********
 **   18 **HESSE 
 **********

 FCN=   6946.120     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0380        7.8605        .50000       -.63404    
   3  Normalizat    .96424        .90907E-02    .32457E-03   -.94238    
   4  Prefactor     1.0315        .52808E-02    .18173E-03   -.91686    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.70585e-08
Minuit parameter uncertainties:
  1  0.000467006
  2  96.331
  3  0.00909072
  4  0.00528076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468871': 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) = 6946.11952293
delta logL = -1.8807259039e-07

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.670e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.038e+00  9.633e+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.032e+00  5.281e-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:  9.642e-01  9.091e-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/468871/cmap_HighResolution_628128001_628387201_4FGL_J2245.9+1544_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-09-28 20:36:01.293864', job_id='468871', GAL2='1.03', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632886561.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1500' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:36:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 468871: <4FGL_J2245.9+1544_daily_bin1500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1500 341.491 15.7479 628128001 628387201 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

