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


Performing analysis on: 4FGL_J0709.1+2241_daily_bin1441
RA = 107.277, Dec = 22.6847
tmin = 612835201, tmax = 613094401
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='122665', job_status='RUN', time_executed='2021-08-26 18:51:31.910975', time_epoch_executed='1630029091.91' WHERE source_name='4FGL J0709.1+2241' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122665/ft1_4FGL_J0709.1+2241_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122665/ft1_4FGL_J0709.1+2241_daily_bin1441.fits outfile=/scratch/kocevski/122665/ft1_filteredMKT_4FGL_J0709.1+2241_daily_bin1441.fits ra=107.277 dec=22.6847 rad=12.0 tmin=612835201.0 tmax=613094401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.84
user 2.70
sys 2.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.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/122665/ft1_filteredMKT_4FGL_J0709.1+2241_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.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 2.49
user 0.33
sys 2.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/122665/ltcube_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.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/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits
.....................!
real 15.09
user 12.48
sys 2.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/122665/ltcube_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.fits outfile=/scratch/kocevski/122665/expmap_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.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/122665/ltcube_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.fits
.....................!
real 192.23
user 185.10
sys 6.70

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/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.fits scfile=/scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits outfile=/scratch/kocevski/122665/cmap_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.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 2.48
user 0.39
sys 2.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.fits scfile=/scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits outfile=/scratch/kocevski/122665/cmap_HighResolution_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.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 2.48
user 0.38
sys 2.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122665/Model_4FGL_J0709.1+2241_daily_bin1441.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/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.fits.....................!
real 162.77
user 158.60
sys 3.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.fits', '/scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits', expMap='/scratch/kocevski/122665/expmap_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.fits', expCube='/scratch/kocevski/122665/ltcube_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122665/Model_4FGL_J0709.1+2241_daily_bin1441.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/122665/ft1_filtered_4FGL_J0709.1+2241_daily_bin1441.fits
Spacecraft file(s): /scratch/kocevski/122665/ft2_4FGL_J0709.1+2241_daily_bin1441.fits
Exposure map: /scratch/kocevski/122665/expmap_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.fits
Exposure cube: /scratch/kocevski/122665/ltcube_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122665/Model_4FGL_J0709.1+2241_daily_bin1441.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) = 7201.6236516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.370       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.9921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.346       1.0000         .10000E-03   10000.    
     8 'norm      '    42.310       1.0000         .10000E-03   10000.    
     9 'norm      '    .67106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10790E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .88638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2920       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98693       1.0000          .0000       10.000    
    21 'norm      '    5.9744       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.

 FCN=   7201.603     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2192 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    314.82        .90712E-02** at limit **
   2  Prefactor     .10013E-03    34.763        .90712E-02** at limit **
   3  Prefactor     64.359        51.101        .12505E-02    .15086E-02
   4  Prefactor     .10000E-03    14.827        .90712E-02** at limit **
   5  norm          9.9923        11.501        .31691E-02   -.22650E-04
   6  Prefactor     .10014E-03    36.059        .90712E-02** at limit **
   7  Prefactor     30.344        20.221        .18183E-02   -.52676E-03
   8  norm          42.308        21.465        .15407E-02   -.55679E-03
   9  norm          .67102        .69778        .11950E-01   -.90991E-04
  10  Prefactor     .10000E-03    2.5907        .90712E-02** at limit **
  11  norm          .10000E-03    .89592        .28884E-01** at limit **
  12  norm          .88508        1.5400        .26989E-01    .10866E-02
  13  Prefactor     .10000E-03    6.2124        .90712E-02** at limit **
  14  norm          .10000E-03    2.8274        .90712E-02** at limit **
  15  Prefactor     .10000E-03    51.452        .90712E-02** at limit **
  16  Prefactor     6.7605        17.418        .38580E-02    .70846E-04
  17  Prefactor     .10000E-03    12.210        .90712E-02** at limit **
  18  Prefactor     .10000E-03    27.116        .90712E-02** at limit **
  19  Normalizat    1.2922        .27049        .97261E-01    .13455E-04
  20  Prefactor     .98683        .12695        .46104E-01    .68286E-05
  21  norm          5.9732        2.3664        .41070E-02    .54316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100131
  Prefactor  = 64.359
  Prefactor  = 0.0001
  norm       = 9.99231
  Prefactor  = 0.000100143
  Prefactor  = 30.3439
  norm       = 42.3082
  norm       = 0.671019
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.885079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.76055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29224
  Prefactor  = 0.986834
  norm       = 5.97319
 **********
 **   18 **HESSE 
 **********

 FCN=   7201.603     FROM HESSE     STATUS=OK           313 CALLS     2505 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    314.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10013E-03    34.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     64.359        51.191        .50019E-04   -1.4102    
   4  Prefactor     .10000E-03    14.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.9923        11.501        .12676E-03   -1.5076    
   6  Prefactor     .10014E-03    36.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.344        20.227        .72733E-04   -1.4606    
   8  norm          42.308        21.481        .61630E-04   -1.4406    
   9  norm          .67102        .69687        .70093E-04   -1.5544    
  10  Prefactor     .10000E-03    2.5952        .13338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7099        .15464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .88508        1.3048        .13287E-02   -1.5520    
  13  Prefactor     .10000E-03    6.2365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.8605        .13900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7605        17.441        .15432E-03   -1.5188    
  17  Prefactor     .10000E-03    12.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2922        .29893        .43090E-03   -.83798    
  20  Prefactor     .98683        .14162        .23068E-03   -.93170    
  21  norm          5.9732        2.3724        .78749E-04   -1.5219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76782e-08
Minuit parameter uncertainties:
  1  0.000728827
  2  0.00426872
  3  51.2262
  4  2.33856e-06
  5  11.5032
  6  0.00454262
  7  20.2313
  8  21.4849
  9  0.696881
  10  1.23136e-07
  11  7.17746e-09
  12  1.30481
  13  4.1641e-07
  14  1.5447e-07
  15  0.000569957
  16  17.4537
  17  7.95163e-07
  18  0.000199938
  19  0.299327
  20  0.141673
  21  2.37239
Done.

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

Extracting fit parameters...

4FGL J0709.1+2241
   Spectrum: PowerLaw
282    Prefactor:  3.034e+01  2.023e+01  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:  9.868e-01  1.417e-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:  1.292e+00  2.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 107.277 22.685
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 6.71e-08
Energy Flux (Fixed Index): 5.98e-05 +/- 3.99e-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) = 7200.4614599
delta logL = 1.14148128206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7200.42754066
delta logL = 1.17540052957

Fit tolerance = 1e-08

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

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

 FCN=   7200.428     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      262 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5896        51.788        .36374E-02    .27134E-03
   2  Index         3.1468        2.0798        .84918E-01    .22915E-03
   3  Normalizat    1.1475        .13527        .10177        .16263E-04
   4  Prefactor     1.0201        .55039E-01    .42136E-01    .36675E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.58956
  Index      = 3.14677
  Normalizat = 1.14746
  Prefactor  = 1.02005
 **********
 **   18 **HESSE 
 **********

 FCN=   7200.428     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5896        75.357        .10259E-03   -1.5157    
   2  Index         3.1468        2.8317        .32874E-02   -.37970    
   3  Normalizat    1.1475        .38558        .45104E-03   -.88242    
   4  Prefactor     1.0201        .15968        .22678E-03   -.92064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.66528e-10
Minuit parameter uncertainties:
  1  47.9081
  2  3.04536
  3  0.386533
  4  0.159754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122665': 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) = 7200.42754045
delta logL = 1.17540073803

Extracting fit parameters...

4FGL J0709.1+2241
   Spectrum: PowerLaw
282    Prefactor:  7.590e+00  4.791e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.147e+00  3.045e+00  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:  1.020e+00  1.598e-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:  1.147e+00  3.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.43
Ra Dec: 107.277 22.685
Photon Index (Free Index): 3.15 +/- 3.05
Photon Flux (Free Index): 2.72e-07 +/- 2.86e-07
Energy Flux (Free Index): 5.08e-05 +/- 2.80e-05

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/122665/cmap_HighResolution_612835201_613094401_4FGL_J0709.1+2241_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='5.08e-05', photon_flux_error='6.71e-08', dlogl='1.18e+00', energy_flux='5.98e-05', photon_flux2='2.72e-07', job_status='DONE', time_completed='2021-08-26 19:04:02.947475', photon_index_error2='3.05', photon_index2='3.15', ts='4.51', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.29', time_epoch_completed='1630029842.95', return_code='0', job_id='122665', GAL2='1.02', EG2='1.15', return_code2='102', energy_flux_error='3.99e-05', photon_flux_error2='2.86e-07', ts2='7.43', photon_index='2.06' WHERE bin_id='1441' AND source_name='4FGL J0709.1+2241' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 19:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 122665: <4FGL_J0709.1+2241_daily_bin1441> in cluster <slac> Done

Job <4FGL_J0709.1+2241_daily_bin1441> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 18:50:41 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 18:50:49 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:49 2021
Terminated at Thu Aug 26 19:04:04 2021
Results reported at Thu Aug 26 19:04:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0709.1+2241_daily_bin1441 107.277 22.6847 612835201 613094401 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 :                                   780.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            803 sec.

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

