aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 50 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 = 7446
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2044.0+1036_daily_bin1665
RA = 311.002, Dec = 10.6079
tmin = 670896001, tmax = 671155201
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='356910', job_status='RUN', time_executed='2022-04-09 00:36:35.802795', time_epoch_executed='1649489795.8' WHERE source_name='4FGL J2044.0+1036' and cadence='daily' and bin_id='1665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356910/ft1_4FGL_J2044.0+1036_daily_bin1665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356910/ft1_4FGL_J2044.0+1036_daily_bin1665.fits outfile=/scratch/kocevski/356910/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1665.fits ra=311.002 dec=10.6079 rad=12.0 tmin=670896001.0 tmax=671155201.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 5.46
user 5.14
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.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/356910/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1665.fits evtable="EVENTS" outfile="/scratch/kocevski/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.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.16

Number of photons that the gtmktime cut: 944

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.fits" evtable="EVENTS" scfile=/scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits sctable="SC_DATA" outfile=/scratch/kocevski/356910/ltcube_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.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/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits
.....................!
real 11.61
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits sctable="SC_DATA" expcube=/scratch/kocevski/356910/ltcube_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.fits outfile=/scratch/kocevski/356910/expmap_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.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/356910/ltcube_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.fits
.....................!
real 191.97
user 186.82
sys 4.81

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 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 Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 213 point sources and 2 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 J2044.0+1036 @ 311.002 10.6079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.fits scfile=/scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits outfile=/scratch/kocevski/356910/cmap_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.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=311.002 yref=10.6079 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/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.fits scfile=/scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits outfile=/scratch/kocevski/356910/cmap_HighResolution_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.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=311.002 yref=10.6079 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/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/356910/Model_4FGL_J2044.0+1036_daily_bin1665.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.fits.....................!
real 226.44
user 224.77
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.fits', '/scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits', expMap='/scratch/kocevski/356910/expmap_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.fits', expCube='/scratch/kocevski/356910/ltcube_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/356910/Model_4FGL_J2044.0+1036_daily_bin1665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2044.0+1036'

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  3.385e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
461        Index:  2.180e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/356910/ft1_filtered_4FGL_J2044.0+1036_daily_bin1665.fits
Spacecraft file(s): /scratch/kocevski/356910/ft2_4FGL_J2044.0+1036_daily_bin1665.fits
Exposure map: /scratch/kocevski/356910/expmap_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.fits
Exposure cube: /scratch/kocevski/356910/ltcube_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/356910/Model_4FGL_J2044.0+1036_daily_bin1665.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) = 10113.5466171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .73515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.312       1.0000         .10000E-03   10000.    
     7 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.239       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8567       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3140       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0213       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9944       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91399       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10113.53     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1836 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6848        .28543E-05** at limit **
   2  norm          .10000E-03    1.8657       -.39880E-07** at limit **
   3  Prefactor     .10000E-03    10.830       -.62855E-05** at limit **
   4  Prefactor     .10000E-03    16.232       -.41125E-05** at limit **
   5  norm          .73532        .65145       -.21603E-06   -.79986E-03
   6  Prefactor     75.319        49.728        .72334E-05    .65500E-04
   7  norm          .10000E-03    12.755       -.15575E-06** at limit **
   8  norm          21.267        56.002        .57557E-04    .50701E-05
   9  Prefactor     .10000E-03    12.832       -.99058E-06** at limit **
  10  Prefactor     3.8564        10.969       -.71217E-06   -.12093E-03
  11  Prefactor     .10000E-03    13.354        .18536E-05** at limit **
  12  Prefactor     5.3137        14.395       -.99843E-06   -.82399E-04
  13  Prefactor     .10000E-03    13.622        .26128E-05** at limit **
  14  Prefactor     7.0209        15.889        .10062E-05   -.65929E-04
  15  Prefactor     .10000E-03    14.409        .33892E-05** at limit **
  16  Prefactor     9.9896        19.937       -.86789E-05   -.25434E-04
  17  Prefactor     .10000E-03    4.0068       -.13311E-07** at limit **
  18  Normalizat    .91411        .24912        .68511E-06   -.34872E-04
  19  Prefactor     .95061        .75774E-01   -.78009E-06    .38830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.735319
  Prefactor  = 75.3186
  norm       = 0.000100001
  norm       = 21.2675
  Prefactor  = 0.000100004
  Prefactor  = 3.85644
  Prefactor  = 0.0001
  Prefactor  = 5.31375
  Prefactor  = 0.0001
  Prefactor  = 7.02091
  Prefactor  = 0.0001
  Prefactor  = 9.98959
  Prefactor  = 0.0001
  Normalizat = 0.914108
  Prefactor  = 0.950611
 **********
 **   18 **HESSE 
 **********

 FCN=   10113.53     FROM HESSE     STATUS=OK           264 CALLS     2100 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8661        .13415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .73532        .62080        .71376E-03   -1.5536    
   6  Prefactor     75.319        49.534        .46268E-04   -1.3970    
   7  norm          .10000E-03    12.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.267        55.882        .86911E-04   -1.4785    
   9  Prefactor     .10000E-03    12.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8564        10.961        .20549E-03   -1.5315    
  11  Prefactor     .10000E-03    13.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3137        14.425        .17435E-03   -1.5247    
  13  Prefactor     .10000E-03    13.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0209        15.860        .15140E-03   -1.5178    
  15  Prefactor     .10000E-03    14.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9896        19.991        .12675E-03   -1.5076    
  17  Prefactor     .10000E-03    4.0991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .91411        .27955        .45993E-03   -.95966    
  19  Prefactor     .95061        .85672E-01    .14248E-03   -.94394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74552e-10
Minuit parameter uncertainties:
  1  5.63363e-06
  2  8.92206e-08
  3  2.46859e-05
  4  5.73689e-06
  5  0.62081
  6  49.5607
  7  0.000187903
  8  56.0197
  9  0.000443081
  10  10.9666
  11  5.4576e-06
  12  14.4344
  13  1.85207e-06
  14  15.8691
  15  4.63882e-06
  16  20.0039
  17  7.79408e-06
  18  0.279995
  19  0.0856842
Done.

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

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  7.532e+01  4.956e+01  1.000e-04  1.000e+04 ( 1.000e-14)
461        Index:  2.180e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  9.506e-01  8.568e-02  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  9.141e-01  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 311.002 10.608
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.83e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 2.10e-05

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) = 10112.3812062
delta logL = 1.15376367774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10112.3807032
delta logL = 1.15426664289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.071       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9802       1.0000          .0000       10.000    
     3 'Normalizat'    .82798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96614       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10112.38     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      337 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.008        145.44        .22350E-02   -.27157E-03
   2  Index         2.9819        1.7695        .91046E-01    .14730E-03
   3  Normalizat    .82790        .98634E-01    .10839        .19269E-04
   4  Prefactor     .96620        .27555E-01    .31989E-01   -.29759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.008
  Index      = 2.9819
  Normalizat = 0.827898
  Prefactor  = 0.966201
 **********
 **   18 **HESSE 
 **********

 FCN=   10112.38     FROM HESSE     STATUS=OK            33 CALLS      370 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.008        58.571        .89401E-04   -1.4813    
   2  Index         2.9819        1.1760        .33961E-02   -.41547    
   3  Normalizat    .82790        .28121        .48050E-03   -.99042    
   4  Prefactor     .96620        .86825E-01    .14135E-03   -.93865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72332e-10
Minuit parameter uncertainties:
  1  58.7397
  2  1.18937
  3  0.28171
  4  0.0868378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356910': 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) = 10112.3806963
delta logL = 1.15427354138

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  2.001e+01  5.874e+01  1.000e-04  1.000e+04 ( 1.000e-14)
461        Index:  2.982e+00  1.189e+00  0.000e+00  1.000e+01 (-1.000e+00)
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  9.662e-01  8.684e-02  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  8.279e-01  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.96
Ra Dec: 311.002 10.608
Photon Index (Free Index): 2.98 +/- 1.19
Photon Flux (Free Index): 1.41e-07 +/- 8.20e-08
Energy Flux (Free Index): 2.84e-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/356910/cmap_HighResolution_670896001_671155201_4FGL_J2044.0+1036_daily_bin1665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.83e-08', energy_flux2='2.84e-05', photon_flux_error='4.49e-08', dlogl='1.15e+00', energy_flux='3.19e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2022-04-09 00:51:52.338284', photon_index_error2='1.19', photon_index2='2.98', ts='4.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.91', time_epoch_completed='1649490712.34', return_code='0', job_id='356910', GAL2='0.97', EG2='0.83', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='8.20e-08', ts2='6.96', photon_index='2.18' WHERE bin_id='1665' AND source_name='4FGL J2044.0+1036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr  9 00:51:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 356910: <4FGL_J2044.0+1036_daily_bin1665> in cluster <slac> Done

Job <4FGL_J2044.0+1036_daily_bin1665> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Apr  9 00:35:35 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr  9 00:35:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr  9 00:35:36 2022
Terminated at Sat Apr  9 00:51:53 2022
Results reported at Sat Apr  9 00:51:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2044.0+1036_daily_bin1665 311.002 10.6079 670896001 671155201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2044.0+1036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   918.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             365.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

