/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 117 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 = 73751
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.0+6534_monthly_bin67
RA = 204.516, Dec = 65.5696
tmin = 410659201, tmax = 413251201
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='368474', job_status='RUN', time_executed='2021-10-25 02:37:33.783785', time_epoch_executed='1635154653.78' WHERE source_name='4FGL J1338.0+6534' and cadence='monthly' and bin_id='67'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368474

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368474/ft1_4FGL_J1338.0+6534_monthly_bin67.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368474/ft1_4FGL_J1338.0+6534_monthly_bin67.fits outfile=/scratch/kocevski/368474/ft1_filteredMKT_4FGL_J1338.0+6534_monthly_bin67.fits ra=204.516 dec=65.5696 rad=12.0 tmin=410659201.0 tmax=413251201.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 48.19
user 47.05
sys 0.96

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.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/368474/ft1_filteredMKT_4FGL_J1338.0+6534_monthly_bin67.fits evtable="EVENTS" outfile="/scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.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.84
user 0.65
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.fits" evtable="EVENTS" scfile=/scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits sctable="SC_DATA" outfile=/scratch/kocevski/368474/ltcube_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.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/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits
.....................!
real 125.05
user 124.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.fits evtable="EVENTS" scfile=/scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits sctable="SC_DATA" expcube=/scratch/kocevski/368474/ltcube_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.fits outfile=/scratch/kocevski/368474/expmap_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.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/368474/ltcube_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.fits
.....................!
real 192.85
user 186.82
sys 5.39

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
Added 232 point sources and 0 extended sources

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.fits scfile=/scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits outfile=/scratch/kocevski/368474/cmap_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.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=204.516 yref=65.5696 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.78
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.fits scfile=/scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits outfile=/scratch/kocevski/368474/cmap_HighResolution_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.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=204.516 yref=65.5696 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.78
user 0.61
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.fits evtable="EVENTS" scfile=/scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368474/Model_4FGL_J1338.0+6534_monthly_bin67.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.fits.....................!
real 661.43
user 657.99
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.fits', '/scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits', expMap='/scratch/kocevski/368474/expmap_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.fits', expCube='/scratch/kocevski/368474/ltcube_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368474/Model_4FGL_J1338.0+6534_monthly_bin67.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/368474/ft1_filtered_4FGL_J1338.0+6534_monthly_bin67.fits
Spacecraft file(s): /scratch/kocevski/368474/ft2_4FGL_J1338.0+6534_monthly_bin67.fits
Exposure map: /scratch/kocevski/368474/expmap_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.fits
Exposure cube: /scratch/kocevski/368474/ltcube_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368474/Model_4FGL_J1338.0+6534_monthly_bin67.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) = 91989.2624601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7770       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .47979       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4568       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7843       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3678       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.699       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .80810E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8438       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.853       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6911       1.0000         .10000E-03   10000.    
    20 'norm      '    .49452       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2145       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.845       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7167       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6019       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6287       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .67322       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.4095       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1412       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   91989.12     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2908 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7768        1.9155       -.19358E-06    .87013E-04
   2  Prefactor     .10000E-03    1.9361        .40091E-06** at limit **
   3  Prefactor     .37985        15.567        .24061E-05   -.61531E-04
   4  Prefactor     .10000E-03    9.6583        .70040E-06** at limit **
   5  norm          .47979        .79572        .35438E-06   -.46573E-04
   6  Prefactor     1.4569        .98217        .89593E-07   -.69322E-04
   7  norm          2.7844        .55387        .38002E-07   -.13653E-03
   8  Prefactor     .10000E-03    6.7174       -.88659E-07** at limit **
   9  Prefactor     7.1480        2.4197        .15577E-06    .66970E-04
  10  Prefactor     6.3681        1.0232       -.10995E-07   -.51841E-04
  11  Prefactor     1.1771        2.1766        .53707E-06   -.45149E-04
  12  Prefactor     16.701        12.925       -.45700E-05    .12380E-02
  13  Prefactor     .81162E-01    .32924        .12231E-05    .83903E-04
  14  Prefactor     .10000E-03    1.2983       -.50836E-07** at limit **
  15  Prefactor     20.354        2.3356        .79973E-06   -.30320E-02
  16  Prefactor     2.8436        1.7162       -.32547E-06    .56675E-05
  17  Prefactor     .10000E-03    .86520        .14961E-06** at limit **
  18  norm          12.853        2.4438        .30039E-06    .37018E-02
  19  Prefactor     6.6916        2.8034        .31230E-05    .33340E-02
  20  norm          .49517        .70415        .27310E-06   -.29068E-04
  21  Prefactor     4.2146        1.0798        .55192E-06    .21487E-03
  22  Prefactor     11.680        63.030       -.46738E-05    .85170E-04
  23  Prefactor     .10000E-03    2.5349        .43446E-06** at limit **
  24  Prefactor     4.7159        2.4219       -.61466E-06   -.19661E-02
  25  Prefactor     7.6018        3.1449       -.29221E-05    .29311E-02
  26  Prefactor     2.6287        2.0230        .71875E-07    .14493E-04
  27  Prefactor     .67372        1.0480        .76777E-06   -.14785E-03
  28  Prefactor     5.4104        3.0627        .18743E-06    .25623E-04
  29  Prefactor     .10000E-03    3.2034        .16991E-06** at limit **
  30  Normalizat    1.1411        .50121E-01    .60152E-07    .44668E-04
  31  Prefactor     .93231        .55751E-01   -.42869E-06    .38485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77679
  Prefactor  = 0.0001
  Prefactor  = 0.379854
  Prefactor  = 0.0001
  norm       = 0.479793
  Prefactor  = 1.45694
  norm       = 2.78435
  Prefactor  = 0.0001
  Prefactor  = 7.14795
  Prefactor  = 6.36807
  Prefactor  = 1.1771
  Prefactor  = 16.7015
  Prefactor  = 0.0811618
  Prefactor  = 0.0001
  Prefactor  = 20.3535
  Prefactor  = 2.84358
  Prefactor  = 0.0001
  norm       = 12.8529
  Prefactor  = 6.69159
  norm       = 0.495168
  Prefactor  = 4.21456
  Prefactor  = 11.68
  Prefactor  = 0.0001
  Prefactor  = 4.71593
  Prefactor  = 7.6018
  Prefactor  = 2.62872
  Prefactor  = 0.673719
  Prefactor  = 5.41037
  Prefactor  = 0.0001
  Normalizat = 1.14112
  Prefactor  = 0.93231
 **********
 **   18 **HESSE 
 **********

 FCN=   91989.12     FROM HESSE     STATUS=OK           714 CALLS     3622 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7768        1.9197        .51930E-02   -1.5319    
   2  Prefactor     .10000E-03    1.9113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .37985        1.3894        .10701       -1.5585    
   4  Prefactor     .10000E-03    9.5991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47979        .79646        .11188E-02   -1.5569    
   6  Prefactor     1.4569        .99056        .89163E-02   -1.5467    
   7  norm          2.7844        .55587        .60964E-02   -1.5374    
   8  Prefactor     .10000E-03    6.4999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1480        2.4257        .37510E-02   -1.5173    
  10  Prefactor     6.3681        6.5156        .39765E-02   -1.5203    
  11  Prefactor     1.1771        2.2918        .10552       -1.5491    
  12  Prefactor     16.701        13.726        .24503E-02   -1.4890    
  13  Prefactor     .81162E-01    .23603        .67072E-01   -1.5651    
  14  Prefactor     .10000E-03    1.2462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.354        10.642        .22194E-02   -1.4805    
  16  Prefactor     2.8436        2.0968        .60279E-02   -1.5371    
  17  Prefactor     .10000E-03    .83332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.853        8.9370        .27932E-02   -1.4991    
  19  Prefactor     6.6916        3.7851        .38781E-02   -1.5191    
  20  norm          .49517        .72844        .11248E-01   -1.5567    
  21  Prefactor     4.2146        3.8861        .49073E-02   -1.5297    
  22  Prefactor     11.680        63.566        .29099E-02   -1.5024    
  23  Prefactor     .10000E-03    2.4771        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.7159        9.2824        .46320E-02   -1.5274    
  25  Prefactor     7.6018        4.5676        .36362E-02   -1.5156    
  26  Prefactor     2.6287        2.0211        .62880E-02   -1.5384    
  27  Prefactor     .67372        1.9352        .11959       -1.5544    
  28  Prefactor     5.4104        3.0800        .43194E-02   -1.5243    
  29  Prefactor     .10000E-03    3.1264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1411        .44233E-01    .36527E-01   -.88442    
  31  Prefactor     .93231        .48121E-01    .45415E-01   -.95021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44666e-07
Minuit parameter uncertainties:
  1  1.9197
  2  2.02943e-06
  3  1.38948
  4  8.29405e-06
  5  0.796482
  6  0.990573
  7  0.555874
  8  3.42522e-06
  9  2.42577
  10  6.51637
  11  2.292
  12  13.7289
  13  0.236037
  14  2.10479e-07
  15  10.6432
  16  2.09684
  17  7.45781e-07
  18  8.93788
  19  3.78523
  20  0.728452
  21  3.8863
  22  54.5857
  23  1.91184e-06
  24  9.28519
  25  4.56776
  26  2.02118
  27  1.93537
  28  3.08006
  29  9.24555e-07
  30  0.0442347
  31  0.0481229
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  8.116e-02  2.360e-01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  9.323e-01  4.812e-02  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.141e+00  4.423e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 1.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368474/likelihoodResults_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.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): 102
logL (Free Index) = 91989.1154264
delta logL = 0.00294273285544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 91989.1152437
delta logL = 0.00312546422356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95762E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8894       1.0000          .0000       10.000    
     3 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   91989.12     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      227 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95572E-01    .29926        .64658E-01    .62534E-02
   2  Index         2.8873        1.1219        .50000        .85218E-04
   3  Normalizat    1.1408        .15176E-02    .36539E-01    .10592E-03
   4  Prefactor     .93248        .17228E-02    .45418E-01    .21834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0955718
  Index      = 2.88732
  Normalizat = 1.14079
  Prefactor  = 0.932485
 **********
 **   18 **HESSE 
 **********

 FCN=   91989.12     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      262 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95572E-01    326.64        .19365E-02   -1.5646    
   2  Index         2.8873        5.1295        .50020E-01   -.43624    
   3  Normalizat    1.1408        .67487E-01    .21406E-03   -.88453    
   4  Prefactor     .93248        .45590E-01    .26450E-03   -.95015    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46273e-06
Minuit parameter uncertainties:
  1  11.2304
  2  28.7364
  3  0.0674924
  4  0.0455914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368474': 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): 102
logL (Free Index) = 91989.1152431
delta logL = 0.00312607325031

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  9.557e-02  1.123e+01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.887e+00  2.874e+01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  9.325e-01  4.559e-02  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.141e+00  6.749e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 204.516 65.570

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/368474/cmap_HighResolution_410659201_413251201_4FGL_J1338.0+6534_monthly_bin67.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-03', job_status='DONE', photon_flux_upper_limit='1.63e-08', time_completed='2021-10-25 05:23:34.029717', job_id='368474', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1635164614.03', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.13e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='67' AND source_name='4FGL J1338.0+6534' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 05:23:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 368474: <4FGL_J1338.0+6534_monthly_bin67> in cluster <slac> Done

Job <4FGL_J1338.0+6534_monthly_bin67> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Oct 25 02:35:14 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 02:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 25 02:35:28 2021
Terminated at Mon Oct 25 05:23:34 2021
Results reported at Mon Oct 25 05:23:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_monthly_bin67 204.516 65.5696 410659201 413251201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.0+6534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9847.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             444.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10086 sec.
    Turnaround time :                            10100 sec.

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

