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


Performing analysis on: 4FGL_J1056.8+7012_weekly_bin730
RA = 164.208, Dec = 70.2019
tmin = 680486401, tmax = 681091201
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='658568', job_status='RUN', time_executed='2022-08-02 01:57:39.004520', time_epoch_executed='1659430659.0' WHERE source_name='4FGL J1056.8+7012' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658568

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658568/ft1_4FGL_J1056.8+7012_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658568/ft1_4FGL_J1056.8+7012_weekly_bin730.fits outfile=/scratch/kocevski/658568/ft1_filteredMKT_4FGL_J1056.8+7012_weekly_bin730.fits ra=164.208 dec=70.2019 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.31
user 5.99
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.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/658568/ft1_filteredMKT_4FGL_J1056.8+7012_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.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.57
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 2672

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/658568/ltcube_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.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/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits
.....................!
real 36.39
user 35.69
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/658568/ltcube_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.fits outfile=/scratch/kocevski/658568/expmap_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.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/658568/ltcube_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.fits
.....................!
real 191.83
user 186.46
sys 4.41

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

Setting source of interest to:
4FGL J1056.8+7012 @ 164.208 70.2019

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.fits scfile=/scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits outfile=/scratch/kocevski/658568/cmap_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.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=164.208 yref=70.2019 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.61
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.fits scfile=/scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits outfile=/scratch/kocevski/658568/cmap_HighResolution_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.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=164.208 yref=70.2019 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.61
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/658568/Model_4FGL_J1056.8+7012_weekly_bin730.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/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.fits.....................!
real 298.25
user 296.26
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.fits', '/scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits', expMap='/scratch/kocevski/658568/expmap_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.fits', expCube='/scratch/kocevski/658568/ltcube_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/658568/Model_4FGL_J1056.8+7012_weekly_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1056.8+7012'

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  1.645e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
383        alpha:  2.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
384         beta:  1.139e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/658568/ft1_filtered_4FGL_J1056.8+7012_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/658568/ft2_4FGL_J1056.8+7012_weekly_bin730.fits
Exposure map: /scratch/kocevski/658568/expmap_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.fits
Exposure cube: /scratch/kocevski/658568/ltcube_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/658568/Model_4FGL_J1056.8+7012_weekly_bin730.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) = 28185.7144083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6818       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12068E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1938       1.0000         .10000E-03   10000.    
     7 'norm      '    19.741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4870       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5241       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4606       1.0000         .10000E-03   10000.    
    12 'Prefactor '    112.81       1.0000         .10000E-03   10000.    
    13 'norm      '    .79176       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .90818       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6816       1.0000         .10000E-03   10000.    
    17 'norm      '    .66949       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79350       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.724       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28877       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8751       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.107       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.585       1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.5260       1.0000         .10000E-03   10000.    
    30 'norm      '    1.0763       1.0000         .10000E-03   10000.    
    31 'norm      '    1.1256       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2009       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .87588       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28185.69     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4646 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6828        1.5568       -.65076E-08   -.68147E-03
   2  Prefactor     .10000E-03    11.175       -.66678E-06** at limit **
   3  Prefactor     .10000E-03    2.2265       -.41134E-07** at limit **
   4  Prefactor     .10000E-03    4.8088       -.61101E-05** at limit **
   5  Prefactor     .10000E-03    25.352        .66568E-06** at limit **
   6  norm          3.1939        .58572        .49502E-07    .64711E-03
   7  norm          19.741        14.357        .24828E-06    .36916E-04
   8  Prefactor     .10000E-03    4.4847        .40597E-05** at limit **
   9  Prefactor     7.4879        9.0070       -.20387E-06   -.29355E-03
  10  Prefactor     4.5017        24.790       -.23279E-04    .82698E-05
  11  norm          4.4626        2.7527        .21634E-05   -.39858E-03
  12  Prefactor     112.81        30.937        .24004E-05    .10535E-03
  13  norm          .79796        1.8802       -.48050E-07   -.20391E-03
  14  Prefactor     .10000E-03    45.203        .22731E-05** at limit **
  15  Prefactor     .90593        2.3854       -.12987E-05   -.77558E-03
  16  norm          2.6818        .45768       -.63422E-09    .31805E-02
  17  norm          .67337        1.6547       -.10482E-05   -.17538E-02
  18  Prefactor     2.2215        3.0313       -.29530E-06   -.17427E-02
  19  Prefactor     .78526        5.2324        .24519E-05   -.17868E-03
  20  Prefactor     26.725        15.293        .23584E-06    .28599E-04
  21  Prefactor     .10000E-03    1.7162        .50675E-07** at limit **
  22  Prefactor     .28879        .97786       -.34953E-07   -.42177E-03
  23  norm          1.8752        3.3147       -.43571E-06   -.12537E-02
  24  Prefactor     12.107        5.1537       -.21347E-07   -.21856E-03
  25  norm          .10000E-03    1.0423       -.81662E-07** at limit **
  26  Prefactor     .10000E-03    3.2988       -.19819E-06** at limit **
  27  Prefactor     .10000E-03    5.4759        .20438E-05** at limit **
  28  Prefactor     19.599        18.575        .38443E-05    .11791E-04
  29  Prefactor     9.5299        10.728       -.94794E-07   -.90912E-04
  30  norm          1.0764        1.3505       -.72408E-07   -.21685E-03
  31  norm          1.1258        1.1905       -.15671E-07   -.17254E-03
  32  Normalizat    1.2009        .88906E-01    .70350E-06    .21027E-03
  33  Prefactor     .87586        .80961E-01   -.72814E-06    .38635E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.68281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19392
  norm       = 19.7409
  Prefactor  = 0.0001
  Prefactor  = 7.48789
  Prefactor  = 4.50168
  norm       = 4.46257
  Prefactor  = 112.811
  norm       = 0.797959
  Prefactor  = 0.0001
  Prefactor  = 0.905935
  norm       = 2.6818
  norm       = 0.673372
  Prefactor  = 2.22148
  Prefactor  = 0.785264
  Prefactor  = 26.7248
  Prefactor  = 0.0001
  Prefactor  = 0.288787
  norm       = 1.87518
  Prefactor  = 12.1067
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5991
  Prefactor  = 9.52988
  norm       = 1.07636
  norm       = 1.12576
  Normalizat = 1.20091
  Prefactor  = 0.875861
 **********
 **   18 **HESSE 
 **********

 FCN=   28185.69     FROM HESSE     STATUS=OK           707 CALLS     5353 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6828        1.5605        .48624E-03   -1.5191    
   2  Prefactor     .10000E-03    11.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1939        .58528        .52842E-04   -1.5351    
   7  norm          19.741        14.356        .90145E-04   -1.4819    
   8  Prefactor     .10000E-03    4.5334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4879        8.9521        .14657E-03   -1.5161    
  10  Prefactor     4.5017        24.284        .18928E-03   -1.5284    
  11  norm          4.4626        2.7374        .75514E-03   -1.5285    
  12  Prefactor     112.81        29.718        .37876E-04   -1.3580    
  13  norm          .79796        1.9057        .28194E-03   -1.5529    
  14  Prefactor     .10000E-03    45.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .90593        2.2074        .31776E-03   -1.5518    
  16  norm          2.6818        .43786        .37457E-04   -1.5380    
  17  norm          .67337        1.3333        .14747E-02   -1.5544    
  18  Prefactor     2.2215        4.8086        .13759E-02   -1.5410    
  19  Prefactor     .78526        3.9584        .33693E-03   -1.5531    
  20  Prefactor     26.725        15.315        .77494E-04   -1.4674    
  21  Prefactor     .10000E-03    1.7190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .28879        .98146        .29750E-03   -1.5601    
  23  norm          1.8752        3.7644        .15205E-02   -1.5434    
  24  Prefactor     12.107        5.1149        .57564E-03   -1.5012    
  25  norm          .10000E-03    1.0592        .16729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.3961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.4917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.599        18.546        .90504E-04   -1.4822    
  29  Prefactor     9.5299        10.831        .64921E-03   -1.5090    
  30  norm          1.0764        1.3209        .21117E-03   -1.5500    
  31  norm          1.1258        1.1536        .17735E-03   -1.5496    
  32  Normalizat    1.2009        .10273        .24858E-03   -.86575    
  33  Prefactor     .87586        .93426E-01    .26879E-03   -.96990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01298e-09
Minuit parameter uncertainties:
  1  1.56048
  2  1.97912e-06
  3  5.58828e-07
  4  2.30019e-06
  5  0.000191512
  6  0.58528
  7  14.3581
  8  8.48345e-05
  9  8.95373
  10  20.9242
  11  2.73752
  12  29.7223
  13  1.90584
  14  1.22339e-05
  15  2.20761
  16  0.437858
  17  1.33334
  18  4.80946
  19  3.52629
  20  15.317
  21  1.80812e-07
  22  0.981515
  23  3.76484
  24  5.11512
  25  2.16649e-07
  26  1.10344e-06
  27  1.29171e-06
  28  18.5516
  29  10.8329
  30  1.32093
  31  1.15361
  32  0.102751
  33  0.0934426
Done.

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

Extracting fit parameters...

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  6.734e-01  1.333e+00  1.000e-04  1.000e+04 ( 1.000e-12)
383        alpha:  2.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
384         beta:  1.139e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  8.759e-01  9.344e-02  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  1.201e+00  1.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 164.208 70.202
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.11e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 2.98e-06 +/- 5.91e-06

TS (Fixed Index): 1.14
Ra Dec: 164.208 70.202
Photon Flux Upper Limit: 3.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.92e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/658568/likelihoodResults_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.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) = 28185.4813457
delta logL = 0.212173983509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28185.461754
delta logL = 0.231765655975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98523       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1729       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87320       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   28185.46     FROM MIGRAD    STATUS=FAILED        99 CALLS      291 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98711        .99407        .18277E-02    .14748E-01
   2  alpha         2.1744        .70646        .36862E-01    .29933E-03
   3  Normalizat    1.2052        .96126E-01    .24823E-03    .29129E-04
   4  Prefactor     .87310        .90566E-01    .26915E-03    .47308E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   28185.46     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      364 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98711        .99407        .42232E-04   -1.5509    
   2  alpha         2.1744        .70646        .84489E-03   -.13062    
   3  Normalizat    1.2052        .96126E-01    .15267E-03   -.86444    
   4  Prefactor     .87310        .90566E-01    .18949E-03   -.97087    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28185.46     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      396 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98711        .97170        .36554E-03   -.12055E-03
   2  alpha         2.1744        .69231        .73724E-02   -.43178E-05
   3  Normalizat    1.2052        .96189E-01    .99290E-05    .28396E-04
   4  Prefactor     .87310        .90629E-01    .10766E-04    .42239E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.987113
  alpha      = 2.17438
  Normalizat = 1.20516
  Prefactor  = 0.873104
 **********
 **   18 **HESSE 
 **********

 FCN=   28185.46     FROM HESSE     STATUS=OK            25 CALLS      421 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98711        .96886        .14621E-04   -1.5509    
   2  alpha         2.1744        .69035        .29490E-03   -.13062    
   3  Normalizat    1.2052        .96147E-01    .19858E-05   -.86444    
   4  Prefactor     .87310        .90611E-01    .21532E-05   -.97087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08953e-12
Minuit parameter uncertainties:
  1  0.968871
  2  0.699606
  3  0.0961607
  4  0.0906268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658568': 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) = 28185.4617487
delta logL = 0.231770946495

Extracting fit parameters...

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  9.871e-01  9.689e-01  1.000e-04  1.000e+04 ( 1.000e-12)
383        alpha:  2.174e+00  6.996e-01  0.000e+00  5.000e+00 ( 1.000e+00)
384         beta:  1.139e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  8.731e-01  9.063e-02  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  1.205e+00  9.616e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 164.208 70.202
Photon Index (Free Index): 2.17 +/- 0.70
Photon Flux (Free Index): 8.05e-09 +/- 1.01e-08
Energy Flux (Free Index): 3.59e-06 +/- 3.54e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/658568/cmap_HighResolution_680486401_681091201_4FGL_J1056.8+7012_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.92e-06', comment='SUCCESS', photon_flux='1.11e-08', energy_flux2='3.59e-06', photon_flux_error='2.19e-08', dlogl='2.32e-01', energy_flux='2.98e-06', photon_flux2='8.05e-09', job_status='DONE', time_completed='2022-08-02 03:09:38.226119', photon_index_error2='0.70', photon_index2='2.17', ts='1.14', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.69e-08', energy_flux_error2='3.54e-06', EG='1.20', time_epoch_completed='1659434978.23', return_code='0', job_id='658568', GAL2='0.87', EG2='1.21', return_code2='0', energy_flux_error='5.91e-06', photon_flux_error2='1.01e-08', ts2='1.62', photon_index='2.67' WHERE bin_id='730' AND source_name='4FGL J1056.8+7012' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:09:38 PDT 2022




------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 658467: <4FGL_J1056.8+7012_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1056.8+7012_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:05:58 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 01:14:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 01:14:55 2022
Terminated at Tue Aug  2 02:29:12 2022
Results reported at Tue Aug  2 02:29:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1056.8+7012_weekly_bin730 164.208 70.2019 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1056.8+7012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4311.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             351.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4457 sec.
    Turnaround time :                            8594 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 658568: <4FGL_J1056.8+7012_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1056.8+7012_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:03 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 01:55:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 01:55:59 2022
Terminated at Tue Aug  2 03:09:39 2022
Results reported at Tue Aug  2 03:09:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1056.8+7012_weekly_bin730 164.208 70.2019 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1056.8+7012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4316.00 sec.
    Max Memory :                                 1145 MB
    Average Memory :                             361.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4419 sec.
    Turnaround time :                            11016 sec.

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

