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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1456
RA = 341.491, Dec = 15.7479
tmin = 616723201, tmax = 616982401
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='468807', job_status='RUN', time_executed='2021-09-28 20:21:00.940239', time_epoch_executed='1632885660.94' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468807/ft1_4FGL_J2245.9+1544_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468807/ft2_4FGL_J2245.9+1544_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468807/ft1_4FGL_J2245.9+1544_daily_bin1456.fits outfile=/scratch/kocevski/468807/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1456.fits ra=341.491 dec=15.7479 rad=12.0 tmin=616723201.0 tmax=616982401.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.04
user 2.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468807/ft1_filtered_4FGL_J2245.9+1544_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/468807/ft2_4FGL_J2245.9+1544_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/468807/ltcube_616723201_616982401_4FGL_J2245.9+1544_daily_bin1456.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/468807/ft2_4FGL_J2245.9+1544_daily_bin1456.fits
.....................!
real 12.32
user 11.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468807/ft1_filtered_4FGL_J2245.9+1544_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/468807/ft2_4FGL_J2245.9+1544_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/468807/ltcube_616723201_616982401_4FGL_J2245.9+1544_daily_bin1456.fits outfile=/scratch/kocevski/468807/expmap_616723201_616982401_4FGL_J2245.9+1544_daily_bin1456.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/468807/ltcube_616723201_616982401_4FGL_J2245.9+1544_daily_bin1456.fits
.....................!
real 192.31
user 186.65
sys 5.26

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/468807/ft1_filtered_4FGL_J2245.9+1544_daily_bin1456.fits scfile=/scratch/kocevski/468807/ft2_4FGL_J2245.9+1544_daily_bin1456.fits outfile=/scratch/kocevski/468807/cmap_616723201_616982401_4FGL_J2245.9+1544_daily_bin1456.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10473E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50987       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18424       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.043       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.178       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25428       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4325       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.403       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.586       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.573       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.685       1.0000         .10000E-03   10000.    
    22 'norm      '    11.078       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77488       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2625       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=   7566.386     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2768 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .61735       -.15546E-07** at limit **
   2  Prefactor     .10000E-03    8.9280       -.30099E-07** at limit **
   3  norm          .10000E-03    3.0537       -.41279E-08** at limit **
   4  Prefactor     .10000E-03    61.318        .84700E-06** at limit **
   5  Prefactor     .10000E-03    5.7001        .77441E-08** at limit **
   6  Prefactor     .51027        .29582        .24966E-07   -.55304E-04
   7  Prefactor     .31090E-01    10.843       -.95309E-07    .24088E-04
   8  norm          .10000E-03    .44854       -.11648E-07** at limit **
   9  Prefactor     30.042        39.236       -.67548E-05   -.40325E-04
  10  Prefactor     34.177        15.160        .27073E-05    .91506E-04
  11  Prefactor     .10000E-03    21.035        .39470E-06** at limit **
  12  Prefactor     .25421        .16537        .71911E-07    .62544E-04
  13  Prefactor     1.9713        2.6612        .69514E-06   -.16969E-02
  14  Prefactor     5.4308        67.997       -.48930E-05   -.61175E-05
  15  Prefactor     .10000E-03    5.9114        .77227E-07** at limit **
  16  Prefactor     28.402        18.749        .26630E-06   -.10222E-04
  17  Prefactor     31.586        26.377       -.19232E-05   -.22705E-04
  18  Prefactor     .10000E-03    2.9643       -.62042E-07** at limit **
  19  Prefactor     14.573        16.360        .22480E-05    .25381E-04
  20  norm          .10000E-03    4.7710        .13776E-06** at limit **
  21  Prefactor     16.684        12.986       -.41030E-05   -.11821E-03
  22  norm          11.071        24.154        .59941E-05    .24652E-04
  23  Normalizat    .77457        .26738        .27022E-06   -.25242E-04
  24  Prefactor     1.2627        .13756       -.27188E-06    .13617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.510271
  Prefactor  = 0.0310897
  norm       = 0.0001
  Prefactor  = 30.0423
  Prefactor  = 34.1774
  Prefactor  = 0.0001
  Prefactor  = 0.254211
  Prefactor  = 1.97126
  Prefactor  = 5.43076
  Prefactor  = 0.0001
  Prefactor  = 28.4015
  Prefactor  = 31.5864
  Prefactor  = 0.0001
  Prefactor  = 14.573
  norm       = 0.0001
  Prefactor  = 16.6839
  norm       = 11.0706
  Normalizat = 0.774571
  Prefactor  = 1.26273
 **********
 **   18 **HESSE 
 **********

 FCN=   7566.386     FROM HESSE     STATUS=OK           411 CALLS     3179 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .64541        .13329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.8401        .29406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    62.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .51027        .28907        .32957E-04   -1.5565    
   7  Prefactor     .31090E-01    13.144        .85890E-01   -1.5673    
   8  norm          .10000E-03    .44991        .56880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.042        39.100        .73098E-04   -1.4611    
  10  Prefactor     34.177        15.212        .68546E-04   -1.4538    
  11  Prefactor     .10000E-03    21.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25421        .16011        .25568E-04   -1.5607    
  13  Prefactor     1.9713        7.2709        .14761E-02   -1.5427    
  14  Prefactor     5.4308        67.986        .17240E-03   -1.5242    
  15  Prefactor     .10000E-03    5.9818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.402        18.742        .75173E-04   -1.4642    
  17  Prefactor     31.586        26.390        .71294E-04   -1.4583    
  18  Prefactor     .10000E-03    2.9822        .14614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.573        16.350        .10492E-03   -1.4944    
  20  norm          .10000E-03    4.7784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.684        13.022        .98052E-04   -1.4891    
  22  norm          11.071        24.147        .12037E-03   -1.5042    
  23  Normalizat    .77457        .29254        .42976E-03   -1.0102    
  24  Prefactor     1.2627        .15320        .18939E-03   -.84422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73966e-09
Minuit parameter uncertainties:
  1  1.51696e-07
  2  2.52264e-06
  3  2.75673e-06
  4  1.05506e-05
  5  7.513e-06
  6  0.289067
  7  1.27671
  8  2.07081e-06
  9  39.1333
  10  15.2141
  11  4.41205e-05
  12  0.160112
  13  7.27412
  14  38.4838
  15  1.05467e-06
  16  18.7464
  17  26.4001
  18  1.10593e-05
  19  16.3554
  20  3.46697e-05
  21  13.0239
  22  24.1684
  23  0.293131
  24  0.153257
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  3.004e+01  3.913e+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:  1.263e+00  1.533e-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:  7.746e-01  2.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/468807/likelihoodResults_616723201_616982401_4FGL_J2245.9+1544_daily_bin1456.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) = 7565.19848711
delta logL = 1.18787890833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7565.17819945
delta logL = 1.20816656168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0197       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0458       1.0000          .0000       10.000    
     3 'Normalizat'    .68386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2878       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=   7565.178     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      267 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0151        116.37        .12979E-03    .42833E-04
   2  Index         3.0460        2.9701        .32584E-02    .60869E-04
   3  Normalizat    .68393        .32492        .45444E-03    .10832E-03
   4  Prefactor     1.2877        .16844        .18752E-03   -.37191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.01514
  Index      = 3.04602
  Normalizat = 0.683927
  Prefactor  = 1.28771
 **********
 **   18 **HESSE 
 **********

 FCN=   7565.178     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0151        12.729        .51916E-05   -1.5217    
   2  Index         3.0460        .77101        .13034E-03   -.40150    
   3  Normalizat    .68393        .28255        .18178E-04   -1.0453    
   4  Prefactor     1.2877        .15278        .37505E-04   -.83673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79798e-10
Minuit parameter uncertainties:
  1  12.7344
  2  0.774659
  3  0.283156
  4  0.152829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468807': 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) = 7565.17819921
delta logL = 1.2081668015

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  6.015e+00  1.273e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.046e+00  7.747e-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:  1.288e+00  1.528e-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.839e-01  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 341.491 15.748
Photon Index (Free Index): 3.05 +/- 0.77
Photon Flux (Free Index): 1.28e-07 +/- 9.24e-08
Energy Flux (Free Index): 2.49e-05 +/- 1.62e-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/468807/cmap_HighResolution_616723201_616982401_4FGL_J2245.9+1544_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-03', comment='SUCCESS', energy_flux2='2.49e-05', dlogl='1.21e+00', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-28 20:32:49.680051', photon_index_error2='0.77', photon_index2='3.05', ts='0.80', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.62e-05', EG='0.77', time_epoch_completed='1632886369.68', return_code='0', job_id='468807', GAL2='1.29', EG2='0.68', return_code2='0', photon_flux_error2='9.24e-08', ts2='3.33', photon_index='1.96' WHERE bin_id='1456' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:32:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 468807: <4FGL_J2245.9+1544_daily_bin1456> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1456 341.491 15.7479 616723201 616982401 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 :                                   701.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            727 sec.

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

