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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1521
RA = 341.491, Dec = 15.7479
tmin = 633571201, tmax = 633830401
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='468901', job_status='RUN', time_executed='2021-09-28 20:22:49.896942', time_epoch_executed='1632885769.9' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468901/ft1_4FGL_J2245.9+1544_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468901/ft2_4FGL_J2245.9+1544_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468901/ft1_4FGL_J2245.9+1544_daily_bin1521.fits outfile=/scratch/kocevski/468901/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1521.fits ra=341.491 dec=15.7479 rad=12.0 tmin=633571201.0 tmax=633830401.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.61
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468901/ft2_4FGL_J2245.9+1544_daily_bin1521.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/468901/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1521.fits evtable="EVENTS" outfile="/scratch/kocevski/468901/ft1_filtered_4FGL_J2245.9+1544_daily_bin1521.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468901/ft1_filtered_4FGL_J2245.9+1544_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/468901/ft2_4FGL_J2245.9+1544_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/468901/ltcube_633571201_633830401_4FGL_J2245.9+1544_daily_bin1521.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/468901/ft2_4FGL_J2245.9+1544_daily_bin1521.fits
.....................!
real 11.90
user 11.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468901/ft1_filtered_4FGL_J2245.9+1544_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/468901/ft2_4FGL_J2245.9+1544_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/468901/ltcube_633571201_633830401_4FGL_J2245.9+1544_daily_bin1521.fits outfile=/scratch/kocevski/468901/expmap_633571201_633830401_4FGL_J2245.9+1544_daily_bin1521.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/468901/ltcube_633571201_633830401_4FGL_J2245.9+1544_daily_bin1521.fits
.....................!
real 193.09
user 187.45
sys 5.27

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/468901/ft1_filtered_4FGL_J2245.9+1544_daily_bin1521.fits scfile=/scratch/kocevski/468901/ft2_4FGL_J2245.9+1544_daily_bin1521.fits outfile=/scratch/kocevski/468901/cmap_633571201_633830401_4FGL_J2245.9+1544_daily_bin1521.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .82856E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13377E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47469E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1221       1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.492       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.809       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0101       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.444       1.0000         .10000E-03   10000.    
    20 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2455       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7180       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1124       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0294       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=   7268.480     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2818 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .33433        .10586E-07** at limit **
   2  Prefactor     .10015E-03    13.325        .13851E-05** at limit **
   3  norm          .10000E-03    1.2346        .15514E-08** at limit **
   4  Prefactor     .10000E-03    10.744        .88645E-06** at limit **
   5  Prefactor     .10000E-03    35.573        .23701E-05** at limit **
   6  Prefactor     .13313E-01    .17156        .33627E-07   -.39025E-03
   7  Prefactor     .10018E-03    6.7325       -.65277E-06** at limit **
   8  norm          1.1221        1.7307        .99675E-07   -.11474E-03
   9  Prefactor     59.493        46.468        .37632E-06    .21754E-04
  10  Prefactor     24.808        14.876        .71601E-09   -.24216E-04
  11  Prefactor     14.816        25.869       -.86399E-06   -.51840E-04
  12  Prefactor     .42111        .19415        .84265E-08   -.30649E-03
  13  Prefactor     .10000E-03    8.6353       -.28409E-07** at limit **
  14  Prefactor     .10000E-03    18.975        .49316E-05** at limit **
  15  Prefactor     .10000E-03    2.8261       -.78433E-08** at limit **
  16  Prefactor     4.0106        8.0481        .77986E-07   -.46244E-04
  17  Prefactor     .10001E-03    20.651       -.59105E-05** at limit **
  18  Prefactor     .10000E-03    4.0980        .25836E-07** at limit **
  19  Prefactor     27.444        22.095       -.28535E-07   -.71272E-05
  20  norm          .10000E-03    11.366       -.12083E-05** at limit **
  21  Prefactor     2.2435        9.2694        .29300E-06   -.73376E-04
  22  norm          3.7179        8.3785        .25673E-05   -.78748E-03
  23  Normalizat    1.1126        .23114       -.35284E-06   -.74842E-04
  24  Prefactor     1.0293        .12125        .88433E-08   -.11132E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100151
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0133132
  Prefactor  = 0.00010018
  norm       = 1.12207
  Prefactor  = 59.4928
  Prefactor  = 24.8076
  Prefactor  = 14.8165
  Prefactor  = 0.421113
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 4.01055
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 27.4438
  norm       = 0.0001
  Prefactor  = 2.24352
  norm       = 3.71794
  Normalizat = 1.11257
  Prefactor  = 1.02933
 **********
 **   18 **HESSE 
 **********

 FCN=   7268.480     FROM HESSE     STATUS=OK           405 CALLS     3223 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .50587        .95733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10015E-03    83.709        .58705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.2397        .92507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13313E-01    .76726        .61267E-03   -1.5685    
   7  Prefactor     .10018E-03    82.506        .40203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1221        1.4548        .13106E-02   -1.5496    
   9  Prefactor     59.493        46.554        .52017E-04   -1.4164    
  10  Prefactor     24.808        14.652        .80423E-04   -1.4711    
  11  Prefactor     14.816        25.865        .10404E-03   -1.4938    
  12  Prefactor     .42111        .19193        .21987E-04   -1.5578    
  13  Prefactor     .10000E-03    8.7100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8400        .13994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0106        8.0336        .20139E-03   -1.5307    
  17  Prefactor     .10001E-03    21.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1779        .16840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.444        22.121        .76473E-04   -1.4660    
  20  norm          .10000E-03    11.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2435        9.2742        .27424E-03   -1.5408    
  22  norm          3.7179        10.871        .10471E-02   -1.5322    
  23  Normalizat    1.1126        .27107        .33105E-03   -.89349    
  24  Prefactor     1.0293        .14262        .19053E-03   -.91758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56218e-08
Minuit parameter uncertainties:
  1  1.58863e-07
  2  0.00712556
  3  1.74477e-07
  4  7.87308e-05
  5  0.00024603
  6  0.201378
  7  0.00771133
  8  1.45481
  9  46.5822
  10  14.6537
  11  25.8848
  12  0.191935
  13  1.11234e-06
  14  0.000571122
  15  3.83613e-07
  16  8.03578
  17  0.000712961
  18  2.14266e-06
  19  22.1273
  20  0.000100522
  21  9.12512
  22  10.8767
  23  0.271413
  24  0.142675
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.029e+00  1.427e-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.113e+00  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 4.55e-05 +/- 3.57e-05

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) = 7264.62624989
delta logL = 3.85407608596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7264.58405625
delta logL = 3.89626972456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9569       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2287       1.0000          .0000       10.000    
     3 'Normalizat'    .90925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0922       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=   7264.584     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      289 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9521        30.296        .38026E-02    .10383E-02
   2  Index         3.2290        1.3332        .45361E-01    .43638E-03
   3  Normalizat    .90942        .10503        .81132E-01   -.34496E-04
   4  Prefactor     1.0922        .54355E-01    .37891E-01    .31088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95207
  Index      = 3.22895
  Normalizat = 0.909422
  Prefactor  = 1.09221
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.584     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      320 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9521        39.051        .73309E-04   -1.5181    
   2  Index         3.2290        1.6026        .19153E-02   -.36207    
   3  Normalizat    .90942        .27945        .35916E-03   -.96130    
   4  Prefactor     1.0922        .15132        .18492E-03   -.89716    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.57237e-09
Minuit parameter uncertainties:
  1  32.9862
  2  1.63575
  3  0.279897
  4  0.151377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468901': 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) = 7264.5840545
delta logL = 3.89627147549

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  6.952e+00  3.299e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.229e+00  1.636e+00  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.092e+00  1.514e-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.094e-01  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.38
Ra Dec: 341.491 15.748
Photon Index (Free Index): 3.23 +/- 1.64
Photon Flux (Free Index): 2.57e-07 +/- 1.13e-07
Energy Flux (Free Index): 4.65e-05 +/- 2.23e-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/468901/cmap_HighResolution_633571201_633830401_4FGL_J2245.9+1544_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='4.65e-05', photon_flux_error='4.71e-08', dlogl='3.90e+00', energy_flux='4.55e-05', photon_flux2='2.57e-07', job_status='DONE', time_completed='2021-09-28 20:34:14.660821', photon_index_error2='1.64', photon_index2='3.23', ts='4.94', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.11', time_epoch_completed='1632886454.66', return_code='0', job_id='468901', GAL2='1.09', EG2='0.91', return_code2='102', energy_flux_error='3.57e-05', photon_flux_error2='1.13e-07', ts2='13.38', photon_index='1.96' WHERE bin_id='1521' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:34:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 468901: <4FGL_J2245.9+1544_daily_bin1521> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1521 341.491 15.7479 633571201 633830401 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 :                                   644.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

