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 77 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_J1019.7+6321_monthly_bin168
RA = 154.926, Dec = 63.3527
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='629430', job_status='RUN', time_executed='2022-05-24 02:54:21.998744', time_epoch_executed='1653386062.0' WHERE source_name='4FGL J1019.7+6321' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629430

Creating custom pfile directory:
/scratch/kocevski/629430/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/629430/ft1_4FGL_J1019.7+6321_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/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629430/ft1_4FGL_J1019.7+6321_monthly_bin168.fits outfile=/scratch/kocevski/629430/ft1_filteredMKT_4FGL_J1019.7+6321_monthly_bin168.fits ra=154.926 dec=63.3527 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.91
user 27.98
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_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/629430/ft1_filteredMKT_4FGL_J1019.7+6321_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/629430/ft1_filtered_4FGL_J1019.7+6321_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.84
user 0.67
sys 0.17

Number of photons that the gtmktime cut: 11397

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629430/ft1_filtered_4FGL_J1019.7+6321_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/629430/ltcube_672451201_675043201_4FGL_J1019.7+6321_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/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits
.....................!
real 132.11
user 131.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629430/ft1_filtered_4FGL_J1019.7+6321_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/629430/ltcube_672451201_675043201_4FGL_J1019.7+6321_monthly_bin168.fits outfile=/scratch/kocevski/629430/expmap_672451201_675043201_4FGL_J1019.7+6321_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/629430/ltcube_672451201_675043201_4FGL_J1019.7+6321_monthly_bin168.fits
.....................!
real 193.65
user 187.68
sys 5.52

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

Setting source of interest to:
4FGL J1019.7+6321 @ 154.926 63.3527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/629430/ft1_filtered_4FGL_J1019.7+6321_monthly_bin168.fits scfile=/scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits outfile=/scratch/kocevski/629430/cmap_672451201_675043201_4FGL_J1019.7+6321_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=154.926 yref=63.3527 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.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629430/ft1_filtered_4FGL_J1019.7+6321_monthly_bin168.fits scfile=/scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits outfile=/scratch/kocevski/629430/cmap_HighResolution_672451201_675043201_4FGL_J1019.7+6321_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=154.926 yref=63.3527 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.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/629430/ft1_filtered_4FGL_J1019.7+6321_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629430/Model_4FGL_J1019.7+6321_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/629430/ft1_filtered_4FGL_J1019.7+6321_monthly_bin168.fits.....................!
real 1095.83
user 1090.92
sys 1.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629430/ft1_filtered_4FGL_J1019.7+6321_monthly_bin168.fits', '/scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits', expMap='/scratch/kocevski/629430/expmap_672451201_675043201_4FGL_J1019.7+6321_monthly_bin168.fits', expCube='/scratch/kocevski/629430/ltcube_672451201_675043201_4FGL_J1019.7+6321_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629430/Model_4FGL_J1019.7+6321_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1019.7+6321'

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  3.570e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/629430/ft1_filtered_4FGL_J1019.7+6321_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/629430/ft2_4FGL_J1019.7+6321_monthly_bin168.fits
Exposure map: /scratch/kocevski/629430/expmap_672451201_675043201_4FGL_J1019.7+6321_monthly_bin168.fits
Exposure cube: /scratch/kocevski/629430/ltcube_672451201_675043201_4FGL_J1019.7+6321_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629430/Model_4FGL_J1019.7+6321_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) = 120157.688678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5959       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9687       1.0000         .10000E-03   10000.    
     4 'norm      '    .96198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66245       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6458       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0123       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7667       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5689       1.0000         .10000E-03   10000.    
    12 'norm      '    9.1738       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18387E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    22.072       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46506       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6193       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.378       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6930       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7264       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.267       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.560       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14085E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4610       1.0000         .10000E-03   10000.    
    24 'norm      '    .41651       1.0000         .10000E-03   10000.    
    25 'Prefactor '    34.443       1.0000         .10000E-03   10000.    
    26 'norm      '    2.3569       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9348       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.1103       1.0000         .10000E-03   10000.    
    31 'Prefactor '    19.326       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .94394       1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.0354       1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .11541E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .95922       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.0380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   120157.5     FROM MIGRAD    STATUS=CONVERGED   1090 CALLS     4966 TOTAL
                     EDM=   .37E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5957        4.8795         .0000        .13279E-02
   2  Prefactor     .10000E-03    .54686         .0000    ** at limit **
   3  Prefactor     1.9688        1.4027         .0000        .14778    
   4  norm          .96196        .20633         .0000        .97463E-02
   5  Prefactor     .66279        1.6014         .0000        .35997    
   6  Prefactor     3.6458        1.2479         .0000        .60114E-02
   7  Prefactor     .36921        .69055         .0000        .14571E-01
   8  Prefactor     .10000E-03    .69801         .0000    ** at limit **
   9  norm          1.0118        1.1689         .0000        .70521E-02
  10  Prefactor     9.7634        8.0462         .0000        .43911E-02
  11  norm          1.5689        .14987         .0000       -.36660E-03
  12  norm          9.1737        .33389         .0000       -.11748E-02
  13  Prefactor     .10006E-03    1.3492         .0000    ** at limit **
  14  norm          22.071        4.6566         .0000        .19313E-03
  15  Prefactor     .46947        1.0626         .0000        .83739E-02
  16  Prefactor     7.6180        5.2961         .0000        .32460E-02
  17  Prefactor     14.377        4.7258         .0000        .94745E-02
  18  norm          1.6930        .55501         .0000        .60728E-02
  19  norm          3.7263        .46227         .0000       -.22583E-03
  20  Prefactor     29.267        10.546         .0000       -.23134E-02
  21  Prefactor     10.557        17.319         .0000        .25255E-02
  22  Prefactor     .10014E-03    .16045         .0000    ** at limit **
  23  norm          1.4613        .19083         .0000        .55418E-02
  24  norm          .41554        .81288         .0000        .30214E-01
  25  Prefactor     34.437        20.167         .0000        .97147E-02
  26  norm          2.3569        .49996         .0000        .17744E-02
  27  Prefactor     2.9378        2.2952         .0000        .13172E-01
  28  Prefactor     12.357        10.594         .0000        .12358E-02
  29  Prefactor     .10000E-03    2.8759         .0000    ** at limit **
  30  Prefactor     1.1104        1.0757         .0000        .13641E-01
  31  Prefactor     19.325        5.8906         .0000       -.23560E-02
  32  Prefactor     .94569        3.1319         .0000        .13975    
  33  Prefactor     2.0353        .68464         .0000        .23761E-03
  34  norm          .10000E-03    .49630         .0000    ** at limit **
  35  norm          .10000E-03    .20499         .0000    ** at limit **
  36  Normalizat    .95924        .43453E-01     .0000       -.22808E-03
  37  Prefactor     1.0380        .41544E-01     .0000       -.21858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.59569
  Prefactor  = 0.0001
  Prefactor  = 1.96879
  norm       = 0.96196
  Prefactor  = 0.662791
  Prefactor  = 3.64576
  Prefactor  = 0.369208
  Prefactor  = 0.0001
  norm       = 1.01184
  Prefactor  = 9.76337
  norm       = 1.56892
  norm       = 9.17373
  Prefactor  = 0.000100056
  norm       = 22.0712
  Prefactor  = 0.469469
  Prefactor  = 7.618
  Prefactor  = 14.3772
  norm       = 1.69297
  norm       = 3.72629
  Prefactor  = 29.2669
  Prefactor  = 10.5573
  Prefactor  = 0.00010014
  norm       = 1.46135
  norm       = 0.415535
  Prefactor  = 34.4372
  norm       = 2.35686
  Prefactor  = 2.9378
  Prefactor  = 12.3571
  Prefactor  = 0.0001
  Prefactor  = 1.11041
  Prefactor  = 19.3255
  Prefactor  = 0.945693
  Prefactor  = 2.03532
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.959238
  Prefactor  = 1.03797
 **********
 **   18 **HESSE 
 **********

 FCN=   120157.5     FROM HESSE     STATUS=OK           903 CALLS     5869 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5957        4.8813        .14551E-03   -1.5157    
   2  Prefactor     .10000E-03    .54826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9688        1.3950        .14777E-02   -1.5427    
   4  norm          .96196        .19833        .68592E-03   -1.5512    
   5  Prefactor     .66279        1.5920        .23834E-02   -1.5545    
   6  Prefactor     3.6458        1.2460        .21157E-03   -1.5326    
   7  Prefactor     .36921        .75149        .37884E-02   -1.5586    
   8  Prefactor     .10000E-03    .71936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0118        .99552        .37000E-02   -1.5507    
  10  Prefactor     9.7634        7.8109        .64112E-03   -1.5083    
  11  norm          1.5689        .14980        .39515E-04   -1.5457    
  12  norm          9.1737        .33356        .36193E-04   -1.5102    
  13  Prefactor     .10006E-03    1.4390        .12517       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.071        4.6558        .85257E-04   -1.4768    
  15  Prefactor     .46947        5.2304        .43254E-02   -1.5571    
  16  Prefactor     7.6180        6.8597        .14528E-03   -1.5156    
  17  Prefactor     14.377        4.7436        .52815E-03   -1.4949    
  18  norm          1.6930        .55216        .12051E-03   -1.5448    
  19  norm          3.7263        .46221        .80127E-04   -1.5322    
  20  Prefactor     29.267        10.590        .74058E-04   -1.4625    
  21  Prefactor     10.557        17.309        .12330E-03   -1.5058    
  22  Prefactor     .10014E-03    .33885        .40684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4613        .19125        .46079E-04   -1.5466    
  24  norm          .41554        .56676        .20857E-03   -1.5579    
  25  Prefactor     34.437        20.166        .68282E-04   -1.4534    
  26  norm          2.3569        .49903        .10782E-03   -1.5401    
  27  Prefactor     2.9378        1.6684        .22163E-03   -1.5365    
  28  Prefactor     12.357        10.598        .11391E-03   -1.5005    
  29  Prefactor     .10000E-03    2.9736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.1104        1.0542        .33715E-03   -1.5497    
  31  Prefactor     19.325        5.8844        .91107E-04   -1.4828    
  32  Prefactor     .94569        3.1659        .25932E-02   -1.5513    
  33  Prefactor     2.0353        .68531        .16116E-03   -1.5423    
  34  norm          .10000E-03    .50067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    .21044        .51232E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .95924        .49153E-01    .27563E-03   -.94409    
  37  Prefactor     1.0380        .47080E-01    .27236E-03   -.91474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28686e-07
Minuit parameter uncertainties:
  1  4.88154
  2  9.55236e-07
  3  1.39503
  4  0.198335
  5  1.59213
  6  1.246
  7  0.751508
  8  1.7362e-05
  9  0.995532
  10  7.81171
  11  0.149804
  12  0.33356
  13  0.000567688
  14  4.65588
  15  3.13403
  16  6.86039
  17  4.74369
  18  0.552162
  19  0.462211
  20  10.5902
  21  17.3172
  22  0.000435109
  23  0.191252
  24  0.566764
  25  20.1698
  26  0.499027
  27  1.6684
  28  10.5998
  29  3.75875e-05
  30  1.05423
  31  5.88457
  32  3.16642
  33  0.685316
  34  1.15716e-06
  35  5.45535e-06
  36  0.049155
  37  0.0470816
Done.

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

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  2.207e+01  4.656e+00  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  1.038e+00  4.708e-02  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  9.592e-01  4.916e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 70.64
Ra Dec: 154.926 63.353
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 1.81e-08 +/- 3.81e-09
Energy Flux (Fixed Index): 1.31e-05 +/- 2.77e-06

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) = 120156.454448
delta logL = 1.01429043032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 120156.449954
delta logL = 1.01878473669

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.596       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2621       1.0000          .0000       5.0000    
     3 'Normalizat'    .95253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+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=   120156.4     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      308 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.592        4.6579        .88256E-04    .88625E-04
   2  alpha         2.2616        .22808        .18202E-01    .13167E-03
   3  Normalizat    .95253        .44389E-01    .27637E-03    .10531E-04
   4  Prefactor     1.0404        .45285E-01    .27199E-03    .12239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.5919
  alpha      = 2.2616
  Normalizat = 0.952533
  Prefactor  = 1.04045
 **********
 **   18 **HESSE 
 **********

 FCN=   120156.4     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.592        4.5221        .35302E-05   -1.4800    
   2  alpha         2.2616        .22137        .72808E-03   -.95504E-01
   3  Normalizat    .95253        .44379E-01    .11055E-04   -.94638    
   4  Prefactor     1.0404        .45304E-01    .10879E-04   -.91393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41559e-11
Minuit parameter uncertainties:
  1  4.5222
  2  0.221664
  3  0.0443806
  4  0.0453054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629430': 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) = 120156.449948
delta logL = 1.01879077345

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  2.059e+01  4.522e+00  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  2.262e+00  2.217e-01  0.000e+00  5.000e+00 ( 1.000e+00)
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  1.040e+00  4.531e-02  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  9.525e-01  4.438e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 72.73
Ra Dec: 154.926 63.353
Photon Index (Free Index): 2.26 +/- 0.22
Photon Flux (Free Index): 2.59e-08 +/- 7.80e-09
Energy Flux (Free Index): 1.23e-05 +/- 2.45e-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/629430/cmap_HighResolution_672451201_675043201_4FGL_J1019.7+6321_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.81e-08', energy_flux2='1.23e-05', photon_flux_error='3.81e-09', dlogl='1.02e+00', energy_flux='1.31e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2022-05-24 07:17:10.198331', photon_index_error2='0.22', photon_index2='2.26', ts='70.64', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.45e-06', EG='0.96', time_epoch_completed='1653401830.2', return_code='0', job_id='629430', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='2.77e-06', photon_flux_error2='7.80e-09', ts2='72.73', photon_index='1.94' WHERE bin_id='168' AND source_name='4FGL J1019.7+6321' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:17:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 629430: <4FGL_J1019.7+6321_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1019.7+6321_monthly_bin168> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 02:50:27 2022
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:52:55 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:52:55 2022
Terminated at Tue May 24 07:17:11 2022
Results reported at Tue May 24 07:17:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+6321_monthly_bin168 154.926 63.3527 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1019.7+6321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15725.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             515.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15856 sec.
    Turnaround time :                            16004 sec.

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

