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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin662
RA = 119.286, Dec = 9.9491
tmin = 410918401, tmax = 411177601
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='24616', job_status='RUN', time_executed='2021-08-28 20:30:16.391558', time_epoch_executed='1630207816.39' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24616/ft1_4FGL_J0757.1+0956_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24616/ft2_4FGL_J0757.1+0956_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24616/ft1_4FGL_J0757.1+0956_daily_bin662.fits outfile=/scratch/kocevski/24616/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin662.fits ra=119.286 dec=9.9491 rad=12.0 tmin=410918401.0 tmax=411177601.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 10.71
user 6.70
sys 3.97

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24616/ft1_filtered_4FGL_J0757.1+0956_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/24616/ft2_4FGL_J0757.1+0956_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/24616/ltcube_410918401_411177601_4FGL_J0757.1+0956_daily_bin662.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/24616/ft2_4FGL_J0757.1+0956_daily_bin662.fits
.....................!
real 17.18
user 12.61
sys 4.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24616/ft1_filtered_4FGL_J0757.1+0956_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/24616/ft2_4FGL_J0757.1+0956_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/24616/ltcube_410918401_411177601_4FGL_J0757.1+0956_daily_bin662.fits outfile=/scratch/kocevski/24616/expmap_410918401_411177601_4FGL_J0757.1+0956_daily_bin662.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/24616/ltcube_410918401_411177601_4FGL_J0757.1+0956_daily_bin662.fits
.....................!
real 198.80
user 188.75
sys 9.36

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

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

This is gtbin version HEAD
real 4.18
user 0.39
sys 3.75

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

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

This is gtbin version HEAD
real 4.19
user 0.40
sys 3.76

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.988       1.0000         .10000E-03   10000.    
     2 'norm      '    .96725       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.589       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.011       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7989       1.0000         .10000E-03   10000.    
     6 'norm      '    2.8351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.034       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.830       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.667       1.0000         .10000E-03   10000.    
    13 'norm      '    136.70       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.817       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.020       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8623       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.729       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7952       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1738       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0446       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81800       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=   5567.130     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2540 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.989        3.2739       -.46306E-06   -.20249E-04
   2  norm          .96731        1.2948       -.34481E-06   -.13366E-02
   3  Prefactor     15.589        54.257        .17663E-05   -.44160E-05
   4  Prefactor     25.013        33.309        .22411E-05    .20949E-05
   5  norm          2.7990        2.9236        .47274E-06   -.68453E-05
   6  norm          2.8352        1.8903        .49253E-07   -.17452E-03
   7  Prefactor     28.384        17.131        .16118E-05    .11253E-03
   8  Prefactor     13.841        40.852       -.33045E-04   -.64873E-05
   9  Prefactor     .10000E-03    1.4509       -.81086E-07** at limit **
  10  norm          16.033        17.049       -.53023E-06    .70377E-05
  11  Prefactor     22.829        13.748       -.11814E-06    .21328E-04
  12  Prefactor     14.685        117.89        .43284E-04    .67403E-06
  13  norm          136.72        112.19        .15566E-04    .26094E-05
  14  Prefactor     34.801        39.790       -.21530E-04    .43116E-05
  15  norm          .10000E-03    6.1272       -.34782E-07** at limit **
  16  norm          20.022        26.104        .52144E-05    .16496E-04
  17  norm          5.8623        5.0511        .27227E-06   -.12481E-03
  18  Prefactor     .10000E-03    46.360        .63743E-06** at limit **
  19  Prefactor     13.726        16.104       -.11085E-05    .10970E-05
  20  norm          1.7951        1.4491       -.10209E-06   -.32395E-03
  21  Prefactor     6.1732        19.991       -.17520E-05   -.23135E-04
  22  Normalizat    1.0448        .22041        .41866E-05   -.85601E-04
  23  Prefactor     .81788        .14324       -.93746E-06    .18734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9886
  norm       = 0.967313
  Prefactor  = 15.5894
  Prefactor  = 25.0126
  norm       = 2.79902
  norm       = 2.83519
  Prefactor  = 28.3843
  Prefactor  = 13.8412
  Prefactor  = 0.0001
  norm       = 16.0333
  Prefactor  = 22.8295
  Prefactor  = 14.6846
  norm       = 136.721
  Prefactor  = 34.8009
  norm       = 0.0001
  norm       = 20.0218
  norm       = 5.86229
  Prefactor  = 0.0001
  Prefactor  = 13.7263
  norm       = 1.79509
  Prefactor  = 6.17316
  Normalizat = 1.04476
  Prefactor  = 0.817876
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.130     FROM HESSE     STATUS=OK           386 CALLS     2926 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.989        3.2790        .65341E-04   -1.5015    
   2  norm          .96731        1.2169        .92159E-03   -1.5511    
   3  Prefactor     15.589        54.368        .10144E-03   -1.4918    
   4  Prefactor     25.013        33.295        .80099E-04   -1.4707    
   5  norm          2.7990        2.9689        .88863E-04   -1.5373    
   6  norm          2.8352        1.8865        .80196E-04   -1.5371    
   7  Prefactor     28.384        17.502        .75196E-04   -1.4642    
   8  Prefactor     13.841        40.991        .10760E-03   -1.4964    
   9  Prefactor     .10000E-03    1.4859        .17539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.033        17.046        .10002E-03   -1.4907    
  11  Prefactor     22.829        13.761        .83832E-04   -1.4752    
  12  Prefactor     14.685        117.54        .10458E-03   -1.4941    
  13  norm          136.72        112.12        .17224E-03   -1.3364    
  14  Prefactor     34.801        39.767        .67916E-04   -1.4527    
  15  norm          .10000E-03    6.1520        .18037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.022        26.102        .89515E-04   -1.4813    
  17  norm          5.8623        5.0432        .14852E-03   -1.5224    
  18  Prefactor     .10000E-03    46.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.726        16.199        .10810E-03   -1.4967    
  20  norm          1.7951        1.4405        .76715E-04   -1.5440    
  21  Prefactor     6.1732        19.988        .16157E-03   -1.5211    
  22  Normalizat    1.0448        .25436        .29276E-03   -.91546    
  23  Prefactor     .81788        .16533        .21960E-03   -.99073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37518e-10
Minuit parameter uncertainties:
  1  3.27909
  2  1.21698
  3  54.5411
  4  33.3198
  5  2.96909
  6  1.8865
  7  17.505
  8  41.0748
  9  7.76649e-06
  10  17.0516
  11  13.7625
  12  83.3178
  13  112.298
  14  39.7972
  15  5.97114e-06
  16  26.1166
  17  5.04359
  18  6.26598e-05
  19  16.2041
  20  1.44053
  21  20.0095
  22  0.254654
  23  0.165426
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  2.283e+01  1.376e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.179e-01  1.654e-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.045e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.55
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.79e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5566.80765492
delta logL = 0.322147865157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5566.76808576
delta logL = 0.361717021022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.304       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7800       1.0000          .0000       10.000    
     3 'Normalizat'    1.0672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80965       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.

 FCN=   5566.768     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      240 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.316        544.27        .18826E-02   -.15339E-05
   2  Index         1.7803        5.6502        .18123        .25881E-04
   3  Normalizat    1.0670        .21582        .65585E-01    .11655E-04
   4  Prefactor     .80981        .94722E-01    .43843E-01    .10324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3164
  Index      = 1.7803
  Normalizat = 1.06705
  Prefactor  = 0.809807
 **********
 **   18 **HESSE 
 **********

 FCN=   5566.768     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.316        17.745        .75304E-04   -1.4643    
   2  Index         1.7803        .42805        .66212E-02   -.69964    
   3  Normalizat    1.0670        .23329        .29012E-03   -.90817    
   4  Prefactor     .80981        .15655        .22059E-03   -.99368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35328e-10
Minuit parameter uncertainties:
  1  17.7479
  2  0.428947
  3  0.233511
  4  0.156641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24616': 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) = 5566.76808478
delta logL = 0.361718001206

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  2.832e+01  1.775e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.780e+00  4.289e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.098e-01  1.566e-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.067e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.25
Ra Dec: 119.286 9.949
Photon Index (Free Index): 1.78 +/- 0.43
Photon Flux (Free Index): 4.08e-08 +/- 3.36e-08
Energy Flux (Free Index): 5.19e-05 +/- 5.13e-05

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/24616/cmap_HighResolution_410918401_411177601_4FGL_J0757.1+0956_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='5.19e-05', photon_flux_error='3.61e-08', dlogl='3.62e-01', energy_flux='2.96e-05', photon_flux2='4.08e-08', job_status='DONE', time_completed='2021-08-28 20:41:30.224937', photon_index_error2='0.43', photon_index2='1.78', ts='9.55', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='5.13e-05', EG='1.04', time_epoch_completed='1630208490.23', return_code='0', job_id='24616', GAL2='0.81', EG2='1.07', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='3.36e-08', ts2='10.25', photon_index='2.15' WHERE bin_id='662' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:41:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 24616: <4FGL_J0757.1+0956_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin662 119.286 9.9491 410918401 411177601 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 :                                   727.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

