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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin247
RA = 119.286, Dec = 9.9491
tmin = 303350401, tmax = 303609601
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='21578', job_status='RUN', time_executed='2021-08-28 20:18:50.400164', time_epoch_executed='1630207130.4' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21578

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21578/ft1_4FGL_J0757.1+0956_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21578/ft2_4FGL_J0757.1+0956_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21578/ft1_4FGL_J0757.1+0956_daily_bin247.fits outfile=/scratch/kocevski/21578/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin247.fits ra=119.286 dec=9.9491 rad=12.0 tmin=303350401.0 tmax=303609601.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.23
user 3.16
sys 0.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21578/ft2_4FGL_J0757.1+0956_daily_bin247.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/21578/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin247.fits evtable="EVENTS" outfile="/scratch/kocevski/21578/ft1_filtered_4FGL_J0757.1+0956_daily_bin247.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.84
user 0.29
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21578/ft1_filtered_4FGL_J0757.1+0956_daily_bin247.fits" evtable="EVENTS" scfile=/scratch/kocevski/21578/ft2_4FGL_J0757.1+0956_daily_bin247.fits sctable="SC_DATA" outfile=/scratch/kocevski/21578/ltcube_303350401_303609601_4FGL_J0757.1+0956_daily_bin247.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/21578/ft2_4FGL_J0757.1+0956_daily_bin247.fits
.....................!
real 12.17
user 11.43
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21578/ft1_filtered_4FGL_J0757.1+0956_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/21578/ft2_4FGL_J0757.1+0956_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/21578/ltcube_303350401_303609601_4FGL_J0757.1+0956_daily_bin247.fits outfile=/scratch/kocevski/21578/expmap_303350401_303609601_4FGL_J0757.1+0956_daily_bin247.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/21578/ltcube_303350401_303609601_4FGL_J0757.1+0956_daily_bin247.fits
.....................!
real 191.75
user 185.73
sys 5.67

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/21578/ft1_filtered_4FGL_J0757.1+0956_daily_bin247.fits scfile=/scratch/kocevski/21578/ft2_4FGL_J0757.1+0956_daily_bin247.fits outfile=/scratch/kocevski/21578/cmap_303350401_303609601_4FGL_J0757.1+0956_daily_bin247.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.87
user 0.36
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21578/ft1_filtered_4FGL_J0757.1+0956_daily_bin247.fits scfile=/scratch/kocevski/21578/ft2_4FGL_J0757.1+0956_daily_bin247.fits outfile=/scratch/kocevski/21578/cmap_HighResolution_303350401_303609601_4FGL_J0757.1+0956_daily_bin247.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.88
user 0.36
sys 0.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0277       1.0000         .10000E-03   10000.    
     2 'norm      '    16.489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31573E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6599       1.0000         .10000E-03   10000.    
     6 'norm      '    5.4829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.683       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17922E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10750E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.706       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    65.010       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.451       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56750E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5078       1.0000         .10000E-03   10000.    
    21 'Prefactor '    118.06       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85376       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0554       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=   8517.453     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     3018 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0277        1.8208        .11129E-03    .63337E-05
   2  norm          16.489        2.4307        .52646E-04   -.10106E-03
   3  Prefactor     1.5640        80.490        .34130E-03   -.61357E-04
   4  Prefactor     .10000E-03    213.23        .85217E-02** at limit **
   5  norm          4.6592        1.9582        .80092E-04   -.10379E-02
   6  norm          5.4825        1.8708        .70398E-04   -.18862E-03
   7  Prefactor     .10000E-03    20.647        .36285E-03** at limit **
   8  Prefactor     31.680        44.137        .71186E-04   -.68162E-04
   9  Prefactor     .10000E-03    5.4850        .21574E-02** at limit **
  10  norm          .10001E-03    38.169        .18142E-02** at limit **
  11  Prefactor     26.719        16.509        .77520E-04    .11455E-02
  12  Prefactor     .10000E-03    225.60        .18142E-02** at limit **
  13  norm          65.000        71.129        .49774E-04   -.69710E-04
  14  Prefactor     .10000E-03    10.255        .18142E-02** at limit **
  15  norm          18.447        12.961        .93242E-04   -.50331E-03
  16  norm          .10000E-03    4.3996        .18142E-02** at limit **
  17  norm          .10000E-03    6.5865        .27730E-02** at limit **
  18  Prefactor     .10000E-03    20.661        .18142E-02** at limit **
  19  Prefactor     .10002E-03    11.410        .83722E-01** at limit **
  20  norm          3.5072        1.2309        .58038E-04   -.25386E-03
  21  Prefactor     118.04        52.171        .37033E-04   -.17854E-03
  22  Normalizat    .85441        .23045        .35867E-03   -.21110E-04
  23  Prefactor     1.0551        .14628        .21598E-03   -.48577E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02767
  norm       = 16.4895
  Prefactor  = 1.564
  Prefactor  = 0.000100004
  norm       = 4.65921
  norm       = 5.48254
  Prefactor  = 0.0001
  Prefactor  = 31.6797
  Prefactor  = 0.000100002
  norm       = 0.000100007
  Prefactor  = 26.7186
  Prefactor  = 0.0001
  norm       = 65.0001
  Prefactor  = 0.0001
  norm       = 18.4466
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 3.50722
  Prefactor  = 118.044
  Normalizat = 0.854407
  Prefactor  = 1.05508
 **********
 **   18 **HESSE 
 **********

 FCN=   8517.453     FROM HESSE     STATUS=OK           356 CALLS     3374 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0277        1.8202        .44515E-05   -1.5423    
   2  norm          16.489        2.4306        .10529E-04   -1.4896    
   3  Prefactor     1.5640        80.440        .13652E-04   -1.5458    
   4  Prefactor     .10000E-03    222.56        .34087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6592        1.9581        .32037E-05   -1.5276    
   6  norm          5.4825        1.8705        .28159E-05   -1.5240    
   7  Prefactor     .10000E-03    20.647        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.680        44.134        .14237E-04   -1.4582    
   9  Prefactor     .10000E-03    5.5064        .43148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    38.182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.719        16.505        .15504E-04   -1.4674    
  12  Prefactor     .10000E-03    225.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          65.000        71.131        .99548E-05   -1.4094    
  14  Prefactor     .10000E-03    10.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.447        12.959        .37297E-05   -1.4849    
  16  norm          .10000E-03    4.3997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6412        .55460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    10.891        .86536E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5072        1.2309        .23215E-05   -1.5333    
  21  Prefactor     118.04        52.169        .74067E-05   -1.3531    
  22  Normalizat    .85441        .23054        .14347E-04   -.98081    
  23  Prefactor     1.0551        .14633        .43196E-04   -.90915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81021e-09
Minuit parameter uncertainties:
  1  1.82023
  2  2.43062
  3  22.464
  4  0.00184673
  5  1.95817
  6  1.87053
  7  0.00011629
  8  44.179
  9  0.000231815
  10  0.0010129
  11  16.5078
  12  0.000670668
  13  71.2242
  14  2.96119e-05
  15  12.9611
  16  5.20756e-06
  17  0.000105205
  18  4.13962e-06
  19  0.000999172
  20  1.23088
  21  52.1892
  22  0.230801
  23  0.146384
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  2.672e+01  1.651e+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.055e+00  1.464e-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.544e-01  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.01e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 2.14e-05

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) = 8516.37040411
delta logL = 1.08220617279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8516.35846804
delta logL = 1.09414224134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.480       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9243       1.0000          .0000       10.000    
     3 'Normalizat'    .75147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0988       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8516.358     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      300 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.473        23.689        .59119E-03   -.26165E-03
   2  Index         2.9245        1.0480        .37463E-02   -.59140E-04
   3  Normalizat    .75145        .23159        .38040E-03   -.22056E-04
   4  Prefactor     1.0988        .14810        .21224E-03    .29568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4727
  Index      = 2.92454
  Normalizat = 0.751454
  Prefactor  = 1.0988
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.358     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.473        13.265        .23647E-04   -1.5030    
   2  Index         2.9245        .58914        .14985E-03   -.42804    
   3  Normalizat    .75145        .22664        .15216E-04   -1.0190    
   4  Prefactor     1.0988        .14499        .84896E-05   -.89505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66152e-11
Minuit parameter uncertainties:
  1  13.2687
  2  0.590801
  3  0.226924
  4  0.145047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21578': 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) = 8516.35846784
delta logL = 1.09414243708

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.147e+01  1.327e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.925e+00  5.908e-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.099e+00  1.450e-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:  7.515e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.97
Ra Dec: 119.286 9.949
Photon Index (Free Index): 2.92 +/- 0.59
Photon Flux (Free Index): 1.41e-07 +/- 7.22e-08
Energy Flux (Free Index): 2.92e-05 +/- 1.42e-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/21578/cmap_HighResolution_303350401_303609601_4FGL_J0757.1+0956_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.01e-08', energy_flux2='2.92e-05', photon_flux_error='4.33e-08', dlogl='1.09e+00', energy_flux='3.47e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-08-28 20:31:50.600263', photon_index_error2='0.59', photon_index2='2.92', ts='4.35', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.85', time_epoch_completed='1630207910.6', return_code='0', job_id='21578', GAL2='1.10', EG2='0.75', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='7.22e-08', ts2='6.97', photon_index='2.15' WHERE bin_id='247' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 21578: <4FGL_J0757.1+0956_daily_bin247> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin247 119.286 9.9491 303350401 303609601 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 :                                   778.10 sec.
    Max Memory :                                 1211 MB
    Average Memory :                             252.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

