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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1504
RA = 341.491, Dec = 15.7479
tmin = 629164801, tmax = 629424001
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='468876', job_status='RUN', time_executed='2021-09-28 20:23:25.897887', time_epoch_executed='1632885805.9' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468876

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468876/ft1_4FGL_J2245.9+1544_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468876/ft2_4FGL_J2245.9+1544_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468876/ft1_4FGL_J2245.9+1544_daily_bin1504.fits outfile=/scratch/kocevski/468876/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1504.fits ra=341.491 dec=15.7479 rad=12.0 tmin=629164801.0 tmax=629424001.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.63
user 3.40
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468876/ft1_filtered_4FGL_J2245.9+1544_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/468876/ft2_4FGL_J2245.9+1544_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/468876/ltcube_629164801_629424001_4FGL_J2245.9+1544_daily_bin1504.fits outfile=/scratch/kocevski/468876/expmap_629164801_629424001_4FGL_J2245.9+1544_daily_bin1504.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/468876/ltcube_629164801_629424001_4FGL_J2245.9+1544_daily_bin1504.fits
.....................!
real 191.36
user 185.76
sys 5.29

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/468876/ft1_filtered_4FGL_J2245.9+1544_daily_bin1504.fits scfile=/scratch/kocevski/468876/ft2_4FGL_J2245.9+1544_daily_bin1504.fits outfile=/scratch/kocevski/468876/cmap_629164801_629424001_4FGL_J2245.9+1544_daily_bin1504.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468876/ft1_filtered_4FGL_J2245.9+1544_daily_bin1504.fits scfile=/scratch/kocevski/468876/ft2_4FGL_J2245.9+1544_daily_bin1504.fits outfile=/scratch/kocevski/468876/cmap_HighResolution_629164801_629424001_4FGL_J2245.9+1544_daily_bin1504.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90512       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48192E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35133       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9379       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.680       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96233E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11210E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.325       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2994       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3183       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77915       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=   7356.222     FROM MIGRAD    STATUS=CONVERGED    973 CALLS     3598 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90635        .94381        .87947E-03   -.10798E-02
   2  Prefactor     .10000E-03    61.372        .54085E-02** at limit **
   3  norm          .10000E-03    2.7095        .13717E-02** at limit **
   4  Prefactor     8.9959        13.526        .13368E-03    .75435E-04
   5  Prefactor     18.895        14.249        .92123E-04    .17906E-03
   6  Prefactor     .35146        .20384        .27581E-04    .51030E-03
   7  Prefactor     8.9371        6.8219        .13407E-03    .34683E-04
   8  norm          2.4619        1.5737        .81989E-04    .38687E-04
   9  Prefactor     .10326        28.774        .12469        .10792E-03
  10  Prefactor     20.680        14.346        .88078E-04    .30462E-04
  11  Prefactor     .10000E-03    9.1070        .18142E-02** at limit **
  12  Prefactor     .29089        .13373        .19944E-04    .14245E-02
  13  Prefactor     .10000E-03    4.7006        .18128E-02** at limit **
  14  Prefactor     .10021E-03    148.52        .77315E-02** at limit **
  15  Prefactor     .10000E-03    3.7264        .16065E-02** at limit **
  16  Prefactor     .10000E-03    20.756        .18142E-02** at limit **
  17  Prefactor     .10000E-03    15.825        .18142E-02** at limit **
  18  Prefactor     .10007E-03    12.856        .33397E-02** at limit **
  19  Prefactor     .10000E-03    14.329        .18142E-02** at limit **
  20  norm          .10000E-03    31.102        .36285E-03** at limit **
  21  Prefactor     13.321        11.206        .10973E-03    .25974E-03
  22  norm          1.3083        103.43        .38773E-03    .21698E-04
  23  Normalizat    1.3180        .26189        .29739E-03    .26951E-03
  24  Prefactor     .77912        .13309        .20183E-03    .30361E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.906348
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 8.99594
  Prefactor  = 18.8951
  Prefactor  = 0.351458
  Prefactor  = 8.93707
  norm       = 2.46192
  Prefactor  = 0.103256
  Prefactor  = 20.6798
  Prefactor  = 0.0001
  Prefactor  = 0.290894
  Prefactor  = 0.0001
  Prefactor  = 0.000100213
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010007
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 13.3211
  norm       = 1.30831
  Normalizat = 1.31803
  Prefactor  = 0.779118
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.222     FROM HESSE     STATUS=OK           385 CALLS     3983 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90635        .94334        .35179E-04   -1.5518    
   2  Prefactor     .10000E-03    62.382        .10817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.7100        .27435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9959        13.526        .53471E-05   -1.5108    
   5  Prefactor     18.895        14.246        .36849E-05   -1.4838    
   6  Prefactor     .35146        .20382        .11032E-05   -1.5589    
   7  Prefactor     8.9371        6.8219        .53627E-05   -1.5110    
   8  norm          2.4619        1.5737        .32796E-05   -1.5394    
   9  Prefactor     .10326        28.185        .12649       -1.5644    
  10  Prefactor     20.680        14.345        .35231E-05   -1.4798    
  11  Prefactor     .10000E-03    9.1076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .29089        .13371        .79778E-06   -1.5600    
  13  Prefactor     .10000E-03    4.7012        .36256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10021E-03    152.93        .30926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7279        .32130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    12.961        .66794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    31.103        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.321        11.206        .43891E-05   -1.4978    
  22  norm          1.3083        103.38        .15509E-04   -1.5479    
  23  Normalizat    1.3180        .26203        .59479E-04   -.83030    
  24  Prefactor     .77912        .13319        .40367E-04   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41773e-09
Minuit parameter uncertainties:
  1  0.943356
  2  0.000826869
  3  3.55812e-06
  4  13.5302
  5  14.2484
  6  0.203818
  7  6.82249
  8  1.57371
  9  3.41187
  10  14.347
  11  2.0238e-05
  12  0.133712
  13  1.40015e-05
  14  0.0114567
  15  1.70819e-05
  16  0.0002507
  17  0.000208727
  18  0.00190874
  19  0.000215342
  20  8.06934e-05
  21  11.2076
  22  23.301
  23  0.262294
  24  0.133241
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.033e-01  3.412e+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

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  7.791e-01  1.332e-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.318e+00  2.623e-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: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468876/likelihoodResults_629164801_629424001_4FGL_J2245.9+1544_daily_bin1504.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) = 7356.22190988
delta logL = 1.87218120118e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7356.221908
delta logL = 3.74761111743e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10326       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9656       1.0000          .0000       10.000    
     3 'Normalizat'    1.3180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77912       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=   7356.117     FROM MIGRAD    STATUS=CONVERGED    161 CALLS      341 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49914E-03    .12128E-01    .95268E-03** at limit **
   2  Index         5.5780        2.3619        .72987E-01    .35359E-03
   3  Normalizat    1.2793        .28223E-01    .68049E-01    .14995E-03
   4  Prefactor     .79250        .15242E-01    .43445E-01    .11472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000499141
  Index      = 5.57796
  Normalizat = 1.27931
  Prefactor  = 0.792502
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.117     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      376 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49914E-03    .13347        .35954E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.5780        7.7847        .80902E-02    .11585    
   3  Normalizat    1.2793        .13148        .30107E-03   -.84186    
   4  Prefactor     .79250        .69908E-01    .20027E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.42763e-10
Minuit parameter uncertainties:
  1  0.0145979
  2  8.66894
  3  0.131512
  4  0.0699158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468876': 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) = 7356.11725559
delta logL = 0.104656158344

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  4.991e-04  1.460e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  5.578e+00  8.669e+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.925e-01  6.992e-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.279e+00  1.315e-01  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/468876/cmap_HighResolution_629164801_629424001_4FGL_J2245.9+1544_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-28 20:37:05.911448', job_id='468876', GAL2='0.79', fit_tolerance='1e-08', EG2='1.28', EG='1.32', time_epoch_completed='1632886625.91', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.05e-01', ts2='0.23', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1504' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:37:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 468876: <4FGL_J2245.9+1544_daily_bin1504> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1504 341.491 15.7479 629164801 629424001 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 :                                   768.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            977 sec.

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

