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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin598
RA = 119.286, Dec = 9.9491
tmin = 394329601, tmax = 394588801
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='23337', job_status='RUN', time_executed='2021-08-28 20:23:24.842872', time_epoch_executed='1630207404.84' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23337

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23337/ft1_4FGL_J0757.1+0956_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23337/ft2_4FGL_J0757.1+0956_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23337/ft1_4FGL_J0757.1+0956_daily_bin598.fits outfile=/scratch/kocevski/23337/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin598.fits ra=119.286 dec=9.9491 rad=12.0 tmin=394329601.0 tmax=394588801.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 8.92
user 7.11
sys 1.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/23337/ft2_4FGL_J0757.1+0956_daily_bin598.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/23337/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/23337/ft1_filtered_4FGL_J0757.1+0956_daily_bin598.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 2.04
user 0.34
sys 1.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23337/ft1_filtered_4FGL_J0757.1+0956_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/23337/ft2_4FGL_J0757.1+0956_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/23337/ltcube_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.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/23337/ft2_4FGL_J0757.1+0956_daily_bin598.fits
.....................!
real 12.90
user 10.75
sys 2.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23337/ft1_filtered_4FGL_J0757.1+0956_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/23337/ft2_4FGL_J0757.1+0956_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/23337/ltcube_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.fits outfile=/scratch/kocevski/23337/expmap_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.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/23337/ltcube_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.fits
.....................!
real 194.13
user 185.82
sys 7.95

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/23337/ft1_filtered_4FGL_J0757.1+0956_daily_bin598.fits scfile=/scratch/kocevski/23337/ft2_4FGL_J0757.1+0956_daily_bin598.fits outfile=/scratch/kocevski/23337/cmap_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.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 2.03
user 0.39
sys 1.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23337/ft1_filtered_4FGL_J0757.1+0956_daily_bin598.fits scfile=/scratch/kocevski/23337/ft2_4FGL_J0757.1+0956_daily_bin598.fits outfile=/scratch/kocevski/23337/cmap_HighResolution_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.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 2.04
user 0.38
sys 1.65

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/23337/ft1_filtered_4FGL_J0757.1+0956_daily_bin598.fits', '/scratch/kocevski/23337/ft2_4FGL_J0757.1+0956_daily_bin598.fits', expMap='/scratch/kocevski/23337/expmap_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.fits', expCube='/scratch/kocevski/23337/ltcube_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/23337/Model_4FGL_J0757.1+0956_daily_bin598.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/23337/ft1_filtered_4FGL_J0757.1+0956_daily_bin598.fits
Spacecraft file(s): /scratch/kocevski/23337/ft2_4FGL_J0757.1+0956_daily_bin598.fits
Exposure map: /scratch/kocevski/23337/expmap_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.fits
Exposure cube: /scratch/kocevski/23337/ltcube_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/23337/Model_4FGL_J0757.1+0956_daily_bin598.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) = 6477.48005419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3833       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.356       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5543       1.0000         .10000E-03   10000.    
     6 'norm      '    6.4419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1517       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .49838E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.097       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.604       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4349       1.0000         .10000E-03   10000.    
    16 'norm      '    .96069E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7799       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1961       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82589       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=   6477.463     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2574 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3843        1.9014        .75420E-07    .12930E-04
   2  norm          4.8665        1.8651       -.15874E-07    .89813E-05
   3  Prefactor     23.392        35.990       -.39469E-05   -.18299E-03
   4  Prefactor     .10000E-03    32.914       -.24545E-05** at limit **
   5  norm          1.5548        1.5911       -.58393E-07    .11001E-04
   6  norm          6.4420        2.6712        .27950E-07   -.63938E-04
   7  Prefactor     7.1477        10.315        .30747E-06    .45572E-04
   8  Prefactor     23.241        46.902        .46371E-06    .22943E-04
   9  Prefactor     .10000E-03    1.2437        .68878E-07** at limit **
  10  norm          .10324E-03    17.689       -.12815E-05** at limit **
  11  Prefactor     18.072        15.371        .14204E-06    .45369E-03
  12  Prefactor     .10000E-03    55.022       -.37623E-05** at limit **
  13  norm          .10000E-03    47.723        .35085E-05** at limit **
  14  Prefactor     52.651        34.953       -.24011E-05   -.70263E-03
  15  norm          4.4359        7.9489        .40634E-05   -.27759E-03
  16  norm          .10060E-03    21.322        .41666E-05** at limit **
  17  norm          3.5626        3.2142       -.24319E-06   -.13074E-03
  18  Prefactor     .10000E-03    19.692       -.10569E-06** at limit **
  19  Prefactor     .10000E-03    16.646        .84715E-07** at limit **
  20  norm          4.7794        1.4851        .23178E-07   -.38606E-03
  21  Prefactor     .10000E-03    28.769        .13652E-05** at limit **
  22  Normalizat    1.1968        .21522        .22483E-06   -.15864E-03
  23  Prefactor     .82540        .13517        .10158E-07   -.11808E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38431
  norm       = 4.86648
  Prefactor  = 23.3925
  Prefactor  = 0.000100001
  norm       = 1.55482
  norm       = 6.44198
  Prefactor  = 7.14773
  Prefactor  = 23.241
  Prefactor  = 0.0001
  norm       = 0.000103244
  Prefactor  = 18.0725
  Prefactor  = 0.000100003
  norm       = 0.000100002
  Prefactor  = 52.6507
  norm       = 4.4359
  norm       = 0.000100595
  norm       = 3.56259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77939
  Prefactor  = 0.0001
  Normalizat = 1.19677
  Prefactor  = 0.825405
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.463     FROM HESSE     STATUS=OK           382 CALLS     2956 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3843        1.9006        .94302E-04   -1.5399    
   2  norm          4.8665        1.8651        .64514E-04   -1.5267    
   3  Prefactor     23.392        36.548        .82884E-04   -1.4740    
   4  Prefactor     .10000E-03    33.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5548        1.6137        .87537E-04   -1.5459    
   6  norm          6.4420        2.6712        .79725E-04   -1.5200    
   7  Prefactor     7.1477        10.409        .15000E-03   -1.5173    
   8  Prefactor     23.241        46.931        .83090E-04   -1.4743    
   9  Prefactor     .10000E-03    1.2523        .87598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10324E-03    21.435        .97935E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.072        15.782        .94149E-04   -1.4857    
  12  Prefactor     .10000E-03    55.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    48.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.651        36.093        .55299E-04   -1.4255    
  15  norm          4.4359        8.3257        .95610E-03   -1.5287    
  16  norm          .10060E-03    114.16        .65170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5626        3.2252        .66419E-03   -1.5330    
  18  Prefactor     .10000E-03    19.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7794        1.4877        .52506E-04   -1.5271    
  21  Prefactor     .10000E-03    28.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1968        .24971        .29689E-03   -.86703    
  23  Prefactor     .82540        .15718        .22351E-03   -.98799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51298e-09
Minuit parameter uncertainties:
  1  1.90065
  2  1.86513
  3  36.583
  4  0.000355789
  5  1.61373
  6  2.6713
  7  10.4121
  8  47.0052
  9  3.0227e-07
  10  0.0166821
  11  15.7857
  12  0.000758496
  13  0.000640416
  14  36.1082
  15  8.3279
  16  0.0165216
  17  3.22531
  18  2.25868e-05
  19  1.17255e-05
  20  1.48768
  21  0.000179395
  22  0.249957
  23  0.157267
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.807e+01  1.579e+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:  8.254e-01  1.573e-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:  1.197e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 2.05e-05

TS (Fixed Index): 3.37
Ra Dec: 119.286 9.949
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/23337/likelihoodResults_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.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) = 6477.41028119
delta logL = 0.0524318952703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6477.40600138
delta logL = 0.0567117023429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.025       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9629       1.0000          .0000       10.000    
     3 'Normalizat'    1.2086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82100       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6477.406     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      303 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.054        16.322        .89504E-04    .23849E-03
   2  Index         1.9642        .54750        .86461E-02    .39377E-04
   3  Normalizat    1.2083        .23991        .29564E-03   -.23399E-03
   4  Prefactor     .82110        .15212        .22401E-03   -.33232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0544
  Index      = 1.96418
  Normalizat = 1.20835
  Prefactor  = 0.821102
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.406     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.054        16.170        .17901E-04   -1.4812    
   2  Index         1.9642        .54201        .34584E-03   -.65249    
   3  Normalizat    1.2083        .23996        .59129E-04   -.86345    
   4  Prefactor     .82110        .15219        .44802E-04   -.98955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00841e-10
Minuit parameter uncertainties:
  1  16.1738
  2  0.543702
  3  0.240181
  4  0.152271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23337': 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) = 6477.40599571
delta logL = 0.0567173728496

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  2.005e+01  1.617e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.964e+00  5.437e-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:  8.211e-01  1.523e-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:  1.208e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 119.286 9.949
Photon Index (Free Index): 1.96 +/- 0.54
Photon Flux (Free Index): 3.83e-08 +/- 4.06e-08
Energy Flux (Free Index): 2.89e-05 +/- 3.02e-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/23337/cmap_HighResolution_394329601_394588801_4FGL_J0757.1+0956_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.99e-03', comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='2.89e-05', photon_flux_error='4.14e-08', dlogl='5.67e-02', energy_flux='2.34e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2021-08-28 20:35:32.219216', photon_index_error2='0.54', photon_index2='1.96', ts='3.37', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='3.02e-05', EG='1.20', time_epoch_completed='1630208132.22', return_code='0', job_id='23337', GAL2='0.82', EG2='1.21', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='4.06e-08', ts2='3.46', photon_index='2.15' WHERE bin_id='598' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:35:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 23337: <4FGL_J0757.1+0956_daily_bin598> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin598> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 20:20:50 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:20:51 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:51 2021
Terminated at Sat Aug 28 20:35:33 2021
Results reported at Sat Aug 28 20:35:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin598 119.286 9.9491 394329601 394588801 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 :                                   747.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

