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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin164
RA = 119.286, Dec = 9.9491
tmin = 281836801, tmax = 282096001
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='20238', job_status='RUN', time_executed='2021-08-28 20:14:26.574905', time_epoch_executed='1630206866.57' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20238/ft1_4FGL_J0757.1+0956_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20238/ft2_4FGL_J0757.1+0956_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20238/ft1_4FGL_J0757.1+0956_daily_bin164.fits outfile=/scratch/kocevski/20238/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin164.fits ra=119.286 dec=9.9491 rad=12.0 tmin=281836801.0 tmax=282096001.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.40
user 3.75
sys 3.57

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20238/ft1_filtered_4FGL_J0757.1+0956_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/20238/ft2_4FGL_J0757.1+0956_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/20238/ltcube_281836801_282096001_4FGL_J0757.1+0956_daily_bin164.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/20238/ft2_4FGL_J0757.1+0956_daily_bin164.fits
.....................!
real 18.76
user 14.13
sys 4.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20238/ft1_filtered_4FGL_J0757.1+0956_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/20238/ft2_4FGL_J0757.1+0956_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/20238/ltcube_281836801_282096001_4FGL_J0757.1+0956_daily_bin164.fits outfile=/scratch/kocevski/20238/expmap_281836801_282096001_4FGL_J0757.1+0956_daily_bin164.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/20238/ltcube_281836801_282096001_4FGL_J0757.1+0956_daily_bin164.fits
.....................!
real 194.49
user 184.74
sys 9.41

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/20238/ft1_filtered_4FGL_J0757.1+0956_daily_bin164.fits scfile=/scratch/kocevski/20238/ft2_4FGL_J0757.1+0956_daily_bin164.fits outfile=/scratch/kocevski/20238/cmap_281836801_282096001_4FGL_J0757.1+0956_daily_bin164.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 4.20
user 0.36
sys 3.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20238/ft1_filtered_4FGL_J0757.1+0956_daily_bin164.fits scfile=/scratch/kocevski/20238/ft2_4FGL_J0757.1+0956_daily_bin164.fits outfile=/scratch/kocevski/20238/cmap_HighResolution_281836801_282096001_4FGL_J0757.1+0956_daily_bin164.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 3.86
user 0.38
sys 3.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1638       1.0000         .10000E-03   10000.    
     2 'norm      '    9.7812       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2617       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5241       1.0000         .10000E-03   10000.    
    10 'norm      '    9.1920       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    33.978       1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.565       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.982       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6414       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.034       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.6080       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89525       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99928       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=   5880.620     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2561 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1636        1.5071        .27841E-06   -.26168E-03
   2  norm          9.7813        2.1214        .22335E-06   -.59821E-03
   3  Prefactor     7.5339        30.230       -.24078E-05   -.19481E-04
   4  Prefactor     .10000E-03    126.48        .10763E-04** at limit **
   5  norm          2.2616        1.5782        .23487E-07   -.14815E-02
   6  norm          .10000E-03    .54531        .57417E-07** at limit **
   7  Prefactor     .10000E-03    6.4814        .15917E-05** at limit **
   8  Prefactor     .10000E-03    25.304       -.79461E-07** at limit **
   9  Prefactor     5.5246        3.5750        .37330E-06   -.49204E-03
  10  norm          9.1886        13.531        .47121E-07   -.10753E-03
  11  Prefactor     .10000E-03    14.350        .34264E-05** at limit **
  12  Prefactor     .10000E-03    56.674       -.16628E-05** at limit **
  13  norm          34.077        103.76        .14864E-03   -.60533E-06
  14  Prefactor     65.579        43.551        .82185E-05   -.24071E-04
  15  norm          .10000E-03    16.229       -.39666E-05** at limit **
  16  norm          20.976        23.617       -.49575E-05   -.28677E-04
  17  norm          2.6418        5.2969       -.37796E-06   -.61841E-03
  18  Prefactor     43.063        41.300        .18670E-04   -.29022E-04
  19  Prefactor     .10000E-03    6.5755       -.21244E-07** at limit **
  20  norm          4.6082        1.6057        .64037E-07   -.26453E-03
  21  Prefactor     .10000E-03    13.687       -.14118E-05** at limit **
  22  Normalizat    .89504        .21753       -.69240E-05   -.16772E-03
  23  Prefactor     .99940        .14200       -.18306E-05   -.27863E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16362
  norm       = 9.78128
  Prefactor  = 7.53393
  Prefactor  = 0.000100002
  norm       = 2.26159
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.52463
  norm       = 9.18864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.0768
  Prefactor  = 65.5791
  norm       = 0.0001
  norm       = 20.9762
  norm       = 2.64175
  Prefactor  = 43.0633
  Prefactor  = 0.0001
  norm       = 4.60815
  Prefactor  = 0.0001
  Normalizat = 0.895039
  Prefactor  = 0.9994
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.620     FROM HESSE     STATUS=OK           366 CALLS     2927 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1636        1.4775        .10307E-03   -1.5492    
   2  norm          9.7813        2.1203        .49654E-04   -1.5082    
   3  Prefactor     7.5339        30.350        .14603E-03   -1.5159    
   4  Prefactor     .10000E-03    129.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2616        1.4664        .72286E-04   -1.5407    
   6  norm          .10000E-03    .54944        .55284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.868        .34829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5246        3.5787        .11059E-03   -1.5238    
  10  norm          9.1886        13.494        .13219E-03   -1.5102    
  11  Prefactor     .10000E-03    14.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    56.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          34.077        103.64        .68746E-04   -1.4540    
  14  Prefactor     65.579        43.587        .49564E-04   -1.4087    
  15  norm          .10000E-03    16.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.976        23.596        .87441E-04   -1.4792    
  17  norm          2.6418        5.2725        .23574E-03   -1.5383    
  18  Prefactor     43.063        41.439        .61111E-04   -1.4395    
  19  Prefactor     .10000E-03    6.5910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.6082        1.6063        .55188E-04   -1.5279    
  21  Prefactor     .10000E-03    13.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89504        .25211        .32115E-03   -.96635    
  23  Prefactor     .99940        .16587        .20635E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23251e-10
Minuit parameter uncertainties:
  1  1.47752
  2  2.12033
  3  30.2695
  4  0.00113393
  5  1.46646
  6  4.00947e-06
  7  0.000383138
  8  4.06125e-05
  9  3.57885
  10  13.4985
  11  9.88881e-06
  12  3.65197e-05
  13  104.195
  14  43.6077
  15  8.98841e-05
  16  23.6065
  17  5.27342
  18  41.4663
  19  7.34256e-06
  20  1.6063
  21  3.22073e-05
  22  0.252442
  23  0.165955
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  9.889e-06  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:  9.994e-01  1.660e-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.950e-01  2.524e-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: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20238/likelihoodResults_281836801_282096001_4FGL_J0757.1+0956_daily_bin164.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) = 5880.6202546
delta logL = -0.000329745448653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5880.61992483
delta logL = 2.16286935029e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1672       1.0000          .0000       10.000    
     3 'Normalizat'    .89502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99942       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=   5880.620     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    359.91        .90712E-02** at limit **
   2  Index         2.1840        7.9632        .50000       -.95976E-05
   3  Normalizat    .89504        .27995E-01    .72577E-01   -.20672E-03
   4  Prefactor     .99940        .19011E-01    .46260E-01   -.55246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.18403
  Normalizat = 0.895041
  Prefactor  = 0.999398
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.620     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1840        6.0900        .50000       -.59825    
   3  Normalizat    .89504        .23472        .32115E-03   -.96635    
   4  Prefactor     .99940        .15976        .20635E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01832e-10
Minuit parameter uncertainties:
  1  0.000405022
  2  4.18379
  3  0.234986
  4  0.159836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20238': 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) = 5880.61992477
delta logL = 7.79091351433e-08

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  4.050e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.184e+00  4.184e+00  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:  9.994e-01  1.598e-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.950e-01  2.350e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/20238/cmap_HighResolution_281836801_282096001_4FGL_J0757.1+0956_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-08-28 20:26:20.150748', job_id='20238', GAL2='1.00', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630207580.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='164' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:26:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 20238: <4FGL_J0757.1+0956_daily_bin164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin164 119.286 9.9491 281836801 282096001 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 :                                   763.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

