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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1585
RA = 341.491, Dec = 15.7479
tmin = 650160001, tmax = 650419201
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='470012', job_status='RUN', time_executed='2021-09-28 20:27:38.216217', time_epoch_executed='1632886058.22' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470012

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470012/ft1_4FGL_J2245.9+1544_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470012/ft2_4FGL_J2245.9+1544_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470012/ft1_4FGL_J2245.9+1544_daily_bin1585.fits outfile=/scratch/kocevski/470012/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1585.fits ra=341.491 dec=15.7479 rad=12.0 tmin=650160001.0 tmax=650419201.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 4.37
user 4.07
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470012/ft1_filtered_4FGL_J2245.9+1544_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/470012/ft2_4FGL_J2245.9+1544_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/470012/ltcube_650160001_650419201_4FGL_J2245.9+1544_daily_bin1585.fits outfile=/scratch/kocevski/470012/expmap_650160001_650419201_4FGL_J2245.9+1544_daily_bin1585.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/470012/ltcube_650160001_650419201_4FGL_J2245.9+1544_daily_bin1585.fits
.....................!
real 190.93
user 185.21
sys 5.15

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/470012/ft1_filtered_4FGL_J2245.9+1544_daily_bin1585.fits scfile=/scratch/kocevski/470012/ft2_4FGL_J2245.9+1544_daily_bin1585.fits outfile=/scratch/kocevski/470012/cmap_650160001_650419201_4FGL_J2245.9+1544_daily_bin1585.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470012/ft1_filtered_4FGL_J2245.9+1544_daily_bin1585.fits scfile=/scratch/kocevski/470012/ft2_4FGL_J2245.9+1544_daily_bin1585.fits outfile=/scratch/kocevski/470012/cmap_HighResolution_650160001_650419201_4FGL_J2245.9+1544_daily_bin1585.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/470012/ft1_filtered_4FGL_J2245.9+1544_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/470012/ft2_4FGL_J2245.9+1544_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470012/Model_4FGL_J2245.9+1544_daily_bin1585.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/470012/ft1_filtered_4FGL_J2245.9+1544_daily_bin1585.fits.....................!
real 79.93
user 78.48
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.742       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56854       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1733       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.067       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2594       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .35691E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.6411       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1120       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94866       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=   7400.433     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2731 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0511        1.1314       -.36166E-07   -.12609E-03
   2  Prefactor     14.743        14.655        .52068E-07   -.54469E-05
   3  norm          .10000E-03    1.5504       -.21049E-07** at limit **
   4  Prefactor     .10000E-03    5.3812        .22324E-06** at limit **
   5  Prefactor     .10000E-03    2.6687        .11931E-06** at limit **
   6  Prefactor     .56855        .20049       -.14550E-07   -.15702E-03
   7  Prefactor     7.1737        6.6248        .21494E-07   -.38105E-05
   8  norm          .10000E-03    .63156       -.38833E-07** at limit **
   9  Prefactor     .10000E-03    15.009       -.22606E-05** at limit **
  10  Prefactor     3.3996        8.6267        .33056E-07   -.37029E-04
  11  Prefactor     17.068        20.058        .30846E-06    .22405E-05
  12  Prefactor     1.1481        .20385        .95453E-08    .33456E-04
  13  Prefactor     .10000E-03    13.773        .26257E-05** at limit **
  14  Prefactor     .10000E-03    23.610        .12438E-05** at limit **
  15  Prefactor     .10000E-03    2.2043        .99892E-07** at limit **
  16  Prefactor     3.2544        3.9344        .20658E-06   -.38126E-03
  17  Prefactor     12.365        24.739        .36929E-05    .11603E-05
  18  Prefactor     8.4647        7.1619        .70142E-08   -.37501E-04
  19  Prefactor     .10000E-03    10.690        .23829E-07** at limit **
  20  norm          .10000E-03    8.6438        .16419E-06** at limit **
  21  Prefactor     .10000E-03    7.5185        .25137E-06** at limit **
  22  norm          3.6385        20.339       -.10100E-05   -.10633E-04
  23  Normalizat    1.1120        .22309       -.60697E-06   -.55183E-04
  24  Prefactor     .94861        .12035       -.15434E-06   -.92715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0511
  Prefactor  = 14.7432
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.56855
  Prefactor  = 7.17369
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.39958
  Prefactor  = 17.0676
  Prefactor  = 1.14809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25441
  Prefactor  = 12.3655
  Prefactor  = 8.46468
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.63855
  Normalizat = 1.11205
  Prefactor  = 0.948609
 **********
 **   18 **HESSE 
 **********

 FCN=   7400.433     FROM HESSE     STATUS=OK           403 CALLS     3134 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0511        1.1064        .90600E-04   -1.5503    
   2  Prefactor     14.743        14.663        .10432E-03   -1.4940    
   3  norm          .10000E-03    1.5577        .10459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6732        .13726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56855        .19949        .21876E-04   -1.5557    
   7  Prefactor     7.1737        6.6297        .14977E-03   -1.5172    
   8  norm          .10000E-03    1.1237        .13293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3996        8.6132        .21950E-03   -1.5339    
  11  Prefactor     17.068        20.086        .96948E-04   -1.4881    
  12  Prefactor     1.1481        .20450        .15384E-04   -1.5494    
  13  Prefactor     .10000E-03    13.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2122        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2544        12.163        .11216E-02   -1.5347    
  17  Prefactor     12.365        24.712        .11393E-03   -1.5005    
  18  Prefactor     8.4647        7.1804        .13779E-03   -1.5126    
  19  Prefactor     .10000E-03    10.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    44.102        .48367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.6385        20.344        .21171E-03   -1.5326    
  23  Normalizat    1.1120        .26272        .32959E-03   -.89366    
  24  Prefactor     .94861        .14308        .19785E-03   -.94463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49519e-10
Minuit parameter uncertainties:
  1  1.10646
  2  14.6664
  3  1.04414e-06
  4  4.41251e-06
  5  1.25462e-06
  6  0.199485
  7  6.63037
  8  5.50602e-06
  9  8.83605e-06
  10  8.61629
  11  20.0944
  12  0.204496
  13  1.44491e-05
  14  1.53534e-05
  15  1.04188e-06
  16  12.1723
  17  24.7326
  18  7.1811
  19  5.03993e-06
  20  0.000207817
  21  5.80158e-06
  22  17.2161
  23  0.263032
  24  0.143133
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  8.836e-06  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:  9.486e-01  1.431e-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.112e+00  2.630e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470012/likelihoodResults_650160001_650419201_4FGL_J2245.9+1544_daily_bin1585.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) = 7400.43323965
delta logL = -0.000317335306136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7400.43292598
delta logL = -3.66174663213e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9620       1.0000          .0000       10.000    
     3 'Normalizat'    1.1120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94844       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=   7400.433     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    589.61        .18142E-02** at limit **
   2  Index         1.9599        5.1239        .50000        .10282E-05
   3  Normalizat    1.1121        .36326E-01    .32959E-03    .12728E-03
   4  Prefactor     .94861        .20453E-01    .19785E-03   -.20470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95991
  Normalizat = 1.11205
  Prefactor  = 0.948606
 **********
 **   18 **HESSE 
 **********

 FCN=   7400.433     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2037.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9599        6.0114        .50000       -.65356    
   3  Normalizat    1.1121        .84604E-01    .13184E-04   -.89366    
   4  Prefactor     .94861        .47637E-01    .39571E-04   -.94463    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16808e-11
Minuit parameter uncertainties:
  1  0.000372561
  2  48.1026
  3  0.0846142
  4  0.0476387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470012': 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) = 7400.43292232
delta logL = 9.84073267318e-10

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  3.726e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.960e+00  4.810e+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:  9.486e-01  4.764e-02  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.112e+00  8.461e-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/470012/cmap_HighResolution_650160001_650419201_4FGL_J2245.9+1544_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-09-28 20:39:48.867772', job_id='470012', GAL2='0.95', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632886788.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.84e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1585' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:39:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 470012: <4FGL_J2245.9+1544_daily_bin1585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1585 341.491 15.7479 650160001 650419201 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 :                                   724.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

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

