/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 182 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0757.1+0956_daily_bin357
RA = 119.286, Dec = 9.9491
tmin = 331862401, tmax = 332121601
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='21715', job_status='RUN', time_executed='2021-08-28 20:18:52.914037', time_epoch_executed='1630207132.91' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21715/ft1_4FGL_J0757.1+0956_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21715/ft2_4FGL_J0757.1+0956_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21715/ft1_4FGL_J0757.1+0956_daily_bin357.fits outfile=/scratch/kocevski/21715/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin357.fits ra=119.286 dec=9.9491 rad=12.0 tmin=331862401.0 tmax=332121601.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 4.70
user 4.20
sys 0.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21715/ft2_4FGL_J0757.1+0956_daily_bin357.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/21715/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin357.fits evtable="EVENTS" outfile="/scratch/kocevski/21715/ft1_filtered_4FGL_J0757.1+0956_daily_bin357.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.73
user 0.33
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21715/ft1_filtered_4FGL_J0757.1+0956_daily_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/21715/ft2_4FGL_J0757.1+0956_daily_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/21715/ltcube_331862401_332121601_4FGL_J0757.1+0956_daily_bin357.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/21715/ft2_4FGL_J0757.1+0956_daily_bin357.fits
.....................!
real 11.93
user 11.37
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21715/ft1_filtered_4FGL_J0757.1+0956_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/21715/ft2_4FGL_J0757.1+0956_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/21715/ltcube_331862401_332121601_4FGL_J0757.1+0956_daily_bin357.fits outfile=/scratch/kocevski/21715/expmap_331862401_332121601_4FGL_J0757.1+0956_daily_bin357.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/21715/ltcube_331862401_332121601_4FGL_J0757.1+0956_daily_bin357.fits
.....................!
real 189.80
user 185.05
sys 4.43

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/21715/ft1_filtered_4FGL_J0757.1+0956_daily_bin357.fits scfile=/scratch/kocevski/21715/ft2_4FGL_J0757.1+0956_daily_bin357.fits outfile=/scratch/kocevski/21715/cmap_331862401_332121601_4FGL_J0757.1+0956_daily_bin357.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.78
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21715/ft1_filtered_4FGL_J0757.1+0956_daily_bin357.fits scfile=/scratch/kocevski/21715/ft2_4FGL_J0757.1+0956_daily_bin357.fits outfile=/scratch/kocevski/21715/cmap_HighResolution_331862401_332121601_4FGL_J0757.1+0956_daily_bin357.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.83
user 0.39
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3582       1.0000         .10000E-03   10000.    
     2 'norm      '    .70475       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.286       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2764       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8343       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15723E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14493E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.6392       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    151.79       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.663       1.0000         .10000E-03   10000.    
    15 'norm      '    .33894       1.0000         .10000E-03   10000.    
    16 'norm      '    11.694       1.0000         .10000E-03   10000.    
    17 'norm      '    13.328       1.0000         .10000E-03   10000.    
    18 'Prefactor '    157.21       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.773       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82919       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1934       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=   6835.472     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     3299 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3566        2.8678       -.96782E-06    .30547E-03
   2  norm          .70527        1.5522       -.78318E-06    .42024E-03
   3  Prefactor     .10000E-03    30.230       -.59992E-07** at limit **
   4  Prefactor     15.280        49.782        .15076E-05    .14599E-03
   5  norm          3.2756        2.0556        .44546E-06    .93470E-03
   6  norm          5.8345        2.4904       -.59799E-07    .36644E-03
   7  Prefactor     .10001E-03    10.992       -.37189E-05** at limit **
   8  Prefactor     66.650        58.638        .19515E-05    .41259E-03
   9  Prefactor     .10000E-03    1.4558       -.81059E-07** at limit **
  10  norm          6.6411        18.766       -.30081E-06    .93318E-04
  11  Prefactor     .10000E-03    12.124        .95120E-07** at limit **
  12  Prefactor     .10000E-03    44.410        .57199E-06** at limit **
  13  norm          151.79        114.92       -.96111E-06   -.54146E-04
  14  Prefactor     23.664        47.921        .10590E-05   -.18021E-04
  15  norm          .36566        87.639       -.16432E-04    .90634E-04
  16  norm          11.691        32.187       -.32641E-05    .10885E-03
  17  norm          13.327        5.5029        .68722E-07    .47079E-04
  18  Prefactor     157.19        61.107        .10525E-05    .56599E-03
  19  Prefactor     .10000E-03    14.745        .12489E-06** at limit **
  20  norm          .10000E-03    .41260       -.10633E-06** at limit **
  21  Prefactor     43.770        39.277       -.13130E-06    .67626E-04
  22  Normalizat    .82923        .23934        .29555E-06    .49812E-03
  23  Prefactor     1.1933        .15802        .12845E-05    .35065E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35656
  norm       = 0.705272
  Prefactor  = 0.0001
  Prefactor  = 15.2797
  norm       = 3.27562
  norm       = 5.83453
  Prefactor  = 0.000100014
  Prefactor  = 66.6495
  Prefactor  = 0.0001
  norm       = 6.64112
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 151.793
  Prefactor  = 23.6642
  norm       = 0.365659
  norm       = 11.6909
  norm       = 13.3273
  Prefactor  = 157.193
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.7698
  Normalizat = 0.829231
  Prefactor  = 1.19335
 **********
 **   18 **HESSE 
 **********

 FCN=   6835.472     FROM HESSE     STATUS=OK           380 CALLS     3679 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3566        2.8605        .17900E-03   -1.5475    
   2  norm          .70527        1.5503        .14203E-03   -1.5540    
   3  Prefactor     .10000E-03    30.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.280        49.574        .10244E-03   -1.4926    
   5  norm          3.2756        2.8539        .89692E-04   -1.5346    
   6  norm          5.8345        2.4899        .80490E-04   -1.5225    
   7  Prefactor     .10001E-03    26.425        .64175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     66.650        60.803        .49155E-04   -1.4073    
   9  Prefactor     .10000E-03    7.3677        .19087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.6411        18.686        .15574E-03   -1.5193    
  11  Prefactor     .10000E-03    12.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          151.79        115.04        .16358E-03   -1.3238    
  14  Prefactor     23.664        47.630        .82345E-04   -1.4735    
  15  norm          .36566        88.317        .44303E-02   -1.5587    
  16  norm          11.691        31.976        .58574E-03   -1.5024    
  17  norm          13.327        5.4949        .10972E-03   -1.4978    
  18  Prefactor     157.19        61.760        .16078E-03   -1.3194    
  19  Prefactor     .10000E-03    14.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .59252        .10299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.770        39.362        .60595E-04   -1.4384    
  22  Normalizat    .82923        .26270        .36888E-03   -.98993    
  23  Prefactor     1.1933        .17410        .20705E-03   -.86536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32902e-09
Minuit parameter uncertainties:
  1  2.86082
  2  1.55039
  3  5.70769e-05
  4  49.708
  5  2.85399
  6  2.48996
  7  0.00122043
  8  60.8601
  9  9.35959e-06
  10  18.7024
  11  3.34056e-05
  12  0.000498484
  13  115.206
  14  47.7068
  15  11.381
  16  32.0232
  17  5.49515
  18  61.7853
  19  6.45824e-05
  20  3.58755e-06
  21  39.3857
  22  0.263106
  23  0.17418
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.341e-05  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.193e+00  1.742e-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.292e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/21715/likelihoodResults_331862401_332121601_4FGL_J0757.1+0956_daily_bin357.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6835.47257162
delta logL = -0.000391732276512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6835.47218032
delta logL = -4.33305103797e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1576       1.0000          .0000       10.000    
     3 'Normalizat'    .82902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1935       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=   6835.472     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.249        .90712E-02** at limit **
   2  Index         2.1642        5.6514        .50000       -.40680E-05
   3  Normalizat    .82922        .56310E-02    .83307E-01    .29353E-04
   4  Prefactor     1.1933        .37383E-02    .34787E-01    .46606E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16416
  Normalizat = 0.829224
  Prefactor  = 1.19335
 **********
 **   18 **HESSE 
 **********

 FCN=   6835.472     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      235 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1642        8.9033        .50000       -.60306    
   3  Normalizat    .82922        .14159E-01    .36887E-03   -.98994    
   4  Prefactor     1.1933        .94226E-02    .20705E-03   -.86536    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95437e-08
Minuit parameter uncertainties:
  1  6.80039e-05
  2  198.487
  3  0.0141595
  4  0.00942266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21715': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6835.47217987
delta logL = 1.5501427697e-08

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  6.800e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.164e+00  1.985e+02  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.193e+00  9.423e-03  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.292e-01  1.416e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 119.286 9.949

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/21715/cmap_HighResolution_331862401_332121601_4FGL_J0757.1+0956_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.51e-08', time_completed='2021-08-28 20:31:31.820718', job_id='21715', GAL2='1.19', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630207891.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='357' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:31:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 21715: <4FGL_J0757.1+0956_daily_bin357> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin357> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 20:15:30 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:15:31 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:15:31 2021
Terminated at Sat Aug 28 20:31:32 2021
Results reported at Sat Aug 28 20:31:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin357 119.286 9.9491 331862401 332121601 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 :                                   758.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            962 sec.

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

