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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1592
RA = 341.491, Dec = 15.7479
tmin = 651974401, tmax = 652233601
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='470023', job_status='RUN', time_executed='2021-09-28 20:25:32.408105', time_epoch_executed='1632885932.41' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470023/ft1_4FGL_J2245.9+1544_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470023/ft2_4FGL_J2245.9+1544_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470023/ft1_4FGL_J2245.9+1544_daily_bin1592.fits outfile=/scratch/kocevski/470023/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1592.fits ra=341.491 dec=15.7479 rad=12.0 tmin=651974401.0 tmax=652233601.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.49
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/470023/ft2_4FGL_J2245.9+1544_daily_bin1592.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/470023/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1592.fits evtable="EVENTS" outfile="/scratch/kocevski/470023/ft1_filtered_4FGL_J2245.9+1544_daily_bin1592.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/470023/ft1_filtered_4FGL_J2245.9+1544_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/470023/ft2_4FGL_J2245.9+1544_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/470023/ltcube_651974401_652233601_4FGL_J2245.9+1544_daily_bin1592.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/470023/ft2_4FGL_J2245.9+1544_daily_bin1592.fits
.....................!
real 12.04
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470023/ft1_filtered_4FGL_J2245.9+1544_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/470023/ft2_4FGL_J2245.9+1544_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/470023/ltcube_651974401_652233601_4FGL_J2245.9+1544_daily_bin1592.fits outfile=/scratch/kocevski/470023/expmap_651974401_652233601_4FGL_J2245.9+1544_daily_bin1592.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/470023/ltcube_651974401_652233601_4FGL_J2245.9+1544_daily_bin1592.fits
.....................!
real 190.31
user 184.84
sys 4.80

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/470023/ft1_filtered_4FGL_J2245.9+1544_daily_bin1592.fits scfile=/scratch/kocevski/470023/ft2_4FGL_J2245.9+1544_daily_bin1592.fits outfile=/scratch/kocevski/470023/cmap_651974401_652233601_4FGL_J2245.9+1544_daily_bin1592.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470023/ft1_filtered_4FGL_J2245.9+1544_daily_bin1592.fits scfile=/scratch/kocevski/470023/ft2_4FGL_J2245.9+1544_daily_bin1592.fits outfile=/scratch/kocevski/470023/cmap_HighResolution_651974401_652233601_4FGL_J2245.9+1544_daily_bin1592.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=341.491 yref=15.7479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .16416E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0071       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.102       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42236       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11191E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13861E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.308       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93447       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.087       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9344       1.0000         .10000E-03   10000.    
    20 'norm      '    11.438       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11176E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.043       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1432       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72390       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=   6910.050     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2390 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .41667        .81499E-09** at limit **
   2  Prefactor     .10000E-03    17.437        .97750E-06** at limit **
   3  norm          .10000E-03    2.5113        .49303E-08** at limit **
   4  Prefactor     3.0084        11.120        .50355E-05   -.40749E-04
   5  Prefactor     15.105        12.415       -.74077E-07   -.39029E-04
   6  Prefactor     .42228        .21345       -.46112E-07   -.81751E-04
   7  Prefactor     .10000E-03    2.0633       -.50405E-08** at limit **
   8  norm          .10000E-03    1.3967       -.26667E-07** at limit **
   9  Prefactor     .10000E-03    104.91        .15981E-05** at limit **
  10  Prefactor     48.317        17.029        .55627E-07   -.20003E-04
  11  Prefactor     .10000E-03    13.081       -.86931E-07** at limit **
  12  Prefactor     .93406        .21121       -.16720E-08   -.46434E-03
  13  Prefactor     .10000E-03    3.6858       -.11347E-07** at limit **
  14  Prefactor     .10000E-03    54.018       -.13936E-05** at limit **
  15  Prefactor     .10000E-03    5.6475       -.50686E-09** at limit **
  16  Prefactor     .10000E-03    2.8682       -.35983E-08** at limit **
  17  Prefactor     .10000E-03    25.232        .20739E-05** at limit **
  18  Prefactor     18.087        10.452        .23274E-06    .27950E-05
  19  Prefactor     2.9327        54.344        .71394E-07    .65821E-05
  20  norm          11.442        10.450        .91868E-06    .41898E-03
  21  Prefactor     .10000E-03    20.341       -.18520E-05** at limit **
  22  norm          17.045        19.817        .25616E-06    .44181E-04
  23  Normalizat    1.1434        .22607       -.22957E-06    .65226E-04
  24  Prefactor     .72377        .11107       -.18635E-06    .58453E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.00842
  Prefactor  = 15.1054
  Prefactor  = 0.422277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3165
  Prefactor  = 0.0001
  Prefactor  = 0.934062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0873
  Prefactor  = 2.9327
  norm       = 11.4416
  Prefactor  = 0.0001
  norm       = 17.0449
  Normalizat = 1.1434
  Prefactor  = 0.72377
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.050     FROM HESSE     STATUS=OK           401 CALLS     2791 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .80464        .10408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2945        .25514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0084        11.150        .11703E-02   -1.5361    
   5  Prefactor     15.105        12.490        .10306E-03   -1.4930    
   6  Prefactor     .42228        .21176        .25155E-04   -1.5578    
   7  Prefactor     .10000E-03    2.0647        .11661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4522        .19092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    105.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.317        16.992        .57694E-04   -1.4317    
  11  Prefactor     .10000E-03    13.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .93406        .21147        .16971E-04   -1.5515    
  13  Prefactor     .10000E-03    3.6940        .15585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    54.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8695        .13749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.087        10.247        .47087E-03   -1.4857    
  19  Prefactor     2.9327        52.004        .23712E-03   -1.5365    
  20  norm          11.442        10.637        .11846E-03   -1.5031    
  21  Prefactor     .10000E-03    20.814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.045        19.817        .97017E-04   -1.4882    
  23  Normalizat    1.1434        .26885        .30871E-03   -.88370    
  24  Prefactor     .72377        .13139        .20094E-03   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12192e-10
Minuit parameter uncertainties:
  1  2.2238e-07
  2  5.2755e-05
  3  3.28225e-07
  4  11.1575
  5  12.4923
  6  0.211757
  7  2.58729e-07
  8  1.1831e-06
  9  0.000226344
  10  16.9934
  11  9.65048e-08
  12  0.211468
  13  8.35144e-07
  14  0.000127706
  15  6.11131e-07
  16  6.15654e-08
  17  0.000102936
  18  10.2481
  19  24.7239
  20  10.639
  21  0.000193837
  22  19.8248
  23  0.269178
  24  0.131449
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  7.238e-01  1.314e-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.143e+00  2.692e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470023/likelihoodResults_651974401_652233601_4FGL_J2245.9+1544_daily_bin1592.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) = 6910.04990165
delta logL = -4.49655908596e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6910.04985777
delta logL = -1.08568838186e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23254E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9294       1.0000          .0000       10.000    
     3 'Normalizat'    1.1434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72377       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=   6908.037     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      298 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47021        3.1720        .67002E-02    .14714E-02
   2  Index         3.9669        1.3842        .61279E-01    .30700E-03
   3  Normalizat    .98368        .59005E-01    .74016E-01    .75779E-04
   4  Prefactor     .77137        .31333E-01    .42717E-01    .12503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.470214
  Index      = 3.96689
  Normalizat = 0.983684
  Prefactor  = 0.771365
 **********
 **   18 **HESSE 
 **********

 FCN=   6908.037     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47021        6.7862        .30071E-04   -1.5571    
   2  Index         3.9669        2.3026        .24205E-02   -.20812    
   3  Normalizat    .98368        .22398        .32760E-03   -.93579    
   4  Prefactor     .77137        .11770        .19465E-03   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.63086e-07
Minuit parameter uncertainties:
  1  3.57276
  2  2.39737
  3  0.224195
  4  0.117734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470023': 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) = 6908.03660166
delta logL = 2.01325502717

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  4.702e-01  3.573e+00  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.967e+00  2.397e+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:  7.714e-01  1.177e-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.837e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.36
Ra Dec: 341.491 15.748
Photon Index (Free Index): 3.97 +/- 2.40
Photon Flux (Free Index): 1.74e-07 +/- 9.53e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.77e-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/470023/cmap_HighResolution_651974401_652233601_4FGL_J2245.9+1544_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', comment='SUCCESS', energy_flux2='2.62e-05', dlogl='2.01e+00', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-28 20:36:38.554566', photon_index_error2='2.40', photon_index2='3.97', ts='-0.00', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.77e-05', EG='1.14', time_epoch_completed='1632886598.55', return_code='0', job_id='470023', GAL2='0.77', EG2='0.98', return_code2='102', photon_flux_error2='9.53e-08', ts2='4.36', photon_index='1.96' WHERE bin_id='1592' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 470023: <4FGL_J2245.9+1544_daily_bin1592> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1592 341.491 15.7479 651974401 652233601 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 :                                   663.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             358.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            684 sec.

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

