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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin131
RA = 119.286, Dec = 9.9491
tmin = 273283201, tmax = 273542401
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='20149', job_status='RUN', time_executed='2021-08-28 20:14:14.340862', time_epoch_executed='1630206854.34' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20149/ft1_4FGL_J0757.1+0956_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20149/ft2_4FGL_J0757.1+0956_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20149/ft1_4FGL_J0757.1+0956_daily_bin131.fits outfile=/scratch/kocevski/20149/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin131.fits ra=119.286 dec=9.9491 rad=12.0 tmin=273283201.0 tmax=273542401.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 2.26
user 1.52
sys 0.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20149/ft1_filtered_4FGL_J0757.1+0956_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/20149/ft2_4FGL_J0757.1+0956_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/20149/ltcube_273283201_273542401_4FGL_J0757.1+0956_daily_bin131.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/20149/ft2_4FGL_J0757.1+0956_daily_bin131.fits
.....................!
real 13.23
user 12.27
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20149/ft1_filtered_4FGL_J0757.1+0956_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/20149/ft2_4FGL_J0757.1+0956_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/20149/ltcube_273283201_273542401_4FGL_J0757.1+0956_daily_bin131.fits outfile=/scratch/kocevski/20149/expmap_273283201_273542401_4FGL_J0757.1+0956_daily_bin131.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/20149/ltcube_273283201_273542401_4FGL_J0757.1+0956_daily_bin131.fits
.....................!
real 192.35
user 185.82
sys 6.19

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/20149/ft1_filtered_4FGL_J0757.1+0956_daily_bin131.fits scfile=/scratch/kocevski/20149/ft2_4FGL_J0757.1+0956_daily_bin131.fits outfile=/scratch/kocevski/20149/cmap_273283201_273542401_4FGL_J0757.1+0956_daily_bin131.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.05
user 0.36
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20149/ft1_filtered_4FGL_J0757.1+0956_daily_bin131.fits scfile=/scratch/kocevski/20149/ft2_4FGL_J0757.1+0956_daily_bin131.fits outfile=/scratch/kocevski/20149/cmap_HighResolution_273283201_273542401_4FGL_J0757.1+0956_daily_bin131.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.05
user 0.38
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2237       1.0000         .10000E-03   10000.    
     3 'Prefactor '    108.75       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.914       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1345       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1953       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7915       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .57240E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4399       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.347       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0425       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67772       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3245       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=   7060.513     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2510 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2084       -.36428E-06** at limit **
   2  norm          6.2242        1.8221        .36784E-07   -.15572E-03
   3  Prefactor     108.76        62.564        .11138E-04    .13701E-04
   4  Prefactor     38.926        42.194        .76746E-05    .10143E-04
   5  norm          6.1330        2.0874        .46579E-07    .15400E-03
   6  norm          2.6342        1.8793       -.35783E-06   -.49844E-03
   7  Prefactor     .10000E-03    18.233       -.15303E-05** at limit **
   8  Prefactor     .10000E-03    97.906        .71589E-05** at limit **
   9  Prefactor     9.1939        3.9842        .41105E-07   -.11997E-03
  10  norm          .10000E-03    5.6097       -.43308E-07** at limit **
  11  Prefactor     9.7911        10.307       -.57028E-06   -.62865E-03
  12  Prefactor     .10000E-03    69.273        .38714E-05** at limit **
  13  norm          .10000E-03    105.40       -.89419E-05** at limit **
  14  Prefactor     .10000E-03    17.748        .14228E-05** at limit **
  15  norm          .10000E-03    4.7871       -.75270E-08** at limit **
  16  norm          .10000E-03    51.295       -.18109E-04** at limit **
  17  norm          4.4398        3.1504        .31629E-07   -.10123E-03
  18  Prefactor     32.337        28.315       -.15704E-05    .14799E-03
  19  Prefactor     .10000E-03    5.5851        .66165E-07** at limit **
  20  norm          1.0423        .97385        .35544E-07   -.35917E-03
  21  Prefactor     .10000E-03    27.872        .20145E-05** at limit **
  22  Normalizat    .67800        .21104        .48466E-06    .30055E-04
  23  Prefactor     1.3242        .14662       -.13128E-05    .25653E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.22423
  Prefactor  = 108.763
  Prefactor  = 38.9258
  norm       = 6.13296
  norm       = 2.63418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19388
  norm       = 0.0001
  Prefactor  = 9.79114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 4.43982
  Prefactor  = 32.3369
  Prefactor  = 0.0001
  norm       = 1.04227
  Prefactor  = 0.0001
  Normalizat = 0.678001
  Prefactor  = 1.32419
 **********
 **   18 **HESSE 
 **********

 FCN=   7060.513     FROM HESSE     STATUS=OK           366 CALLS     2876 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2655        .18068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2242        1.8217        .58658E-04   -1.5209    
   3  Prefactor     108.76        62.553        .19284E-03   -1.3618    
   4  Prefactor     38.926        42.151        .64253E-04   -1.4459    
   5  norm          6.1330        2.0753        .68031E-04   -1.5213    
   6  norm          2.6342        1.8791        .92774E-04   -1.5383    
   7  Prefactor     .10000E-03    18.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    98.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1939        3.9868        .10397E-03   -1.5101    
  10  norm          .10000E-03    5.6127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7911        10.384        .64031E-03   -1.5082    
  12  Prefactor     .10000E-03    69.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    105.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8118        .17954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    51.561        .42178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4398        3.1490        .61060E-03   -1.5287    
  18  Prefactor     32.337        28.273        .70453E-04   -1.4570    
  19  Prefactor     .10000E-03    5.5997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0423        .94990        .76814E-04   -1.5504    
  21  Prefactor     .10000E-03    27.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67800        .22842        .37998E-03   -1.0477    
  23  Prefactor     1.3242        .16004        .19919E-03   -.82590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61203e-10
Minuit parameter uncertainties:
  1  3.91407e-05
  2  1.82176
  3  62.5915
  4  42.183
  5  2.07537
  6  1.8791
  7  2.32408e-05
  8  8.08007e-05
  9  3.98688
  10  3.24376e-06
  11  10.3864
  12  1.63612e-05
  13  5.902e-05
  14  4.05235e-05
  15  3.91242e-06
  16  0.000692058
  17  3.14914
  18  28.2843
  19  6.98144e-06
  20  0.949916
  21  1.90658e-05
  22  0.228739
  23  0.1601
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  9.791e+00  1.039e+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.324e+00  1.601e-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:  6.780e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/20149/likelihoodResults_273283201_273542401_4FGL_J0757.1+0956_daily_bin131.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) = 7060.50883138
delta logL = 0.00431894468693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7060.50731547
delta logL = 0.00583485298739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1760       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2265       1.0000          .0000       10.000    
     3 'Normalizat'    .67591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3250       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=   7060.507     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      251 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1755        11.959        .13231E-03    .17031E-03
   2  Index         2.2266        .73972        .94092E-02    .84217E-04
   3  Normalizat    .67587        .21913        .38053E-03   -.24528E-04
   4  Prefactor     1.3250        .15543        .19914E-03   -.44301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.17555
  Index      = 2.22656
  Normalizat = 0.675874
  Prefactor  = 1.32498
 **********
 **   18 **HESSE 
 **********

 FCN=   7060.507     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1755        11.434        .52923E-05   -1.5102    
   2  Index         2.2266        .70722        .37637E-03   -.58799    
   3  Normalizat    .67587        .21917        .15221E-04   -1.0485    
   4  Prefactor     1.3250        .15549        .79656E-05   -.82567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05532e-10
Minuit parameter uncertainties:
  1  11.4365
  2  0.710676
  3  0.219456
  4  0.155542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20149': 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) = 7060.50731545
delta logL = 0.00583487326003

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  9.176e+00  1.144e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.227e+00  7.107e-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.325e+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:  6.759e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 119.286 9.949
Photon Index (Free Index): 2.23 +/- 0.71
Photon Flux (Free Index): 2.77e-08 +/- 3.38e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/20149/cmap_HighResolution_273283201_273542401_4FGL_J0757.1+0956_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='1.18e-05', photon_flux_error='2.73e-08', dlogl='5.83e-03', energy_flux='1.27e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-08-28 20:26:17.850930', photon_index_error2='0.71', photon_index2='2.23', ts='1.79', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='1.45e-05', EG='0.68', time_epoch_completed='1630207577.85', return_code='0', job_id='20149', GAL2='1.32', EG2='0.68', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.38e-08', ts2='1.81', photon_index='2.15' WHERE bin_id='131' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:26:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 20149: <4FGL_J0757.1+0956_daily_bin131> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin131> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 20:10:48 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:10: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:10:51 2021
Terminated at Sat Aug 28 20:26:20 2021
Results reported at Sat Aug 28 20:26:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin131 119.286 9.9491 273283201 273542401 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 :                                   730.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            932 sec.

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

