/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 162 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 = 6834
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0757.1+0956_daily_bin613
RA = 119.286, Dec = 9.9491
tmin = 398217601, tmax = 398476801
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='23370', job_status='RUN', time_executed='2021-08-28 20:24:05.205101', time_epoch_executed='1630207445.21' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23370

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23370/ft1_4FGL_J0757.1+0956_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23370/ft1_4FGL_J0757.1+0956_daily_bin613.fits outfile=/scratch/kocevski/23370/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin613.fits ra=119.286 dec=9.9491 rad=12.0 tmin=398217601.0 tmax=398476801.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 7.62
user 6.14
sys 1.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.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/23370/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin613.fits evtable="EVENTS" outfile="/scratch/kocevski/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.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 1.63
user 0.31
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/23370/ltcube_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.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/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits
.....................!
real 11.94
user 10.31
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/23370/ltcube_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.fits outfile=/scratch/kocevski/23370/expmap_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.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/23370/ltcube_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.fits
.....................!
real 191.49
user 185.46
sys 5.68

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_archive_v18/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/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.fits scfile=/scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits outfile=/scratch/kocevski/23370/cmap_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.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 1.64
user 0.36
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.fits scfile=/scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits outfile=/scratch/kocevski/23370/cmap_HighResolution_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.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 1.64
user 0.39
sys 1.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/23370/Model_4FGL_J0757.1+0956_daily_bin613.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/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.fits.....................!
real 76.92
user 74.03
sys 2.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.fits', '/scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits', expMap='/scratch/kocevski/23370/expmap_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.fits', expCube='/scratch/kocevski/23370/ltcube_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/23370/Model_4FGL_J0757.1+0956_daily_bin613.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  1.000e-04  1.000e+04 ( 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/23370/ft1_filtered_4FGL_J0757.1+0956_daily_bin613.fits
Spacecraft file(s): /scratch/kocevski/23370/ft2_4FGL_J0757.1+0956_daily_bin613.fits
Exposure map: /scratch/kocevski/23370/expmap_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.fits
Exposure cube: /scratch/kocevski/23370/ltcube_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/23370/Model_4FGL_J0757.1+0956_daily_bin613.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) = 5609.80519932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10438E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4944       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0688       1.0000         .10000E-03   10000.    
     6 'norm      '    10.110       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.901       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.511       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.437       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0238       1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.357       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7416       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.984       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75517       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1851       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5609.772     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2573 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4486        .20029E-07** at limit **
   2  norm          2.4947        1.4940        .34052E-07   -.27439E-04
   3  Prefactor     .10000E-03    56.639       -.16078E-05** at limit **
   4  Prefactor     .10000E-03    18.064        .17629E-06** at limit **
   5  norm          3.0688        1.9692        .23513E-08    .29639E-05
   6  norm          10.109        3.1352       -.39167E-09   -.12962E-04
   7  Prefactor     12.901        10.766        .96901E-07   -.94803E-05
   8  Prefactor     31.083        35.944       -.43136E-06   -.57562E-04
   9  Prefactor     .10000E-03    1.6261        .23486E-07** at limit **
  10  norm          4.1407        12.499        .30834E-06   -.11950E-04
  11  Prefactor     14.511        10.969       -.99207E-07    .14239E-04
  12  Prefactor     .10000E-03    39.624        .29858E-05** at limit **
  13  norm          .10000E-03    33.198       -.16508E-05** at limit **
  14  Prefactor     16.435        22.770       -.22568E-06   -.21334E-04
  15  norm          7.0205        14.243        .30357E-05   -.17591E-03
  16  norm          .10000E-03    8.3881        .58633E-07** at limit **
  17  norm          .10000E-03    4.1101       -.87875E-07** at limit **
  18  Prefactor     53.363        49.357        .11086E-05    .93284E-04
  19  Prefactor     .10000E-03    14.548        .46060E-07** at limit **
  20  norm          2.7414        1.5872        .24124E-07   -.52960E-04
  21  Prefactor     19.979        41.118       -.89453E-06   -.59845E-04
  22  Normalizat    .75548        .24556       -.66091E-06   -.25506E-05
  23  Prefactor     1.1849        .15645        .17201E-07   -.13299E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.49468
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.06878
  norm       = 10.1088
  Prefactor  = 12.9009
  Prefactor  = 31.0835
  Prefactor  = 0.0001
  norm       = 4.1407
  Prefactor  = 14.5109
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 16.435
  norm       = 7.02052
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 53.3631
  Prefactor  = 0.0001
  norm       = 2.74139
  Prefactor  = 19.9793
  Normalizat = 0.755483
  Prefactor  = 1.18488
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.772     FROM HESSE     STATUS=OK           372 CALLS     2945 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5076        .17581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4947        1.4904        .67528E-04   -1.5392    
   3  Prefactor     .10000E-03    57.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0688        1.9868        .71902E-04   -1.5358    
   6  norm          10.109        3.1351        .70399E-04   -1.5072    
   7  Prefactor     12.901        10.880        .11152E-03   -1.4989    
   8  Prefactor     31.083        36.135        .71863E-04   -1.4592    
   9  Prefactor     .10000E-03    1.6548        .93202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1407        12.478        .19807E-03   -1.5301    
  11  Prefactor     14.511        10.971        .52573E-03   -1.4946    
  12  Prefactor     .10000E-03    42.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    33.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.435        22.782        .98789E-04   -1.4897    
  15  norm          7.0205        14.709        .75685E-03   -1.5178    
  16  norm          .10000E-03    8.3940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2284        .29658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.363        50.142        .54909E-04   -1.4246    
  19  Prefactor     .10000E-03    14.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7414        1.5860        .68449E-04   -1.5377    
  21  Prefactor     19.979        41.685        .89595E-04   -1.4814    
  22  Normalizat    .75548        .27597        .35785E-03   -1.0174    
  23  Prefactor     1.1849        .17644        .19904E-03   -.86798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41046e-10
Minuit parameter uncertainties:
  1  9.8198e-07
  2  1.4904
  3  0.00052321
  4  3.19159e-05
  5  1.98682
  6  3.1352
  7  10.8812
  8  36.1606
  9  1.06703e-06
  10  12.4858
  11  10.9726
  12  0.000843556
  13  0.000417577
  14  22.7937
  15  14.7162
  16  6.90792e-06
  17  9.5887e-06
  18  50.1814
  19  1.23672e-05
  20  1.58603
  21  41.7454
  22  0.276478
  23  0.176532
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.451e+01  1.097e+01  1.000e-04  1.000e+04 ( 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.185e+00  1.765e-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:  7.555e-01  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.12
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.42e-05

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) = 5609.53894718
delta logL = 0.232671572535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5609.53866761
delta logL = 0.232951138629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.276       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7508       1.0000          .0000       10.000    
     3 'Normalizat'    .77412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1770       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=   5609.539     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      263 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.263        485.95        .23422E-02   -.15175E-03
   2  Index         1.7501        5.3229        .23368        .91623E-05
   3  Normalizat    .77422        .21292        .79902E-01    .23171E-04
   4  Prefactor     1.1770        .83167E-01    .35198E-01   -.97508E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2629
  Index      = 1.75013
  Normalizat = 0.774217
  Prefactor  = 1.17697
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.539     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.263        14.097        .46843E-03   -1.4853    
   2  Index         1.7501        .54635        .81536E-02   -.70755    
   3  Normalizat    .77422        .25138        .35375E-03   -1.0103    
   4  Prefactor     1.1770        .17203        .19961E-03   -.87043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27624e-13
Minuit parameter uncertainties:
  1  14.0996
  2  0.548249
  3  0.251757
  4  0.172113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23370': 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) = 5609.53866611
delta logL = 0.232952643199

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.826e+01  1.410e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.750e+00  5.482e-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.177e+00  1.721e-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:  7.742e-01  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.57
Ra Dec: 119.286 9.949
Photon Index (Free Index): 1.75 +/- 0.55
Photon Flux (Free Index): 2.53e-08 +/- 2.49e-08
Energy Flux (Free Index): 3.52e-05 +/- 4.65e-05

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/23370/cmap_HighResolution_398217601_398476801_4FGL_J0757.1+0956_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='3.52e-05', photon_flux_error='2.88e-08', dlogl='2.33e-01', energy_flux='1.88e-05', photon_flux2='2.53e-08', job_status='DONE', time_completed='2021-08-28 20:34:23.913685', photon_index_error2='0.55', photon_index2='1.75', ts='6.12', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='4.65e-05', EG='0.76', time_epoch_completed='1630208063.91', return_code='0', job_id='23370', GAL2='1.18', EG2='0.77', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='2.49e-08', ts2='6.57', photon_index='2.15' WHERE bin_id='613' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:34:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 23370: <4FGL_J0757.1+0956_daily_bin613> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin613> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 20:20:52 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:20:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 20:20:53 2021
Terminated at Sat Aug 28 20:34:25 2021
Results reported at Sat Aug 28 20:34:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin613 119.286 9.9491 398217601 398476801 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

