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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin429
RA = 119.286, Dec = 9.9491
tmin = 350524801, tmax = 350784001
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='23023', job_status='RUN', time_executed='2021-08-28 20:22:42.733228', time_epoch_executed='1630207362.73' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23023

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23023/ft1_4FGL_J0757.1+0956_daily_bin429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23023/ft2_4FGL_J0757.1+0956_daily_bin429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23023/ft1_4FGL_J0757.1+0956_daily_bin429.fits outfile=/scratch/kocevski/23023/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin429.fits ra=119.286 dec=9.9491 rad=12.0 tmin=350524801.0 tmax=350784001.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.72
user 3.17
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/23023/ft2_4FGL_J0757.1+0956_daily_bin429.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/23023/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin429.fits evtable="EVENTS" outfile="/scratch/kocevski/23023/ft1_filtered_4FGL_J0757.1+0956_daily_bin429.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.82
user 0.30
sys 0.51

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23023/ft1_filtered_4FGL_J0757.1+0956_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/23023/ft2_4FGL_J0757.1+0956_daily_bin429.fits sctable="SC_DATA" expcube=/scratch/kocevski/23023/ltcube_350524801_350784001_4FGL_J0757.1+0956_daily_bin429.fits outfile=/scratch/kocevski/23023/expmap_350524801_350784001_4FGL_J0757.1+0956_daily_bin429.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/23023/ltcube_350524801_350784001_4FGL_J0757.1+0956_daily_bin429.fits
.....................!
real 189.95
user 184.84
sys 4.79

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/23023/ft1_filtered_4FGL_J0757.1+0956_daily_bin429.fits scfile=/scratch/kocevski/23023/ft2_4FGL_J0757.1+0956_daily_bin429.fits outfile=/scratch/kocevski/23023/cmap_350524801_350784001_4FGL_J0757.1+0956_daily_bin429.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=119.286 yref=9.9491 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.85
user 0.36
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23023/ft1_filtered_4FGL_J0757.1+0956_daily_bin429.fits scfile=/scratch/kocevski/23023/ft2_4FGL_J0757.1+0956_daily_bin429.fits outfile=/scratch/kocevski/23023/cmap_HighResolution_350524801_350784001_4FGL_J0757.1+0956_daily_bin429.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=119.286 yref=9.9491 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.87
user 0.38
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.882       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .56302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1826       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7026       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5309       1.0000         .10000E-03   10000.    
    15 'norm      '    23.491       1.0000         .10000E-03   10000.    
    16 'norm      '    26.658       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4265       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.258       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.228       1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9310       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1645       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92594       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=   6307.634     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2590 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0032       -.11435E-05** at limit **
   2  norm          1.3962        1.2238        .86630E-07    .11075E-03
   3  Prefactor     21.787        54.310       -.27553E-05   -.58000E-04
   4  Prefactor     .10000E-03    50.439       -.11637E-05** at limit **
   5  norm          .10000E-03    .63415        .51494E-07** at limit **
   6  norm          .56148        1.7671        .27429E-06    .10596E-03
   7  Prefactor     6.1834        5.9920        .17243E-06   -.50688E-04
   8  Prefactor     .10000E-03    40.545        .56341E-06** at limit **
   9  Prefactor     1.7042        2.6678        .62118E-06    .76712E-04
  10  norm          .10000E-03    7.7262        .90947E-07** at limit **
  11  Prefactor     .10000E-03    6.2871        .13819E-06** at limit **
  12  Prefactor     .10000E-03    102.12        .51813E-06** at limit **
  13  norm          .10000E-03    101.00        .81552E-06** at limit **
  14  Prefactor     1.4471        216.49        .18608E-04   -.91842E-06
  15  norm          23.490        16.458       -.15413E-06   -.68546E-04
  16  norm          26.656        27.199       -.36230E-05   -.20853E-03
  17  norm          7.4263        4.7135       -.35635E-06   -.28657E-03
  18  Prefactor     46.268        48.703        .20663E-06   -.91685E-04
  19  Prefactor     21.234        18.335        .47652E-06   -.96856E-04
  20  norm          .10000E-03    .65444        .55663E-06** at limit **
  21  Prefactor     9.9365        35.626        .16140E-05   -.89096E-05
  22  Normalizat    1.1638        .23191       -.67364E-05   -.98508E-04
  23  Prefactor     .92639        .14621        .35276E-05   -.53216E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.39617
  Prefactor  = 21.7872
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.561478
  Prefactor  = 6.18343
  Prefactor  = 0.0001
  Prefactor  = 1.70424
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.44709
  norm       = 23.4905
  norm       = 26.6558
  norm       = 7.42634
  Prefactor  = 46.2683
  Prefactor  = 21.234
  norm       = 0.0001
  Prefactor  = 9.93649
  Normalizat = 1.16381
  Prefactor  = 0.926388
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.634     FROM HESSE     STATUS=OK           368 CALLS     2958 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0194        .15404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3962        1.2132        .78500E-04   -1.5472    
   3  Prefactor     21.787        54.135        .85625E-04   -1.4774    
   4  Prefactor     .10000E-03    50.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .64306        .61434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .56148        1.7819        .17580E-03   -1.5558    
   7  Prefactor     6.1834        5.9627        .16145E-03   -1.5211    
   8  Prefactor     .10000E-03    40.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7042        2.6510        .15484E-03   -1.5447    
  10  norm          .10000E-03    7.7471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    102.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    101.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4471        222.18        .34493E-03   -1.5467    
  15  norm          23.490        16.453        .82646E-04   -1.4738    
  16  norm          26.656        27.350        .77590E-04   -1.4675    
  17  norm          7.4263        4.7143        .13103E-03   -1.5163    
  18  Prefactor     46.268        48.825        .58952E-04   -1.4346    
  19  Prefactor     21.234        18.353        .86933E-04   -1.4786    
  20  norm          .10000E-03    1.1018        .12386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.9365        35.650        .12715E-03   -1.5077    
  22  Normalizat    1.1638        .24792        .28871E-03   -.87729    
  23  Prefactor     .92639        .15732        .20696E-03   -.95225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06445e-10
Minuit parameter uncertainties:
  1  3.7614e-06
  2  1.21323
  3  54.2571
  4  0.000113258
  5  4.15423e-07
  6  1.78211
  7  5.96327
  8  0.000168219
  9  2.65117
  10  6.95743e-06
  11  1.15286e-05
  12  0.000273328
  13  0.000348504
  14  35.9971
  15  16.456
  16  27.3629
  17  4.7145
  18  48.867
  19  18.3575
  20  5.81488e-06
  21  35.7266
  22  0.248173
  23  0.157399
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.153e-05  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.264e-01  1.574e-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.164e+00  2.482e-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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/23023/likelihoodResults_350524801_350784001_4FGL_J0757.1+0956_daily_bin429.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) = 6307.63444516
delta logL = -0.000751257389311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6307.63369387
delta logL = 3.03689375869e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1364       1.0000          .0000       10.000    
     3 'Normalizat'    1.1638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92641       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=   6307.634     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    61.347        .18142E-02** at limit **
   2  Index         2.0990        5.2768        .50000        .14122E-04
   3  Normalizat    1.1638        .16461E-01    .28871E-03    .20988E-04
   4  Prefactor     .92639        .10722E-01    .20696E-03    .22632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100538
  Index      = 2.09899
  Normalizat = 1.16381
  Prefactor  = 0.926391
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.634     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10054E-03    275.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0990        7.0273        .50000       -.61898    
   3  Normalizat    1.1638        .36370E-01    .11548E-04   -.87729    
   4  Prefactor     .92639        .23689E-01    .82783E-05   -.95225    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17032e-08
Minuit parameter uncertainties:
  1  0.0244591
  2  559.454
  3  0.036371
  4  0.0236895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23023': 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) = 6307.63369374
delta logL = 1.62419382832e-07

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.005e-04  2.446e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.099e+00  5.595e+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:  9.264e-01  2.369e-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.164e+00  3.637e-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/23023/cmap_HighResolution_350524801_350784001_4FGL_J0757.1+0956_daily_bin429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-08-28 20:34:05.713438', job_id='23023', GAL2='0.93', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630208045.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='429' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:34:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 23023: <4FGL_J0757.1+0956_daily_bin429> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin429> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 20:20:30 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:20:31 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:20:31 2021
Terminated at Sat Aug 28 20:34:06 2021
Results reported at Sat Aug 28 20:34:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin429 119.286 9.9491 350524801 350784001 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 :                                   683.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

