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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1535
RA = 341.491, Dec = 15.7479
tmin = 637200001, tmax = 637459201
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='468921', job_status='RUN', time_executed='2021-09-28 20:23:50.070590', time_epoch_executed='1632885830.07' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468921/ft1_4FGL_J2245.9+1544_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468921/ft2_4FGL_J2245.9+1544_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468921/ft1_4FGL_J2245.9+1544_daily_bin1535.fits outfile=/scratch/kocevski/468921/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1535.fits ra=341.491 dec=15.7479 rad=12.0 tmin=637200001.0 tmax=637459201.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.41
user 5.17
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468921/ft1_filtered_4FGL_J2245.9+1544_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/468921/ft2_4FGL_J2245.9+1544_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/468921/ltcube_637200001_637459201_4FGL_J2245.9+1544_daily_bin1535.fits outfile=/scratch/kocevski/468921/expmap_637200001_637459201_4FGL_J2245.9+1544_daily_bin1535.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/468921/ltcube_637200001_637459201_4FGL_J2245.9+1544_daily_bin1535.fits
.....................!
real 190.64
user 185.28
sys 4.89

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/468921/ft1_filtered_4FGL_J2245.9+1544_daily_bin1535.fits scfile=/scratch/kocevski/468921/ft2_4FGL_J2245.9+1544_daily_bin1535.fits outfile=/scratch/kocevski/468921/cmap_637200001_637459201_4FGL_J2245.9+1544_daily_bin1535.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468921/ft1_filtered_4FGL_J2245.9+1544_daily_bin1535.fits scfile=/scratch/kocevski/468921/ft2_4FGL_J2245.9+1544_daily_bin1535.fits outfile=/scratch/kocevski/468921/cmap_HighResolution_637200001_637459201_4FGL_J2245.9+1544_daily_bin1535.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/468921/ft1_filtered_4FGL_J2245.9+1544_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/468921/ft2_4FGL_J2245.9+1544_daily_bin1535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468921/Model_4FGL_J2245.9+1544_daily_bin1535.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/468921/ft1_filtered_4FGL_J2245.9+1544_daily_bin1535.fits.....................!
real 68.10
user 66.74
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30339E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .61436       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.511       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58326E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8332       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9961       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.228       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5833       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5895       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6530       1.0000         .10000E-03   10000.    
    22 'norm      '    .19974       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81521       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0422       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=   6701.935     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2785 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31262E-01    6.5029       -.35459E-05    .22925E-03
   2  Prefactor     .59408        16.560        .36737E-05    .17083E-03
   3  norm          .10000E-03    2.0513        .11736E-06** at limit **
   4  Prefactor     13.506        14.682        .11243E-05    .16250E-03
   5  Prefactor     18.082        11.962       -.84435E-06    .96539E-04
   6  Prefactor     .58266E-01    .14829       -.33602E-06    .14906E-03
   7  Prefactor     .10000E-03    3.7008       -.53214E-07** at limit **
   8  norm          2.8331        1.7375       -.14185E-07    .36997E-04
   9  Prefactor     .10000E-03    14.999        .11036E-05** at limit **
  10  Prefactor     .10000E-03    3.2452       -.17890E-07** at limit **
  11  Prefactor     .10000E-03    13.732       -.52387E-06** at limit **
  12  Prefactor     .60479        .16827       -.49210E-08    .73093E-03
  13  Prefactor     .10000E-03    4.6228        .86797E-07** at limit **
  14  Prefactor     .10000E-03    19.061       -.55263E-06** at limit **
  15  Prefactor     3.9962        7.4493       -.80012E-06    .33861E-04
  16  Prefactor     .10000E-03    3.2793        .86865E-07** at limit **
  17  Prefactor     .10000E-03    6.7973       -.77382E-07** at limit **
  18  Prefactor     27.228        9.4455       -.22819E-07   -.24074E-04
  19  Prefactor     5.5853        15.751       -.94562E-08   -.10269E-04
  20  norm          2.5841        8.5566       -.11170E-05    .11673E-04
  21  Prefactor     6.6587        7.8166       -.14059E-05    .76773E-04
  22  norm          .10015E-03    14.800       -.37095E-06** at limit **
  23  Normalizat    .81531        .22911        .22211E-05    .16050E-03
  24  Prefactor     1.0421        .12417       -.10846E-06    .26415E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0312624
  Prefactor  = 0.594075
  norm       = 0.0001
  Prefactor  = 13.5065
  Prefactor  = 18.0821
  Prefactor  = 0.0582659
  Prefactor  = 0.0001
  norm       = 2.83312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.604791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2276
  Prefactor  = 5.58525
  norm       = 2.58406
  Prefactor  = 6.65872
  norm       = 0.000100146
  Normalizat = 0.815314
  Prefactor  = 1.04214
 **********
 **   18 **HESSE 
 **********

 FCN=   6701.935     FROM HESSE     STATUS=OK           415 CALLS     3200 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31262E-01    7.3771        .10764E-02   -1.5673    
   2  Prefactor     .59408        76.890        .46844E-02   -1.5554    
   3  norm          .10000E-03    2.0631        .11450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.506        14.652        .10897E-03   -1.4973    
   5  Prefactor     18.082        11.967        .94179E-04   -1.4857    
   6  Prefactor     .58266E-01    .15521        .44858E-03   -1.5660    
   7  Prefactor     .10000E-03    3.7101        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8331        1.7384        .82129E-04   -1.5371    
   9  Prefactor     .10000E-03    14.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2529        .14401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .60479        .16799        .16683E-04   -1.5552    
  13  Prefactor     .10000E-03    4.6515        .17189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9962        7.4398        .20175E-03   -1.5308    
  16  Prefactor     .10000E-03    3.2825        .14478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.228        9.4286        .76775E-04   -1.4664    
  19  Prefactor     5.5853        15.701        .17002E-03   -1.5235    
  20  norm          2.5841        8.5163        .25358E-03   -1.5386    
  21  Prefactor     6.6587        7.8357        .77786E-03   -1.5192    
  22  norm          .10015E-03    13.956        .10496       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81531        .26216        .35330E-03   -.99503    
  24  Prefactor     1.0421        .14499        .18122E-03   -.91338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64916e-09
Minuit parameter uncertainties:
  1  0.959054
  2  13.5338
  3  4.02757e-06
  4  14.6556
  5  11.9682
  6  0.155211
  7  1.25501e-05
  8  1.73846
  9  4.88038e-05
  10  2.62842e-06
  11  4.17783e-05
  12  0.167994
  13  3.99154e-06
  14  3.12109e-05
  15  7.44151
  16  3.92305e-07
  17  5.94386e-07
  18  9.42907
  19  15.7127
  20  8.52025
  21  7.83693
  22  0.00285605
  23  0.262563
  24  0.145041
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.880e-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.042e+00  1.450e-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:  8.153e-01  2.626e-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: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468921/likelihoodResults_637200001_637459201_4FGL_J2245.9+1544_daily_bin1535.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) = 6701.93550999
delta logL = -0.000317997935781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6701.9351942
delta logL = -2.2068979888e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14927E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1995       1.0000          .0000       10.000    
     3 'Normalizat'    .81531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0421       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=   6701.935     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.9390        .90712E-02** at limit **
   2  Index         2.1854        5.4520        .50000        .85508E-05
   3  Normalizat    .81531        .20338E-02    .79805E-01   -.18939E-03
   4  Prefactor     1.0421        .11720E-02    .40393E-01    .49732E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.1854
  Normalizat = 0.815308
  Prefactor  = 1.04214
 **********
 **   18 **HESSE 
 **********

 FCN=   6701.935     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    47.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1854        6.0926        .50000       -.59792    
   3  Normalizat    .81531        .10104E-01    .35330E-03   -.99503    
   4  Prefactor     1.0421        .58347E-02    .18122E-03   -.91338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08089e-07
Minuit parameter uncertainties:
  1  0.00140977
  2  133.814
  3  0.0101044
  4  0.00583475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468921': 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) = 6701.93519234
delta logL = -3.48447429133e-07

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.410e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.185e+00  1.338e+02  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.042e+00  5.835e-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:  8.153e-01  1.010e-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/468921/cmap_HighResolution_637200001_637459201_4FGL_J2245.9+1544_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-09-28 20:36:15.750446', job_id='468921', GAL2='1.04', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632886575.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-3.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1535' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:36:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 468921: <4FGL_J2245.9+1544_daily_bin1535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1535 341.491 15.7479 637200001 637459201 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

