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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin94
RA = 341.491, Dec = 15.7479
tmin = 263692801, tmax = 263952001
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='464651', job_status='RUN', time_executed='2021-09-28 20:08:32.848265', time_epoch_executed='1632884912.85' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464651/ft1_4FGL_J2245.9+1544_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464651/ft2_4FGL_J2245.9+1544_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464651/ft1_4FGL_J2245.9+1544_daily_bin94.fits outfile=/scratch/kocevski/464651/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin94.fits ra=341.491 dec=15.7479 rad=12.0 tmin=263692801.0 tmax=263952001.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.66
user 1.47
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/464651/ft1_filtered_4FGL_J2245.9+1544_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/464651/ft2_4FGL_J2245.9+1544_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/464651/ltcube_263692801_263952001_4FGL_J2245.9+1544_daily_bin94.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/464651/ft2_4FGL_J2245.9+1544_daily_bin94.fits
.....................!
real 12.53
user 12.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464651/ft1_filtered_4FGL_J2245.9+1544_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/464651/ft2_4FGL_J2245.9+1544_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/464651/ltcube_263692801_263952001_4FGL_J2245.9+1544_daily_bin94.fits outfile=/scratch/kocevski/464651/expmap_263692801_263952001_4FGL_J2245.9+1544_daily_bin94.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/464651/ltcube_263692801_263952001_4FGL_J2245.9+1544_daily_bin94.fits
.....................!
real 191.24
user 185.34
sys 5.53

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/464651/ft1_filtered_4FGL_J2245.9+1544_daily_bin94.fits scfile=/scratch/kocevski/464651/ft2_4FGL_J2245.9+1544_daily_bin94.fits outfile=/scratch/kocevski/464651/cmap_263692801_263952001_4FGL_J2245.9+1544_daily_bin94.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/464651/ft1_filtered_4FGL_J2245.9+1544_daily_bin94.fits scfile=/scratch/kocevski/464651/ft2_4FGL_J2245.9+1544_daily_bin94.fits outfile=/scratch/kocevski/464651/cmap_HighResolution_263692801_263952001_4FGL_J2245.9+1544_daily_bin94.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8548       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.702       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11183E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27671       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2492       1.0000         .10000E-03   10000.    
     8 'norm      '    .73289       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5368       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2552       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.637       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2343       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89267       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=   12497.28     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2339 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8548        1.0569        .18668E-07    .43170E-04
   2  Prefactor     33.703        15.773        .38622E-06    .77394E-04
   3  norm          .10000E-03    1.7317       -.61791E-07** at limit **
   4  Prefactor     .10000E-03    7.4253        .48354E-05** at limit **
   5  Prefactor     .10001E-03    7.2679       -.38131E-06** at limit **
   6  Prefactor     .27671        .13352       -.22588E-08   -.12552E-02
   7  Prefactor     7.2491        6.6710        .20345E-06   -.83321E-03
   8  norm          .73298        1.0528        .85516E-08   -.11250E-02
   9  Prefactor     21.256        17.388        .91052E-08    .98375E-08
  10  Prefactor     3.5344        6.6640        .10862E-05   -.11162E-02
  11  Prefactor     5.6053        12.466        .53190E-06   -.34258E-03
  12  Prefactor     2.2552        .22388       -.66118E-08    .14505E-03
  13  Prefactor     .10000E-03    4.5562        .17158E-06** at limit **
  14  Prefactor     .10000E-03    21.351        .15424E-05** at limit **
  15  Prefactor     11.504        6.2344       -.18326E-07   -.75815E-05
  16  Prefactor     .10000E-03    3.0537        .44693E-07** at limit **
  17  Prefactor     .10000E-03    9.8820        .16335E-05** at limit **
  18  Prefactor     .10000E-03    3.8274        .50741E-07** at limit **
  19  Prefactor     .10000E-03    16.768       -.17065E-05** at limit **
  20  norm          29.639        11.706       -.15854E-06   -.69757E-05
  21  Prefactor     .10000E-03    4.9236       -.14125E-06** at limit **
  22  norm          .10000E-03    7.6450       -.57403E-05** at limit **
  23  Normalizat    1.2343        .18655        .32422E-06    .18068E-04
  24  Prefactor     .89267        .98157E-01   -.14829E-06    .76501E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85476
  Prefactor  = 33.7027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.276708
  Prefactor  = 7.2491
  norm       = 0.732982
  Prefactor  = 21.256
  Prefactor  = 3.53437
  Prefactor  = 5.60534
  Prefactor  = 2.25516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.6394
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.23432
  Prefactor  = 0.892669
 **********
 **   18 **HESSE 
 **********

 FCN=   12497.28     FROM HESSE     STATUS=OK           407 CALLS     2746 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8548        1.0572        .58081E-04   -1.5315    
   2  Prefactor     33.703        15.781        .69026E-04   -1.4546    
   3  norm          .10000E-03    1.7519        .14362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    8.8462        .80027E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27671        .13137        .26895E-04   -1.5603    
   7  Prefactor     7.2491        6.9604        .74488E-03   -1.5169    
   8  norm          .73298        1.0511        .24375E-03   -1.5537    
   9  Prefactor     21.256        17.397        .86876E-04   -1.4786    
  10  Prefactor     3.5344        10.067        .10747E-02   -1.5332    
  11  Prefactor     5.6053        12.889        .84838E-03   -1.5234    
  12  Prefactor     2.2552        .22548        .15521E-04   -1.5408    
  13  Prefactor     .10000E-03    4.5766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.504        6.2365        .11811E-03   -1.5029    
  16  Prefactor     .10000E-03    3.0587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.9060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.639        11.722        .73595E-04   -1.4619    
  21  Prefactor     .10000E-03    4.9557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.7600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2343        .22098        .34816E-03   -.85549    
  24  Prefactor     .89267        .11609        .21771E-03   -.96398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42774e-09
Minuit parameter uncertainties:
  1  1.05717
  2  15.7829
  3  1.20041e-06
  4  8.50319e-05
  5  0.000541823
  6  0.131375
  7  6.96116
  8  1.05111
  9  17.4009
  10  10.0723
  11  12.8955
  12  0.225482
  13  1.06898e-06
  14  4.71218e-05
  15  6.23684
  16  2.45873e-07
  17  3.80728e-05
  18  6.77887e-07
  19  4.05519e-05
  20  11.7234
  21  3.31894e-07
  22  0.00012176
  23  0.221143
  24  0.116127
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  8.927e-01  1.161e-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.234e+00  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.15e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.33e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12497.2746018
delta logL = 0.0043108752925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12497.2719304
delta logL = 0.00698226028726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.881       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8983       1.0000          .0000       10.000    
     3 'Normalizat'    1.2356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89232       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=   12497.27     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      271 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.883        24.048        .83739E-04    .30954E-05
   2  Index         1.8983        .57808        .97312E-02    .60710E-03
   3  Normalizat    1.2355        .21075        .34804E-03   -.88391E-04
   4  Prefactor     .89242        .11478        .21775E-03   -.12437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8829
  Index      = 1.89833
  Normalizat = 1.23549
  Prefactor  = 0.892415
 **********
 **   18 **HESSE 
 **********

 FCN=   12497.27     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.883        23.098        .16748E-04   -1.4751    
   2  Index         1.8983        .55565        .19462E-02   -.66917    
   3  Normalizat    1.2355        .21091        .13922E-04   -.85513    
   4  Prefactor     .89242        .11489        .87098E-05   -.96407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81687e-12
Minuit parameter uncertainties:
  1  23.1075
  2  0.557526
  3  0.211056
  4  0.114922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464651': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12497.2719301
delta logL = 0.00698259285127

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.288e+01  2.311e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.898e+00  5.575e-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:  8.924e-01  1.149e-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.235e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 341.491 15.748
Photon Index (Free Index): 1.90 +/- 0.56
Photon Flux (Free Index): 1.97e-08 +/- 2.19e-08
Energy Flux (Free Index): 1.78e-05 +/- 2.02e-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/464651/cmap_HighResolution_263692801_263952001_4FGL_J2245.9+1544_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.15e-08', energy_flux2='1.78e-05', photon_flux_error='1.76e-08', dlogl='6.98e-03', energy_flux='1.63e-05', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-28 20:22:08.353991', photon_index_error2='0.56', photon_index2='1.90', ts='4.07', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='1.23', time_epoch_completed='1632885728.35', return_code='0', job_id='464651', GAL2='0.89', EG2='1.24', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='2.19e-08', ts2='4.08', photon_index='1.96' WHERE bin_id='94' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:22:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 462578: <4FGL_J2245.9+1544_daily_bin94> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin94 341.491 15.7479 263692801 263952001 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 :                                   815.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1057 sec.
    Turnaround time :                            1058 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 464651: <4FGL_J2245.9+1544_daily_bin94> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin94> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 20:06:29 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:06:31 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:06:31 2021
Terminated at Tue Sep 28 20:22:09 2021
Results reported at Tue Sep 28 20:22:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin94 341.491 15.7479 263692801 263952001 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 :                                   818.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

