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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1306
RA = 341.491, Dec = 15.7479
tmin = 577843201, tmax = 578102401
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='468587', job_status='RUN', time_executed='2021-09-28 20:23:00.402461', time_epoch_executed='1632885780.4' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468587

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468587/ft1_4FGL_J2245.9+1544_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468587/ft2_4FGL_J2245.9+1544_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468587/ft1_4FGL_J2245.9+1544_daily_bin1306.fits outfile=/scratch/kocevski/468587/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1306.fits ra=341.491 dec=15.7479 rad=12.0 tmin=577843201.0 tmax=578102401.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.27
user 3.07
sys 0.19

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468587/ft1_filtered_4FGL_J2245.9+1544_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/468587/ft2_4FGL_J2245.9+1544_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/468587/ltcube_577843201_578102401_4FGL_J2245.9+1544_daily_bin1306.fits outfile=/scratch/kocevski/468587/expmap_577843201_578102401_4FGL_J2245.9+1544_daily_bin1306.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/468587/ltcube_577843201_578102401_4FGL_J2245.9+1544_daily_bin1306.fits
.....................!
real 192.11
user 186.18
sys 5.61

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/468587/ft1_filtered_4FGL_J2245.9+1544_daily_bin1306.fits scfile=/scratch/kocevski/468587/ft2_4FGL_J2245.9+1544_daily_bin1306.fits outfile=/scratch/kocevski/468587/cmap_577843201_578102401_4FGL_J2245.9+1544_daily_bin1306.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468587/ft1_filtered_4FGL_J2245.9+1544_daily_bin1306.fits scfile=/scratch/kocevski/468587/ft2_4FGL_J2245.9+1544_daily_bin1306.fits outfile=/scratch/kocevski/468587/cmap_HighResolution_577843201_578102401_4FGL_J2245.9+1544_daily_bin1306.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63698       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2497       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66910       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1644       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    226.93       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16989E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.669       1.0000         .10000E-03   10000.    
    20 'norm      '    23.404       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89430       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0944       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=   7546.322     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2683 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63703        .60354        .42558E-07    .11353E-03
   2  Prefactor     .10000E-03    7.5478        .69480E-07** at limit **
   3  norm          8.2538        6.0931        .97478E-07    .20222E-04
   4  Prefactor     .10000E-03    11.445        .65369E-06** at limit **
   5  Prefactor     .10000E-03    13.208       -.44031E-06** at limit **
   6  Prefactor     .66932        .24123        .52990E-07   -.48828E-03
   7  Prefactor     .10000E-03    1.8883       -.27403E-08** at limit **
   8  norm          2.1649        1.9279        .33405E-06   -.21160E-03
   9  Prefactor     60.235        45.464        .68608E-06    .69469E-05
  10  Prefactor     226.95        33.071       -.38889E-06   -.97952E-04
  11  Prefactor     .10000E-03    30.901       -.29321E-06** at limit **
  12  Prefactor     2.1088        .32588       -.33947E-07   -.81371E-04
  13  Prefactor     5.5390        9.7630       -.15753E-06    .25807E-04
  14  Prefactor     .10000E-03    14.118       -.46115E-06** at limit **
  15  Prefactor     .10000E-03    4.1331        .12362E-06** at limit **
  16  Prefactor     .10000E-03    5.6277        .35652E-07** at limit **
  17  Prefactor     .10000E-03    69.360       -.57335E-06** at limit **
  18  Prefactor     .10000E-03    22.688       -.63083E-05** at limit **
  19  Prefactor     20.615        29.419       -.20939E-05    .32326E-04
  20  norm          23.395        14.205        .13543E-07   -.13696E-04
  21  Prefactor     .10000E-03    3.5659        .48386E-07** at limit **
  22  norm          .10000E-03    8.7452       -.65040E-07** at limit **
  23  Normalizat    .89373        .28099       -.19310E-05   -.52234E-04
  24  Prefactor     1.0946        .14619       -.36809E-06   -.16612E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.637028
  Prefactor  = 0.0001
  norm       = 8.25381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.669317
  Prefactor  = 0.0001
  norm       = 2.16486
  Prefactor  = 60.2347
  Prefactor  = 226.953
  Prefactor  = 0.0001
  Prefactor  = 2.10877
  Prefactor  = 5.53897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6152
  norm       = 23.3951
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.893725
  Prefactor  = 1.09456
 **********
 **   18 **HESSE 
 **********

 FCN=   7546.322     FROM HESSE     STATUS=OK           393 CALLS     3076 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63703        .61099        .63714E-04   -1.5548    
   2  Prefactor     .10000E-03    7.5657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2538        6.0897        .13958E-03   -1.5133    
   4  Prefactor     .10000E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66932        .24074        .24050E-04   -1.5544    
   7  Prefactor     .10000E-03    1.8888        .11658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1649        1.9234        .54767E-03   -1.5414    
   9  Prefactor     60.235        45.598        .51692E-04   -1.4154    
  10  Prefactor     226.95        33.016        .13430E-03   -1.2683    
  11  Prefactor     .10000E-03    31.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1088        .32715        .17894E-04   -1.5418    
  13  Prefactor     5.5390        9.7479        .17078E-03   -1.5237    
  14  Prefactor     .10000E-03    14.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1547        .17253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    69.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.446        .36509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.615        29.283        .88100E-04   -1.4800    
  20  norm          23.395        14.210        .82798E-04   -1.4740    
  21  Prefactor     .10000E-03    3.5691        .16020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.7470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89373        .31559        .43689E-03   -.96681    
  24  Prefactor     1.0946        .16659        .21809E-03   -.89641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20071e-11
Minuit parameter uncertainties:
  1  0.610992
  2  1.96313e-05
  3  6.0902
  4  5.10903e-05
  5  9.60305e-05
  6  0.240743
  7  7.86377e-07
  8  1.92348
  9  45.6249
  10  33.0191
  11  6.56926e-05
  12  0.327152
  13  9.75067
  14  7.13002e-06
  15  1.29553e-05
  16  1.22491e-05
  17  0.000184851
  18  3.45484e-05
  19  29.3038
  20  14.2119
  21  4.03763e-06
  22  8.01269e-06
  23  0.316248
  24  0.166667
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  6.023e+01  4.562e+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.095e+00  1.667e-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.937e-01  3.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 6.10e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 4.61e-05 +/- 3.49e-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) = 7544.66304238
delta logL = 1.65899049079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7544.61514922
delta logL = 1.70688365375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.607       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0478       1.0000          .0000       10.000    
     3 'Normalizat'    .72629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1478       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7544.615     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      304 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.608        101.25        .11759E-03    .15936E-02
   2  Index         3.0474        2.1847        .25284E-02    .65872E-03
   3  Normalizat    .72629        .41831        .47677E-03    .18948E-03
   4  Prefactor     1.1478        .20238        .21284E-03    .48618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6077
  Index      = 3.04742
  Normalizat = 0.726288
  Prefactor  = 1.14777
 **********
 **   18 **HESSE 
 **********

 FCN=   7544.615     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.608        17.406        .47035E-05   -1.5026    
   2  Index         3.0474        .57465        .10113E-03   -.40119    
   3  Normalizat    .72629        .31941        .19071E-04   -1.0286    
   4  Prefactor     1.1478        .17092        .42569E-04   -.87954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23429e-10
Minuit parameter uncertainties:
  1  17.4139
  2  0.576151
  3  0.320229
  4  0.171003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468587': 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): 0
logL (Free Index) = 7544.61514641
delta logL = 1.70688646291

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.161e+01  1.741e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.047e+00  5.762e-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.148e+00  1.710e-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:  7.263e-01  3.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.86
Ra Dec: 341.491 15.748
Photon Index (Free Index): 3.05 +/- 0.58
Photon Flux (Free Index): 2.47e-07 +/- 1.32e-07
Energy Flux (Free Index): 4.82e-05 +/- 2.13e-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/468587/cmap_HighResolution_577843201_578102401_4FGL_J2245.9+1544_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.10e-08', energy_flux2='4.82e-05', photon_flux_error='4.62e-08', dlogl='1.71e+00', energy_flux='4.61e-05', photon_flux2='2.47e-07', job_status='DONE', time_completed='2021-09-28 20:34:38.321027', photon_index_error2='0.58', photon_index2='3.05', ts='5.11', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.89', time_epoch_completed='1632886478.32', return_code='0', job_id='468587', GAL2='1.15', EG2='0.73', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='1.32e-07', ts2='8.86', photon_index='1.96' WHERE bin_id='1306' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:34:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 468587: <4FGL_J2245.9+1544_daily_bin1306> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1306 341.491 15.7479 577843201 578102401 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 :                                   651.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

