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 223 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1955.4+5132_monthly_bin174
RA = 298.858, Dec = 51.5434
tmin = 688003201, tmax = 690595201
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='861401', job_status='RUN', time_executed='2022-11-20 02:27:17.975345', time_epoch_executed='1668940037.98' WHERE source_name='4FGL J1955.4+5132' and cadence='monthly' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861401

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861401/ft1_4FGL_J1955.4+5132_monthly_bin174.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861401/ft1_4FGL_J1955.4+5132_monthly_bin174.fits outfile=/scratch/kocevski/861401/ft1_filteredMKT_4FGL_J1955.4+5132_monthly_bin174.fits ra=298.858 dec=51.5434 rad=12.0 tmin=688003201.0 tmax=690595201.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 24.92
user 24.00
sys 0.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.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/861401/ft1_filteredMKT_4FGL_J1955.4+5132_monthly_bin174.fits evtable="EVENTS" outfile="/scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.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.76
user 0.55
sys 0.17

Number of photons that the gtmktime cut: 33607

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/861401/ltcube_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.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/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits
.....................!
real 103.39
user 102.90
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/861401/ltcube_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.fits outfile=/scratch/kocevski/861401/expmap_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.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/861401/ltcube_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.fits
.....................!
real 151.51
user 147.85
sys 3.33

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 HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 202 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 J1955.4+5132 @ 298.858 51.5434

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.fits scfile=/scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits outfile=/scratch/kocevski/861401/cmap_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.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=298.858 yref=51.5434 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.75
user 0.56
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.fits scfile=/scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits outfile=/scratch/kocevski/861401/cmap_HighResolution_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.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=298.858 yref=51.5434 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.72
user 0.55
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861401/Model_4FGL_J1955.4+5132_monthly_bin174.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 Cocoon
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.fits.....................!
real 3395.19
user 3383.77
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.fits', '/scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits', expMap='/scratch/kocevski/861401/expmap_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.fits', expCube='/scratch/kocevski/861401/ltcube_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/861401/Model_4FGL_J1955.4+5132_monthly_bin174.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1955.4+5132'

4FGL J1955.4+5132
   Spectrum: PowerLaw
300    Prefactor:  9.222e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  9.505e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/861401/ft1_filtered_4FGL_J1955.4+5132_monthly_bin174.fits
Spacecraft file(s): /scratch/kocevski/861401/ft2_4FGL_J1955.4+5132_monthly_bin174.fits
Exposure map: /scratch/kocevski/861401/expmap_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.fits
Exposure cube: /scratch/kocevski/861401/ltcube_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/861401/Model_4FGL_J1955.4+5132_monthly_bin174.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) = 307277.586782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49782E-06   1.0000          .0000       .10000E+07
     2 'norm      '    2.5078       1.0000          .0000       .10000E+07
     3 'norm      '    2.4125       1.0000          .0000       .10000E+07
     4 'norm      '    3.9360       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.9255       1.0000          .0000       .10000E+07
     6 'Prefactor '    13.828       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.5414       1.0000          .0000       .10000E+07
     8 'norm      '    8.7154       1.0000          .0000       .10000E+07
     9 'norm      '    1.1256       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9380       1.0000         .10000E-03   10000.    
    11 'norm      '    .66341       1.0000          .0000       .10000E+07
    12 'norm      '    .38414E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.6171       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.0789       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   307277.3     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      784 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    5.6888        .59330E-07** at limit **
   2  norm          2.5083        .53198       -.36268E-07   -.85532E-02
   3  norm          2.4128        1.0096       -.53861E-07   -.12711E-02
   4  norm          3.9334        2.4703        .70064E-07    .27107E-02
   5  Prefactor     3.9273        2.2372       -.92755E-07   -.92821E-03
   6  Prefactor     13.844        1.3750       -.33335E-07    .97637E-01
   7  Prefactor     3.5269        4.4730        .14513E-06    .75508E-02
   8  norm          8.7042        2.9584       -.99663E-07   -.84840E-02
   9  norm          1.1251        .47829       -.95340E-07   -.26724E-02
  10  Prefactor     1.9379        .94838E-01    .44537E-07    .22170E-04
  11  norm          .66690        .85827        .41540E-07    .25042E-03
  12  norm           .0000        .29594       -.10185E-06** at limit **
  13  Prefactor     5.6198        1.2380        .31449E-07   -.24766E-02
  14  Normalizat    1.0789        .54586E-01   -.21437E-06    .14696E-04
  15  Prefactor     1.0005        .90420E-02   -.41587E-07    .69607E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  norm       = 2.5083
  norm       = 2.41276
  norm       = 3.93343
  Prefactor  = 3.92728
  Prefactor  = 13.8439
  Prefactor  = 3.52685
  norm       = 8.70415
  norm       = 1.12507
  Prefactor  = 1.93787
  norm       = 0.666896
  norm       = 0
  Prefactor  = 5.6198
  Normalizat = 1.07888
  Prefactor  = 1.00051
 **********
 **   18 **HESSE 
 **********

 FCN=   307277.3     FROM HESSE     STATUS=OK           228 CALLS     1012 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    .53762E-01    .69446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5083        .53426        .64499E-03   -1.5676    
   3  norm          2.4128        1.0181        .65881E-03   -1.5677    
   4  norm          3.9334        2.4772        .50824E-03   -1.5668    
   5  Prefactor     3.9273        2.2404        .50894E-03   -1.5668    
   6  Prefactor     13.844        7.0268        .26910E-03   -1.5634    
   7  Prefactor     3.5269        4.5164        .53688E-03   -1.5670    
   8  norm          8.7042        3.0516        .33929E-03   -1.5649    
   9  norm          1.1251        .48444        .11035E-02   -1.5687    
  10  Prefactor     1.9379        .95308E-01    .74566E-02   -1.5430    
  11  norm          .66690        .86757        .63729E-03   -1.5692    
  12  norm           .0000        .29380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6198        3.1071        .42363E-03   -1.5661    
  14  Normalizat    1.0789        .56018E-01    .16902       -.90433    
  15  Prefactor     1.0005        .89330E-02    .28360E-01   -.92713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64227e-07
Minuit parameter uncertainties:
  1  1.11212e-05
  2  0.534261
  3  1.01811
  4  2.47718
  5  2.24042
  6  7.02682
  7  4.51645
  8  3.05162
  9  0.484444
  10  0.0953075
  11  0.867568
  12  7.25739e-07
  13  3.10707
  14  0.0560209
  15  0.00893306
Done.

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

Extracting fit parameters...

4FGL J1955.4+5132
   Spectrum: PowerLaw
300    Prefactor:  1.384e+01  7.027e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  9.505e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.001e+00  8.933e-03  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.079e+00  5.602e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 298.858 51.543
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 7.69e-06 +/- 3.90e-06

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) = 307275.984633
delta logL = 1.29116219241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 307275.935108
delta logL = 1.34068676777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1963       1.0000          .0000       .10000E+07
     2 'Index     '    3.3095       1.0000          .0000       10.000    
     3 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   307275.9     FROM MIGRAD    STATUS=FAILED        95 CALLS      350 TOTAL
                     EDM=   .74E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1963        47.868        .16122E-04    .12050E-01
   2  Index         3.3095        2.8724        .12947E-01    .13386E-01
   3  Normalizat    1.0630        .53083E-01    .75767E-03    .44366E-04
   4  Prefactor     1.0013        .82106E-02    .12528E-03   -.18584E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   307275.9     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      431 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1963        47.868        .10127E-04    .12050E-01
   2  Index         3.3095        2.8724        .37696E-03    .13386E-01
   3  Normalizat    1.0630        .53083E-01    .55394E-04    .44366E-04
   4  Prefactor     1.0013        .82106E-02    .10144E-04   -.18584E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   307275.9     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      473 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1961        8.1381        .64489E-06    .70164E-03
   2  Index         3.3095        .72768        .25895E-02    .36247E-04
   3  Normalizat    1.0630        .55662E-01    .15153E-03   -.14405E-04
   4  Prefactor     1.0013        .87868E-02    .25057E-04    .11615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.19612
  Index      = 3.3095
  Normalizat = 1.063
  Prefactor  = 1.00126
 **********
 **   18 **HESSE 
 **********

 FCN=   307275.9     FROM HESSE     STATUS=OK            23 CALLS      496 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1961        6.3978        .37332E-06   -1.5658    
   2  Index         3.3095        .57241        .10358E-03   -.34490    
   3  Normalizat    1.0630        .55639E-01    .60614E-05   -.90949    
   4  Prefactor     1.0013        .87821E-02    .50113E-05   -.92688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38836e-13
Minuit parameter uncertainties:
  1  6.39776
  2  0.573833
  3  0.0556423
  4  0.00878214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861401': 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) = 307275.935108
delta logL = 1.34068685066

Extracting fit parameters...

4FGL J1955.4+5132
   Spectrum: PowerLaw
300    Prefactor:  6.196e+00  6.398e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  3.310e+00  5.738e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  9.505e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.001e+00  8.782e-03  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.063e+00  5.564e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 298.858 51.543
Photon Index (Free Index): 3.31 +/- 0.57
Photon Flux (Free Index): 4.64e-08 +/- 1.89e-08
Energy Flux (Free Index): 8.16e-06 +/- 3.34e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -5.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  5.550e+00 [aplpy.core]
Saving /scratch/kocevski/861401/cmap_HighResolution_688003201_690595201_4FGL_J1955.4+5132_monthly_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='8.16e-06', photon_flux_error='1.42e-08', dlogl='1.34e+00', energy_flux='7.69e-06', photon_flux2='4.64e-08', job_status='DONE', time_completed='2022-11-20 05:13:44.793134', photon_index_error2='0.57', photon_index2='3.31', ts='4.65', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.34e-06', EG='1.08', time_epoch_completed='1668950024.79', return_code='0', job_id='861401', GAL2='1.00', EG2='1.06', return_code2='0', energy_flux_error='3.90e-06', photon_flux_error2='1.89e-08', ts2='7.61', photon_index='2.55' WHERE bin_id='174' AND source_name='4FGL J1955.4+5132' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Nov 20 05:13:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 861401: <4FGL_J1955.4+5132_monthly_bin174> in cluster <slac> Done

Job <4FGL_J1955.4+5132_monthly_bin174> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 02:20:28 2022
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 02:23:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 02:23:22 2022
Terminated at Sun Nov 20 05:13:47 2022
Results reported at Sun Nov 20 05:13:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1955.4+5132_monthly_bin174 298.858 51.5434 688003201 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1955.4+5132 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9940.00 sec.
    Max Memory :                                 915 MB
    Average Memory :                             761.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10224 sec.
    Turnaround time :                            10399 sec.

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

