/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 6 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2245.9+1544_daily_bin436
RA = 341.491, Dec = 15.7479
tmin = 352339201, tmax = 352598401
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='464113', job_status='RUN', time_executed='2021-09-28 20:05:35.522200', time_epoch_executed='1632884735.52' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464113/ft1_4FGL_J2245.9+1544_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464113/ft2_4FGL_J2245.9+1544_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464113/ft1_4FGL_J2245.9+1544_daily_bin436.fits outfile=/scratch/kocevski/464113/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin436.fits ra=341.491 dec=15.7479 rad=12.0 tmin=352339201.0 tmax=352598401.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.44
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/464113/ft2_4FGL_J2245.9+1544_daily_bin436.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/464113/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/464113/ft1_filtered_4FGL_J2245.9+1544_daily_bin436.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.54
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464113/ft1_filtered_4FGL_J2245.9+1544_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/464113/ft2_4FGL_J2245.9+1544_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/464113/ltcube_352339201_352598401_4FGL_J2245.9+1544_daily_bin436.fits outfile=/scratch/kocevski/464113/expmap_352339201_352598401_4FGL_J2245.9+1544_daily_bin436.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/464113/ltcube_352339201_352598401_4FGL_J2245.9+1544_daily_bin436.fits
.....................!
real 191.82
user 185.61
sys 5.89

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/464113/ft1_filtered_4FGL_J2245.9+1544_daily_bin436.fits scfile=/scratch/kocevski/464113/ft2_4FGL_J2245.9+1544_daily_bin436.fits outfile=/scratch/kocevski/464113/cmap_HighResolution_352339201_352598401_4FGL_J2245.9+1544_daily_bin436.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8103       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20501E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1209       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1974       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.013       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34101E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.969       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54563       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1004       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.234       1.0000         .10000E-03   10000.    
    20 'norm      '    .10424E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4572       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6282       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97193       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1698       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=   7189.490     FROM MIGRAD    STATUS=CONVERGED    980 CALLS     3255 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .46974        .11081E-03** at limit **
   2  Prefactor     .10000E-03    14.994        .18142E-02** at limit **
   3  norm          .10000E-03    2.8064        .13809E-02** at limit **
   4  Prefactor     15.078        15.703        .10318E-03    .15205E-04
   5  Prefactor     3.8108        10.522        .10339E-02   -.82404E-04
   6  Prefactor     .20532E-01    .19551        .50687E-03    .17082E-02
   7  Prefactor     1.1273        15.448        .44349E-03   -.27403E-04
   8  norm          1.1952        1.4654        .11032E-03    .35759E-04
   9  Prefactor     16.028        33.691        .10009E-03   -.13665E-03
  10  Prefactor     .25001        102.52        .41677E-02    .10719E-03
  11  Prefactor     .10000E-03    10.235        .18142E-02** at limit **
  12  Prefactor     .34041E-01    .92891E-01    .36717E-03    .22271E-01
  13  Prefactor     .10000E-03    8.4128        .18142E-02** at limit **
  14  Prefactor     20.962        45.301        .87469E-04    .20796E-04
  15  Prefactor     .57596        39.383        .43439E-02   -.27557E-03
  16  Prefactor     2.0996        7.7721        .14238E-02   -.16728E-03
  17  Prefactor     .10000E-03    16.057        .18142E-02** at limit **
  18  Prefactor     .10000E-03    3.8503        .16180E-02** at limit **
  19  Prefactor     10.239        21.715        .12525E-03    .29681E-04
  20  norm          .10012E-03    18.153        .77054E-01** at limit **
  21  Prefactor     2.4221        14.615        .26092E-03    .20779E-03
  22  norm          4.6367        20.718        .18709E-03    .38891E-05
  23  Normalizat    .97196        .27678        .34691E-03   -.58955E-04
  24  Prefactor     1.1696        .15100        .18175E-03   -.45428E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0785
  Prefactor  = 3.81082
  Prefactor  = 0.0205317
  Prefactor  = 1.12732
  norm       = 1.19523
  Prefactor  = 16.0278
  Prefactor  = 0.250015
  Prefactor  = 0.0001
  Prefactor  = 0.0340414
  Prefactor  = 0.0001
  Prefactor  = 20.9621
  Prefactor  = 0.575955
  Prefactor  = 2.09959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2388
  norm       = 0.000100124
  Prefactor  = 2.42212
  norm       = 4.63669
  Normalizat = 0.971957
  Prefactor  = 1.16958
 **********
 **   18 **HESSE 
 **********

 FCN=   7189.490     FROM HESSE     STATUS=OK           395 CALLS     3650 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .46974        .22162E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.001        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8069        .27617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.078        15.667        .41272E-05   -1.4931    
   5  Prefactor     3.8108        10.510        .41356E-04   -1.5318    
   6  Prefactor     .20532E-01    .19362        .20275E-04   -1.5679    
   7  Prefactor     1.1273        15.377        .17740E-04   -1.5496    
   8  norm          1.1952        1.4585        .44128E-05   -1.5489    
   9  Prefactor     16.028        33.635        .40035E-05   -1.4907    
  10  Prefactor     .25001        103.42        .16671E-03   -1.5608    
  11  Prefactor     .10000E-03    10.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .34041E-01    .92548E-01    .73434E-04   -1.5671    
  13  Prefactor     .10000E-03    8.4163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.962        45.259        .34988E-05   -1.4792    
  15  Prefactor     .57596        38.961        .17376E-03   -1.5556    
  16  Prefactor     2.0996        7.7665        .56951E-04   -1.5418    
  17  Prefactor     .10000E-03    16.058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8510        .32359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.239        21.702        .50101E-05   -1.5068    
  20  norm          .10012E-03    16.781        .80518E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4221        14.394        .10437E-04   -1.5397    
  22  norm          4.6367        20.705        .74834E-05   -1.5277    
  23  Normalizat    .97196        .27622        .13877E-04   -.93976    
  24  Prefactor     1.1696        .15078        .36349E-04   -.87273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56455e-09
Minuit parameter uncertainties:
  1  8.52076e-07
  2  0.00010866
  3  8.74083e-07
  4  15.6708
  5  10.5148
  6  0.125794
  7  8.32919
  8  1.45857
  9  33.6745
  10  10.1856
  11  3.12846e-05
  12  0.0925479
  13  9.44041e-07
  14  45.3331
  15  9.47969
  16  7.77027
  17  0.000117809
  18  1.69855e-05
  19  21.7191
  20  0.0028851
  21  11.8132
  22  19.6072
  23  0.276625
  24  0.15084
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.603e+01  3.367e+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.170e+00  1.508e-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:  9.720e-01  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 9.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/464113/likelihoodResults_352339201_352598401_4FGL_J2245.9+1544_daily_bin436.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) = 7189.22845856
delta logL = 0.261885865982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7189.20495162
delta logL = 0.285392809876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9331       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6830       1.0000          .0000       10.000    
     3 'Normalizat'    .94384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1769       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=   7189.205     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      264 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9039        153.67        .41214E-02    .22862E-03
   2  Index         2.6845        2.1364        .13929        .13833E-03
   3  Normalizat    .94388        .56025E-01    .79391E-01    .23473E-04
   4  Prefactor     1.1769        .30604E-01    .35202E-01   -.29138E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.90387
  Index      = 2.68447
  Normalizat = 0.943882
  Prefactor  = 1.17692
 **********
 **   18 **HESSE 
 **********

 FCN=   7189.205     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9039        82.395        .16486E-03   -1.5222    
   2  Index         2.6845        2.4965        .47532E-02   -.48150    
   3  Normalizat    .94388        .26651        .35140E-03   -.94935    
   4  Prefactor     1.1769        .15110        .18119E-03   -.87044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75774e-10
Minuit parameter uncertainties:
  1  44.1848
  2  2.65197
  3  0.266887
  4  0.151153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464113': 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) = 7189.20494964
delta logL = 0.285394782744

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  5.904e+00  4.418e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.684e+00  2.652e+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:  1.177e+00  1.512e-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:  9.439e-01  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/464113/cmap_HighResolution_352339201_352598401_4FGL_J2245.9+1544_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-03', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-09-28 20:17:44.828839', job_id='464113', GAL2='1.18', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1632885464.83', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.85e-01', ts2='0.85', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='436' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:17:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 464113: <4FGL_J2245.9+1544_daily_bin436> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin436 341.491 15.7479 352339201 352598401 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 :                                   726.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

