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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin697
RA = 341.491, Dec = 15.7479
tmin = 419990401, tmax = 420249601
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='465555', job_status='RUN', time_executed='2021-09-28 20:10:27.852995', time_epoch_executed='1632885027.85' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465555/ft1_4FGL_J2245.9+1544_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465555/ft2_4FGL_J2245.9+1544_daily_bin697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465555/ft1_4FGL_J2245.9+1544_daily_bin697.fits outfile=/scratch/kocevski/465555/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin697.fits ra=341.491 dec=15.7479 rad=12.0 tmin=419990401.0 tmax=420249601.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.40
user 3.18
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465555/ft1_filtered_4FGL_J2245.9+1544_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/465555/ft2_4FGL_J2245.9+1544_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/465555/ltcube_419990401_420249601_4FGL_J2245.9+1544_daily_bin697.fits outfile=/scratch/kocevski/465555/expmap_419990401_420249601_4FGL_J2245.9+1544_daily_bin697.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/465555/ltcube_419990401_420249601_4FGL_J2245.9+1544_daily_bin697.fits
.....................!
real 191.64
user 186.43
sys 4.74

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/465555/ft1_filtered_4FGL_J2245.9+1544_daily_bin697.fits scfile=/scratch/kocevski/465555/ft2_4FGL_J2245.9+1544_daily_bin697.fits outfile=/scratch/kocevski/465555/cmap_419990401_420249601_4FGL_J2245.9+1544_daily_bin697.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465555/ft1_filtered_4FGL_J2245.9+1544_daily_bin697.fits scfile=/scratch/kocevski/465555/ft2_4FGL_J2245.9+1544_daily_bin697.fits outfile=/scratch/kocevski/465555/cmap_HighResolution_419990401_420249601_4FGL_J2245.9+1544_daily_bin697.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0491       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.202       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7342       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.202       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    80.756       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75654E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    8.8894       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0046       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0790       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=   11066.09     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2704 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .29400       -.23642E-06** at limit **
   2  Prefactor     .10000E-03    10.641       -.88867E-06** at limit **
   3  norm          11.987        6.0197       -.57863E-06    .98314E-04
   4  Prefactor     .10000E-03    7.6222       -.23106E-05** at limit **
   5  Prefactor     9.1815        8.7506       -.91406E-06   -.67642E-05
   6  Prefactor     .50209        .18118       -.13350E-06   -.56261E-03
   7  Prefactor     .10000E-03    1.7391        .20557E-07** at limit **
   8  norm          2.0492        1.4468       -.12917E-06   -.32603E-03
   9  Prefactor     .10000E-03    10.569       -.11329E-05** at limit **
  10  Prefactor     .10000E-03    8.1106        .33166E-05** at limit **
  11  Prefactor     17.218        22.186        .18373E-04   -.38486E-04
  12  Prefactor     2.4413        .26390       -.19905E-06    .43508E-02
  13  Prefactor     9.7354        7.5392        .25224E-06    .30463E-03
  14  Prefactor     38.173        36.437       -.36941E-04    .17632E-04
  15  Prefactor     .10000E-03    10.476       -.52350E-06** at limit **
  16  Prefactor     .10000E-03    2.9529        .15367E-07** at limit **
  17  Prefactor     80.742        44.186       -.13717E-04    .77627E-05
  18  Prefactor     12.886        8.1761       -.68534E-06   -.65205E-04
  19  Prefactor     .10000E-03    9.4198        .11077E-06** at limit **
  20  norm          .10000E-03    2.6653        .54241E-07** at limit **
  21  Prefactor     .10001E-03    4.1507        .84899E-06** at limit **
  22  norm          8.8785        22.840       -.18338E-04   -.44708E-04
  23  Normalizat    1.0043        .22494        .92342E-05   -.19269E-03
  24  Prefactor     1.0792        .11485       -.71088E-08    .24548E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9873
  Prefactor  = 0.0001
  Prefactor  = 9.18154
  Prefactor  = 0.50209
  Prefactor  = 0.0001
  norm       = 2.04922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2181
  Prefactor  = 2.44131
  Prefactor  = 9.73536
  Prefactor  = 38.1732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.7421
  Prefactor  = 12.8859
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  norm       = 8.87854
  Normalizat = 1.00432
  Prefactor  = 1.07916
 **********
 **   18 **HESSE 
 **********

 FCN=   11066.09     FROM HESSE     STATUS=OK           397 CALLS     3101 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .49129        .11024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.987        6.0105        .11571E-03   -1.5015    
   4  Prefactor     .10000E-03    7.6686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1815        8.7484        .13227E-03   -1.5102    
   6  Prefactor     .50209        .17893        .25513E-04   -1.5566    
   7  Prefactor     .10000E-03    1.7411        .13547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0492        1.4450        .10333E-03   -1.5422    
   9  Prefactor     .10000E-03    10.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.218        22.204        .96568E-04   -1.4878    
  12  Prefactor     2.4413        .26488        .16265E-04   -1.5395    
  13  Prefactor     9.7354        7.5393        .64220E-03   -1.5084    
  14  Prefactor     38.173        36.459        .64846E-04   -1.4471    
  15  Prefactor     .10000E-03    10.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9565        .17653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     80.742        44.171        .44693E-04   -1.3908    
  18  Prefactor     12.886        8.1813        .11159E-03   -1.4990    
  19  Prefactor     .10000E-03    9.4329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6676        .16769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    30.751        .41044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.8785        22.790        .13443E-03   -1.5112    
  23  Normalizat    1.0043        .25408        .40130E-03   -.92886    
  24  Prefactor     1.0792        .13188        .21197E-03   -.90136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67245e-09
Minuit parameter uncertainties:
  1  1.71633e-05
  2  5.55434e-05
  3  6.01079
  4  4.77027e-05
  5  8.74963
  6  0.178931
  7  2.10389e-06
  8  1.44507
  9  2.41084e-05
  10  4.29012e-05
  11  22.215
  12  0.264879
  13  7.54008
  14  36.4798
  15  0.000129251
  16  6.42459e-07
  17  44.1893
  18  8.18201
  19  2.05339e-07
  20  2.96705e-06
  21  0.00134129
  22  22.8127
  23  0.254385
  24  0.13192
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.411e-05  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.079e+00  1.319e-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.004e+00  2.544e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/465555/likelihoodResults_419990401_420249601_4FGL_J2245.9+1544_daily_bin697.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) = 11066.0891112
delta logL = -0.000450076375273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11066.0886612
delta logL = -7.22648110241e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9511       1.0000          .0000       10.000    
     3 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0792       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=   11066.09     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1639.6        .90712E-02** at limit **
   2  Index         1.9383        5.3597        .50000        .93250E-05
   3  Normalizat    1.0043        .88444E-01    .90616E-01    .37772E-04
   4  Prefactor     1.0792        .48479E-01    .38438E-01    .55864E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93835
  Normalizat = 1.00433
  Prefactor  = 1.07915
 **********
 **   18 **HESSE 
 **********

 FCN=   11066.09     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    767.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9383        6.0991        .50000       -.65901    
   3  Normalizat    1.0043        .48965E-01    .40129E-03   -.92886    
   4  Prefactor     1.0792        .26913E-01    .21197E-03   -.90136    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.26693e-09
Minuit parameter uncertainties:
  1  2.05875e-05
  2  33.965
  3  0.0489668
  4  0.0269134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465555': 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) = 11066.088661
delta logL = 6.20657374384e-08

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.059e-05  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.938e+00  3.397e+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.079e+00  2.691e-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.004e+00  4.897e-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/465555/cmap_HighResolution_419990401_420249601_4FGL_J2245.9+1544_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-28 20:25:37.660523', job_id='465555', GAL2='1.08', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632885937.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='697' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 465555: <4FGL_J2245.9+1544_daily_bin697> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin697> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 20:10:17 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:10:18 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:10:18 2021
Terminated at Tue Sep 28 20:25:38 2021
Results reported at Tue Sep 28 20:25:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin697 341.491 15.7479 419990401 420249601 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 :                                   910.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

