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 33 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0039.1+4330_daily_bin1740
RA = 9.7994, Dec = 43.5122
tmin = 690336001, tmax = 690595201
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='822608', job_status='RUN', time_executed='2022-11-20 00:07:15.148241', time_epoch_executed='1668931635.15' WHERE source_name='4FGL J0039.1+4330' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822608

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822608/ft1_4FGL_J0039.1+4330_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822608/ft1_4FGL_J0039.1+4330_daily_bin1740.fits outfile=/scratch/kocevski/822608/ft1_filteredMKT_4FGL_J0039.1+4330_daily_bin1740.fits ra=9.7994 dec=43.5122 rad=12.0 tmin=690336001.0 tmax=690595201.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 3.02
user 2.76
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.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/822608/ft1_filteredMKT_4FGL_J0039.1+4330_daily_bin1740.fits evtable="EVENTS" outfile="/scratch/kocevski/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.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.53
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 662

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822608/ltcube_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.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/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits
.....................!
real 16.12
user 15.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822608/ltcube_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.fits outfile=/scratch/kocevski/822608/expmap_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.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/822608/ltcube_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.fits
.....................!
real 190.59
user 185.91
sys 4.24

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 CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 181 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 J0039.1+4330 @ 9.7994 43.5122

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.fits scfile=/scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits outfile=/scratch/kocevski/822608/cmap_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.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=9.7994 yref=43.5122 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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.fits scfile=/scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits outfile=/scratch/kocevski/822608/cmap_HighResolution_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.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=9.7994 yref=43.5122 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/822608/Model_4FGL_J0039.1+4330_daily_bin1740.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/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.fits.....................!
real 86.09
user 84.06
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.fits', '/scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits', expMap='/scratch/kocevski/822608/expmap_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.fits', expCube='/scratch/kocevski/822608/ltcube_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822608/Model_4FGL_J0039.1+4330_daily_bin1740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0039.1+4330'

4FGL J0039.1+4330
   Spectrum: PowerLaw
100    Prefactor:  3.232e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
101        Index:  2.059e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
102        Scale:  2.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/822608/ft1_filtered_4FGL_J0039.1+4330_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822608/ft2_4FGL_J0039.1+4330_daily_bin1740.fits
Exposure map: /scratch/kocevski/822608/expmap_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822608/ltcube_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822608/Model_4FGL_J0039.1+4330_daily_bin1740.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) = 7206.9575075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25322       1.0000          .0000       .10000E+07
     2 'norm      '    6.3947       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9813       1.0000          .0000       .10000E+07
     4 'norm      '    .11102E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .88903E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17253E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    17.364       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29764       1.0000          .0000       .10000E+07
     9 'norm      '    .94167E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14878E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    12.954       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.9873       1.0000          .0000       .10000E+07
    13 'norm      '    10.389       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.413       1.0000          .0000       .10000E+07
    15 'norm      '    5.4214       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20719E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .25656E-05   1.0000          .0000       .10000E+07
    18 'norm      '    2.2536       1.0000          .0000       .10000E+07
    19 'norm      '    14.924       1.0000          .0000       .10000E+07
    20 'Prefactor '    .95500E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .59384E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.829       1.0000          .0000       .10000E+07
    23 'Normalizat'    .80622       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7206.945     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     2550 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56148        205.34       -.18466E-06   -.75834E-05
   2  norm          6.2263        13.241        .52821E-07   -.10381E-04
   3  Prefactor     3.0236        6.3822       -.13614E-06    .16576E-04
   4  norm           .0000        .62366       -.22085E-08** at limit **
   5  Prefactor      .0000        4.3673       -.44786E-08** at limit **
   6  Prefactor     .11102E-09    20.899       -.41195E-07** at limit **
   7  Prefactor     17.970        29.825        .70261E-07   -.34975E-04
   8  Prefactor     .55511E-10    73.774       -.81468E-07** at limit **
   9  norm           .0000        2.5345        .88577E-07** at limit **
  10  Prefactor      .0000        4.0554        .47283E-07** at limit **
  11  Prefactor     12.949        20.401        .89131E-07    .36716E-05
  12  Prefactor     2.1643        31.333        .29293E-06    .86674E-04
  13  norm          10.178        47.352       -.50567E-08    .22869E-04
  14  Prefactor     20.465        26.551       -.11705E-06   -.18743E-03
  15  norm          5.5198        4.8522       -.25062E-08    .15324E-03
  16  Prefactor      .0000        89.343        .12016E-06** at limit **
  17  norm           .0000        .82641       -.11518E-08** at limit **
  18  norm          2.2522        1.4509        .14411E-08    .19875E-03
  19  norm          15.209        11.685        .15986E-08    .36385E-05
  20  Prefactor      .0000        100.33       -.27233E-06** at limit **
  21  Prefactor      .0000        37.840       -.46358E-07** at limit **
  22  Prefactor     13.925        9.4362        .34147E-07   -.66876E-04
  23  Normalizat    .80440        .26714       -.29919E-05   -.37819E-04
  24  Prefactor     1.0625        .97782E-01    .44439E-06   -.29858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.561477
  norm       = 6.22627
  Prefactor  = 3.02363
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 17.9705
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  Prefactor  = 12.9491
  Prefactor  = 2.16431
  norm       = 10.1782
  Prefactor  = 20.4649
  norm       = 5.51977
  Prefactor  = 0
  norm       = 0
  norm       = 2.25217
  norm       = 15.2092
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 13.9252
  Normalizat = 0.804398
  Prefactor  = 1.06248
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.945     FROM HESSE     STATUS=OK           401 CALLS     2951 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56148        204.42        .64909E-03   -1.5693    
   2  norm          6.2263        13.218        .15867E-04   -1.5658    
   3  Prefactor     3.0236        6.3822        .11755E-03   -1.5673    
   4  norm           .0000        .62494        .65464E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        4.4177        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    21.782        .68898E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.970        29.846        .96034E-05   -1.5623    
   8  Prefactor     .55511E-10    74.085        .20491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.5660        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.0588        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.949        20.396        .11122E-04   -1.5636    
  12  Prefactor     2.1643        31.656        .29390E-04   -1.5679    
  13  norm          10.178        47.635        .12424E-04   -1.5644    
  14  Prefactor     20.465        26.600        .88561E-05   -1.5617    
  15  norm          5.5198        4.8542        .16839E-04   -1.5661    
  16  Prefactor      .0000        89.494        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .82650        .75367E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2522        1.4467        .79393E-05   -1.5678    
  19  norm          15.209        11.690        .10360E-04   -1.5630    
  20  Prefactor      .0000        100.36        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        37.889        .30369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.925        9.4282        .10763E-04   -1.5633    
  23  Normalizat    .80440        .28635        .43378E-03   -.99906    
  24  Prefactor     1.0625        .10767        .15358E-03   -.90675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25804e-08
Minuit parameter uncertainties:
  1  21.4278
  2  13.2181
  3  6.3822
  4  3.15296e-07
  5  1.22692e-05
  6  9.22539e-05
  7  29.8463
  8  9.44215e-05
  9  8.21207e-07
  10  8.05371e-07
  11  20.3965
  12  16.5547
  13  44.0389
  14  26.5999
  15  4.85424
  16  9.13547e-05
  17  2.23079e-07
  18  1.44673
  19  11.6899
  20  2.16895e-05
  21  2.14881e-05
  22  9.42825
  23  0.286884
  24  0.107691
Done.

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

Extracting fit parameters...

4FGL J0039.1+4330
   Spectrum: PowerLaw
100    Prefactor:  5.551e-11  9.442e-05  0.000e+00  1.000e+06 ( 1.000e-14)
101        Index:  2.059e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
102        Scale:  2.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.062e+00  1.077e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  8.044e-01  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 9.799 43.512
Photon Flux Upper Limit: 9.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822608/likelihoodResults_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7206.88333037
delta logL = 0.0613344546655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7206.43381491
delta logL = 0.510849917419

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6725       1.0000          .0000       .10000E+07
     2 'Index     '    3.3919       1.0000          .0000       10.000    
     3 'Normalizat'    .71120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0815       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7206.434     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      297 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6921        68.417        .62313E-03    .68508E-02
   2  Index         3.3885        2.6635        .85222E-01    .26508E-03
   3  Normalizat    .71157        .75565E-01    .10362       -.10100E-03
   4  Prefactor     1.0812        .29596E-01    .38338E-01   -.21209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69214
  Index      = 3.38849
  Normalizat = 0.71157
  Prefactor  = 1.08122
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.434     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      328 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6921        137.69        .13720E-04   -1.5675    
   2  Index         3.3885        6.6530        .49506E-02   -.32816    
   3  Normalizat    .71157        .24881        .45935E-03   -1.0344    
   4  Prefactor     1.0812        .97870E-01    .15237E-03   -.90069    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.17638e-09
Minuit parameter uncertainties:
  1  38.5075
  2  5.02056
  3  0.249206
  4  0.0978867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822608': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7206.43380516
delta logL = 0.510859662404

Extracting fit parameters...

4FGL J0039.1+4330
   Spectrum: PowerLaw
100    Prefactor:  2.692e+00  3.851e+01  0.000e+00  1.000e+06 ( 1.000e-14)
101        Index:  3.388e+00  5.021e+00  0.000e+00  1.000e+01 (-1.000e+00)
102        Scale:  2.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.081e+00  9.789e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  7.116e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 9.799 43.512
Photon Index (Free Index): 3.39 +/- 5.02
Photon Flux (Free Index): 7.16e-08 +/- 7.55e-08
Energy Flux (Free Index): 1.23e-05 +/- 2.25e-05

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/822608/cmap_HighResolution_690336001_690595201_4FGL_J0039.1+4330_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='5.11e-01', photon_flux2='7.16e-08', job_status='DONE', time_completed='2022-11-20 00:20:55.738382', photon_index_error2='5.02', photon_index2='3.39', ts='0.00', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.45e-08', energy_flux_error2='2.25e-05', EG='0.80', time_epoch_completed='1668932455.74', return_code='0', job_id='822608', GAL2='1.08', EG2='0.71', return_code2='102', photon_flux_error2='7.55e-08', ts2='1.14', photon_index='2.06' WHERE bin_id='1740' AND source_name='4FGL J0039.1+4330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:20:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 822608: <4FGL_J0039.1+4330_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0039.1+4330_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:04:59 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:06:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:06:29 2022
Terminated at Sun Nov 20 00:20:56 2022
Results reported at Sun Nov 20 00:20:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0039.1+4330_daily_bin1740 9.7994 43.5122 690336001 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0039.1+4330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   749.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            957 sec.

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

