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


Performing analysis on: 4FGL_J0709.1+2241_daily_bin1279
RA = 107.277, Dec = 22.6847
tmin = 570844801, tmax = 571104001
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='122435', job_status='RUN', time_executed='2021-08-26 18:52:50.815705', time_epoch_executed='1630029170.82' WHERE source_name='4FGL J0709.1+2241' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122435/ft1_4FGL_J0709.1+2241_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122435/ft1_4FGL_J0709.1+2241_daily_bin1279.fits outfile=/scratch/kocevski/122435/ft1_filteredMKT_4FGL_J0709.1+2241_daily_bin1279.fits ra=107.277 dec=22.6847 rad=12.0 tmin=570844801.0 tmax=571104001.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.80
user 2.87
sys 0.91

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.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/122435/ft1_filteredMKT_4FGL_J0709.1+2241_daily_bin1279.fits evtable="EVENTS" outfile="/scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.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.20
user 0.32
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/122435/ltcube_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.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/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits
.....................!
real 12.97
user 11.81
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/122435/ltcube_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.fits outfile=/scratch/kocevski/122435/expmap_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.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/122435/ltcube_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.fits
.....................!
real 192.75
user 186.18
sys 6.20

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 IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
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.
Added 166 point sources and 4 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 J0709.1+2241 @ 107.277 22.6847

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.fits scfile=/scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits outfile=/scratch/kocevski/122435/cmap_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.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=107.277 yref=22.6847 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.44
user 0.36
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.fits scfile=/scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits outfile=/scratch/kocevski/122435/cmap_HighResolution_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.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=107.277 yref=22.6847 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.37
user 0.39
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122435/Model_4FGL_J0709.1+2241_daily_bin1279.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 IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.fits.....................!
real 162.50
user 159.73
sys 2.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.fits', '/scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits', expMap='/scratch/kocevski/122435/expmap_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.fits', expCube='/scratch/kocevski/122435/ltcube_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122435/Model_4FGL_J0709.1+2241_daily_bin1279.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0709.1+2241'

4FGL J0709.1+2241
   Spectrum: PowerLaw
282    Prefactor:  3.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.064e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/122435/ft1_filtered_4FGL_J0709.1+2241_daily_bin1279.fits
Spacecraft file(s): /scratch/kocevski/122435/ft2_4FGL_J0709.1+2241_daily_bin1279.fits
Exposure map: /scratch/kocevski/122435/expmap_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.fits
Exposure cube: /scratch/kocevski/122435/ltcube_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122435/Model_4FGL_J0709.1+2241_daily_bin1279.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) = 6881.37391428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.774       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88004       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.113       1.0000         .10000E-03   10000.    
     5 'norm      '    55.051       1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.941       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.9607       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9536       1.0000         .10000E-03   10000.    
    11 'norm      '    9.4512       1.0000         .10000E-03   10000.    
    12 'norm      '    .10887E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.590       1.0000         .10000E-03   10000.    
    14 'norm      '    13.785       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.976       1.0000         .10000E-03   10000.    
    17 'Prefactor '    319.87       1.0000         .10000E-03   10000.    
    18 'Prefactor '    375.70       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85539       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88979       1.0000          .0000       10.000    
    21 'norm      '    1.8520       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6881.354     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2216 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    297.93       -.78580E-06** at limit **
   2  Prefactor     73.821        63.842        .11534E-05    .56442E-04
   3  Prefactor     .89898        140.40        .27866E-04   -.13021E-03
   4  Prefactor     30.174        51.072        .11412E-05    .30927E-04
   5  norm          55.059        28.578        .26182E-06    .36908E-04
   6  Prefactor     83.173        98.248        .50111E-06   -.48498E-04
   7  Prefactor     .10000E-03    6.1640        .12530E-06** at limit **
   8  norm          .10000E-03    23.234       -.17634E-06** at limit **
   9  norm          6.9607        2.5420        .11991E-07   -.45493E-04
  10  Prefactor     9.9531        17.742        .19004E-06    .45448E-05
  11  norm          9.4526        6.5789        .97695E-07   -.44365E-03
  12  norm          .10000E-03    4.2080        .71906E-06** at limit **
  13  Prefactor     18.563        63.900       -.76840E-05   -.29022E-03
  14  norm          13.812        39.642        .32359E-07   -.28944E-04
  15  Prefactor     .10000E-03    83.313        .38347E-06** at limit **
  16  Prefactor     58.954        146.01        .20864E-06   -.29540E-04
  17  Prefactor     320.22        367.34       -.58579E-06   -.92848E-04
  18  Prefactor     375.56        317.85        .77093E-06    .92092E-05
  19  Normalizat    .85559        .52976        .26362E-06   -.72990E-04
  20  Prefactor     .88959        .14239       -.15620E-05   -.75369E-03
  21  norm          1.8528        .91775        .10797E-06    .94530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 73.8213
  Prefactor  = 0.898983
  Prefactor  = 30.1744
  norm       = 55.0589
  Prefactor  = 83.1726
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 6.96068
  Prefactor  = 9.95312
  norm       = 9.45264
  norm       = 0.000100001
  Prefactor  = 18.5629
  norm       = 13.8116
  Prefactor  = 0.0001
  Prefactor  = 58.954
  Prefactor  = 320.224
  Prefactor  = 375.565
  Normalizat = 0.855586
  Prefactor  = 0.889595
  norm       = 1.85277
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.354     FROM HESSE     STATUS=OK           317 CALLS     2533 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    298.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     73.821        64.210        .23372E-03   -1.3987    
   3  Prefactor     .89898        142.05        .65702E-02   -1.5518    
   4  Prefactor     30.174        51.162        .73012E-04   -1.4609    
   5  norm          55.059        28.576        .54062E-04   -1.4223    
   6  Prefactor     83.173        98.005        .22053E-03   -1.3881    
   7  Prefactor     .10000E-03    6.1666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.9607        2.5424        .75608E-04   -1.5180    
  10  Prefactor     9.9531        17.731        .12701E-03   -1.5077    
  11  norm          9.4526        6.5665        .13036E-03   -1.5093    
  12  norm          .10000E-03    16.803        .30872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.563        64.024        .92893E-04   -1.4846    
  14  norm          13.812        39.440        .10788E-03   -1.4965    
  15  Prefactor     .10000E-03    83.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     58.954        145.39        .52242E-04   -1.4171    
  17  Prefactor     320.22        366.92        .11366E-03   -1.2110    
  18  Prefactor     375.56        317.49        .10518E-03   -1.1807    
  19  Normalizat    .85559        .53286        .82861E-03   -.98039    
  20  Prefactor     .88959        .14704        .23087E-03   -.96506    
  21  norm          1.8528        .91919        .53036E-04   -1.5436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17865e-09
Minuit parameter uncertainties:
  1  0.000999928
  2  64.2705
  3  22.6549
  4  51.2365
  5  28.5831
  6  98.1958
  7  2.3478e-05
  8  0.000323153
  9  2.54245
  10  17.74
  11  6.56703
  12  0.000220274
  13  64.2622
  14  39.5141
  15  6.05798e-05
  16  146.279
  17  369.634
  18  318.989
  19  0.536172
  20  0.147107
  21  0.919195
Done.

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

Extracting fit parameters...

4FGL J0709.1+2241
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.348e-05  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.064e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.896e-01  1.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  8.556e-01  5.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 107.277 22.685
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122435/likelihoodResults_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.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) = 6881.35461017
delta logL = -0.00066203136339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6881.35394808
delta logL = 6.17301338934e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0437       1.0000          .0000       10.000    
     3 'Normalizat'    .85563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88959       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+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=   6881.354     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10201E-03    62.330        .18142E-02** at limit **
   2  Index         1.9723        8.6393        .50000        .25932E-04
   3  Normalizat    .85558        .38771E-01    .82867E-03   -.29729E-04
   4  Prefactor     .88960        .11158E-01    .23087E-03    .67956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102006
  Index      = 1.97228
  Normalizat = 0.855576
  Prefactor  = 0.889599
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10201E-03    260.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9723        8.9858        .50000       -.65045    
   3  Normalizat    .85558        .82277E-01    .33147E-04   -.98039    
   4  Prefactor     .88960        .23682E-01    .92346E-05   -.96505    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79931e-08
Minuit parameter uncertainties:
  1  0.0459468
  2  541.784
  3  0.0822893
  4  0.0236819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122435': 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) = 6881.35394763
delta logL = 5.08965968038e-07

Extracting fit parameters...

4FGL J0709.1+2241
   Spectrum: PowerLaw
282    Prefactor:  1.020e-04  4.595e-02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  1.972e+00  5.418e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.896e-01  2.368e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  8.556e-01  8.229e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 107.277 22.685

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/122435/cmap_HighResolution_570844801_571104001_4FGL_J0709.1+2241_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-08-26 19:06:00.151630', job_id='122435', GAL2='0.89', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630029960.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1279' AND source_name='4FGL J0709.1+2241' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 19:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 122435: <4FGL_J0709.1+2241_daily_bin1279> in cluster <slac> Done

Job <4FGL_J0709.1+2241_daily_bin1279> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 18:50:25 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 18:50:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 18:50:27 2021
Terminated at Thu Aug 26 19:06:00 2021
Results reported at Thu Aug 26 19:06:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0709.1+2241_daily_bin1279 107.277 22.6847 570844801 571104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0709.1+2241 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   797.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

