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 35 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_J0137.9+5814_monthly_bin169
RA = 24.4957, Dec = 58.2494
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='159825', job_status='RUN', time_executed='2022-06-23 01:21:03.005989', time_epoch_executed='1655972463.01' WHERE source_name='4FGL J0137.9+5814' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159825

Creating custom pfile directory:
/scratch/kocevski/159825/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/159825/ft1_4FGL_J0137.9+5814_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/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159825/ft1_4FGL_J0137.9+5814_monthly_bin169.fits outfile=/scratch/kocevski/159825/ft1_filteredMKT_4FGL_J0137.9+5814_monthly_bin169.fits ra=24.4957 dec=58.2494 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.44
user 27.54
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_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/159825/ft1_filteredMKT_4FGL_J0137.9+5814_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_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: 40998

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/159825/ltcube_675043201_677635201_4FGL_J0137.9+5814_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/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits
.....................!
real 127.66
user 127.01
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/159825/ltcube_675043201_677635201_4FGL_J0137.9+5814_monthly_bin169.fits outfile=/scratch/kocevski/159825/expmap_675043201_677635201_4FGL_J0137.9+5814_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/159825/ltcube_675043201_677635201_4FGL_J0137.9+5814_monthly_bin169.fits
.....................!
real 195.10
user 188.90
sys 4.71

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_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 188 point sources and 4 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 J0137.9+5814 @ 24.4957 58.2494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_monthly_bin169.fits scfile=/scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits outfile=/scratch/kocevski/159825/cmap_675043201_677635201_4FGL_J0137.9+5814_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=24.4957 yref=58.2494 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.91
user 0.73
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_monthly_bin169.fits scfile=/scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits outfile=/scratch/kocevski/159825/cmap_HighResolution_675043201_677635201_4FGL_J0137.9+5814_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=24.4957 yref=58.2494 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.73
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/159825/Model_4FGL_J0137.9+5814_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 J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_monthly_bin169.fits.....................!
real 5339.86
user 5326.94
sys 2.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_monthly_bin169.fits', '/scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits', expMap='/scratch/kocevski/159825/expmap_675043201_677635201_4FGL_J0137.9+5814_monthly_bin169.fits', expCube='/scratch/kocevski/159825/ltcube_675043201_677635201_4FGL_J0137.9+5814_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/159825/Model_4FGL_J0137.9+5814_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.9+5814'

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  1.430e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/159825/ft1_filtered_4FGL_J0137.9+5814_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/159825/ft2_4FGL_J0137.9+5814_monthly_bin169.fits
Exposure map: /scratch/kocevski/159825/expmap_675043201_677635201_4FGL_J0137.9+5814_monthly_bin169.fits
Exposure cube: /scratch/kocevski/159825/ltcube_675043201_677635201_4FGL_J0137.9+5814_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/159825/Model_4FGL_J0137.9+5814_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) = 385948.60998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .81818       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8706       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8152       1.0000         .10000E-03   10000.    
     6 'norm      '    4.6837       1.0000         .10000E-03   10000.    
     7 'norm      '    .22732       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0476       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6021       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.296       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1209       1.0000         .10000E-03   10000.    
    17 'norm      '    18.828       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3066       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   385948.5     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     1399 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5811        .10609E-05** at limit **
   2  norm          .81820        .71101        .81757E-08    .52251E-04
   3  norm          .10000E-03    1.0563        .42023E-06** at limit **
   4  norm          7.8705        1.3962        .53292E-07   -.11647E-03
   5  norm          7.7829        5.4668        .19194E-05   -.72000E-03
   6  norm          4.6839        2.0454       -.15791E-06   -.16182E-03
   7  norm          .22725        .55512        .50878E-07   -.61849E-04
   8  Prefactor     .10000E-03    1.7116        .32231E-06** at limit **
   9  Prefactor     .10000E-03    14.466        .41672E-05** at limit **
  10  norm          .10000E-03    .33969        .30819E-07** at limit **
  11  norm          1.0476        .21120        .32478E-07   -.14811E-02
  12  Prefactor     .74884        .56498        .18806E-06    .45407E-04
  13  Prefactor     2.7733        2.5416       -.34640E-05   -.33540E-02
  14  Prefactor     1.6020        .24635        .28786E-07    .24443E-03
  15  Prefactor     12.293        1.3579       -.54722E-06    .43302E-02
  16  norm          4.1209        .17707        .36212E-08    .30317E-03
  17  norm          18.817        3.2602       -.13850E-05    .60035E-02
  18  Normalizat    1.3067        .74586E-01    .11091E-05   -.10524E-03
  19  Prefactor     .98040        .90924E-02   -.14964E-06    .20918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.818198
  norm       = 0.0001
  norm       = 7.87048
  norm       = 7.78287
  norm       = 4.68395
  norm       = 0.227254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.04765
  Prefactor  = 0.748839
  Prefactor  = 2.77335
  Prefactor  = 1.60204
  Prefactor  = 12.2926
  norm       = 4.12085
  norm       = 18.8173
  Normalizat = 1.30665
  Prefactor  = 0.980403
 **********
 **   18 **HESSE 
 **********

 FCN=   385948.5     FROM HESSE     STATUS=OK           324 CALLS     1723 TOTAL
                     EDM=   .22E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5555        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .81820        .63481        .11274       -1.5527    
   3  norm          .10000E-03    1.0344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8705        1.3983        .35732E-02   -1.5147    
   5  norm          7.7829        5.6029        .35859E-02   -1.5150    
   6  norm          4.6839        2.0499        .46487E-02   -1.5275    
   7  norm          .22725        .55086        .10102E-01   -1.5613    
   8  Prefactor     .10000E-03    1.6716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.921        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .93549E-01    .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0476        .21370        .12129E-01   -1.5503    
  12  Prefactor     .74884        .48149        .93317E-01   -1.5535    
  13  Prefactor     2.7733        3.3150        .61193E-02   -1.5375    
  14  Prefactor     1.6020        .24829        .83725E-02   -1.5455    
  15  Prefactor     12.293        14.226        .28559E-02   -1.5007    
  16  norm          4.1209        .17711        .49644E-02   -1.5302    
  17  norm          18.817        4.4469        .23076E-02   -1.4840    
  18  Normalizat    1.3067        .75121E-01    .19802       -.83368    
  19  Prefactor     .98040        .88818E-02    .27708E-01   -.93386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000216847
Minuit parameter uncertainties:
  1  9.32684e-06
  2  0.634817
  3  1.4472e-06
  4  1.39832
  5  5.60325
  6  2.04996
  7  0.55087
  8  2.14243e-06
  9  3.99189e-05
  10  3.73502e-07
  11  0.213698
  12  0.481494
  13  3.31518
  14  0.248287
  15  14.2302
  16  0.177106
  17  4.447
  18  0.0751272
  19  0.00888181
Done.

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

Extracting fit parameters...

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  7.488e-01  4.815e-01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.804e-01  8.882e-03  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.307e+00  7.513e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 24.496 58.249
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 7.05e-09 +/- 4.53e-09
Energy Flux (Fixed Index): 5.52e-06 +/- 3.55e-06

TS (Fixed Index): 2.62
Ra Dec: 24.496 58.249
Photon Flux Upper Limit: 1.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159825/likelihoodResults_675043201_677635201_4FGL_J0137.9+5814_monthly_bin169.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) = 385948.436969
delta logL = 0.0150905387709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 385948.434232
delta logL = 0.0178271285258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70635       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0364       1.0000          .0000       10.000    
     3 'Normalizat'    1.3059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6570E+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=   385948.4     FROM MIGRAD    STATUS=FAILED       104 CALLS      292 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70703        .69949        .31001E-02    .13275    
   2  Index         2.0360        .53367        .33224E-02    .43799E-05
   3  Normalizat    1.3059        .71155E-01    .88315E-03    .52727E-04
   4  Prefactor     .98040        .88010E-02    .12245E-03   -.59420E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   385948.4     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      359 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70703        .69949        .32630E-04   -1.5540    
   2  Index         2.0360        .53367        .55496E-03   -.63452    
   3  Normalizat    1.3059        .71155E-01    .12570E-03   -.83391    
   4  Prefactor     .98040        .88010E-02    .15023E-04   -.93386    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   385948.4     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      388 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70703        .60183        .62002E-03    .52794E-02
   2  Index         2.0360        .46081        .13290E-03    .10950E-05
   3  Normalizat    1.3059        .71149E-01    .17663E-03    .16477E-05
   4  Prefactor     .98040        .88013E-02    .48980E-05   -.59420E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.707025
  Index      = 2.03603
  Normalizat = 1.30588
  Prefactor  = 0.980402
 **********
 **   18 **HESSE 
 **********

 FCN=   385948.4     FROM HESSE     STATUS=OK            25 CALLS      413 TOTAL
                     EDM=   .63E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70703        .59168        .12400E-03   -1.5540    
   2  Index         2.0360        .45304        .26579E-04   -.63452    
   3  Normalizat    1.3059        .71150E-01    .35326E-04   -.83391    
   4  Prefactor     .98040        .88012E-02    .48980E-05   -.93386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29854e-14
Minuit parameter uncertainties:
  1  0.591684
  2  0.453997
  3  0.071155
  4  0.00880123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159825': 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) = 385948.434231
delta logL = 0.0178278900567

Extracting fit parameters...

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  7.070e-01  5.917e-01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.036e+00  4.540e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.804e-01  8.801e-03  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.306e+00  7.115e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 24.496 58.249
Photon Index (Free Index): 2.04 +/- 0.45
Photon Flux (Free Index): 8.22e-09 +/- 8.75e-09
Energy Flux (Free Index): 5.21e-06 +/- 4.19e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/159825/cmap_HighResolution_675043201_677635201_4FGL_J0137.9+5814_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-03', comment='SUCCESS', photon_flux='7.05e-09', energy_flux2='5.21e-06', photon_flux_error='4.53e-09', dlogl='1.78e-02', energy_flux='5.52e-06', photon_flux2='8.22e-09', job_status='DONE', time_completed='2022-06-23 07:42:35.498078', photon_index_error2='0.45', photon_index2='2.04', ts='2.62', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.86e-08', energy_flux_error2='4.19e-06', EG='1.31', time_epoch_completed='1655995355.5', return_code='0', job_id='159825', GAL2='0.98', EG2='1.31', return_code2='0', energy_flux_error='3.55e-06', photon_flux_error2='8.75e-09', ts2='2.65', photon_index='1.95' WHERE bin_id='169' AND source_name='4FGL J0137.9+5814' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 07:42:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 159825: <4FGL_J0137.9+5814_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0137.9+5814_monthly_bin169> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Jun 23 01:15:50 2022
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:20:20 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:20:20 2022
Terminated at Thu Jun 23 07:42:38 2022
Results reported at Thu Jun 23 07:42:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.9+5814_monthly_bin169 24.4957 58.2494 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0137.9+5814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   22797.00 sec.
    Max Memory :                                 991 MB
    Average Memory :                             885.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   22937 sec.
    Turnaround time :                            23208 sec.

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

