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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1245
RA = 341.491, Dec = 15.7479
tmin = 562032001, tmax = 562291201
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='468498', job_status='RUN', time_executed='2021-09-28 20:24:03.205957', time_epoch_executed='1632885843.21' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468498

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468498/ft1_4FGL_J2245.9+1544_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468498/ft2_4FGL_J2245.9+1544_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468498/ft1_4FGL_J2245.9+1544_daily_bin1245.fits outfile=/scratch/kocevski/468498/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1245.fits ra=341.491 dec=15.7479 rad=12.0 tmin=562032001.0 tmax=562291201.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.55
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468498/ft2_4FGL_J2245.9+1544_daily_bin1245.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/468498/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1245.fits evtable="EVENTS" outfile="/scratch/kocevski/468498/ft1_filtered_4FGL_J2245.9+1544_daily_bin1245.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/468498/ft1_filtered_4FGL_J2245.9+1544_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/468498/ft2_4FGL_J2245.9+1544_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/468498/ltcube_562032001_562291201_4FGL_J2245.9+1544_daily_bin1245.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/468498/ft2_4FGL_J2245.9+1544_daily_bin1245.fits
.....................!
real 11.84
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468498/ft1_filtered_4FGL_J2245.9+1544_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/468498/ft2_4FGL_J2245.9+1544_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/468498/ltcube_562032001_562291201_4FGL_J2245.9+1544_daily_bin1245.fits outfile=/scratch/kocevski/468498/expmap_562032001_562291201_4FGL_J2245.9+1544_daily_bin1245.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/468498/ltcube_562032001_562291201_4FGL_J2245.9+1544_daily_bin1245.fits
.....................!
real 190.70
user 185.30
sys 4.96

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/468498/ft1_filtered_4FGL_J2245.9+1544_daily_bin1245.fits scfile=/scratch/kocevski/468498/ft2_4FGL_J2245.9+1544_daily_bin1245.fits outfile=/scratch/kocevski/468498/cmap_562032001_562291201_4FGL_J2245.9+1544_daily_bin1245.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468498/ft1_filtered_4FGL_J2245.9+1544_daily_bin1245.fits scfile=/scratch/kocevski/468498/ft2_4FGL_J2245.9+1544_daily_bin1245.fits outfile=/scratch/kocevski/468498/cmap_HighResolution_562032001_562291201_4FGL_J2245.9+1544_daily_bin1245.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/468498/ft1_filtered_4FGL_J2245.9+1544_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/468498/ft2_4FGL_J2245.9+1544_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468498/Model_4FGL_J2245.9+1544_daily_bin1245.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/468498/ft1_filtered_4FGL_J2245.9+1544_daily_bin1245.fits.....................!
real 82.66
user 81.25
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3408       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.818       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4187       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1188       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.348       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0631       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1539       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79009       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7884.228     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2697 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .26585         .0000    ** at limit **
   2  Prefactor     .10000E-03    17.891         .0000    ** at limit **
   3  norm          .10000E-03    1.9307         .0000    ** at limit **
   4  Prefactor     .10000E-03    9.3594         .0000    ** at limit **
   5  Prefactor     17.142        15.559         .0000        .48717E-02
   6  Prefactor     1.5388        .30926         .0000        .75346E-04
   7  Prefactor     9.3401        7.7517         .0000        .72636E-04
   8  norm          .10000E-03    .84896         .0000    ** at limit **
   9  Prefactor     34.818        34.258         .0000        .40303E-03
  10  Prefactor     .10000E-03    7.7042         .0000    ** at limit **
  11  Prefactor     .10000E-03    9.6438         .0000    ** at limit **
  12  Prefactor     1.5312        .24295         .0000        .78761E-04
  13  Prefactor     4.3096        10.047         .0000        .25515E-03
  14  Prefactor     .10001E-03    26.188         .0000    ** at limit **
  15  Prefactor     6.4177        6.2231         .0000       -.97965E-04
  16  Prefactor     .10000E-03    5.8500         .0000    ** at limit **
  17  Prefactor     .10000E-03    13.052         .0000    ** at limit **
  18  Prefactor     1.1431        10.462         .0000        .31780E-01
  19  Prefactor     23.279        25.900         .0000        .27763E-04
  20  norm          .10000E-03    5.1257         .0000    ** at limit **
  21  Prefactor     5.0708        11.376         .0000        .55143E-03
  22  norm          .10000E-03    6.2821         .0000    ** at limit **
  23  Normalizat    1.1529        .22975         .0000        .10387E-04
  24  Prefactor     .79048        .11096         .0000        .76953E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 17.1422
  Prefactor  = 1.5388
  Prefactor  = 9.34005
  norm       = 0.0001
  Prefactor  = 34.8175
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 1.5312
  Prefactor  = 4.30957
  Prefactor  = 0.000100005
  Prefactor  = 6.41773
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.14307
  Prefactor  = 23.2786
  norm       = 0.0001
  Prefactor  = 5.0708
  norm       = 0.000100001
  Normalizat = 1.15291
  Prefactor  = 0.790481
 **********
 **   18 **HESSE 
 **********

 FCN=   7884.228     FROM HESSE     STATUS=OK           393 CALLS     3090 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .26907        .44688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9362        .12046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.142        15.698        .96782E-04   -1.4880    
   6  Prefactor     1.5388        .31013        .20792E-04   -1.5460    
   7  Prefactor     9.3401        7.7568        .13113E-03   -1.5097    
   8  norm          .10000E-03    .88621        .15971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.818        34.346        .67914E-04   -1.4527    
  10  Prefactor     .10000E-03    7.7707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5312        .24453        .16138E-04   -1.5460    
  13  Prefactor     4.3096        10.038        .19408E-03   -1.5293    
  14  Prefactor     .10001E-03    26.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4177        6.2208        .15842E-03   -1.5201    
  16  Prefactor     .10000E-03    5.8669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1431        9.8091        .22223E-02   -1.5494    
  19  Prefactor     23.279        25.063        .82897E-04   -1.4743    
  20  norm          .10000E-03    5.1312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.0708        11.463        .17870E-03   -1.5258    
  22  norm          .10000E-03    6.2832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1529        .27128        .33856E-03   -.88071    
  24  Prefactor     .79048        .13042        .20978E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10045e-08
Minuit parameter uncertainties:
  1  3.97148e-08
  2  0.000304605
  3  3.08364e-07
  4  0.000358696
  5  15.702
  6  0.310132
  7  7.75762
  8  4.57016e-08
  9  34.3655
  10  4.66229e-05
  11  0.000424429
  12  0.244532
  13  10.0419
  14  0.000730248
  15  6.22146
  16  0.000109772
  17  6.50739e-06
  18  6.69821
  19  25.0746
  20  2.0417e-05
  21  11.4681
  22  0.000115225
  23  0.271611
  24  0.130469
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  3.482e+01  3.437e+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:  7.905e-01  1.305e-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.153e+00  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.52e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 2.63e-05

TS (Fixed Index): 1.88
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468498/likelihoodResults_562032001_562291201_4FGL_J2245.9+1544_daily_bin1245.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): 0
logL (Free Index) = 7883.84238632
delta logL = 0.38527000975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7883.8345951
delta logL = 0.393061230799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.869       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6403       1.0000          .0000       10.000    
     3 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80183       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=   7883.835     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      295 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.866        53.110        .10755E-03   -.76401E-03
   2  Index         2.6403        1.6579        .51930E-02   -.26947E-03
   3  Normalizat    1.1123        .26918        .34322E-03   -.14263E-03
   4  Prefactor     .80182        .13455        .20822E-03   -.55448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8661
  Index      = 2.64034
  Normalizat = 1.11225
  Prefactor  = 0.801823
 **********
 **   18 **HESSE 
 **********

 FCN=   7883.835     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.866        25.821        .43022E-05   -1.4963    
   2  Index         2.6403        .81789        .20772E-03   -.49148    
   3  Normalizat    1.1123        .25047        .13729E-04   -.89359    
   4  Prefactor     .80182        .12914        .41645E-04   -.99661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73536e-10
Minuit parameter uncertainties:
  1  25.8421
  2  0.822657
  3  0.25074
  4  0.129191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468498': 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) = 7883.8345951
delta logL = 0.393061236252

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.387e+01  2.584e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.640e+00  8.227e-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.018e-01  1.292e-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.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 341.491 15.748
Photon Index (Free Index): 2.64 +/- 0.82
Photon Flux (Free Index): 8.84e-08 +/- 9.13e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.73e-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/468498/cmap_HighResolution_562032001_562291201_4FGL_J2245.9+1544_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', photon_flux='3.52e-08', energy_flux2='2.24e-05', photon_flux_error='3.48e-08', dlogl='3.93e-01', energy_flux='2.67e-05', photon_flux2='8.84e-08', job_status='DONE', time_completed='2021-09-28 20:36:18.818089', photon_index_error2='0.82', photon_index2='2.64', ts='1.88', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.73e-05', EG='1.15', time_epoch_completed='1632886578.82', return_code='0', job_id='468498', GAL2='0.80', EG2='1.11', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='9.13e-08', ts2='2.69', photon_index='1.96' WHERE bin_id='1245' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:36:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 468498: <4FGL_J2245.9+1544_daily_bin1245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1245 341.491 15.7479 562032001 562291201 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 :                                   730.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

