/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 184 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 = 7367
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0757.1+0956_daily_bin897
RA = 119.286, Dec = 9.9491
tmin = 471830401, tmax = 472089601
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='25916', job_status='RUN', time_executed='2021-08-28 20:34:02.568329', time_epoch_executed='1630208042.57' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25916

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25916/ft1_4FGL_J0757.1+0956_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25916/ft2_4FGL_J0757.1+0956_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25916/ft1_4FGL_J0757.1+0956_daily_bin897.fits outfile=/scratch/kocevski/25916/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin897.fits ra=119.286 dec=9.9491 rad=12.0 tmin=471830401.0 tmax=472089601.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.45
user 3.37
sys 1.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25916/ft1_filtered_4FGL_J0757.1+0956_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/25916/ft2_4FGL_J0757.1+0956_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/25916/ltcube_471830401_472089601_4FGL_J0757.1+0956_daily_bin897.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/25916/ft2_4FGL_J0757.1+0956_daily_bin897.fits
.....................!
real 13.24
user 11.88
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25916/ft1_filtered_4FGL_J0757.1+0956_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/25916/ft2_4FGL_J0757.1+0956_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/25916/ltcube_471830401_472089601_4FGL_J0757.1+0956_daily_bin897.fits outfile=/scratch/kocevski/25916/expmap_471830401_472089601_4FGL_J0757.1+0956_daily_bin897.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/25916/ltcube_471830401_472089601_4FGL_J0757.1+0956_daily_bin897.fits
.....................!
real 193.73
user 187.25
sys 6.09

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/25916/ft1_filtered_4FGL_J0757.1+0956_daily_bin897.fits scfile=/scratch/kocevski/25916/ft2_4FGL_J0757.1+0956_daily_bin897.fits outfile=/scratch/kocevski/25916/cmap_471830401_472089601_4FGL_J0757.1+0956_daily_bin897.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.38
user 0.37
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25916/ft1_filtered_4FGL_J0757.1+0956_daily_bin897.fits scfile=/scratch/kocevski/25916/ft2_4FGL_J0757.1+0956_daily_bin897.fits outfile=/scratch/kocevski/25916/cmap_HighResolution_471830401_472089601_4FGL_J0757.1+0956_daily_bin897.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.44
user 0.37
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8183       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0338       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.981       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5870       1.0000         .10000E-03   10000.    
     6 'norm      '    3.4320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22436E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4532       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4597       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.4935       1.0000         .10000E-03   10000.    
    18 'Prefactor '    74.937       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5672       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63344       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=   6663.531     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2542 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8186        1.8931        .13711E-06   -.74313E-04
   2  norm          1.0337        1.2183        .14093E-06   -.10722E-03
   3  Prefactor     .10000E-03    21.389        .14808E-05** at limit **
   4  Prefactor     11.985        40.483        .49938E-06    .12393E-04
   5  norm          2.5847        1.3240       -.41095E-08   -.14949E-05
   6  norm          3.4323        2.1982        .52869E-07   -.83359E-04
   7  Prefactor     .10000E-03    10.962       -.22518E-07** at limit **
   8  Prefactor     .10000E-03    16.455       -.59935E-06** at limit **
   9  Prefactor     1.4533        2.3664        .25931E-06   -.50629E-04
  10  norm          7.8347        10.391        .23980E-07   -.98336E-05
  11  Prefactor     .10000E-03    9.1177       -.39034E-07** at limit **
  12  Prefactor     .10000E-03    37.396        .15367E-05** at limit **
  13  norm          .10000E-03    152.14       -.34266E-06** at limit **
  14  Prefactor     .10000E-03    17.590        .60536E-07** at limit **
  15  norm          6.4599        9.1793        .22141E-05   -.21790E-03
  16  norm          .10000E-03    14.004        .61479E-06** at limit **
  17  norm          7.4936        3.9730       -.36924E-07   -.10824E-04
  18  Prefactor     74.928        42.702       -.43489E-06   -.90575E-04
  19  Prefactor     .10000E-03    15.022       -.68841E-06** at limit **
  20  norm          .10000E-03    .24724        .78710E-08** at limit **
  21  Prefactor     .10000E-03    27.600       -.22412E-05** at limit **
  22  Normalizat    1.5672        .19927        .13321E-06   -.35680E-04
  23  Prefactor     .63343        .12733       -.63855E-06   -.37373E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81857
  norm       = 1.03373
  Prefactor  = 0.000100001
  Prefactor  = 11.9855
  norm       = 2.58467
  norm       = 3.43226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.45334
  norm       = 7.83466
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.45993
  norm       = 0.0001
  norm       = 7.49363
  Prefactor  = 74.9277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.56722
  Prefactor  = 0.633427
 **********
 **   18 **HESSE 
 **********

 FCN=   6663.531     FROM HESSE     STATUS=OK           368 CALLS     2910 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8186        1.8793        .10707E-03   -1.5438    
   2  norm          1.0337        1.1862        .93046E-04   -1.5505    
   3  Prefactor     .10000E-03    21.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.985        40.296        .11573E-03   -1.5015    
   5  norm          2.5847        1.3152        .64710E-04   -1.5386    
   6  norm          3.4323        2.1903        .90699E-04   -1.5337    
   7  Prefactor     .10000E-03    11.266        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4533        2.3422        .15397E-03   -1.5467    
  10  norm          7.8347        10.374        .14329E-03   -1.5148    
  11  Prefactor     .10000E-03    9.2271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    152.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4599        9.3360        .78955E-03   -1.5200    
  16  norm          .10000E-03    14.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.4936        3.9739        .11475E-03   -1.5160    
  18  Prefactor     74.928        43.263        .46383E-04   -1.3975    
  19  Prefactor     .10000E-03    15.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .25300        .39626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5672        .23108        .25055E-03   -.75906    
  23  Prefactor     .63343        .14651        .23902E-03   -1.0620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03405e-10
Minuit parameter uncertainties:
  1  1.87932
  2  1.18619
  3  0.000317617
  4  40.3882
  5  1.31517
  6  2.19031
  7  2.22049e-07
  8  0.000110949
  9  2.34233
  10  10.3766
  11  7.46441e-07
  12  0.000437169
  13  0.000192463
  14  2.11115e-05
  15  9.33809
  16  0.000127704
  17  3.97405
  18  43.2815
  19  8.8653e-05
  20  3.09407e-07
  21  0.00053936
  22  0.231235
  23  0.146603
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  7.464e-07  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:  6.334e-01  1.466e-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.567e+00  2.312e-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: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25916/likelihoodResults_471830401_472089601_4FGL_J0757.1+0956_daily_bin897.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) = 6663.53149479
delta logL = -0.000516263110512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6663.53097817
delta logL = 3.52965798811e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11115E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0540       1.0000          .0000       10.000    
     3 'Normalizat'    1.5669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63363       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6662.574     FROM MIGRAD    STATUS=FAILED       189 CALLS      344 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2893        69.032        .47587E-02   -.26364E-03
   2  Index         .49643        9.7517        .33929        .52201E-04
   3  Normalizat    1.5509        .79730E-01    .25055E-03   -.53089E-05
   4  Prefactor     .64100        .51148E-01    .23902E-03    .22355E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6662.574     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      426 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2893        69.032        .19227E-03   -.26364E-03
   2  Index         .49643        9.7517        .22305E-02    .52201E-04
   3  Normalizat    1.5509        .79730E-01    .49507E-04   -.53089E-05
   4  Prefactor     .64100        .51148E-01    .87899E-04    .22355E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6662.574     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      469 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2893        1.6172        .61813E-07   -.92278E-04
   2  Index         .49644        .12650       -.79407E-06   -.71713E-05
   3  Normalizat    1.5509        .22073       -.31109E-09   -.53821E-05
   4  Prefactor     .64100        .14169       -.54494E-09    .22310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28928
  Index      = 0.496435
  Normalizat = 1.55087
  Prefactor  = 0.640998
 **********
 **   18 **HESSE 
 **********

 FCN=   6662.574     FROM HESSE     STATUS=OK            25 CALLS      494 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2893        4.7896        .43397E-05   -1.5481    
   2  Index         .49644        1.1196        .35036E-02   -2.0202    
   3  Normalizat    1.5509        .22131        .20044E-05   -.76359    
   4  Prefactor     .64100        .14208        .19121E-05   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1592e-12
Minuit parameter uncertainties:
  1  4.79099
  2  1.17631
  3  0.221446
  4  0.142157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25916': 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) = 6662.57427106
delta logL = 0.956707464025

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.289e+00  4.791e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  4.964e-01  1.176e+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:  6.410e-01  1.422e-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.551e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 119.286 9.949
Photon Index (Free Index): 0.50 +/- 1.18
Photon Flux (Free Index): 3.01e-09 +/- 1.97e-08
Energy Flux (Free Index): 1.04e-04 +/- 8.13e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/25916/cmap_HighResolution_471830401_472089601_4FGL_J0757.1+0956_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', comment='SUCCESS', energy_flux2='1.04e-04', dlogl='9.57e-01', photon_flux2='3.01e-09', job_status='DONE', time_completed='2021-08-28 20:46:12.119645', photon_index_error2='1.18', photon_index2='0.50', ts='-0.00', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='5.98e-08', energy_flux_error2='8.13e-04', EG='1.57', time_epoch_completed='1630208772.12', return_code='0', job_id='25916', GAL2='0.64', EG2='1.55', return_code2='0', photon_flux_error2='1.97e-08', ts2='1.92', photon_index='2.15' WHERE bin_id='897' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 25916: <4FGL_J0757.1+0956_daily_bin897> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin897> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 20:30:33 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:30:35 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:30:35 2021
Terminated at Sat Aug 28 20:46:13 2021
Results reported at Sat Aug 28 20:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin897 119.286 9.9491 471830401 472089601 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 :                                   738.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

