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


Performing analysis on: 4FGL_J1844.4+1547_daily_bin1205
RA = 281.117, Dec = 15.7888
tmin = 551664001, tmax = 551923201
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='317564', job_status='RUN', time_executed='2021-09-21 11:38:28.987226', time_epoch_executed='1632249508.99' WHERE source_name='4FGL J1844.4+1547' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/317564

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/317564/ft1_4FGL_J1844.4+1547_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/317564/ft1_4FGL_J1844.4+1547_daily_bin1205.fits outfile=/scratch/kocevski/317564/ft1_filteredMKT_4FGL_J1844.4+1547_daily_bin1205.fits ra=281.117 dec=15.7888 rad=12.0 tmin=551664001.0 tmax=551923201.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.81
user 3.56
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.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/317564/ft1_filteredMKT_4FGL_J1844.4+1547_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/317564/ltcube_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.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/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits
.....................!
real 11.77
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/317564/ltcube_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.fits outfile=/scratch/kocevski/317564/expmap_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.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/317564/ltcube_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.fits
.....................!
real 191.76
user 186.25
sys 4.98

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
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Added 286 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1844.4+1547 @ 281.117 15.7888

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.fits scfile=/scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits outfile=/scratch/kocevski/317564/cmap_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.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=281.117 yref=15.7888 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.fits scfile=/scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits outfile=/scratch/kocevski/317564/cmap_HighResolution_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.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=281.117 yref=15.7888 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/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/317564/Model_4FGL_J1844.4+1547_daily_bin1205.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 G42.8+0.6
adding source GAL_V02
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/scratch/kocevski/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.fits.....................!
real 141.75
user 140.25
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.fits', '/scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits', expMap='/scratch/kocevski/317564/expmap_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.fits', expCube='/scratch/kocevski/317564/ltcube_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/317564/Model_4FGL_J1844.4+1547_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1844.4+1547'

4FGL J1844.4+1547
   Spectrum: LogParabola
384         norm:  4.741e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
385        alpha:  1.941e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
386         beta:  9.663e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
387           Eb:  2.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/317564/ft1_filtered_4FGL_J1844.4+1547_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/317564/ft2_4FGL_J1844.4+1547_daily_bin1205.fits
Exposure map: /scratch/kocevski/317564/expmap_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.fits
Exposure cube: /scratch/kocevski/317564/ltcube_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/317564/Model_4FGL_J1844.4+1547_daily_bin1205.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) = 3828.57813633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.323       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.647       1.0000         .10000E-03   10000.    
     6 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.604       1.0000         .10000E-03   10000.    
     8 'norm      '    104.79       1.0000         .10000E-03   10000.    
     9 'Normalizat'    1.5881       1.0000         .10000E-01   10.000    
    10 'Prefactor '    .81674       1.0000          .0000       10.000    
    11 'norm      '    6.8656       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1060E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3828.556     FROM MIGRAD    STATUS=CONVERGED    190 CALLS      840 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.734       -.42819E-05** at limit **
   2  norm          10.324        23.459        .45881E-06   -.17060E-04
   3  Prefactor     .10000E-03    169.86       -.27979E-05** at limit **
   4  Prefactor     .10000E-03    24.415        .87337E-06** at limit **
   5  Prefactor     47.651        83.382        .42221E-05   -.51415E-06
   6  norm          .10000E-03    40.613       -.29690E-06** at limit **
   7  Prefactor     41.647        67.730        .47094E-04    .25707E-05
   8  norm          104.75        146.73       -.40578E-04   -.36113E-05
   9  Normalizat    1.5879        .84350       -.11167E-04   -.20711E-04
  10  Prefactor     .81675        .67264E-01    .16230E-06   -.26109E-04
  11  norm          6.8653        8.1825        .16071E-05   -.97247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.3236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.6509
  norm       = 0.0001
  Prefactor  = 41.6466
  norm       = 104.746
  Normalizat = 1.5879
  Prefactor  = 0.816747
  norm       = 6.8653
 **********
 **   18 **HESSE 
 **********

 FCN=   3828.556     FROM HESSE     STATUS=OK           112 CALLS      952 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.324        23.452        .12471E-03   -1.5065    
   3  Prefactor     .10000E-03    169.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.651        83.323        .58090E-04   -1.4326    
   6  norm          .10000E-03    40.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.647        67.765        .62148E-04   -1.4416    
   8  norm          104.75        146.64        .19641E-03   -1.3657    
   9  Normalizat    1.5879        .84147        .10991E-02   -.75337    
  10  Prefactor     .81675        .68488E-01    .11592E-03   -.99114    
  11  norm          6.8653        8.1637        .15312E-03   -1.5184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94523e-11
Minuit parameter uncertainties:
  1  1.33162e-05
  2  23.4728
  3  1.61765e-05
  4  1.32476e-05
  5  83.5274
  6  3.87947e-06
  7  67.8903
  8  147.153
  9  0.849135
  10  0.0684954
  11  8.165
Done.

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

Extracting fit parameters...

4FGL J1844.4+1547
   Spectrum: LogParabola
384         norm:  1.000e-04  3.879e-06  1.000e-04  1.000e+04 ( 1.000e-13)
385        alpha:  1.941e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
386         beta:  9.663e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
387           Eb:  2.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1035    Prefactor:  8.167e-01  6.850e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1036        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1037        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1031   Normalization:  1.588e+00  8.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 281.117 15.789
Photon Flux Upper Limit: 3.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/317564/likelihoodResults_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.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) = 3828.55649447
delta logL = -0.00011701578569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3828.55637862
delta logL = -1.16646288006e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9832       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81675       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1060E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3828.556     FROM MIGRAD    STATUS=FAILED       103 CALLS      296 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11373E-03    311.16        .32656E-02** at limit **
   2  alpha         2.6778        3.4553        .50000        .42447E-05
   3  Normalizat    1.5879        .91584E-01    .10991E-02   -.54305E-06
   4  Prefactor     .81675        .73633E-02    .11592E-03    .10858E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3828.556     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      419 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11373E-03    311.16        .10643E-02** at limit **
   2  alpha         2.6778        3.4553        .36595E-03    .42447E-05
   3  Normalizat    1.5879        .91584E-01    .21305E-04   -.54305E-06
   4  Prefactor     .81675        .73633E-02    .17125E-05    .10858E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3828.556     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      473 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    450.48        .65312E-02** at limit **
   2  alpha         2.0945        2.7420        .50000        .16246E-07
   3  Normalizat    1.5879        .98590E-01    .43963E-04   -.51124E-04
   4  Prefactor     .81675        .79267E-02    .23185E-04   -.68831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09452
  Normalizat = 1.58791
  Prefactor  = 0.816746
 **********
 **   18 **HESSE 
 **********

 FCN=   3828.556     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      502 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2116.7        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0945        3.2936        .50000       -.16291    
   3  Normalizat    1.5879        .23141        .87926E-05   -.75337    
   4  Prefactor     .81675        .18615E-01    .46369E-05   -.99114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.77306e-10
Minuit parameter uncertainties:
  1  0.000234338
  2  3981.88
  3  0.231569
  4  0.0186153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/317564': 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) = 3828.55637744
delta logL = 1.09976099338e-08

Extracting fit parameters...

4FGL J1844.4+1547
   Spectrum: LogParabola
384         norm:  1.000e-04  2.343e-04  1.000e-04  1.000e+04 ( 1.000e-13)
385        alpha:  2.095e+00  3.982e+03  0.000e+00  5.000e+00 ( 1.000e+00)
386         beta:  9.663e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
387           Eb:  2.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1035    Prefactor:  8.167e-01  1.862e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1036        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1037        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1031   Normalization:  1.588e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 281.117 15.789

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/317564/cmap_HighResolution_551664001_551923201_4FGL_J1844.4+1547_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-04', job_status='DONE', photon_flux_upper_limit='3.63e-07', time_completed='2021-09-21 11:49:00.398321', job_id='317564', GAL2='0.82', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1632250140.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1205' AND source_name='4FGL J1844.4+1547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 11:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 317564: <4FGL_J1844.4+1547_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1844.4+1547_daily_bin1205> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 21 11:35:25 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 11:35:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 11:35:26 2021
Terminated at Tue Sep 21 11:49:01 2021
Results reported at Tue Sep 21 11:49:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1844.4+1547_daily_bin1205 281.117 15.7888 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1844.4+1547 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.16 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             321.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

