/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 173 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2245.9+1544_daily_bin31
RA = 341.491, Dec = 15.7479
tmin = 247363201, tmax = 247622401
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='461450', job_status='RUN', time_executed='2021-09-28 19:58:39.664771', time_epoch_executed='1632884319.66' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461450

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461450/ft1_4FGL_J2245.9+1544_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461450/ft2_4FGL_J2245.9+1544_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461450/ft1_4FGL_J2245.9+1544_daily_bin31.fits outfile=/scratch/kocevski/461450/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin31.fits ra=341.491 dec=15.7479 rad=12.0 tmin=247363201.0 tmax=247622401.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 1.45
user 1.26
sys 0.18

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461450/ft1_filtered_4FGL_J2245.9+1544_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/461450/ft2_4FGL_J2245.9+1544_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/461450/ltcube_247363201_247622401_4FGL_J2245.9+1544_daily_bin31.fits outfile=/scratch/kocevski/461450/expmap_247363201_247622401_4FGL_J2245.9+1544_daily_bin31.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/461450/ltcube_247363201_247622401_4FGL_J2245.9+1544_daily_bin31.fits
.....................!
real 190.16
user 185.16
sys 4.65

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/461450/ft1_filtered_4FGL_J2245.9+1544_daily_bin31.fits scfile=/scratch/kocevski/461450/ft2_4FGL_J2245.9+1544_daily_bin31.fits outfile=/scratch/kocevski/461450/cmap_247363201_247622401_4FGL_J2245.9+1544_daily_bin31.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461450/ft1_filtered_4FGL_J2245.9+1544_daily_bin31.fits scfile=/scratch/kocevski/461450/ft2_4FGL_J2245.9+1544_daily_bin31.fits outfile=/scratch/kocevski/461450/cmap_HighResolution_247363201_247622401_4FGL_J2245.9+1544_daily_bin31.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.500       1.0000         .10000E-03   10000.    
     3 'norm      '    8.8422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1524       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44507       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4105       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.178       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.856       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.483       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    68.163       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.165       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4953       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68813       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99312       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=   8848.789     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2747 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81237        .92443       -.31478E-06   -.20927E-02
   2  Prefactor     30.498        18.407       -.36192E-05    .29708E-05
   3  norm          8.8412        5.6281        .11906E-06   -.16265E-04
   4  Prefactor     .10000E-03    8.7841       -.52137E-07** at limit **
   5  Prefactor     4.8210        11.453       -.36415E-06   -.98622E-04
   6  Prefactor     1.1524        .25585       -.53587E-07    .45952E-03
   7  Prefactor     .10000E-03    2.3608        .20352E-08** at limit **
   8  norm          2.3023        1.7945        .18950E-06   -.14152E-03
   9  Prefactor     .10000E-03    15.182       -.12003E-05** at limit **
  10  Prefactor     19.583        14.309       -.36550E-05   -.72570E-05
  11  Prefactor     .10004E-03    25.468       -.13246E-05** at limit **
  12  Prefactor     3.4115        .32465       -.79954E-08    .29206E-02
  13  Prefactor     14.176        14.817       -.24507E-05   -.12389E-04
  14  Prefactor     .10000E-03    11.857       -.11068E-05** at limit **
  15  Prefactor     .10000E-03    2.0465       -.20311E-07** at limit **
  16  Prefactor     17.857        12.996        .28439E-05    .10009E-04
  17  Prefactor     36.482        38.989       -.12331E-04    .29470E-05
  18  Prefactor     10.482        7.2339       -.51381E-06   -.10985E-03
  19  Prefactor     .10000E-03    13.032        .20500E-05** at limit **
  20  norm          68.161        19.347       -.73708E-06   -.59662E-05
  21  Prefactor     26.165        12.952       -.22336E-05   -.12761E-04
  22  norm          3.4951        10.284       -.74208E-06   -.11648E-03
  23  Normalizat    .68817        .24790        .51309E-05    .26120E-04
  24  Prefactor     .99315        .12444        .21703E-06    .11037E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.81237
  Prefactor  = 30.4982
  norm       = 8.84122
  Prefactor  = 0.0001
  Prefactor  = 4.82104
  Prefactor  = 1.1524
  Prefactor  = 0.0001
  norm       = 2.30228
  Prefactor  = 0.0001
  Prefactor  = 19.5826
  Prefactor  = 0.000100044
  Prefactor  = 3.41145
  Prefactor  = 14.1758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8572
  Prefactor  = 36.4817
  Prefactor  = 10.4818
  Prefactor  = 0.0001
  norm       = 68.1612
  Prefactor  = 26.1651
  norm       = 3.4951
  Normalizat = 0.688174
  Prefactor  = 0.99315
 **********
 **   18 **HESSE 
 **********

 FCN=   8848.789     FROM HESSE     STATUS=OK           413 CALLS     3160 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81237        .85180        .93103E-03   -1.5528    
   2  Prefactor     30.498        18.376        .72549E-04   -1.4603    
   3  norm          8.8412        5.6176        .13479E-03   -1.5113    
   4  Prefactor     .10000E-03    8.8534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8210        11.436        .18318E-03   -1.5269    
   6  Prefactor     1.1524        .25558        .21139E-04   -1.5493    
   7  Prefactor     .10000E-03    2.3634        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3023        1.7865        .10635E-03   -1.5404    
   9  Prefactor     .10000E-03    15.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.583        14.288        .90500E-04   -1.4823    
  11  Prefactor     .10004E-03    30.567        .12277       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4115        .32727        .14975E-04   -1.5339    
  13  Prefactor     14.176        14.815        .10637E-03   -1.4955    
  14  Prefactor     .10000E-03    11.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0494        .13141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.857        12.965        .94783E-04   -1.4863    
  17  Prefactor     36.482        38.915        .66344E-04   -1.4499    
  18  Prefactor     10.482        7.2384        .12375E-03   -1.5060    
  19  Prefactor     .10000E-03    13.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          68.161        19.355        .48617E-04   -1.4055    
  21  Prefactor     26.165        12.954        .78316E-04   -1.4684    
  22  norm          3.4951        10.277        .21626E-03   -1.5334    
  23  Normalizat    .68817        .27035        .45827E-03   -1.0436    
  24  Prefactor     .99315        .13852        .21311E-03   -.92958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51493e-10
Minuit parameter uncertainties:
  1  0.85181
  2  18.3799
  3  5.61795
  4  2.41352e-05
  5  11.441
  6  0.255578
  7  2.11322e-06
  8  1.78652
  9  4.78756e-06
  10  14.2908
  11  0.00231451
  12  0.327272
  13  14.819
  14  1.91715e-05
  15  3.67134e-06
  16  12.9667
  17  38.9423
  18  7.23901
  19  9.70696e-06
  20  19.3564
  21  12.955
  22  10.2818
  23  0.270874
  24  0.138568
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.788e-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.932e-01  1.386e-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:  6.882e-01  2.709e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461450/likelihoodResults_247363201_247622401_4FGL_J2245.9+1544_daily_bin31.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) = 8848.78956092
delta logL = -0.000313439561069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8848.78924748
delta logL = 1.05501385406e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9650       1.0000          .0000       10.000    
     3 'Normalizat'    .68817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99315       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=   8848.789     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    583.16        .90712E-02** at limit **
   2  Index         1.9659        5.0121        .50000       -.58835E-06
   3  Normalizat    .68817        .36680E-01    .10338        .48005E-04
   4  Prefactor     .99315        .20322E-01    .46181E-01    .16772E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96589
  Normalizat = 0.688174
  Prefactor  = 0.99315
 **********
 **   18 **HESSE 
 **********

 FCN=   8848.789     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1524.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9659        9.0163        .50000       -.65205    
   3  Normalizat    .68817        .66635E-01    .45826E-03   -1.0436    
   4  Prefactor     .99315        .37038E-01    .21311E-03   -.92958    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27288e-11
Minuit parameter uncertainties:
  1  1.41512e-05
  2  41.0065
  3  0.0666427
  4  0.0370392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461450': 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) = 8848.78924748
delta logL = 2.3101165425e-10

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.415e-05  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.966e+00  4.101e+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.931e-01  3.704e-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:  6.882e-01  6.664e-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/461450/cmap_HighResolution_247363201_247622401_4FGL_J2245.9+1544_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-09-28 20:12:08.807085', job_id='461450', GAL2='0.99', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632885128.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.31e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='31' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:12:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 461450: <4FGL_J2245.9+1544_daily_bin31> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin31> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:55:37 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:55:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:55:39 2021
Terminated at Tue Sep 28 20:12:09 2021
Results reported at Tue Sep 28 20:12:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin31 341.491 15.7479 247363201 247622401 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 :                                   809.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

