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


Performing analysis on: 4FGL_J0009.3+5030_monthly_bin169
RA = 2.3466, Dec = 50.5115
tmin = 675043201, tmax = 677635201
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='158354', job_status='RUN', time_executed='2022-06-23 01:13:31.158279', time_epoch_executed='1655972011.16' WHERE source_name='4FGL J0009.3+5030' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158354

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158354/ft1_4FGL_J0009.3+5030_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158354/ft1_4FGL_J0009.3+5030_monthly_bin169.fits outfile=/scratch/kocevski/158354/ft1_filteredMKT_4FGL_J0009.3+5030_monthly_bin169.fits ra=2.3466 dec=50.5115 rad=12.0 tmin=675043201.0 tmax=677635201.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 28.04
user 27.17
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.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/158354/ft1_filteredMKT_4FGL_J0009.3+5030_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.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: 23651

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/158354/ltcube_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.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/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits
.....................!
real 133.41
user 131.06
sys 1.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/158354/ltcube_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.fits outfile=/scratch/kocevski/158354/expmap_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.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/158354/ltcube_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.fits
.....................!
real 197.41
user 189.32
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 CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 192 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 J0009.3+5030 @ 2.3466 50.5115

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.fits scfile=/scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits outfile=/scratch/kocevski/158354/cmap_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.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=2.3466 yref=50.5115 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.92
user 0.64
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.fits scfile=/scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits outfile=/scratch/kocevski/158354/cmap_HighResolution_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.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=2.3466 yref=50.5115 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.83
user 0.65
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158354/Model_4FGL_J0009.3+5030_monthly_bin169.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 J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.fits.....................!
real 2990.79
user 2968.74
sys 11.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.fits', '/scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits', expMap='/scratch/kocevski/158354/expmap_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.fits', expCube='/scratch/kocevski/158354/ltcube_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158354/Model_4FGL_J0009.3+5030_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0009.3+5030'

4FGL J0009.3+5030
   Spectrum: LogParabola
49          norm:  1.541e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
50         alpha:  1.898e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
51          beta:  6.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
52            Eb:  1.317e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/158354/ft1_filtered_4FGL_J0009.3+5030_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/158354/ft2_4FGL_J0009.3+5030_monthly_bin169.fits
Exposure map: /scratch/kocevski/158354/expmap_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.fits
Exposure cube: /scratch/kocevski/158354/ltcube_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158354/Model_4FGL_J0009.3+5030_monthly_bin169.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) = 235572.844003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32571E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48804E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1158       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2426       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8479       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0875       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5869       1.0000         .10000E-03   10000.    
    10 'norm      '    .11338E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0514       1.0000         .10000E-03   10000.    
    12 'norm      '    9.1779       1.0000         .10000E-03   10000.    
    13 'norm      '    .44301       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5660       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5988       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43141       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2875       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92792       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   235572.1     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     1759 TOTAL
                     EDM=   .98E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1678         .0000    ** at limit **
   2  Prefactor     .47671E-01    .99406         .0000       -.82597E-03
   3  Prefactor     4.1129        1.4383         .0000        .23270E-02
   4  norm          1.2423        .39167         .0000        .74452E-02
   5  Prefactor     1.6269        .72019         .0000        .23425E-01
   6  Prefactor     .10000E-03    .54659         .0000    ** at limit **
   7  Prefactor     1.8339        7.4079         .0000        .16254E-02
   8  norm          1.0869        .82467         .0000        .16433E-01
   9  Prefactor     4.5456        4.4369         .0000        .46572E-03
  10  norm          .10000E-03    1.9104         .0000    ** at limit **
  11  norm          9.0516        1.4772         .0000        .27247E-02
  12  norm          9.1962        6.1285         .0000        .11248E-02
  13  norm          .44268        .61963         .0000        1.4992    
  14  norm          5.5668        2.1139         .0000        .77490E-03
  15  norm          3.5986        1.7876         .0000        .17386E-02
  16  Prefactor     7.0138        7.4879         .0000        .61622E-03
  17  Prefactor     .44390        .64637         .0000        .11629E-01
  18  Normalizat    1.2876        .54499E-01     .0000        .68356E-03
  19  Prefactor     .92794        .11168E-01     .0000        .24047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.047671
  Prefactor  = 4.11294
  norm       = 1.24233
  Prefactor  = 1.62693
  Prefactor  = 0.0001
  Prefactor  = 1.83387
  norm       = 1.08692
  Prefactor  = 4.54555
  norm       = 0.0001
  norm       = 9.0516
  norm       = 9.19616
  norm       = 0.442676
  norm       = 5.56683
  norm       = 3.5986
  Prefactor  = 7.01376
  Prefactor  = 0.443897
  Normalizat = 1.28755
  Prefactor  = 0.927936
 **********
 **   18 **HESSE 
 **********

 FCN=   235572.1     FROM HESSE     STATUS=OK           302 CALLS     2061 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1483        .16764       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .47671E-01    1.0235        .13275       -1.5664    
   3  Prefactor     4.1129        1.4350        .19870E-03   -1.5302    
   4  norm          1.2423        .38941        .16555E-03   -1.5485    
   5  Prefactor     1.6269        .69892        .25340E-03   -1.5453    
   6  Prefactor     .10000E-03    2.9323        .66726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8339        7.4678        .30674E-03   -1.5437    
   8  norm          1.0869        .80360        .37327E-03   -1.5499    
   9  Prefactor     4.5456        4.4326        .18795E-03   -1.5282    
  10  norm          .10000E-03    1.9966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0516        1.4774        .13322E-03   -1.5106    
  12  norm          9.1962        6.1289        .13229E-03   -1.5101    
  13  norm          .44268        .61046        .21885E-02   -1.5575    
  14  norm          5.5668        2.1133        .17029E-03   -1.5236    
  15  norm          3.5986        1.7857        .21300E-03   -1.5329    
  16  Prefactor     7.0138        7.4844        .15168E-03   -1.5178    
  17  Prefactor     .44390        1.6507        .44523E-02   -1.5575    
  18  Normalizat    1.2876        .57049E-01    .51471E-03   -.83939    
  19  Prefactor     .92794        .11818E-01    .12847E-03   -.95172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33793e-06
Minuit parameter uncertainties:
  1  8.6458e-05
  2  0.441331
  3  1.43505
  4  0.389416
  5  0.698928
  6  2.31889e-06
  7  7.40274
  8  0.803613
  9  4.43294
  10  1.88983e-06
  11  1.47737
  12  6.12935
  13  0.610473
  14  2.1133
  15  1.78572
  16  7.48539
  17  1.65084
  18  0.0570517
  19  0.0118176
Done.

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

Extracting fit parameters...

4FGL J0009.3+5030
   Spectrum: LogParabola
49          norm:  1.242e+00  3.894e-01  1.000e-04  1.000e+04 ( 1.000e-12)
50         alpha:  1.898e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
51          beta:  6.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
52            Eb:  1.317e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.279e-01  1.182e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.288e+00  5.705e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.74
Ra Dec: 2.347 50.511
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.51e-08 +/- 4.73e-09
Energy Flux (Fixed Index): 1.24e-05 +/- 3.89e-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) = 235572.027012
delta logL = 0.101416975231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 235572.007181
delta logL = 0.12124802795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2084       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7713       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .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=   235572.0     FROM MIGRAD    STATUS=FAILED        99 CALLS      268 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2083        .39594        .16736E-03   -.80430E-04
   2  alpha         1.7712        .25082        .36894E-01   -.20595E-02
   3  Normalizat    1.2900        .52572E-01    .51430E-03    .22777E-04
   4  Prefactor     .92782        .11399E-01    .12848E-03   -.28315E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   235572.0     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      342 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2083        .39594        .13295E-04   -1.5488    
   2  alpha         1.7712        .25082        .31301E-03   -.29580    
   3  Normalizat    1.2900        .52572E-01    .47505E-04   -.83864    
   4  Prefactor     .92782        .11399E-01    .15879E-04   -.95176    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   235572.0     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      369 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2083        .40217        .66943E-05   -.86951E-04
   2  alpha         1.7712        .25506        .73789E-02   -.79634E-04
   3  Normalizat    1.2900        .52576E-01    .10286E-03    .22777E-04
   4  Prefactor     .92782        .11401E-01    .51393E-05   -.28315E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20829
  alpha      = 1.77123
  Normalizat = 1.29004
  Prefactor  = 0.927822
 **********
 **   18 **HESSE 
 **********

 FCN=   235572.0     FROM HESSE     STATUS=OK            25 CALLS      394 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2083        .40357        .13389E-05   -1.5488    
   2  alpha         1.7712        .25597        .14758E-02   -.29580    
   3  Normalizat    1.2900        .52575E-01    .10286E-03   -.83864    
   4  Prefactor     .92782        .11401E-01    .51393E-05   -.95176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51357e-13
Minuit parameter uncertainties:
  1  0.403573
  2  0.256464
  3  0.0525774
  4  0.0114011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158354': 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) = 235572.007181
delta logL = 0.121248074283

Extracting fit parameters...

4FGL J0009.3+5030
   Spectrum: LogParabola
49          norm:  1.208e+00  4.036e-01  1.000e-04  1.000e+04 ( 1.000e-12)
50         alpha:  1.771e+00  2.565e-01  0.000e+00  5.000e+00 ( 1.000e+00)
51          beta:  6.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
52            Eb:  1.317e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.278e-01  1.140e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.290e+00  5.258e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.97
Ra Dec: 2.347 50.511
Photon Index (Free Index): 1.77 +/- 0.26
Photon Flux (Free Index): 1.24e-08 +/- 6.48e-09
Energy Flux (Free Index): 1.38e-05 +/- 5.44e-06

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/158354/cmap_HighResolution_675043201_677635201_4FGL_J0009.3+5030_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-08', energy_flux2='1.38e-05', photon_flux_error='4.73e-09', dlogl='1.21e-01', energy_flux='1.24e-05', photon_flux2='1.24e-08', job_status='DONE', time_completed='2022-06-23 04:40:32.378279', photon_index_error2='0.26', photon_index2='1.77', ts='26.74', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='5.44e-06', EG='1.29', time_epoch_completed='1655984432.38', return_code='0', job_id='158354', GAL2='0.93', EG2='1.29', return_code2='0', energy_flux_error='3.89e-06', photon_flux_error2='6.48e-09', ts2='26.97', photon_index='1.90' WHERE bin_id='169' AND source_name='4FGL J0009.3+5030' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:40:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 158354: <4FGL_J0009.3+5030_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0009.3+5030_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:10:48 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:12:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:12:41 2022
Terminated at Thu Jun 23 04:40:34 2022
Results reported at Thu Jun 23 04:40:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0009.3+5030_monthly_bin169 2.3466 50.5115 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0009.3+5030 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12345.00 sec.
    Max Memory :                                 718 MB
    Average Memory :                             665.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12473 sec.
    Turnaround time :                            12586 sec.

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

