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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin177
RA = 119.286, Dec = 9.9491
tmin = 285206401, tmax = 285465601
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='20272', job_status='RUN', time_executed='2021-08-28 20:14:02.345207', time_epoch_executed='1630206842.35' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20272

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20272/ft1_4FGL_J0757.1+0956_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20272/ft2_4FGL_J0757.1+0956_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20272/ft1_4FGL_J0757.1+0956_daily_bin177.fits outfile=/scratch/kocevski/20272/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin177.fits ra=119.286 dec=9.9491 rad=12.0 tmin=285206401.0 tmax=285465601.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.27
user 3.33
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20272/ft2_4FGL_J0757.1+0956_daily_bin177.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/20272/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin177.fits evtable="EVENTS" outfile="/scratch/kocevski/20272/ft1_filtered_4FGL_J0757.1+0956_daily_bin177.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.26
user 0.32
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20272/ft1_filtered_4FGL_J0757.1+0956_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/20272/ft2_4FGL_J0757.1+0956_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/20272/ltcube_285206401_285465601_4FGL_J0757.1+0956_daily_bin177.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/20272/ft2_4FGL_J0757.1+0956_daily_bin177.fits
.....................!
real 12.85
user 11.69
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20272/ft1_filtered_4FGL_J0757.1+0956_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/20272/ft2_4FGL_J0757.1+0956_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/20272/ltcube_285206401_285465601_4FGL_J0757.1+0956_daily_bin177.fits outfile=/scratch/kocevski/20272/expmap_285206401_285465601_4FGL_J0757.1+0956_daily_bin177.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/20272/ltcube_285206401_285465601_4FGL_J0757.1+0956_daily_bin177.fits
.....................!
real 190.65
user 184.73
sys 5.50

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/20272/ft1_filtered_4FGL_J0757.1+0956_daily_bin177.fits scfile=/scratch/kocevski/20272/ft2_4FGL_J0757.1+0956_daily_bin177.fits outfile=/scratch/kocevski/20272/cmap_285206401_285465601_4FGL_J0757.1+0956_daily_bin177.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.22
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20272/ft1_filtered_4FGL_J0757.1+0956_daily_bin177.fits scfile=/scratch/kocevski/20272/ft2_4FGL_J0757.1+0956_daily_bin177.fits outfile=/scratch/kocevski/20272/cmap_HighResolution_285206401_285465601_4FGL_J0757.1+0956_daily_bin177.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.22
user 0.39
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3296       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7546       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29749E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0907       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1827       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.187       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11957E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    61.064       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.669       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8766       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2576       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19146       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0171       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97252       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=   6120.622     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2658 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3303        1.9182       -.12671E-06   -.84954E-03
   2  norm          2.7548        1.6112        .35041E-07   -.25583E-03
   3  Prefactor     .10000E-03    119.57       -.99723E-07** at limit **
   4  Prefactor     .10000E-03    15.329        .14216E-07** at limit **
   5  norm          2.0910        1.8983       -.21814E-06   -.28918E-03
   6  norm          1.1830        1.8358       -.45020E-07   -.81605E-03
   7  Prefactor     28.191        17.703        .49733E-06   -.39637E-04
   8  Prefactor     20.061        66.098        .96514E-05   -.46999E-05
   9  Prefactor     .10000E-03    2.1114        .77515E-08** at limit **
  10  norm          .10000E-03    27.076        .11903E-07** at limit **
  11  Prefactor     15.118        13.923        .24401E-06   -.31930E-04
  12  Prefactor     .10000E-03    84.681        .49968E-08** at limit **
  13  norm          61.070        95.695        .82777E-05   -.11236E-05
  14  Prefactor     .10000E-03    13.249       -.14611E-08** at limit **
  15  norm          .10000E-03    3.0550        .37885E-08** at limit **
  16  norm          .10000E-03    6.7158       -.89508E-07** at limit **
  17  norm          .10000E-03    2.5865        .13752E-07** at limit **
  18  Prefactor     68.672        44.855        .64521E-05   -.11686E-04
  19  Prefactor     7.8744        16.456        .10629E-05   -.52172E-04
  20  norm          2.2576        1.1916       -.72434E-08   -.19269E-03
  21  Prefactor     .37729        30.487       -.69573E-06   -.22958E-04
  22  Normalizat    1.0170        .22349       -.30519E-05    .74498E-04
  23  Prefactor     .97254        .13514        .43506E-06   -.10448E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33031
  norm       = 2.75477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09103
  norm       = 1.18303
  Prefactor  = 28.1911
  Prefactor  = 20.061
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1177
  Prefactor  = 0.0001
  norm       = 61.0702
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 68.6725
  Prefactor  = 7.87444
  norm       = 2.25758
  Prefactor  = 0.377291
  Normalizat = 1.017
  Prefactor  = 0.972543
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.622     FROM HESSE     STATUS=OK           376 CALLS     3034 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3303        1.9217        .12321E-03   -1.5477    
   2  norm          2.7548        1.6073        .72024E-04   -1.5376    
   3  Prefactor     .10000E-03    123.35        .39675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0910        1.8871        .89401E-04   -1.5419    
   6  norm          1.1830        1.8141        .12446E-03   -1.5490    
   7  Prefactor     28.191        17.624        .75460E-04   -1.4646    
   8  Prefactor     20.061        65.654        .89374E-04   -1.4812    
   9  Prefactor     .10000E-03    2.1441        .11087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    27.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.118        13.878        .10303E-03   -1.4930    
  12  Prefactor     .10000E-03    84.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          61.070        95.399        .51347E-04   -1.4143    
  14  Prefactor     .10000E-03    13.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0575        .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.7211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6822        .24564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     68.672        44.426        .48438E-04   -1.4049    
  19  Prefactor     7.8744        16.454        .14287E-03   -1.5147    
  20  norm          2.2576        1.1915        .59736E-04   -1.5407    
  21  Prefactor     .37729        33.052        .13303       -1.5585    
  22  Normalizat    1.0170        .25702        .30981E-03   -.92463    
  23  Prefactor     .97254        .15760        .20404E-03   -.93650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30652e-10
Minuit parameter uncertainties:
  1  1.92178
  2  1.60735
  3  0.000178978
  4  1.59367e-05
  5  1.88717
  6  1.81416
  7  17.6276
  8  65.8918
  9  9.74419e-07
  10  2.30675e-05
  11  13.8813
  12  5.17032e-06
  13  95.6395
  14  9.65345e-06
  15  1.55789e-06
  16  1.2226e-05
  17  3.06054e-06
  18  44.4471
  19  16.4633
  20  1.19152
  21  7.06575
  22  0.257336
  23  0.157673
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.512e+01  1.388e+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:  9.725e-01  1.577e-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.017e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.80e-05

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

Saving results to:
/scratch/kocevski/20272/likelihoodResults_285206401_285465601_4FGL_J0757.1+0956_daily_bin177.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) = 6120.62172623
delta logL = 0.000620841762611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6120.62156814
delta logL = 0.000778938620897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.345       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1236       1.0000          .0000       10.000    
     3 'Normalizat'    1.0188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97184       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=   6120.622     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      275 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.350        15.547        .10225E-03    .81169E-04
   2  Index         2.1235        .69836        .94063E-02    .25743E-03
   3  Normalizat    1.0186        .23707        .30960E-03    .74066E-04
   4  Prefactor     .97197        .15133        .20409E-03   -.12912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3499
  Index      = 2.12347
  Normalizat = 1.01858
  Prefactor  = 0.97197
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.622     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.350        15.224        .40898E-05   -1.4924    
   2  Index         2.1235        .68315        .18813E-02   -.61298    
   3  Normalizat    1.0186        .23703        .12384E-04   -.92411    
   4  Prefactor     .97197        .15137        .40818E-04   -.93670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60923e-10
Minuit parameter uncertainties:
  1  15.2279
  2  0.686365
  3  0.237271
  4  0.151437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20272': 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) = 6120.62156769
delta logL = 0.000779384342422

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.535e+01  1.523e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.123e+00  6.864e-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:  9.720e-01  1.514e-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.019e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 119.286 9.949
Photon Index (Free Index): 2.12 +/- 0.69
Photon Flux (Free Index): 3.84e-08 +/- 4.78e-08
Energy Flux (Free Index): 2.01e-05 +/- 2.19e-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/20272/cmap_HighResolution_285206401_285465601_4FGL_J0757.1+0956_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='2.01e-05', photon_flux_error='3.64e-08', dlogl='7.79e-04', energy_flux='1.96e-05', photon_flux2='3.84e-08', job_status='DONE', time_completed='2021-08-28 20:25:25.360236', photon_index_error2='0.69', photon_index2='2.12', ts='2.07', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='2.19e-05', EG='1.02', time_epoch_completed='1630207525.36', return_code='0', job_id='20272', GAL2='0.97', EG2='1.02', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='4.78e-08', ts2='2.07', photon_index='2.15' WHERE bin_id='177' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:25:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 20272: <4FGL_J0757.1+0956_daily_bin177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin177 119.286 9.9491 285206401 285465601 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

