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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin130
RA = 119.286, Dec = 9.9491
tmin = 273024001, tmax = 273283201
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='20147', job_status='RUN', time_executed='2021-08-28 20:13:24.619490', time_epoch_executed='1630206804.62' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20147

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20147/ft1_4FGL_J0757.1+0956_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20147/ft2_4FGL_J0757.1+0956_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20147/ft1_4FGL_J0757.1+0956_daily_bin130.fits outfile=/scratch/kocevski/20147/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin130.fits ra=119.286 dec=9.9491 rad=12.0 tmin=273024001.0 tmax=273283201.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 3.58
user 2.66
sys 0.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20147/ft2_4FGL_J0757.1+0956_daily_bin130.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/20147/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin130.fits evtable="EVENTS" outfile="/scratch/kocevski/20147/ft1_filtered_4FGL_J0757.1+0956_daily_bin130.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.19
user 0.33
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20147/ft1_filtered_4FGL_J0757.1+0956_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/20147/ft2_4FGL_J0757.1+0956_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/20147/ltcube_273024001_273283201_4FGL_J0757.1+0956_daily_bin130.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/20147/ft2_4FGL_J0757.1+0956_daily_bin130.fits
.....................!
real 13.49
user 12.40
sys 0.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20147/ft1_filtered_4FGL_J0757.1+0956_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/20147/ft2_4FGL_J0757.1+0956_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/20147/ltcube_273024001_273283201_4FGL_J0757.1+0956_daily_bin130.fits outfile=/scratch/kocevski/20147/expmap_273024001_273283201_4FGL_J0757.1+0956_daily_bin130.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/20147/ltcube_273024001_273283201_4FGL_J0757.1+0956_daily_bin130.fits
.....................!
real 193.36
user 186.20
sys 5.88

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/20147/ft1_filtered_4FGL_J0757.1+0956_daily_bin130.fits scfile=/scratch/kocevski/20147/ft2_4FGL_J0757.1+0956_daily_bin130.fits outfile=/scratch/kocevski/20147/cmap_273024001_273283201_4FGL_J0757.1+0956_daily_bin130.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.19
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20147/ft1_filtered_4FGL_J0757.1+0956_daily_bin130.fits scfile=/scratch/kocevski/20147/ft2_4FGL_J0757.1+0956_daily_bin130.fits outfile=/scratch/kocevski/20147/cmap_HighResolution_273024001_273283201_4FGL_J0757.1+0956_daily_bin130.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.21
user 0.37
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12609E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7500       1.0000         .10000E-03   10000.    
     6 'norm      '    .84108       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7047       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7331       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.475       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1892       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0852       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=   6164.312     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2160 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .54097       -.14478E-08** at limit **
   2  norm          5.8933        1.9389       -.55752E-08   -.44199E-04
   3  Prefactor     .10000E-03    80.812       -.47955E-05** at limit **
   4  Prefactor     .10000E-03    8.4700       -.12390E-05** at limit **
   5  norm          2.7502        1.7119       -.17494E-06   -.18668E-04
   6  norm          .84147        1.8426        .10013E-06   -.29300E-03
   7  Prefactor     4.1263        5.8978        .15024E-05   -.13521E-02
   8  Prefactor     .10000E-03    24.936        .28821E-05** at limit **
   9  Prefactor     1.7041        3.6050        .32193E-07   -.24483E-03
  10  norm          .10000E-03    7.1407        .57623E-07** at limit **
  11  Prefactor     .10000E-03    5.9916        .11343E-07** at limit **
  12  Prefactor     .10000E-03    39.613       -.48895E-05** at limit **
  13  norm          .10000E-03    27.173       -.53341E-05** at limit **
  14  Prefactor     .10000E-03    17.258        .55356E-05** at limit **
  15  norm          .10000E-03    9.8456        .18425E-06** at limit **
  16  norm          .10000E-03    16.210       -.48434E-05** at limit **
  17  norm          .10000E-03    2.1967        .38462E-07** at limit **
  18  Prefactor     .10000E-03    45.718        .10339E-04** at limit **
  19  Prefactor     .10000E-03    8.5244        .10933E-05** at limit **
  20  norm          3.7331        1.4018        .30568E-08   -.65581E-04
  21  Prefactor     16.474        23.112       -.17729E-06   -.92402E-05
  22  Normalizat    1.1892        .21615       -.20334E-06   -.56584E-04
  23  Prefactor     1.0852        .14507       -.68214E-07   -.35617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.89332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.7502
  norm       = 0.841471
  Prefactor  = 4.12627
  Prefactor  = 0.0001
  Prefactor  = 1.70415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 3.73306
  Prefactor  = 16.4739
  Normalizat = 1.18919
  Prefactor  = 1.08522
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.312     FROM HESSE     STATUS=OK           364 CALLS     2524 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .54727        .56375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8933        1.9394        .59862E-04   -1.5222    
   3  Prefactor     .10000E-03    81.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7502        1.9041        .74222E-04   -1.5376    
   6  norm          .84147        1.8196        .14950E-03   -1.5525    
   7  Prefactor     4.1263        10.423        .99189E-03   -1.5302    
   8  Prefactor     .10000E-03    25.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7041        3.6086        .20250E-03   -1.5447    
  10  norm          .10000E-03    7.1462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    27.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.9259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2241        .11362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7331        1.4032        .55006E-04   -1.5322    
  21  Prefactor     16.474        23.120        .98674E-04   -1.4896    
  22  Normalizat    1.1892        .24802        .30056E-03   -.86937    
  23  Prefactor     1.0852        .16603        .21224E-03   -.89940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97934e-09
Minuit parameter uncertainties:
  1  8.43586e-08
  2  1.93945
  3  0.000401009
  4  3.64819e-05
  5  1.90415
  6  1.81975
  7  10.4278
  8  0.000143945
  9  3.60906
  10  1.57359e-06
  11  1.12251e-07
  12  0.00031259
  13  0.000282865
  14  0.000232546
  15  5.36672e-06
  16  0.000201795
  17  3.75291e-07
  18  0.000689272
  19  2.96866e-05
  20  1.40325
  21  23.1321
  22  0.248267
  23  0.16611
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.123e-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:  1.085e+00  1.661e-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.189e+00  2.483e-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: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20147/likelihoodResults_273024001_273283201_4FGL_J0757.1+0956_daily_bin130.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) = 6164.3124244
delta logL = -0.000790290355326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6164.31163409
delta logL = 2.36286723521e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1364       1.0000          .0000       10.000    
     3 'Normalizat'    1.1892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0852       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=   6164.312     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10103E-03    89.927        .18142E-02** at limit **
   2  Index         2.0749        8.4096        .50000        .14013E-04
   3  Normalizat    1.1892        .21745E-01    .30056E-03   -.25721E-05
   4  Prefactor     1.0852        .14834E-01    .21224E-03   -.97489E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101034
  Index      = 2.07494
  Normalizat = 1.18919
  Prefactor  = 1.08522
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.312     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10103E-03    382.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0749        8.1095        .50000       -.62490    
   3  Normalizat    1.1892        .47762E-01    .12022E-04   -.86937    
   4  Prefactor     1.0852        .32572E-01    .84896E-05   -.89940    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4967e-08
Minuit parameter uncertainties:
  1  0.0400198
  2  937.276
  3  0.0477639
  4  0.0325731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20147': 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): 102
logL (Free Index) = 6164.31163389
delta logL = 2.24604264076e-07

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.010e-04  4.002e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.075e+00  9.373e+02  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.085e+00  3.257e-02  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.189e+00  4.776e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 119.286 9.949

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/20147/cmap_HighResolution_273024001_273283201_4FGL_J0757.1+0956_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-08-28 20:24:19.772640', job_id='20147', GAL2='1.09', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630207459.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='130' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:24:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 20147: <4FGL_J0757.1+0956_daily_bin130> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin130 119.286 9.9491 273024001 273283201 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 :                                   662.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            812 sec.

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

