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 93 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0004.3+4614_monthly_bin169
RA = 1.0757, Dec = 46.2427
tmin = 675043201, tmax = 677635201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='156854', job_status='RUN', time_executed='2022-06-23 01:07:17.862615', time_epoch_executed='1655971637.86' WHERE source_name='4FGL J0004.3+4614' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156854

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156854/ft1_4FGL_J0004.3+4614_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156854/ft1_4FGL_J0004.3+4614_monthly_bin169.fits outfile=/scratch/kocevski/156854/ft1_filteredMKT_4FGL_J0004.3+4614_monthly_bin169.fits ra=1.0757 dec=46.2427 rad=12.0 tmin=675043201.0 tmax=677635201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 27.83
user 26.99
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/156854/ft1_filteredMKT_4FGL_J0004.3+4614_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.88
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 16236

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/156854/ltcube_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits
.....................!
real 143.50
user 142.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/156854/ltcube_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits outfile=/scratch/kocevski/156854/expmap_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/156854/ltcube_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits
.....................!
real 193.49
user 187.64
sys 5.42

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 180 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0004.3+4614 @ 1.0757 46.2427

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits scfile=/scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits outfile=/scratch/kocevski/156854/cmap_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=1.0757 yref=46.2427 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.82
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits scfile=/scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits outfile=/scratch/kocevski/156854/cmap_HighResolution_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=1.0757 yref=46.2427 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.82
user 0.66
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156854/Model_4FGL_J0004.3+4614_monthly_bin169.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits.....................!
real 1903.43
user 1896.72
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits', '/scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits', expMap='/scratch/kocevski/156854/expmap_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits', expCube='/scratch/kocevski/156854/ltcube_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/156854/Model_4FGL_J0004.3+4614_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0004.3+4614'

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  4.777e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/156854/ft1_filtered_4FGL_J0004.3+4614_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/156854/ft2_4FGL_J0004.3+4614_monthly_bin169.fits
Exposure map: /scratch/kocevski/156854/expmap_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits
Exposure cube: /scratch/kocevski/156854/ltcube_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/156854/Model_4FGL_J0004.3+4614_monthly_bin169.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2983       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5514       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7762       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.209       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9300       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7604       1.0000         .10000E-03   10000.    
    13 'norm      '    6.4743       1.0000         .10000E-03   10000.    
    14 'norm      '    .55908       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7958       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0185       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15837E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8598       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2522       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   168554.1     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1878 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51893        1.6504         .0000        .41002E-02
   2  Prefactor     1.3031        5.7661         .0000        .25696E-02
   3  norm          1.1589        3.8356         .0000        .43182E-02
   4  Prefactor     4.5514        1.5378         .0000        .31184E-02
   5  norm          1.2909        .39989         .0000        .42861E-02
   6  Prefactor     1.7761        .73669         .0000        .14743E-01
   7  Prefactor     .10000E-03    .62432         .0000    ** at limit **
   8  Prefactor     14.214        5.6188         .0000        .42095E-02
   9  Prefactor     4.9278        4.5765         .0000        .54121E-03
  10  Prefactor     .17113        .33964         .0000        .30073E-01
  11  Prefactor     1.1100        2.0817         .0000        .12174E-01
  12  Prefactor     1.7609        2.4092         .0000        .11033    
  13  norm          6.4747        2.2757         .0000        .17196E-01
  14  norm          .55909        .39464         .0000        .24524E-01
  15  norm          3.7958        1.8364         .0000        .17347E-02
  16  Prefactor     8.0332        7.7732         .0000       -.47117E-02
  17  Prefactor     .10000E-03    10.115         .0000    ** at limit **
  18  Prefactor     1.8598        1.8896         .0000        .21504    
  19  Normalizat    1.2522        .56365E-01     .0000        .24513E-04
  20  Prefactor     .92108        .15975E-01     .0000        .68758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.518933
  Prefactor  = 1.30306
  norm       = 1.15886
  Prefactor  = 4.55137
  norm       = 1.29092
  Prefactor  = 1.77614
  Prefactor  = 0.0001
  Prefactor  = 14.2142
  Prefactor  = 4.92778
  Prefactor  = 0.171135
  Prefactor  = 1.11004
  Prefactor  = 1.76088
  norm       = 6.47472
  norm       = 0.559086
  norm       = 3.79579
  Prefactor  = 8.03321
  Prefactor  = 0.0001
  Prefactor  = 1.85977
  Normalizat = 1.25217
  Prefactor  = 0.921077
 **********
 **   18 **HESSE 
 **********

 FCN=   168554.1     FROM HESSE     STATUS=OK           319 CALLS     2197 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51893        1.6942        .14720       -1.5564    
   2  Prefactor     1.3031        5.6077        .38798E-03   -1.5480    
   3  norm          1.1589        3.7374        .42928E-03   -1.5493    
   4  Prefactor     4.5514        1.5209        .18870E-03   -1.5281    
   5  norm          1.2909        .39776        .14012E-03   -1.5481    
   6  Prefactor     1.7761        .71351        .20955E-03   -1.5441    
   7  Prefactor     .10000E-03    4.1483        .60231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.214        5.6243        .10626E-03   -1.4954    
   9  Prefactor     4.9278        4.5715        .18114E-03   -1.5264    
  10  Prefactor     .17113        .43005        .32588E-02   -1.5625    
  11  Prefactor     1.1100        2.0887        .44847E-03   -1.5497    
  12  Prefactor     1.7609        2.3799        .15791E-02   -1.5443    
  13  norm          6.4747        2.2692        .78865E-03   -1.5199    
  14  norm          .55909        .45903        .20521E-02   -1.5558    
  15  norm          3.7958        1.8351        .20719E-03   -1.5318    
  16  Prefactor     8.0332        7.7616        .14159E-03   -1.5141    
  17  Prefactor     .10000E-03    10.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8598        1.8281        .15279E-02   -1.5435    
  19  Normalizat    1.2522        .61114E-01    .40428E-03   -.85006    
  20  Prefactor     .92108        .17652E-01    .14474E-03   -.95408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67379e-06
Minuit parameter uncertainties:
  1  1.69437
  2  5.40703
  3  3.73817
  4  1.52089
  5  0.397761
  6  0.713512
  7  2.51695e-05
  8  5.62449
  9  4.57186
  10  0.430062
  11  2.08886
  12  2.38007
  13  2.26924
  14  0.459031
  15  1.83513
  16  7.7626
  17  0.00013121
  18  1.82817
  19  0.0611179
  20  0.0176521
Done.

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

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  1.303e+00  5.407e+00  1.000e-04  1.000e+04 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.211e-01  1.765e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.252e+00  6.112e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 1.076 46.243
Photon Flux Upper Limit: 2.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156854/likelihoodResults_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 168553.622517
delta logL = 0.516765049106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 168553.620762
delta logL = 0.518519687932

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   168553.6     FROM MIGRAD    STATUS=FAILED       111 CALLS      355 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19592E-01    .83299        .37667E-03    .21832E-01
   2  Index         5.7432        7.6148        .56054E-02    .53284E-04
   3  Normalizat    1.2369        .34712E-01    .40651E-03    .14766E-03
   4  Prefactor     .92391        .10556E-01    .14455E-03    .37500E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   168553.6     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      437 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19592E-01    .83299        .42096E-04    .21832E-01
   2  Index         5.7432        7.6148        .29302E-02    .53284E-04
   3  Normalizat    1.2369        .34712E-01    .52245E-04    .14766E-03
   4  Prefactor     .92391        .10556E-01    .55678E-05    .37500E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   168553.6     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      475 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19592E-01    .94905        .15067E-04    .20524E-02
   2  Index         5.7432        7.6994        .22421E-03    .25961E-04
   3  Normalizat    1.2369        .56358E-01    .16260E-04    .14766E-03
   4  Prefactor     .92391        .17050E-01    .57819E-05    .37752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.019592
  Index      = 5.7432
  Normalizat = 1.23695
  Prefactor  = 0.923909
 **********
 **   18 **HESSE 
 **********

 FCN=   168553.6     FROM HESSE     STATUS=OK            23 CALLS      498 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19592E-01    1.1498        .60268E-06   -1.5680    
   2  Index         5.7432        7.8027        .89686E-05    .14919    
   3  Normalizat    1.2369        .58340E-01    .32521E-05   -.85469    
   4  Prefactor     .92391        .17602E-01    .11564E-05   -.95311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76795e-11
Minuit parameter uncertainties:
  1  0.299422
  2  7.34066
  3  0.0583434
  4  0.0176017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156854': 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) = 168553.620755
delta logL = 0.518526412896

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  1.959e-02  2.994e-01  1.000e-04  1.000e+04 ( 1.000e-13)
23         Index:  5.743e+00  7.341e+00  0.000e+00  1.000e+01 (-1.000e+00)
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.239e-01  1.760e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.237e+00  5.834e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 1.076 46.243
Photon Index (Free Index): 5.74 +/- 7.34
Photon Flux (Free Index): 1.40e-08 +/- 1.57e-08
Energy Flux (Free Index): 1.77e-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/156854/cmap_HighResolution_675043201_677635201_4FGL_J0004.3+4614_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-03', comment='SUCCESS', energy_flux2='1.77e-06', dlogl='5.19e-01', photon_flux2='1.40e-08', job_status='DONE', time_completed='2022-06-23 03:58:38.743133', photon_index_error2='7.34', photon_index2='5.74', ts='0.07', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='2.29e-08', energy_flux_error2='2.41e-06', EG='1.25', time_epoch_completed='1655981918.74', return_code='0', job_id='156854', GAL2='0.92', EG2='1.24', return_code2='0', photon_flux_error2='1.57e-08', ts2='1.21', photon_index='2.58' WHERE bin_id='169' AND source_name='4FGL J0004.3+4614' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 03:58:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 156854: <4FGL_J0004.3+4614_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0004.3+4614_monthly_bin169> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Jun 23 01:05:30 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:05:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:05:35 2022
Terminated at Thu Jun 23 03:58:39 2022
Results reported at Thu Jun 23 03:58:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.3+4614_monthly_bin169 1.0757 46.2427 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0004.3+4614 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10229.00 sec.
    Max Memory :                                 646 MB
    Average Memory :                             537.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10384 sec.
    Turnaround time :                            10389 sec.

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

