/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 71 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0757.1+0956_daily_bin64
RA = 119.286, Dec = 9.9491
tmin = 255916801, tmax = 256176001
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='19992', job_status='RUN', time_executed='2021-08-28 20:13:20.242813', time_epoch_executed='1630206800.24' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19992/ft1_4FGL_J0757.1+0956_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19992/ft2_4FGL_J0757.1+0956_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19992/ft1_4FGL_J0757.1+0956_daily_bin64.fits outfile=/scratch/kocevski/19992/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin64.fits ra=119.286 dec=9.9491 rad=12.0 tmin=255916801.0 tmax=256176001.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 5.48
user 1.27
sys 4.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19992/ft1_filtered_4FGL_J0757.1+0956_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/19992/ft2_4FGL_J0757.1+0956_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/19992/ltcube_255916801_256176001_4FGL_J0757.1+0956_daily_bin64.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/19992/ft2_4FGL_J0757.1+0956_daily_bin64.fits
.....................!
real 16.81
user 11.99
sys 4.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19992/ft1_filtered_4FGL_J0757.1+0956_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/19992/ft2_4FGL_J0757.1+0956_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/19992/ltcube_255916801_256176001_4FGL_J0757.1+0956_daily_bin64.fits outfile=/scratch/kocevski/19992/expmap_255916801_256176001_4FGL_J0757.1+0956_daily_bin64.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/19992/ltcube_255916801_256176001_4FGL_J0757.1+0956_daily_bin64.fits
.....................!
real 195.82
user 186.20
sys 9.17

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/19992/ft1_filtered_4FGL_J0757.1+0956_daily_bin64.fits scfile=/scratch/kocevski/19992/ft2_4FGL_J0757.1+0956_daily_bin64.fits outfile=/scratch/kocevski/19992/cmap_255916801_256176001_4FGL_J0757.1+0956_daily_bin64.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.44
user 0.37
sys 4.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19992/ft1_filtered_4FGL_J0757.1+0956_daily_bin64.fits scfile=/scratch/kocevski/19992/ft2_4FGL_J0757.1+0956_daily_bin64.fits outfile=/scratch/kocevski/19992/cmap_HighResolution_255916801_256176001_4FGL_J0757.1+0956_daily_bin64.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 4.42
user 0.37
sys 4.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2155       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.666       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    82.730       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3966       1.0000         .10000E-03   10000.    
    10 'norm      '    7.2277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.483       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.288       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9203       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8817       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5521       1.0000         .10000E-03   10000.    
    21 'Prefactor '    130.44       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1696       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83447       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=   9423.808     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2524 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2152        1.5217        .65020E-07    .44735E-05
   2  norm          2.0671        1.1573        .58891E-07   -.46124E-04
   3  Prefactor     11.422        25.316       -.76027E-06   -.11703E-03
   4  Prefactor     20.668        28.746        .27786E-06    .85126E-05
   5  norm          .10000E-03    .41196        .60219E-07** at limit **
   6  norm          1.4685        1.2771        .98927E-07    .62366E-05
   7  Prefactor     .10000E-03    7.2504        .47015E-06** at limit **
   8  Prefactor     82.744        36.843        .56351E-06    .18184E-03
   9  Prefactor     1.3970        2.0910        .42202E-06    .27975E-04
  10  norm          7.2278        9.5011        .43070E-07   -.93099E-06
  11  Prefactor     12.484        9.1836        .92521E-07   -.16006E-04
  12  Prefactor     .10000E-03    32.849        .58672E-07** at limit **
  13  norm          .10000E-03    23.190       -.21243E-07** at limit **
  14  Prefactor     22.292        21.457        .27425E-06    .32636E-04
  15  norm          8.9212        8.6868        .20909E-05   -.25488E-04
  16  norm          .10000E-03    5.9142        .49245E-07** at limit **
  17  norm          .10000E-03    .93093       -.34127E-07** at limit **
  18  Prefactor     .10000E-03    6.9569       -.68337E-08** at limit **
  19  Prefactor     9.8879        13.545        .51933E-06   -.94459E-05
  20  norm          1.5523        .82276        .51606E-07   -.37408E-04
  21  Prefactor     130.45        43.690        .52305E-06    .15567E-03
  22  Normalizat    1.1692        .17380       -.19941E-05    .48240E-04
  23  Prefactor     .83470        .10702        .81481E-06   -.17181E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.21522
  norm       = 2.06708
  Prefactor  = 11.4218
  Prefactor  = 20.6678
  norm       = 0.0001
  norm       = 1.4685
  Prefactor  = 0.0001
  Prefactor  = 82.7438
  Prefactor  = 1.39704
  norm       = 7.22778
  Prefactor  = 12.4843
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.2918
  norm       = 8.92119
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.88786
  norm       = 1.55229
  Prefactor  = 130.454
  Normalizat = 1.16923
  Prefactor  = 0.834703
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.808     FROM HESSE     STATUS=OK           374 CALLS     2898 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2152        1.5143        .93550E-04   -1.5410    
   2  norm          2.0671        1.1544        .74289E-04   -1.5420    
   3  Prefactor     11.422        25.438        .11847E-03   -1.5032    
   4  Prefactor     20.668        28.687        .88108E-04   -1.4798    
   5  norm          .10000E-03    .42172        .12158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4685        1.2615        .97456E-04   -1.5466    
   7  Prefactor     .10000E-03    7.4625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     82.744        36.958        .44161E-04   -1.3886    
   9  Prefactor     1.3970        2.0651        .16342E-03   -1.5472    
  10  norm          7.2278        9.4957        .14920E-03   -1.5170    
  11  Prefactor     12.484        9.1834        .11338E-03   -1.5001    
  12  Prefactor     .10000E-03    32.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.292        21.494        .84843E-04   -1.4763    
  15  norm          8.9212        8.7721        .67100E-03   -1.5111    
  16  norm          .10000E-03    5.9233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .93989        .91456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8879        13.591        .12747E-03   -1.5079    
  20  norm          1.5523        .82015        .61569E-04   -1.5459    
  21  Prefactor     130.45        43.828        .17627E-03   -1.3419    
  22  Normalizat    1.1692        .19200        .27971E-03   -.87559    
  23  Prefactor     .83470        .11968        .21356E-03   -.98462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33771e-10
Minuit parameter uncertainties:
  1  1.51434
  2  1.15444
  3  25.462
  4  28.7056
  5  7.07146e-08
  6  1.26154
  7  3.34825e-06
  8  36.9687
  9  2.06523
  10  9.49772
  11  9.18447
  12  4.00742e-05
  13  1.40064e-05
  14  21.5014
  15  8.77332
  16  7.96935e-07
  17  1.49129e-06
  18  1.67046e-08
  19  13.5948
  20  0.820159
  21  43.839
  22  0.192111
  23  0.119719
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.248e+01  9.184e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.347e-01  1.197e-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.169e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.28e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.19e-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) = 9423.80714922
delta logL = 0.00129780704992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9423.8062569
delta logL = 0.00219013290734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.043       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1970       1.0000          .0000       10.000    
     3 'Normalizat'    1.1671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83554       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=   9423.806     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      249 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.040        11.649        .11543E-03   -.21706E-03
   2  Index         2.1971        .74980        .74438E-02   -.92644E-04
   3  Normalizat    1.1671        .17885        .27994E-03   -.53200E-03
   4  Prefactor     .83554        .11592        .21347E-03   -.72509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0397
  Index      = 2.1971
  Normalizat = 1.1671
  Prefactor  = 0.835536
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.806     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.040        11.030        .46174E-05   -1.5014    
   2  Index         2.1971        .70936        .29775E-03   -.59509    
   3  Normalizat    1.1671        .17854        .55987E-04   -.87626    
   4  Prefactor     .83554        .11588        .42694E-04   -.98431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25211e-10
Minuit parameter uncertainties:
  1  11.0319
  2  0.712874
  3  0.178638
  4  0.115911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19992': 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) = 9423.80625683
delta logL = 0.00219020457007

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.204e+01  1.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.197e+00  7.129e-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:  8.355e-01  1.159e-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.167e+00  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 119.286 9.949
Photon Index (Free Index): 2.20 +/- 0.71
Photon Flux (Free Index): 3.44e-08 +/- 3.44e-08
Energy Flux (Free Index): 1.55e-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/19992/cmap_HighResolution_255916801_256176001_4FGL_J0757.1+0956_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.28e-08', energy_flux2='1.55e-05', photon_flux_error='2.41e-08', dlogl='2.19e-03', energy_flux='1.62e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2021-08-28 20:26:45.023706', photon_index_error2='0.71', photon_index2='2.20', ts='4.20', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.17', time_epoch_completed='1630207605.02', return_code='0', job_id='19992', GAL2='0.84', EG2='1.17', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.44e-08', ts2='4.21', photon_index='2.15' WHERE bin_id='64' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:26:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 19992: <4FGL_J0757.1+0956_daily_bin64> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin64 119.286 9.9491 255916801 256176001 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 :                                   864.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

