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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin1778
RA = 119.286, Dec = 9.9491
tmin = 700185601, tmax = 700444801
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='954995', job_status='RUN', time_executed='2023-03-14 00:26:11.817173', time_epoch_executed='1678778771.82' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954995

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954995/ft1_4FGL_J0757.1+0956_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954995/ft1_4FGL_J0757.1+0956_daily_bin1778.fits outfile=/scratch/kocevski/954995/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin1778.fits ra=119.286 dec=9.9491 rad=12.0 tmin=700185601.0 tmax=700444801.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.98
user 3.75
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.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/954995/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.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.54
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 592

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/954995/ltcube_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.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/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits
.....................!
real 12.72
user 12.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/954995/ltcube_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.fits outfile=/scratch/kocevski/954995/expmap_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.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/954995/ltcube_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.fits
.....................!
real 189.52
user 185.23
sys 3.90

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 169 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 J0757.1+0956 @ 119.286 9.9491

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.fits scfile=/scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits outfile=/scratch/kocevski/954995/cmap_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.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=119.286 yref=9.9491 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.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.fits scfile=/scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits outfile=/scratch/kocevski/954995/cmap_HighResolution_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.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=119.286 yref=9.9491 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954995/Model_4FGL_J0757.1+0956_daily_bin1778.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.fits.....................!
real 84.50
user 82.48
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.fits', '/scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits', expMap='/scratch/kocevski/954995/expmap_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.fits', expCube='/scratch/kocevski/954995/ltcube_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954995/Model_4FGL_J0757.1+0956_daily_bin1778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0757.1+0956'

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  8.647e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/954995/ft1_filtered_4FGL_J0757.1+0956_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/954995/ft2_4FGL_J0757.1+0956_daily_bin1778.fits
Exposure map: /scratch/kocevski/954995/expmap_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.fits
Exposure cube: /scratch/kocevski/954995/ltcube_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954995/Model_4FGL_J0757.1+0956_daily_bin1778.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) = 6571.44924453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1012       1.0000          .0000       .10000E+07
     2 'norm      '    .42072E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .98007E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .70967E-02   1.0000          .0000       .10000E+07
     5 'norm      '    5.5343       1.0000          .0000       .10000E+07
     6 'norm      '    8.4623       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27960       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.6307       1.0000          .0000       .10000E+07
     9 'norm      '    .11963E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.9142       1.0000          .0000       .10000E+07
    11 'norm      '    .49040       1.0000          .0000       .10000E+07
    12 'Prefactor '    .42382E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .48663E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .24231E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.6755       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.168       1.0000          .0000       .10000E+07
    17 'norm      '    1.8872       1.0000          .0000       .10000E+07
    18 'Prefactor '    .51235E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .86390       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6571.446     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1533 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1001        2.1523        .26779E-08    .16876E-03
   2  norm           .0000        1.6560       -.10259E-06** at limit **
   3  Prefactor     .30254E-07    13.787        .32898E-07** at limit **
   4  Prefactor     .83267E-07    38.281        .21916E-06** at limit **
   5  norm          5.5359        1.9371       -.62156E-07   -.82342E-03
   6  norm          8.4640        2.7033        .10494E-06    .10879E-02
   7  Prefactor     .52474E-05    711.64       -.95143E-05** at limit **
   8  Prefactor     5.6198        3.1358       -.59711E-07   -.12582E-02
   9  norm          .22370E-05    12.830        .21251E-06** at limit **
  10  Prefactor     3.9557        8.3488       -.97503E-07    .14431E-02
  11  norm          .12441E-04    52.541        .15953E-05** at limit **
  12  Prefactor     .12316E-05    13.697       -.29454E-06** at limit **
  13  norm          .70888E-07    9.1090        .64812E-07** at limit **
  14  norm          .38858E-09    5.9183       -.16033E-06** at limit **
  15  norm          2.6683        3.4788       -.20623E-07   -.42537E-03
  16  Prefactor     17.130        1.4148       -.14328E-07    .48744E-02
  17  norm          1.8876        1.0795        .82278E-08    .33751E-03
  18  Prefactor     .68889E-07    8.9858        .17061E-06** at limit **
  19  Normalizat    .86400        .23332       -.42497E-05   -.44135E-04
  20  Prefactor     1.1443        .15992       -.78552E-06   -.72973E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10005
  norm       = 0
  Prefactor  = 3.02536e-08
  Prefactor  = 8.32667e-08
  norm       = 5.53592
  norm       = 8.46396
  Prefactor  = 5.24736e-06
  Prefactor  = 5.61978
  norm       = 2.23704e-06
  Prefactor  = 3.95571
  norm       = 1.24412e-05
  Prefactor  = 1.23163e-06
  norm       = 7.08877e-08
  norm       = 3.88578e-10
  norm       = 2.66831
  Prefactor  = 17.1304
  norm       = 1.88759
  Prefactor  = 6.88893e-08
  Normalizat = 0.863995
  Prefactor  = 1.14428
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.446     FROM HESSE     STATUS=OK           339 CALLS     1872 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1001        2.1540        .71163E-03   -1.5679    
   2  norm           .0000        1.5898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .30254E-07    13.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .83267E-07    38.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5359        1.9453        .42684E-03   -1.5661    
   6  norm          8.4640        2.7039        .34436E-03   -1.5650    
   7  Prefactor     .52474E-05    32.670        .14056E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6198        3.1344        .42311E-03   -1.5661    
   9  norm          .22370E-05    19.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9557        8.3744        .50969E-03   -1.5668    
  11  norm          .12441E-04    86.938        .79681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12316E-05    17.188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .70888E-07    9.2858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .38858E-09    5.9002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6683        3.4928        .62275E-03   -1.5675    
  16  Prefactor     17.130        18.223        .24145E-03   -1.5625    
  17  norm          1.8876        1.0802        .75725E-03   -1.5680    
  18  Prefactor     .68889E-07    9.1717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86400        .21141        .75524E-01   -.97737    
  20  Prefactor     1.1443        .14042        .36106E-01   -.88064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52916e-07
Minuit parameter uncertainties:
  1  2.15399
  2  6.06976e-06
  3  0.00129744
  4  0.00358223
  5  1.94529
  6  2.70394
  7  0.0261865
  8  3.13441
  9  0.0130498
  10  8.37444
  11  0.0657767
  12  0.0092019
  13  0.00162263
  14  9.84814e-05
  15  3.49275
  16  18.223
  17  1.08019
  18  0.00158969
  19  0.211609
  20  0.140464
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  3.956e+00  8.374e+00  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.144e+00  1.405e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.640e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 119.286 9.949
Photon Flux Upper Limit: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954995/likelihoodResults_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.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) = 6571.34261296
delta logL = 0.103035082981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6571.33658045
delta logL = 0.109067596497

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6571.337     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      239 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0856        661.18        .37662E-03    .11444E-02
   2  Index         1.7434        5.0260        .27514        .16186E-04
   3  Normalizat    .86753        .82680E-01    .75376E-01    .22064E-04
   4  Prefactor     1.1413        .52707E-01    .36194E-01    .14090E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.0856
  Index      = 1.74341
  Normalizat = 0.867535
  Prefactor  = 1.14129
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.337     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0856        12.153        .15065E-04   -1.5655    
   2  Index         1.7434        .74750        .11570E-01   -.70932    
   3  Normalizat    .86753        .22734        .33360E-03   -.97610    
   4  Prefactor     1.1413        .15540        .20011E-03   -.88158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55146e-10
Minuit parameter uncertainties:
  1  12.1533
  2  0.752419
  3  0.227594
  4  0.155462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954995': 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) = 6571.33658041
delta logL = 0.109067634165

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  7.086e+00  1.215e+01  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  1.743e+00  7.524e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.141e+00  1.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.675e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 119.286 9.949

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/954995/cmap_HighResolution_700185601_700444801_4FGL_J0757.1+0956_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2023-03-14 00:35:53.677096', job_id='954995', GAL2='1.14', fit_tolerance='1e-08', EG2='0.87', EG='0.86', time_epoch_completed='1678779353.68', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.09e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1778' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:35:53 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 954995: <4FGL_J0757.1+0956_daily_bin1778> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:25:14 2023
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:25:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:25:16 2023
Terminated at Tue Mar 14 00:35:54 2023
Results reported at Tue Mar 14 00:35:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin1778 119.286 9.9491 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0757.1+0956 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   583.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            640 sec.

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

