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


Performing analysis on: 4FGL_J0945.2+5200_monthly_bin168
RA = 146.316, Dec = 52.0053
tmin = 672451201, tmax = 675043201
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='629376', job_status='RUN', time_executed='2022-05-24 02:50:47.709834', time_epoch_executed='1653385847.71' WHERE source_name='4FGL J0945.2+5200' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629376

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629376/ft1_4FGL_J0945.2+5200_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629376/ft1_4FGL_J0945.2+5200_monthly_bin168.fits outfile=/scratch/kocevski/629376/ft1_filteredMKT_4FGL_J0945.2+5200_monthly_bin168.fits ra=146.316 dec=52.0053 rad=12.0 tmin=672451201.0 tmax=675043201.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.63
user 27.91
sys 0.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.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/629376/ft1_filteredMKT_4FGL_J0945.2+5200_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.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.85
user 0.67
sys 0.17

Number of photons that the gtmktime cut: 8726

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/629376/ltcube_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.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/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits
.....................!
real 132.87
user 131.97
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/629376/ltcube_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.fits outfile=/scratch/kocevski/629376/expmap_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.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/629376/ltcube_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.fits
.....................!
real 195.99
user 190.05
sys 5.38

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.fits scfile=/scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits outfile=/scratch/kocevski/629376/cmap_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.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=146.316 yref=52.0053 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.81
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.fits scfile=/scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits outfile=/scratch/kocevski/629376/cmap_HighResolution_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.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=146.316 yref=52.0053 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.80
user 0.61
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629376/Model_4FGL_J0945.2+5200_monthly_bin168.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/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.fits.....................!
real 695.82
user 693.20
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.fits', '/scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits', expMap='/scratch/kocevski/629376/expmap_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.fits', expCube='/scratch/kocevski/629376/ltcube_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629376/Model_4FGL_J0945.2+5200_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/629376/ft1_filtered_4FGL_J0945.2+5200_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/629376/ft2_4FGL_J0945.2+5200_monthly_bin168.fits
Exposure map: /scratch/kocevski/629376/expmap_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.fits
Exposure cube: /scratch/kocevski/629376/ltcube_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629376/Model_4FGL_J0945.2+5200_monthly_bin168.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) = 94518.9325845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93500       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3874       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1099       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8733       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8200       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .99562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28558E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18225E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .52995       1.0000         .10000E-03   10000.    
    10 'norm      '    .12442       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65408       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9018       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40584       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6683       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .87219       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5821       1.0000         .10000E-03   10000.    
    22 'norm      '    .98182       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4131       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8403       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4981       1.0000         .10000E-03   10000.    
    26 'norm      '    4.1192       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11867E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.232       1.0000         .10000E-03   10000.    
    29 'norm      '    5.7175       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    14.940       1.0000         .10000E-03   10000.    
    32 'norm      '    1.6958       1.0000         .10000E-03   10000.    
    33 'norm      '    3.5541       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    31.264       1.0000         .10000E-03   10000.    
    36 'norm      '    2.4370       1.0000         .10000E-03   10000.    
    37 'Prefactor '    8.9017       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0887       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   94518.73     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     4366 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93507        .84532       -.34239E-06    .89735E-04
   2  norm          3.3885        1.2691       -.45268E-06    .42655E-04
   3  norm          3.1083        1.4393       -.57471E-06    .42740E-03
   4  Prefactor     2.8747        1.9850        .79844E-06    .12936E-02
   5  Prefactor     2.8195        2.1149        .35246E-05    .79678E-03
   6  Prefactor     .99550        .56609       -.38883E-07   -.40243E-03
   7  Prefactor     .10017E-03    1.7048        .25438E-05** at limit **
   8  Prefactor     .10000E-03    232.33       -.37538E-04** at limit **
   9  Prefactor     .52985        .68037        .84164E-07   -.95342E-04
  10  norm          .12440        .99868E-01   -.10522E-07   -.52620E-03
  11  norm          1.0539        .21375        .13480E-06   -.11926E-02
  12  Prefactor     .65432        .80750        .42991E-06   -.27611E-03
  13  Prefactor     .24880        .42363        .20077E-06   -.11083E-03
  14  Prefactor     6.9019        1.3901        .18873E-06   -.32936E-02
  15  Prefactor     2.8017        .88330       -.19193E-07    .49704E-04
  16  Prefactor     .10000E-03    1.3566        .25935E-07** at limit **
  17  Prefactor     .40564        .85527       -.91596E-06    .11907E-03
  18  norm          .10000E-03    .65773        .15939E-05** at limit **
  19  Prefactor     1.6808        3.9342        .60843E-05    .24652E-02
  20  Prefactor     .87430        2.0670        .38823E-05   -.29093E-03
  21  Prefactor     2.5802        1.5017        .60071E-06    .30464E-04
  22  norm          .98288        .96676        .56717E-06    .60657E-04
  23  Prefactor     6.4137        1.8821        .23873E-05    .53383E-03
  24  Prefactor     7.8158        5.8152       -.73192E-05    .87759E-03
  25  norm          1.4982        .14523        .47166E-07    .40293E-03
  26  norm          4.1192        2.4406        .30547E-05    .52292E-03
  27  Prefactor     .10000E-03    15.215       -.13599E-05** at limit **
  28  Prefactor     10.227        2.3187       -.22296E-05   -.10413E-02
  29  norm          5.7176        .74513       -.31988E-07    .34095E-04
  30  Prefactor     .10000E-03    3.8173        .33456E-05** at limit **
  31  Prefactor     14.922        2.4051       -.50972E-06    .42164E-02
  32  norm          1.6970        .50135        .11647E-06    .10740E-03
  33  norm          3.5541        .44983       -.82148E-08   -.66765E-04
  34  Prefactor     .10000E-03    5.5293        .14260E-05** at limit **
  35  Prefactor     31.265        1.0034        .52174E-08    .54524E-03
  36  norm          2.4372        .53327        .11699E-06   -.90963E-04
  37  Prefactor     8.8764        4.3144        .46676E-05   -.41112E-02
  38  Normalizat    1.0887        .52192E-01   -.72069E-06   -.18744E-03
  39  Prefactor     1.0166        .58584E-01   -.90065E-06   -.29810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.935066
  norm       = 3.38849
  norm       = 3.10826
  Prefactor  = 2.87474
  Prefactor  = 2.81947
  Prefactor  = 0.995502
  Prefactor  = 0.000100167
  Prefactor  = 0.000100005
  Prefactor  = 0.529849
  norm       = 0.124395
  norm       = 1.05388
  Prefactor  = 0.654322
  Prefactor  = 0.248805
  Prefactor  = 6.90188
  Prefactor  = 2.80166
  Prefactor  = 0.0001
  Prefactor  = 0.405644
  norm       = 0.0001
  Prefactor  = 1.68076
  Prefactor  = 0.874301
  Prefactor  = 2.58023
  norm       = 0.982885
  Prefactor  = 6.41369
  Prefactor  = 7.81582
  norm       = 1.4982
  norm       = 4.11917
  Prefactor  = 0.000100003
  Prefactor  = 10.2268
  norm       = 5.71759
  Prefactor  = 0.0001
  Prefactor  = 14.9224
  norm       = 1.697
  norm       = 3.55408
  Prefactor  = 0.000100003
  Prefactor  = 31.2649
  norm       = 2.43722
  Prefactor  = 8.87635
  Normalizat = 1.08869
  Prefactor  = 1.01659
 **********
 **   18 **HESSE 
 **********

 FCN=   94518.73     FROM HESSE     STATUS=OK          1070 CALLS     5436 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93507        .84724        .12934E-01   -1.5515    
   2  norm          3.3885        1.2805        .54959E-02   -1.5340    
   3  norm          3.1083        1.4649        .57484E-02   -1.5355    
   4  Prefactor     2.8747        2.1942        .59948E-02   -1.5369    
   5  Prefactor     2.8195        2.1343        .60550E-02   -1.5372    
   6  Prefactor     .99550        .59061        .13150E-01   -1.5508    
   7  Prefactor     .10017E-03    .98438        .10705       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5267        .17790       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .52985        .60317        .65264E-01   -1.5562    
  10  norm          .12440        .15355        .16257E-01   -1.5637    
  11  norm          1.0539        .22218        .12014E-01   -1.5503    
  12  Prefactor     .65432        1.1551        .11885E-01   -1.5546    
  13  Prefactor     .24880        .44594        .10198E-01   -1.5608    
  14  Prefactor     6.9019        2.1554        .38179E-02   -1.5182    
  15  Prefactor     2.8017        .89425        .60767E-02   -1.5373    
  16  Prefactor     .10000E-03    1.3427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40564        .81518        .96818E-01   -1.5581    
  18  norm          .10000E-03    .65660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6808        5.1867        .81609E-02   -1.5449    
  20  Prefactor     .87430        1.1038        .89269E-01   -1.5521    
  21  Prefactor     2.5802        1.5493        .63492E-02   -1.5387    
  22  norm          .98288        1.1850        .68091E-01   -1.5510    
  23  Prefactor     6.4137        8.1938        .39622E-02   -1.5201    
  24  Prefactor     7.8158        8.1100        .35801E-02   -1.5149    
  25  norm          1.4982        .14561        .79315E-02   -1.5463    
  26  norm          4.1192        2.4637        .49655E-02   -1.5302    
  27  Prefactor     .10000E-03    .28337        .49361E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.227        7.0884        .31316E-02   -1.5068    
  29  norm          5.7176        .74686        .41996E-02   -1.5230    
  30  Prefactor     .10000E-03    3.7530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     14.922        4.8488        .25905E-02   -1.4935    
  32  norm          1.6970        .56544        .80784E-02   -1.5447    
  33  norm          3.5541        .45041        .53598E-02   -1.5331    
  34  Prefactor     .10000E-03    5.5762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     31.265        19.361        .17915E-02   -1.4589    
  36  norm          2.4372        .53906        .65526E-02   -1.5396    
  37  Prefactor     8.8764        8.7415        .33585E-02   -1.5112    
  38  Normalizat    1.0887        .47989E-01    .38481E-01   -.90116    
  39  Prefactor     1.0166        .50955E-01    .64254E-01   -.92179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06525e-07
Minuit parameter uncertainties:
  1  0.847255
  2  1.28049
  3  1.46491
  4  2.19428
  5  2.1344
  6  0.59061
  7  0.000811459
  8  0.000222327
  9  0.603175
  10  0.153553
  11  0.222182
  12  1.1551
  13  0.445948
  14  2.15543
  15  0.894253
  16  1.0281e-06
  17  0.8152
  18  1.33722e-08
  19  5.18808
  20  1.10384
  21  1.54934
  22  1.18505
  23  8.19526
  24  8.11115
  25  0.145614
  26  2.46379
  27  5.32826e-05
  28  7.08903
  29  0.746864
  30  2.70383e-05
  31  4.84889
  32  0.565442
  33  0.450409
  34  0.000243656
  35  19.3646
  36  0.539065
  37  8.74274
  38  0.0479905
  39  0.0509575
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  2.580e+00  1.549e+00  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  1.017e+00  5.096e-02  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.089e+00  4.799e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.75
Ra Dec: 146.316 52.005
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 1.41e-08 +/- 8.45e-09
Energy Flux (Fixed Index): 3.34e-06 +/- 2.01e-06

TS (Fixed Index): 3.75
Ra Dec: 146.316 52.005
Photon Flux Upper Limit: 2.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629376/likelihoodResults_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.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) = 94518.2073985
delta logL = 0.523148655673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 94518.2033564
delta logL = 0.527190718887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1040       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3003       1.0000          .0000       10.000    
     3 'Normalizat'    1.0939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+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.

 FCN=   94518.20     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      306 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1040        1.6639        .23016E-03   -.22919E-04
   2  Index         2.3002        .36577        .12239E-01   -.44112E-04
   3  Normalizat    1.0939        .49382E-01    .23599E-03   -.22122E-03
   4  Prefactor     1.0117        .57304E-01    .28475E-03    .24402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.104
  Index      = 2.30023
  Normalizat = 1.09395
  Prefactor  = 1.01175
 **********
 **   18 **HESSE 
 **********

 FCN=   94518.20     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1040        1.6691        .92066E-05   -1.5356    
   2  Index         2.3002        .36699        .48955E-03   -.57038    
   3  Normalizat    1.0939        .49439E-01    .94396E-05   -.89946    
   4  Prefactor     1.0117        .57354E-01    .11390E-04   -.92339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47185e-11
Minuit parameter uncertainties:
  1  1.66909
  2  0.367455
  3  0.0494413
  4  0.0573578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629376': 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) = 94518.2033564
delta logL = 0.527190726338

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  3.104e+00  1.669e+00  1.000e-04  1.000e+04 ( 1.000e-12)
381        Index:  2.300e+00  3.675e-01  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  1.012e+00  5.736e-02  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.094e+00  4.944e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.79
Ra Dec: 146.316 52.005
Photon Index (Free Index): 2.30 +/- 0.37
Photon Flux (Free Index): 1.11e-08 +/- 7.30e-09
Energy Flux (Free Index): 4.21e-06 +/- 2.41e-06

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/629376/cmap_HighResolution_672451201_675043201_4FGL_J0945.2+5200_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-03', comment='SUCCESS', photon_flux='1.41e-08', energy_flux2='4.21e-06', photon_flux_error='8.45e-09', dlogl='5.27e-01', energy_flux='3.34e-06', photon_flux2='1.11e-08', job_status='DONE', time_completed='2022-05-24 07:06:25.658761', photon_index_error2='0.37', photon_index2='2.30', ts='3.75', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.88e-08', energy_flux_error2='2.41e-06', EG='1.09', time_epoch_completed='1653401185.66', return_code='0', job_id='629376', GAL2='1.01', EG2='1.09', return_code2='0', energy_flux_error='2.01e-06', photon_flux_error2='7.30e-09', ts2='4.79', photon_index='2.72' WHERE bin_id='168' AND source_name='4FGL J0945.2+5200' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:06:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 629376: <4FGL_J0945.2+5200_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0945.2+5200_monthly_bin168> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 02:50:23 2022
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:50:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:50:29 2022
Terminated at Tue May 24 07:06:27 2022
Results reported at Tue May 24 07:06:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_monthly_bin168 146.316 52.0053 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.2+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15143.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             466.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15358 sec.
    Turnaround time :                            15364 sec.

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

