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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin644
RA = 119.286, Dec = 9.9491
tmin = 406252801, tmax = 406512001
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='24598', job_status='RUN', time_executed='2021-08-28 20:28:58.451986', time_epoch_executed='1630207738.45' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24598

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24598/ft1_4FGL_J0757.1+0956_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24598/ft2_4FGL_J0757.1+0956_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24598/ft1_4FGL_J0757.1+0956_daily_bin644.fits outfile=/scratch/kocevski/24598/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin644.fits ra=119.286 dec=9.9491 rad=12.0 tmin=406252801.0 tmax=406512001.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.38
user 3.58
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24598/ft1_filtered_4FGL_J0757.1+0956_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/24598/ft2_4FGL_J0757.1+0956_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/24598/ltcube_406252801_406512001_4FGL_J0757.1+0956_daily_bin644.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/24598/ft2_4FGL_J0757.1+0956_daily_bin644.fits
.....................!
real 12.79
user 11.82
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24598/ft1_filtered_4FGL_J0757.1+0956_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/24598/ft2_4FGL_J0757.1+0956_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/24598/ltcube_406252801_406512001_4FGL_J0757.1+0956_daily_bin644.fits outfile=/scratch/kocevski/24598/expmap_406252801_406512001_4FGL_J0757.1+0956_daily_bin644.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/24598/ltcube_406252801_406512001_4FGL_J0757.1+0956_daily_bin644.fits
.....................!
real 190.66
user 184.99
sys 5.27

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/24598/ft1_filtered_4FGL_J0757.1+0956_daily_bin644.fits scfile=/scratch/kocevski/24598/ft2_4FGL_J0757.1+0956_daily_bin644.fits outfile=/scratch/kocevski/24598/cmap_406252801_406512001_4FGL_J0757.1+0956_daily_bin644.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.10
user 0.37
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24598/ft1_filtered_4FGL_J0757.1+0956_daily_bin644.fits scfile=/scratch/kocevski/24598/ft2_4FGL_J0757.1+0956_daily_bin644.fits outfile=/scratch/kocevski/24598/cmap_HighResolution_406252801_406512001_4FGL_J0757.1+0956_daily_bin644.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.14
user 0.38
sys 0.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8654       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10992E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.258       1.0000         .10000E-03   10000.    
     5 'norm      '    5.5263       1.0000         .10000E-03   10000.    
     6 'norm      '    .19063E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20732E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0944       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8337       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17010E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8469       1.0000         .10000E-03   10000.    
    16 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.363       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4791       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1700       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94671       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92645       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=   6846.184     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2569 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8659        2.1824       -.47797E-06   -.73112E-04
   2  norm          2.0747        1.1368        .34675E-07   -.19034E-03
   3  Prefactor     .10000E-03    136.71       -.81167E-05** at limit **
   4  Prefactor     27.289        36.203        .16294E-04    .10738E-03
   5  norm          5.5304        2.2666        .12118E-06    .53691E-03
   6  norm          .80576E-02    .61295       -.59483E-06    .81958E-03
   7  Prefactor     .10001E-03    8.9558       -.82693E-06** at limit **
   8  Prefactor     .10000E-03    66.840        .36096E-04** at limit **
   9  Prefactor     2.0912        2.5889       -.82207E-08   -.40386E-03
  10  norm          .10000E-03    4.7132       -.10422E-06** at limit **
  11  Prefactor     7.8302        9.7329       -.83626E-06   -.31894E-04
  12  Prefactor     .10000E-03    212.07       -.50133E-04** at limit **
  13  norm          .10000E-03    34.534        .12166E-04** at limit **
  14  Prefactor     .10000E-03    47.060       -.30694E-04** at limit **
  15  norm          1.8469        13.161       -.62928E-05   -.24761E-03
  16  norm          .10000E-03    9.1275        .30691E-06** at limit **
  17  norm          .10000E-03    1.1374        .11660E-06** at limit **
  18  Prefactor     48.365        34.929        .13722E-05    .88068E-04
  19  Prefactor     4.4756        8.7088        .91400E-05   -.87941E-04
  20  norm          3.1699        1.2039       -.82876E-07   -.23615E-02
  21  Prefactor     .10000E-03    19.238       -.78296E-06** at limit **
  22  Normalizat    .94671        .18085       -.16943E-05    .35164E-03
  23  Prefactor     .92654        .11729       -.43896E-06    .39673E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.86588
  norm       = 2.07465
  Prefactor  = 0.0001
  Prefactor  = 27.2894
  norm       = 5.53038
  norm       = 0.00805763
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 2.09117
  norm       = 0.0001
  Prefactor  = 7.83017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.84688
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 48.3651
  Prefactor  = 4.47557
  norm       = 3.16989
  Prefactor  = 0.0001
  Normalizat = 0.946705
  Prefactor  = 0.926539
 **********
 **   18 **HESSE 
 **********

 FCN=   6846.184     FROM HESSE     STATUS=OK           374 CALLS     2943 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8659        2.1837        .86184E-04   -1.5315    
   2  norm          2.0747        1.1334        .62690E-04   -1.5420    
   3  Prefactor     .10000E-03    139.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.289        36.217        .76732E-04   -1.4663    
   5  norm          5.5304        1.9209        .64775E-04   -1.5238    
   6  norm          .80576E-02    1.6865        .22663E-01   -1.5690    
   7  Prefactor     .10001E-03    33.758        .39895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    67.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0912        2.5772        .13960E-03   -1.5419    
  10  norm          .10000E-03    4.7143        .17541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8302        9.7217        .14326E-03   -1.5148    
  12  Prefactor     .10000E-03    212.62        .20369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    34.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8469        13.429        .30683E-03   -1.5436    
  16  norm          .10000E-03    9.1399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1420        .86161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.365        35.064        .57660E-04   -1.4316    
  19  Prefactor     4.4756        8.6541        .19025E-03   -1.5285    
  20  norm          3.1699        1.2072        .26901E-03   -1.5352    
  21  Prefactor     .10000E-03    19.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94671        .20518        .28953E-03   -.94838    
  23  Prefactor     .92654        .13492        .19868E-03   -.95220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66953e-09
Minuit parameter uncertainties:
  1  2.18378
  2  1.13343
  3  5.64502e-05
  4  36.2457
  5  1.92097
  6  0.2317
  7  0.00142327
  8  0.000167573
  9  2.57734
  10  4.1592e-06
  11  9.7237
  12  0.000562582
  13  6.84313e-06
  14  0.000313863
  15  9.96326
  16  1.18179e-05
  17  5.73133e-06
  18  35.0791
  19  8.65651
  20  1.20723
  21  1.65801e-06
  22  0.20535
  23  0.134969
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  7.830e+00  9.724e+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:  9.265e-01  1.350e-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:  9.467e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 119.286 9.949
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/24598/likelihoodResults_406252801_406512001_4FGL_J0757.1+0956_daily_bin644.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) = 6846.14239811
delta logL = 0.0419165511248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6846.12492596
delta logL = 0.0593887065252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9245       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4502       1.0000          .0000       10.000    
     3 'Normalizat'    .93846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92970       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=   6846.125     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      254 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9227        11.191        .16498E-03    .44702E-03
   2  Index         2.4504        1.0330        .92010E-02    .98514E-04
   3  Normalizat    .93841        .19398        .29067E-03   -.49627E-03
   4  Prefactor     .92976        .13093        .19838E-03   -.90499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92267
  Index      = 2.45044
  Normalizat = 0.938406
  Prefactor  = 0.929759
 **********
 **   18 **HESSE 
 **********

 FCN=   6846.125     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9227        9.8426        .65992E-05   -1.5221    
   2  Index         2.4504        .90962        .36804E-03   -.53508    
   3  Normalizat    .93841        .19385        .58133E-04   -.95123    
   4  Prefactor     .92976        .13089        .39675E-04   -.95109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61881e-10
Minuit parameter uncertainties:
  1  9.84532
  2  0.916544
  3  0.193997
  4  0.130934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24598': 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) = 6846.12492579
delta logL = 0.0593888759295

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  5.923e+00  9.845e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.450e+00  9.165e-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.298e-01  1.309e-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:  9.384e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 119.286 9.949
Photon Index (Free Index): 2.45 +/- 0.92
Photon Flux (Free Index): 2.74e-08 +/- 3.61e-08
Energy Flux (Free Index): 8.41e-06 +/- 1.06e-05

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/24598/cmap_HighResolution_406252801_406512001_4FGL_J0757.1+0956_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', comment='SUCCESS', energy_flux2='8.41e-06', dlogl='5.94e-02', photon_flux2='2.74e-08', job_status='DONE', time_completed='2021-08-28 20:41:03.463241', photon_index_error2='0.92', photon_index2='2.45', ts='0.96', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='8.42e-08', energy_flux_error2='1.06e-05', EG='0.95', time_epoch_completed='1630208463.46', return_code='0', job_id='24598', GAL2='0.93', EG2='0.94', return_code2='0', photon_flux_error2='3.61e-08', ts2='1.08', photon_index='2.15' WHERE bin_id='644' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 24598: <4FGL_J0757.1+0956_daily_bin644> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin644> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 20:25:30 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:25:32 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:25:32 2021
Terminated at Sat Aug 28 20:41:04 2021
Results reported at Sat Aug 28 20:41:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin644 119.286 9.9491 406252801 406512001 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 :                                   731.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

