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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin346
RA = 341.491, Dec = 15.7479
tmin = 329011201, tmax = 329270401
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='462963', job_status='RUN', time_executed='2021-09-28 20:00:52.259692', time_epoch_executed='1632884452.26' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462963/ft1_4FGL_J2245.9+1544_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462963/ft2_4FGL_J2245.9+1544_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462963/ft1_4FGL_J2245.9+1544_daily_bin346.fits outfile=/scratch/kocevski/462963/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin346.fits ra=341.491 dec=15.7479 rad=12.0 tmin=329011201.0 tmax=329270401.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.53
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462963/ft1_filtered_4FGL_J2245.9+1544_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/462963/ft2_4FGL_J2245.9+1544_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/462963/ltcube_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.fits outfile=/scratch/kocevski/462963/expmap_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.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/462963/ltcube_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.fits
.....................!
real 190.38
user 185.25
sys 4.82

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/462963/ft1_filtered_4FGL_J2245.9+1544_daily_bin346.fits scfile=/scratch/kocevski/462963/ft2_4FGL_J2245.9+1544_daily_bin346.fits outfile=/scratch/kocevski/462963/cmap_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.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.36
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/462963/ft1_filtered_4FGL_J2245.9+1544_daily_bin346.fits', '/scratch/kocevski/462963/ft2_4FGL_J2245.9+1544_daily_bin346.fits', expMap='/scratch/kocevski/462963/expmap_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.fits', expCube='/scratch/kocevski/462963/ltcube_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/462963/Model_4FGL_J2245.9+1544_daily_bin346.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/462963/ft1_filtered_4FGL_J2245.9+1544_daily_bin346.fits
Spacecraft file(s): /scratch/kocevski/462963/ft2_4FGL_J2245.9+1544_daily_bin346.fits
Exposure map: /scratch/kocevski/462963/expmap_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.fits
Exposure cube: /scratch/kocevski/462963/ltcube_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/462963/Model_4FGL_J2245.9+1544_daily_bin346.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11389.1445789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2788       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15218E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5546       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.098       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6481       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .78446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1363       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19502E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9464       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5444       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9449       1.0000         .10000E-03   10000.    
    20 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1223       1.0000         .10000E-03   10000.    
    22 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6806       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68900       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=   11389.06     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2353 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2788        1.0052        .16325E-07    .21321E-03
   2  Prefactor     .10000E-03    31.620       -.10766E-04** at limit **
   3  norm          .10000E-03    2.4799       -.14059E-08** at limit **
   4  Prefactor     4.4819        28.233       -.43818E-04   -.48521E-04
   5  Prefactor     22.079        13.115       -.30480E-06    .13276E-03
   6  Prefactor     6.6481        .50495        .27514E-06   -.19152E-03
   7  Prefactor     .10000E-03    2.2251       -.25268E-06** at limit **
   8  norm          .78311        2.1017       -.46481E-06   -.29277E-03
   9  Prefactor     .10000E-03    12.373       -.78517E-06** at limit **
  10  Prefactor     6.1218        13.981       -.73199E-06    .43296E-04
  11  Prefactor     .10000E-03    53.613        .25600E-04** at limit **
  12  Prefactor     1.1033        .20865       -.10586E-06   -.23586E-02
  13  Prefactor     5.9429        7.1535       -.62541E-06    .84111E-05
  14  Prefactor     .10000E-03    19.128        .22273E-05** at limit **
  15  Prefactor     1.5415        2.6321        .11186E-05   -.37198E-02
  16  Prefactor     10.186        12.782       -.72364E-06   -.16570E-03
  17  Prefactor     .10000E-03    7.0907        .34663E-06** at limit **
  18  Prefactor     .10000E-03    3.1593        .12735E-06** at limit **
  19  Prefactor     5.9400        11.629       -.60031E-06   -.35615E-05
  20  norm          .10000E-03    3.4342        .87777E-07** at limit **
  21  Prefactor     2.1203        5.4797       -.24799E-06   -.17850E-02
  22  norm          .10000E-03    5.9082        .23933E-06** at limit **
  23  Normalizat    1.6808        .22817        .34311E-05    .51259E-04
  24  Prefactor     .68907        .11224       -.24080E-06    .38228E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.48192
  Prefactor  = 22.0785
  Prefactor  = 6.64809
  Prefactor  = 0.0001
  norm       = 0.783115
  Prefactor  = 0.0001
  Prefactor  = 6.12177
  Prefactor  = 0.0001
  Prefactor  = 1.1033
  Prefactor  = 5.94286
  Prefactor  = 0.0001
  Prefactor  = 1.54149
  Prefactor  = 10.1856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.93995
  norm       = 0.0001
  Prefactor  = 2.12031
  norm       = 0.0001
  Normalizat = 1.68077
  Prefactor  = 0.689073
 **********
 **   18 **HESSE 
 **********

 FCN=   11389.06     FROM HESSE     STATUS=OK           401 CALLS     2754 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2788        .98877        .90976E-04   -1.5482    
   2  Prefactor     .10000E-03    32.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5035        .16407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4819        28.449        .18863E-03   -1.5285    
   5  Prefactor     22.079        13.179        .85207E-04   -1.4768    
   6  Prefactor     6.6481        .50732        .18594E-04   -1.5192    
   7  Prefactor     .10000E-03    2.2277        .15546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .78311        2.0281        .22589E-03   -1.5531    
   9  Prefactor     .10000E-03    12.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1218        13.621        .16207E-03   -1.5213    
  11  Prefactor     .10000E-03    54.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1033        .20930        .19924E-04   -1.5498    
  13  Prefactor     5.9429        7.1514        .16467E-03   -1.5220    
  14  Prefactor     .10000E-03    19.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5415        4.6748        .17148E-02   -1.5460    
  16  Prefactor     10.186        12.807        .62753E-03   -1.5070    
  17  Prefactor     .10000E-03    7.0926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9400        11.628        .16469E-03   -1.5220    
  20  norm          .10000E-03    3.4437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1203        6.1254        .14154E-02   -1.5417    
  22  norm          .10000E-03    5.9117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6808        .27488        .35183E-03   -.72818    
  24  Prefactor     .68907        .13444        .26971E-03   -1.0396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55932e-08
Minuit parameter uncertainties:
  1  0.988782
  2  4.51914e-05
  3  3.30124e-06
  4  22.5991
  5  13.1812
  6  0.507318
  7  2.61184e-06
  8  2.02823
  9  2.47555e-06
  10  13.6283
  11  7.92383e-05
  12  0.209305
  13  7.15243
  14  2.35788e-05
  15  4.67595
  16  12.8102
  17  3.2409e-06
  18  1.22823e-05
  19  11.6328
  20  3.04217e-06
  21  6.12718
  22  2.83052e-06
  23  0.275126
  24  0.134498
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.476e-06  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:  6.891e-01  1.345e-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.681e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/462963/likelihoodResults_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.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) = 11389.0643593
delta logL = -0.000384454104278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11389.0639749
delta logL = -6.07742549619e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9698       1.0000          .0000       10.000    
     3 'Normalizat'    1.6809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68903       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=   11389.06     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    285.61        .90712E-02** at limit **
   2  Index         1.9759        8.3079        .50000       -.42940E-05
   3  Normalizat    1.6808        .27841E-01    .79505E-01   -.26008E-03
   4  Prefactor     .68907        .14504E-01    .60976E-01   -.23113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.97586
  Normalizat = 1.68077
  Prefactor  = 0.689071
 **********
 **   18 **HESSE 
 **********

 FCN=   11389.06     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    413.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9759        6.0381        .50000       -.64955    
   3  Normalizat    1.6808        .33924E-01    .35183E-03   -.72818    
   4  Prefactor     .68907        .17670E-01    .26971E-03   -1.0396    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12321e-08
Minuit parameter uncertainties:
  1  0.00325195
  2  23.1913
  3  0.0339241
  4  0.01767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462963': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11389.0639748
delta logL = 1.14305294119e-08

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  3.252e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.976e+00  2.319e+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:  6.891e-01  1.767e-02  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.681e+00  3.392e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 341.491 15.748

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/462963/cmap_HighResolution_329011201_329270401_4FGL_J2245.9+1544_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-28 20:16:03.075615', job_id='462963', GAL2='0.69', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1632885363.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='346' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:16:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 462963: <4FGL_J2245.9+1544_daily_bin346> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin346 341.491 15.7479 329011201 329270401 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 :                                   907.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

