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


Performing analysis on: 4FGL_J0109.7+6133_monthly_bin173
RA = 17.445, Dec = 61.5615
tmin = 685411201, tmax = 688003201
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='470460', job_status='RUN', time_executed='2022-10-21 00:43:08.180783', time_epoch_executed='1666338188.18' WHERE source_name='4FGL J0109.7+6133' and cadence='monthly' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470460

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470460/ft1_4FGL_J0109.7+6133_monthly_bin173.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470460/ft1_4FGL_J0109.7+6133_monthly_bin173.fits outfile=/scratch/kocevski/470460/ft1_filteredMKT_4FGL_J0109.7+6133_monthly_bin173.fits ra=17.445 dec=61.5615 rad=12.0 tmin=685411201.0 tmax=688003201.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 34.53
user 33.63
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.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/470460/ft1_filteredMKT_4FGL_J0109.7+6133_monthly_bin173.fits evtable="EVENTS" outfile="/scratch/kocevski/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.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.87
user 0.69
sys 0.17

Number of photons that the gtmktime cut: 31220

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/470460/ltcube_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.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/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits
.....................!
real 115.28
user 114.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/470460/ltcube_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.fits outfile=/scratch/kocevski/470460/expmap_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.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/470460/ltcube_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.fits
.....................!
real 190.68
user 185.97
sys 4.37

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 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2304.0+5406 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 J0109.7+6133 @ 17.445 61.5615

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.fits scfile=/scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits outfile=/scratch/kocevski/470460/cmap_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.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=17.445 yref=61.5615 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.67
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.fits scfile=/scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits outfile=/scratch/kocevski/470460/cmap_HighResolution_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.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=17.445 yref=61.5615 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.85
user 0.67
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470460/Model_4FGL_J0109.7+6133_monthly_bin173.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/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.fits....................!
real 4053.06
user 4044.05
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.fits', '/scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits', expMap='/scratch/kocevski/470460/expmap_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.fits', expCube='/scratch/kocevski/470460/ltcube_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/470460/Model_4FGL_J0109.7+6133_monthly_bin173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0109.7+6133'

4FGL J0109.7+6133
   Spectrum: LogParabola
170         norm:  8.138e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
171        alpha:  2.565e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
172         beta:  1.581e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  7.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/470460/ft1_filtered_4FGL_J0109.7+6133_monthly_bin173.fits
Spacecraft file(s): /scratch/kocevski/470460/ft2_4FGL_J0109.7+6133_monthly_bin173.fits
Exposure map: /scratch/kocevski/470460/expmap_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.fits
Exposure cube: /scratch/kocevski/470460/ltcube_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/470460/Model_4FGL_J0109.7+6133_monthly_bin173.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) = 291874.586682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3732       1.0000          .0000       .10000E+07
     2 'norm      '    .69389E-08   1.0000          .0000       .10000E+07
     3 'norm      '    1.3074       1.0000          .0000       .10000E+07
     4 'norm      '    1.5016       1.0000          .0000       .10000E+07
     5 'norm      '    10.552       1.0000          .0000       .10000E+07
     6 'norm      '    4.2680       1.0000          .0000       .10000E+07
     7 'norm      '    2.5584       1.0000          .0000       .10000E+07
     8 'Prefactor '    .25535E-08   1.0000          .0000       .10000E+07
     9 'norm      '    .73115       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.2824       1.0000          .0000       .10000E+07
    11 'Prefactor '    .87044       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0433       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.0757       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .98748       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   291874.2     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      701 TOTAL
                     EDM=   .97E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3750        9.2728       -.75153E-07   -.75225E-03
   2  norm           .0000        .57027       -.59025E-09** at limit **
   3  norm          1.3075        2.3021       -.41259E-08    .24334E-04
   4  norm          1.5014        1.7004       -.11096E-07    .12366E-03
   5  norm          10.552        1.3085        .58992E-08   -.11637E-01
   6  norm          4.2682        2.5522        .33133E-08    .59332E-04
   7  norm          2.5584        1.2827        .26732E-08   -.11487E-03
   8  Prefactor      .0000        2.4989        .80391E-07** at limit **
   9  norm          .73105        .50196        .10752E-07   -.36126E-02
  10  Prefactor     1.2823        1.0464        .29614E-07   -.49337E-03
  11  Prefactor     .87044        .23703        .74442E-07    .19293E-05
  12  norm          4.0433        .20609        .31608E-08   -.24843E-02
  13  Normalizat    1.0757        .98503E-01    .20991E-07   -.68321E-06
  14  Prefactor     .98748        .10433E-01   -.56764E-07    .60426E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.37499
  norm       = 0
  norm       = 1.30752
  norm       = 1.50138
  norm       = 10.5517
  norm       = 4.26823
  norm       = 2.55836
  Prefactor  = 0
  norm       = 0.731051
  Prefactor  = 1.28225
  Prefactor  = 0.870442
  norm       = 4.04332
  Normalizat = 1.07571
  Prefactor  = 0.987481
 **********
 **   18 **HESSE 
 **********

 FCN=   291874.2     FROM HESSE     STATUS=OK           200 CALLS      901 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3750        9.3415        .43330E-03   -1.5662    
   2  norm           .0000        .57370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3075        2.3390        .96457E-03   -1.5685    
   4  norm          1.5014        1.7058        .87342E-03   -1.5683    
   5  norm          10.552        8.8177        .30820E-03   -1.5643    
   6  norm          4.2682        2.5703        .48745E-03   -1.5667    
   7  norm          2.5584        1.2889        .63802E-03   -1.5676    
   8  Prefactor      .0000        2.5212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .73105        .53053        .58215E-03   -1.5691    
  10  Prefactor     1.2823        1.0667        .97932E-03   -1.5685    
  11  Prefactor     .87044        .24378        .12700E-01   -1.5521    
  12  norm          4.0433        .20704        .50122E-03   -1.5668    
  13  Normalizat    1.0757        .10365        .24205       -.90536    
  14  Prefactor     .98748        .10653E-01    .26582E-01   -.93148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56949e-05
Minuit parameter uncertainties:
  1  9.34157
  2  2.72896e-07
  3  2.33898
  4  1.70581
  5  8.81768
  6  2.57029
  7  1.2889
  8  1.22802e-06
  9  0.530531
  10  1.0667
  11  0.243779
  12  0.207042
  13  0.10367
  14  0.010653
Done.

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

Extracting fit parameters...

4FGL J0109.7+6133
   Spectrum: LogParabola
170         norm:  4.268e+00  2.570e+00  0.000e+00  1.000e+06 ( 1.000e-12)
171        alpha:  2.565e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
172         beta:  1.581e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  7.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  9.875e-01  1.065e-02  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
685   Normalization:  1.076e+00  1.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 17.445 61.562
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 6.22e-06

TS (Fixed Index): 3.42
Ra Dec: 17.445 61.562
Photon Flux Upper Limit: 7.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470460/likelihoodResults_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.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) = 291871.980918
delta logL = 2.23656809708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 291871.975903
delta logL = 2.24158253992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5068       1.0000          .0000       .10000E+07
     2 'alpha     '    3.8821       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98886       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   291872.0     FROM MIGRAD    STATUS=FAILED        91 CALLS      363 TOTAL
                     EDM=   .24E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5054        9.7071        .23343E-04   -.22130E-02
   2  alpha         3.8827        4.1692        .47012E-01    .10410E-01
   3  Normalizat    1.0340        .81243E-01    .10998E-02   -.76478E-03
   4  Prefactor     .98886        .83278E-02    .11740E-03   -.46481E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   291872.0     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      440 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5054        9.7071        .56640E-05   -.22130E-02
   2  alpha         3.8827        4.1692        .11614E-02    .10410E-01
   3  Normalizat    1.0340        .81243E-01    .89513E-04   -.76478E-03
   4  Prefactor     .98886        .83278E-02    .11270E-04   -.46481E-03
                               ERR DEF=  .500    

 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.

 FCN=   291872.0     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      510 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5054        2.2045        .37392E-06   -.28020E-02
   2  alpha         3.8827        .86589        .18805E-02   -.11608E-05
   3  Normalizat    1.0340        .99442E-01    .87983E-05   -.76081E-03
   4  Prefactor     .98886        .10392E-01    .93921E-06   -.39334E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5054
  alpha      = 3.88266
  Normalizat = 1.034
  Prefactor  = 0.988858
 **********
 **   18 **HESSE 
 **********

 FCN=   291872.0     FROM HESSE     STATUS=OK            23 CALLS      533 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5054        1.9774        .37392E-06   -1.5683    
   2  alpha         3.8827        .78143        .75220E-04    .58604    
   3  Normalizat    1.0340        .96812E-01    .17597E-05   -.91900    
   4  Prefactor     .98886        .10182E-01    .22197E-06   -.93102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46113e-10
Minuit parameter uncertainties:
  1  1.97738
  2  0.801027
  3  0.0968285
  4  0.0101821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470460': 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) = 291871.975903
delta logL = 2.24158280471

Extracting fit parameters...

4FGL J0109.7+6133
   Spectrum: LogParabola
170         norm:  1.505e+00  1.977e+00  0.000e+00  1.000e+06 ( 1.000e-12)
171        alpha:  3.883e+00  8.010e-01  0.000e+00  5.000e+00 ( 1.000e+00)
172         beta:  1.581e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
173           Eb:  7.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  9.889e-01  1.018e-02  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
685   Normalization:  1.034e+00  9.683e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.13
Ra Dec: 17.445 61.562
Photon Index (Free Index): 3.88 +/- 0.80
Photon Flux (Free Index): 9.05e-08 +/- 3.42e-08
Energy Flux (Free Index): 1.49e-05 +/- 5.89e-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/470460/cmap_HighResolution_685411201_688003201_4FGL_J0109.7+6133_monthly_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='1.49e-05', photon_flux_error='2.15e-08', dlogl='2.24e+00', energy_flux='1.03e-05', photon_flux2='9.05e-08', job_status='DONE', time_completed='2022-10-21 04:22:44.270710', photon_index_error2='0.80', photon_index2='3.88', ts='3.42', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.42e-08', energy_flux_error2='5.89e-06', EG='1.08', time_epoch_completed='1666351364.27', return_code='0', job_id='470460', GAL2='0.99', EG2='1.03', return_code2='0', energy_flux_error='6.22e-06', photon_flux_error2='3.42e-08', ts2='8.13', photon_index='2.56' WHERE bin_id='173' AND source_name='4FGL J0109.7+6133' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 21 04:22:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 470460: <4FGL_J0109.7+6133_monthly_bin173> in cluster <slac> Done

Job <4FGL_J0109.7+6133_monthly_bin173> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Oct 21 00:40:31 2022
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 21 00:40:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 21 00:40:33 2022
Terminated at Fri Oct 21 04:22:46 2022
Results reported at Fri Oct 21 04:22:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0109.7+6133_monthly_bin173 17.445 61.5615 685411201 688003201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0109.7+6133 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13145.00 sec.
    Max Memory :                                 873 MB
    Average Memory :                             762.01 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13332 sec.
    Turnaround time :                            13335 sec.

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

