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


Performing analysis on: 4FGL_J2036.4+6553_monthly_bin168
RA = 309.103, Dec = 65.8834
tmin = 672451201, tmax = 675043201
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='648556', job_status='RUN', time_executed='2022-05-24 04:01:51.485187', time_epoch_executed='1653390111.49' WHERE source_name='4FGL J2036.4+6553' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648556

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648556/ft1_4FGL_J2036.4+6553_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648556/ft1_4FGL_J2036.4+6553_monthly_bin168.fits outfile=/scratch/kocevski/648556/ft1_filteredMKT_4FGL_J2036.4+6553_monthly_bin168.fits ra=309.103 dec=65.8834 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.06
user 28.03
sys 0.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.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/648556/ft1_filteredMKT_4FGL_J2036.4+6553_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.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.89
user 0.69
sys 0.19

Number of photons that the gtmktime cut: 32476

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/648556/ltcube_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.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/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits
.....................!
real 138.40
user 137.17
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/648556/ltcube_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.fits outfile=/scratch/kocevski/648556/expmap_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.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/648556/ltcube_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.fits
.....................!
real 193.84
user 186.97
sys 6.20

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 FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 191 point sources and 5 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 J2036.4+6553 @ 309.103 65.8834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.fits scfile=/scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits outfile=/scratch/kocevski/648556/cmap_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.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=309.103 yref=65.8834 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.86
user 0.66
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.fits scfile=/scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits outfile=/scratch/kocevski/648556/cmap_HighResolution_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.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=309.103 yref=65.8834 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.84
user 0.66
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648556/Model_4FGL_J2036.4+6553_monthly_bin168.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.fits.....................!
real 4039.32
user 4020.82
sys 3.81

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.fits', '/scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits', expMap='/scratch/kocevski/648556/expmap_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.fits', expCube='/scratch/kocevski/648556/ltcube_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/648556/Model_4FGL_J2036.4+6553_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2036.4+6553'

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.458e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/648556/ft1_filtered_4FGL_J2036.4+6553_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/648556/ft2_4FGL_J2036.4+6553_monthly_bin168.fits
Exposure map: /scratch/kocevski/648556/expmap_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.fits
Exposure cube: /scratch/kocevski/648556/ltcube_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/648556/Model_4FGL_J2036.4+6553_monthly_bin168.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) = 314094.248945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1707       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9655       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.822       1.0000         .10000E-03   10000.    
     4 'norm      '    .16528       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1049       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4726       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3484       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5082       1.0000         .10000E-03   10000.    
    10 'norm      '    9.3018       1.0000         .10000E-03   10000.    
    11 'norm      '    .55657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.264       1.0000         .10000E-03   10000.    
    13 'norm      '    .17390E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.569       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0202       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11111E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .69624       1.0000         .10000E-03   10000.    
    18 'norm      '    .97103E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1178       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   314094.2     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2523 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1639        3.6885         .0000        .36641E-01
   2  Prefactor     9.9873        13.848         .0000       -.20725E-02
   3  Prefactor     23.798        12.663         .0000       -.21352E-02
   4  norm          .16535        .23073         .0000        .49136E-01
   5  norm          1.1050        .75977         .0000        .22615E-01
   6  norm          2.4714        1.7809         .0000        .39979E-02
   7  Prefactor     3.5081        3.4569         .0000        .42254E-01
   8  Prefactor     1.3481        1.1462         .0000        .35672E-03
   9  norm          3.5086        .41098         .0000        .23787E-02
  10  norm          9.3592        4.8327         .0000        .23101E-03
  11  norm          .55335        1.9678         .0000        .21437    
  12  Prefactor     37.250        5.7469         .0000        .73399E-02
  13  norm          .10000E-03    .85798E-01     .0000    ** at limit **
  14  Prefactor     12.564        3.0049         .0000        .94223E-02
  15  norm          1.0202        .94647         .0000        .11881E-01
  16  Prefactor     .10000E-03    1.2493         .0000    ** at limit **
  17  Prefactor     .69628        .46013         .0000        .21019E-01
  18  norm          .10000E-03    .24415         .0000    ** at limit **
  19  Prefactor     .10000E-03    1.9675         .0000    ** at limit **
  20  Prefactor     .10000E-03    2.4520         .0000    ** at limit **
  21  Normalizat    1.1179        .58236E-01     .0000        .11393E-02
  22  Prefactor     .99098        .98212E-02     .0000       -.20693E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.16386
  Prefactor  = 9.98727
  Prefactor  = 23.7983
  norm       = 0.165348
  norm       = 1.10498
  norm       = 2.47136
  Prefactor  = 3.50809
  Prefactor  = 1.34808
  norm       = 3.50857
  norm       = 9.35925
  norm       = 0.553348
  Prefactor  = 37.2495
  norm       = 0.0001
  Prefactor  = 12.5643
  norm       = 1.02023
  Prefactor  = 0.0001
  Prefactor  = 0.696282
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11789
  Prefactor  = 0.990984
 **********
 **   18 **HESSE 
 **********

 FCN=   314094.2     FROM HESSE     STATUS=OK           370 CALLS     2893 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1639        3.5915        .11380E-02   -1.5352    
   2  Prefactor     9.9873        13.848        .12693E-03   -1.5076    
   3  Prefactor     23.798        12.642        .82071E-04   -1.4732    
   4  norm          .16535        .32423        .28999E-02   -1.5627    
   5  norm          1.1050        .73585        .37582E-03   -1.5498    
   6  norm          2.4714        1.7580        .26003E-03   -1.5394    
   7  Prefactor     3.5081        3.4612        .10792E-02   -1.5333    
   8  Prefactor     1.3481        1.1490        .37693E-04   -1.5476    
   9  norm          3.5086        .40854        .11370E-03   -1.5333    
  10  norm          9.3592        4.8325        .13140E-03   -1.5096    
  11  norm          .55335        1.9725        .22999E-02   -1.5559    
  12  Prefactor     37.250        5.7372        .65655E-04   -1.4487    
  13  norm          .10000E-03    .88381E-01    .55903E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.564        3.0043        .11299E-03   -1.4999    
  15  norm          1.0202        .93828        .51185E-03   -1.5506    
  16  Prefactor     .10000E-03    1.2710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .69628        .54594        .29631E-02   -1.5541    
  18  norm          .10000E-03    .33424        .82981E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1179        .60070E-01    .63729E-03   -.89179    
  22  Prefactor     .99098        .10203E-01    .12415E-03   -.93031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55363e-07
Minuit parameter uncertainties:
  1  3.59174
  2  13.8524
  3  12.6437
  4  0.324231
  5  0.735859
  6  1.75802
  7  3.46139
  8  1.14898
  9  0.408542
  10  4.83266
  11  1.9727
  12  5.73733
  13  4.63342e-07
  14  3.00437
  15  0.938298
  16  9.4492e-06
  17  0.545939
  18  7.56675e-05
  19  2.35199e-06
  20  4.04148e-06
  21  0.0600736
  22  0.0102034
Done.

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

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.020e+00  9.383e-01  1.000e-04  1.000e+04 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.910e-01  1.020e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.118e+00  6.007e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 309.103 65.883
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.22e-09 +/- 2.04e-09
Energy Flux (Fixed Index): 2.27e-06 +/- 2.09e-06

TS (Fixed Index): 2.83
Ra Dec: 309.103 65.883
Photon Flux Upper Limit: 7.42e-09 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648556/likelihoodResults_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.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) = 314091.730001
delta logL = 2.46665887925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 314091.718502
delta logL = 2.47815741168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17237       1.0000         .10000E-03   10000.    
     2 'alpha     '    .17132       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   314091.7     FROM MIGRAD    STATUS=FAILED        68 CALLS      271 TOTAL
                     EDM=   .34E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17238        4.3091         .0000       -.83841E-01
   2  alpha         .17111        4.8524         .0000        .68892E-01
   3  Normalizat    1.1177        .17041E-01     .0000        .10973E-02
   4  Prefactor     .99125        .31625E-02     .0000       -.60325E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   314091.7     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      350 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17238        4.3091        .34124E-04   -.83841E-01
   2  alpha         .17111        4.8524        .35606E-02    .68892E-01
   3  Normalizat    1.1177        .17041E-01    .52490E-04    .10973E-02
   4  Prefactor     .99125        .31625E-02    .86278E-05   -.60325E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   314091.7     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      403 TOTAL
                     EDM=   .11E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17238        .21204         .0000       -.13440E-01
   2  alpha         .17111        .56392         .0000        .68892E-01
   3  Normalizat    1.1177        .52406E-01     .0000       -.12558E-04
   4  Prefactor     .99125        .97801E-02     .0000       -.82059E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.172375
  alpha      = 0.171114
  Normalizat = 1.11774
  Prefactor  = 0.99125
 **********
 **   18 **HESSE 
 **********

 FCN=   314091.7     FROM HESSE     STATUS=OK            29 CALLS      432 TOTAL
                     EDM=   .13E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17238        .16459        .96957E-04   -1.5625    
   2  alpha         .17111        .44900        .50000       -1.1987    
   3  Normalizat    1.1177        .52415E-01    .25493E-04   -.89184    
   4  Prefactor     .99125        .97816E-02    .49654E-05   -.93022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00126674
Minuit parameter uncertainties:
  1  0.164594
  2  0.469612
  3  0.0524173
  4  0.00978162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648556': 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) = 314091.718502
delta logL = 2.47815769649

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.724e-01  1.646e-01  1.000e-04  1.000e+04 ( 1.000e-13)
338        alpha:  1.711e-01  4.696e-01  0.000e+00  5.000e+00 ( 1.000e+00)
339         beta:  1.490e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.913e-01  9.782e-03  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.118e+00  5.242e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.78
Ra Dec: 309.103 65.883
Photon Index (Free Index): 0.17 +/- 0.47
Photon Flux (Free Index): 4.01e-10 +/- 3.27e-10
Energy Flux (Free Index): 1.11e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/648556/cmap_HighResolution_672451201_675043201_4FGL_J2036.4+6553_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-06', comment='SUCCESS', photon_flux='2.22e-09', energy_flux2='1.11e-05', photon_flux_error='2.04e-09', dlogl='2.48e+00', energy_flux='2.27e-06', photon_flux2='4.01e-10', job_status='DONE', time_completed='2022-05-24 11:06:35.296087', photon_index_error2='0.47', photon_index2='0.17', ts='2.83', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.42e-09', energy_flux_error2='1.21e-05', EG='1.12', time_epoch_completed='1653415595.3', return_code='0', job_id='648556', GAL2='0.99', EG2='1.12', return_code2='0', energy_flux_error='2.09e-06', photon_flux_error2='3.27e-10', ts2='7.78', photon_index='1.92' WHERE bin_id='168' AND source_name='4FGL J2036.4+6553' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 11:06:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 648556: <4FGL_J2036.4+6553_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2036.4+6553_monthly_bin168> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May 24 04:00:38 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 04:00:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 04:00:52 2022
Terminated at Tue May 24 11:06:37 2022
Results reported at Tue May 24 11:06:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2036.4+6553_monthly_bin168 309.103 65.8834 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2036.4+6553 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   25388.00 sec.
    Max Memory :                                 869 MB
    Average Memory :                             811.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   25545 sec.
    Turnaround time :                            25559 sec.

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

