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


Performing analysis on: 4FGL_J0039.1+4330_daily_bin1763
RA = 9.7994, Dec = 43.5122
tmin = 696297601, tmax = 696556801
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='266648', job_status='RUN', time_executed='2023-01-28 00:09:04.268028', time_epoch_executed='1674893344.27' WHERE source_name='4FGL J0039.1+4330' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266648/ft1_4FGL_J0039.1+4330_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266648/ft1_4FGL_J0039.1+4330_daily_bin1763.fits outfile=/scratch/kocevski/266648/ft1_filteredMKT_4FGL_J0039.1+4330_daily_bin1763.fits ra=9.7994 dec=43.5122 rad=12.0 tmin=696297601.0 tmax=696556801.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.03
user 2.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.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/266648/ft1_filteredMKT_4FGL_J0039.1+4330_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/266648/ft1_filtered_4FGL_J0039.1+4330_daily_bin1763.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.46
user 0.31
sys 0.13

Number of photons that the gtmktime cut: 914

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266648/ft1_filtered_4FGL_J0039.1+4330_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/266648/ltcube_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.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/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.fits
.....................!
real 13.63
user 13.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266648/ft1_filtered_4FGL_J0039.1+4330_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/266648/ltcube_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.fits outfile=/scratch/kocevski/266648/expmap_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.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/266648/ltcube_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.fits
.....................!
real 157.13
user 152.37
sys 4.34

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/266648/ft1_filtered_4FGL_J0039.1+4330_daily_bin1763.fits scfile=/scratch/kocevski/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.fits outfile=/scratch/kocevski/266648/cmap_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.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.50
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266648/ft1_filtered_4FGL_J0039.1+4330_daily_bin1763.fits scfile=/scratch/kocevski/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.fits outfile=/scratch/kocevski/266648/cmap_HighResolution_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.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.54
user 0.34
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266648/ft1_filtered_4FGL_J0039.1+4330_daily_bin1763.fits', '/scratch/kocevski/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.fits', expMap='/scratch/kocevski/266648/expmap_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.fits', expCube='/scratch/kocevski/266648/ltcube_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266648/Model_4FGL_J0039.1+4330_daily_bin1763.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/266648/ft1_filtered_4FGL_J0039.1+4330_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/266648/ft2_4FGL_J0039.1+4330_daily_bin1763.fits
Exposure map: /scratch/kocevski/266648/expmap_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.fits
Exposure cube: /scratch/kocevski/266648/ltcube_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266648/Model_4FGL_J0039.1+4330_daily_bin1763.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) = 9545.67573583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8498       1.0000          .0000       .10000E+07
     2 'norm      '    5.5998       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.326       1.0000          .0000       .10000E+07
     4 'norm      '    1.2060       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.6719       1.0000          .0000       .10000E+07
     6 'Prefactor '    16.117       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17875E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    21.252       1.0000          .0000       .10000E+07
     9 'norm      '    1.9378       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14268E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .83626E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    10.998       1.0000          .0000       .10000E+07
    13 'norm      '    .23310E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    13.744       1.0000          .0000       .10000E+07
    15 'norm      '    .49397E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15385       1.0000          .0000       .10000E+07
    17 'norm      '    2.1491       1.0000          .0000       .10000E+07
    18 'norm      '    1.5069       1.0000          .0000       .10000E+07
    19 'norm      '    .21057E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    50.156       1.0000          .0000       .10000E+07
    21 'Prefactor '    .17955E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .32228       1.0000          .0000       .10000E+07
    23 'Normalizat'    .90480       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9545.642     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1971 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8211        1.7599       -.48209E-07   -.92998E-02
   2  norm          5.5695        2.0190        .12205E-06   -.11688E-01
   3  Prefactor     11.238        6.8358        .47926E-06    .94137E-02
   4  norm          1.2058        1.9630       -.54523E-07   -.90868E-03
   5  Prefactor     1.6545        2.8641       -.38447E-06    .92794E-03
   6  Prefactor     16.256        1.1188        .10890E-07    .58831E-02
   7  Prefactor     .21094E-08    9.6875       -.11537E-05** at limit **
   8  Prefactor     21.734        7.2780       -.30289E-06   -.98256E-01
   9  norm          1.9364        1.6223       -.23389E-06    .54386E-02
  10  Prefactor     .27200E-08    8.1293       -.11966E-05** at limit **
  11  Prefactor     .55511E-10    3.0357       -.42656E-06** at limit **
  12  Prefactor     10.954        9.8894       -.12923E-06   -.15630E-02
  13  norm          .16320E-07    15.436        .65871E-06** at limit **
  14  Prefactor     13.874        2.0002       -.79903E-07   -.29746E-01
  15  norm           .0000        2.6305        .25277E-07** at limit **
  16  Prefactor      .0000        26.863       -.25573E-07** at limit **
  17  norm          2.1489        1.2962       -.12192E-06    .89119E-02
  18  norm          1.5063        .84076       -.30276E-07    .28379E-02
  19  norm          .27200E-08    12.041       -.18403E-06** at limit **
  20  Prefactor     51.021        40.008        .44199E-06   -.28580E-01
  21  Prefactor     .40795E-06    38.373        .31544E-05** at limit **
  22  Prefactor     .31494        1.5595       -.38900E-07   -.14326E-01
  23  Normalizat    .90502        .21646        .29676E-05   -.27774E-03
  24  Prefactor     1.0255        .89988E-01    .33471E-05   -.69924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82111
  norm       = 5.56954
  Prefactor  = 11.2385
  norm       = 1.20579
  Prefactor  = 1.65455
  Prefactor  = 16.2556
  Prefactor  = 2.10942e-09
  Prefactor  = 21.734
  norm       = 1.93639
  Prefactor  = 2.72005e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 10.9537
  norm       = 1.63203e-08
  Prefactor  = 13.874
  norm       = 0
  Prefactor  = 0
  norm       = 2.14889
  norm       = 1.50634
  norm       = 2.72005e-09
  Prefactor  = 51.0214
  Prefactor  = 4.07951e-07
  Prefactor  = 0.31494
  Normalizat = 0.905024
  Prefactor  = 1.02545
 **********
 **   18 **HESSE 
 **********

 FCN=   9545.642     FROM HESSE     STATUS=OK           451 CALLS     2422 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8211        14.058        .45655E-03   -1.5664    
   2  norm          5.5695        16.327        .42429E-03   -1.5661    
   3  Prefactor     11.238        8.2815        .29743E-03   -1.5641    
   4  norm          1.2058        2.0033        .10314E-02   -1.5686    
   5  Prefactor     1.6545        3.2391        .81489E-03   -1.5682    
   6  Prefactor     16.256        20.772        .24921E-03   -1.5627    
   7  Prefactor     .21094E-08    9.7438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.734        26.624        .21698E-03   -1.5615    
   9  norm          1.9364        1.6184        .74561E-03   -1.5680    
  10  Prefactor     .27200E-08    8.0838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    3.0384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.954        10.224        .30185E-03   -1.5642    
  13  norm          .16320E-07    15.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.874        20.740        .26992E-03   -1.5633    
  15  norm           .0000        2.6207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        26.789        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1489        1.2939        .70260E-03   -1.5679    
  18  norm          1.5063        .84769        .87134E-03   -1.5683    
  19  norm          .27200E-08    12.093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.021        41.394        .14121E-03   -1.5565    
  21  Prefactor     .40795E-06    39.137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .31494        3.8296        .99107E-02   -1.5697    
  23  Normalizat    .90502        .20022        .87205E-01   -.96284    
  24  Prefactor     1.0255        .80464E-01    .41622E-01   -.91886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00162e-07
Minuit parameter uncertainties:
  1  14.0576
  2  16.3274
  3  8.28152
  4  2.00335
  5  3.23908
  6  20.7724
  7  0.00028516
  8  26.6244
  9  1.61836
  10  0.000295559
  11  2.38405e-05
  12  10.2244
  13  0.00100469
  14  20.7399
  15  7.58937e-06
  16  2.5347e-05
  17  1.29391
  18  0.847687
  19  0.000362353
  20  41.3945
  21  0.00799177
  22  2.19645
  23  0.20038
  24  0.0804733
Done.

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

Extracting fit parameters...

4FGL J0039.1+4330
   Spectrum: PowerLaw
100    Prefactor:  2.173e+01  2.662e+01  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.025e+00  8.047e-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:  9.050e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 9.799 43.512
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.70e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/266648/likelihoodResults_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.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) = 9545.58464307
delta logL = 0.0573230039263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9545.57941267
delta logL = 0.0625533953043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.070       1.0000          .0000       .10000E+07
     2 'Index     '    2.5233       1.0000          .0000       10.000    
     3 'Normalizat'    .88631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0293       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.

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

 FCN=   9545.579     FROM MIGRAD    STATUS=FAILED        91 CALLS      323 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.071        209.80        .11072E-04   -.12691E-02
   2  Index         2.5232        6.2613        .94252E-02    .90016E-03
   3  Normalizat    .88565        .29350        .38998E-03    .20115E-04
   4  Prefactor     1.0296        .10219        .15781E-03    .91345E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9545.579     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      417 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.071        209.80        .41573E-04   -1.5636    
   2  Index         2.5232        6.2613        .12979E-02   -.51824    
   3  Normalizat    .88565        .29350        .39559E-03   -.96966    
   4  Prefactor     1.0296        .10219        .82049E-04   -.91748    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9545.579     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      446 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.071        31.646        .44289E-06   -.14419E-02
   2  Index         2.5232        1.3750        .18850E-02   -.35571E-04
   3  Normalizat    .88565        .21531        .15599E-04    .14576E-04
   4  Prefactor     1.0296        .89979E-01    .63126E-05    .78522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0705
  Index      = 2.52324
  Normalizat = 0.885652
  Prefactor  = 1.02963
 **********
 **   18 **HESSE 
 **********

 FCN=   9545.579     FROM HESSE     STATUS=OK            23 CALLS      469 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.071        29.054        .37278E-06   -1.5636    
   2  Index         2.5232        1.2644        .75402E-04   -.51824    
   3  Normalizat    .88565        .21382        .31199E-05   -.96966    
   4  Prefactor     1.0296        .89765E-01    .12625E-05   -.91748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46395e-11
Minuit parameter uncertainties:
  1  29.0543
  2  1.28293
  3  0.214024
  4  0.0897779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266648': 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) = 9545.5794054
delta logL = 0.0625606679732

Extracting fit parameters...

4FGL J0039.1+4330
   Spectrum: PowerLaw
100    Prefactor:  1.307e+01  2.905e+01  0.000e+00  1.000e+06 ( 1.000e-14)
101        Index:  2.523e+00  1.283e+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.030e+00  8.978e-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:  8.857e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 9.799 43.512
Photon Index (Free Index): 2.52 +/- 1.28
Photon Flux (Free Index): 3.23e-08 +/- 5.69e-08
Energy Flux (Free Index): 9.15e-06 +/- 9.83e-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/266648/cmap_HighResolution_696297601_696556801_4FGL_J0039.1+4330_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', comment='SUCCESS', photon_flux='1.70e-08', energy_flux2='9.15e-06', photon_flux_error='2.08e-08', dlogl='6.26e-02', energy_flux='1.02e-05', photon_flux2='3.23e-08', job_status='DONE', time_completed='2023-01-28 00:21:00.934302', photon_index_error2='1.28', photon_index2='2.52', ts='1.38', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.70e-08', energy_flux_error2='9.83e-06', EG='0.91', time_epoch_completed='1674894060.93', return_code='0', job_id='266648', GAL2='1.03', EG2='0.89', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.69e-08', ts2='1.52', photon_index='2.06' WHERE bin_id='1763' AND source_name='4FGL J0039.1+4330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 00:21:00 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 266648: <4FGL_J0039.1+4330_daily_bin1763> in cluster <slac> Done

Job <4FGL_J0039.1+4330_daily_bin1763> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jan 28 00:04:57 2023
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:07:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:07:17 2023
Terminated at Sat Jan 28 00:21:01 2023
Results reported at Sat Jan 28 00:21:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0039.1+4330_daily_bin1763 9.7994 43.5122 696297601 696556801 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 :                                   717.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            964 sec.

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

