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


Performing analysis on: 4FGL_J0909.7-0230_daily_bin1444
RA = 137.446, Dec = -2.5143
tmin = 613612801, tmax = 613872001
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='38445', job_status='RUN', time_executed='2021-08-31 02:12:42.176343', time_epoch_executed='1630401162.18' WHERE source_name='4FGL J0909.7-0230' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38445

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38445/ft1_4FGL_J0909.7-0230_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38445/ft1_4FGL_J0909.7-0230_daily_bin1444.fits outfile=/scratch/kocevski/38445/ft1_filteredMKT_4FGL_J0909.7-0230_daily_bin1444.fits ra=137.446 dec=-2.5143 rad=12.0 tmin=613612801.0 tmax=613872001.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 7.13
user 2.33
sys 4.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.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/38445/ft1_filteredMKT_4FGL_J0909.7-0230_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.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 5.97
user 0.32
sys 5.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/38445/ltcube_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.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/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits
.....................!
real 17.53
user 12.03
sys 5.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/38445/ltcube_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.fits outfile=/scratch/kocevski/38445/expmap_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.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/38445/ltcube_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.fits
.....................!
real 198.47
user 186.16
sys 10.47

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
Added 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J0909.7-0230 @ 137.446 -2.5143

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.fits scfile=/scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits outfile=/scratch/kocevski/38445/cmap_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.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=137.446 yref=-2.5143 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 5.97
user 0.36
sys 4.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.fits scfile=/scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits outfile=/scratch/kocevski/38445/cmap_HighResolution_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.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=137.446 yref=-2.5143 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 5.51
user 0.38
sys 4.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38445/Model_4FGL_J0909.7-0230_daily_bin1444.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
Working on...
/scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.fits.....................!
real 98.79
user 86.23
sys 7.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.fits', '/scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits', expMap='/scratch/kocevski/38445/expmap_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.fits', expCube='/scratch/kocevski/38445/ltcube_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38445/Model_4FGL_J0909.7-0230_daily_bin1444.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0909.7-0230'

4FGL J0909.7-0230
   Spectrum: LogParabola
269         norm:  6.868e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.194e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.005e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  6.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/38445/ft1_filtered_4FGL_J0909.7-0230_daily_bin1444.fits
Spacecraft file(s): /scratch/kocevski/38445/ft2_4FGL_J0909.7-0230_daily_bin1444.fits
Exposure map: /scratch/kocevski/38445/expmap_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.fits
Exposure cube: /scratch/kocevski/38445/ltcube_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38445/Model_4FGL_J0909.7-0230_daily_bin1444.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) = 8783.21569486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55726       1.0000         .10000E-03   10000.    
     2 'norm      '    16.047       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.941       1.0000         .10000E-03   10000.    
     5 'norm      '    .42715E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7262       1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .30123       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90976       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8783.191     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1536 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55709        .73377       -.11761E-07   -.23423E-03
   2  norm          16.047        8.3705       -.27076E-06   -.13723E-03
   3  Prefactor     .10000E-03    9.6910        .31693E-06** at limit **
   4  norm          23.948        8.6856        .31898E-05    .60285E-03
   5  norm          .36837E-01    .92994       -.12427E-05    .10242E-02
   6  Prefactor     .10000E-03    7.0065        .80388E-06** at limit **
   7  Prefactor     3.7264        3.4450       -.38680E-06    .27300E-03
   8  norm          .10001E-03    2.0656        .24877E-05** at limit **
   9  norm          2.2247        3.5973       -.45858E-06   -.88582E-03
  10  Prefactor     .10000E-03    3.4566       -.27636E-05** at limit **
  11  Prefactor     .10000E-03    1.4160        .57875E-07** at limit **
  12  Prefactor     .10000E-03    6.9771        .84903E-07** at limit **
  13  Prefactor     10.975        11.678       -.10037E-05   -.22357E-03
  14  Prefactor     .10000E-03    4.4278       -.26267E-05** at limit **
  15  norm          .10000E-03    1.8372        .19268E-07** at limit **
  16  norm          .30100        .41696       -.66952E-07   -.26397E-02
  17  Normalizat    1.0466        .15657       -.32972E-06   -.36805E-03
  18  Prefactor     .90971        .11815       -.29216E-06   -.28735E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.55709
  norm       = 16.047
  Prefactor  = 0.0001
  norm       = 23.9475
  norm       = 0.036837
  Prefactor  = 0.0001
  Prefactor  = 3.72636
  norm       = 0.000100012
  norm       = 2.22474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9749
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.301001
  Normalizat = 1.04657
  Prefactor  = 0.909708
 **********
 **   18 **HESSE 
 **********

 FCN=   8783.191     FROM HESSE     STATUS=OK           250 CALLS     1786 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55709        .61713        .89323E-03   -1.5559    
   2  norm          16.047        8.3562        .99982E-04   -1.4907    
   3  Prefactor     .10000E-03    9.7652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.948        8.8234        .81866E-04   -1.4729    
   5  norm          .36837E-01    11.211        .16822E-02   -1.5670    
   6  Prefactor     .10000E-03    7.0679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7264        3.4432        .16214E-03   -1.5322    
   8  norm          .10001E-03    3.6657        .24504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2247        3.6127        .21986E-03   -1.5410    
  10  Prefactor     .10000E-03    3.4532        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4449        .10881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.975        11.682        .12093E-03   -1.5045    
  14  Prefactor     .10000E-03    4.4241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9236        .24795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .30100        .38976        .67272E-03   -1.5598    
  17  Normalizat    1.0466        .18348        .25142E-03   -.91486    
  18  Prefactor     .90971        .14005        .20823E-03   -.95803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79288e-09
Minuit parameter uncertainties:
  1  0.617141
  2  8.35678
  3  1.71778e-05
  4  8.82386
  5  1.28375
  6  4.64613e-05
  7  3.44336
  8  0.000422596
  9  3.61307
  10  3.53371e-06
  11  1.02719e-06
  12  4.7299e-06
  13  11.6839
  14  1.45186e-06
  15  3.44348e-06
  16  0.389762
  17  0.183587
  18  0.140109
Done.

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

Extracting fit parameters...

4FGL J0909.7-0230
   Spectrum: LogParabola
269         norm:  2.225e+00  3.613e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.194e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.005e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  6.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  9.097e-01  1.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.047e+00  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 137.446 -2.514
Photon Flux Upper Limit: 5.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38445/likelihoodResults_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.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): 0
logL (Free Index) = 8782.97349154
delta logL = 0.217633638453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8782.97274694
delta logL = 0.218378237956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1686       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9578       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5040E+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=   8782.973     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1684        3.6223        .15155E-03    .14568E-03
   2  alpha         2.9577        1.2115        .24834E-01    .15997E-04
   3  Normalizat    1.0232        .18353        .25395E-03    .18847E-03
   4  Prefactor     .92042        .14064        .20713E-03   -.13502E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.16844
  alpha      = 2.9577
  Normalizat = 1.02322
  Prefactor  = 0.920422
 **********
 **   18 **HESSE 
 **********

 FCN=   8782.973     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1684        3.2178        .60622E-05   -1.5413    
   2  alpha         2.9577        1.0846        .99336E-03    .18412    
   3  Normalizat    1.0232        .18359        .10158E-04   -.92256    
   4  Prefactor     .92042        .14065        .82854E-05   -.95431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95675e-10
Minuit parameter uncertainties:
  1  3.21802
  2  1.12334
  3  0.1837
  4  0.14071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38445': 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) = 8782.97274692
delta logL = 0.218378257288

Extracting fit parameters...

4FGL J0909.7-0230
   Spectrum: LogParabola
269         norm:  2.168e+00  3.218e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.958e+00  1.123e+00  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  1.005e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  6.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  9.204e-01  1.407e-01  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.023e+00  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 137.446 -2.514
Photon Index (Free Index): 2.96 +/- 1.12
Photon Flux (Free Index): 2.67e-08 +/- 3.50e-08
Energy Flux (Free Index): 5.74e-06 +/- 6.66e-06

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/38445/cmap_HighResolution_613612801_613872001_4FGL_J0909.7-0230_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', comment='SUCCESS', energy_flux2='5.74e-06', dlogl='2.18e-01', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-08-31 02:24:29.565158', photon_index_error2='1.12', photon_index2='2.96', ts='0.55', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='5.81e-08', energy_flux_error2='6.66e-06', EG='1.05', time_epoch_completed='1630401869.57', return_code='0', job_id='38445', GAL2='0.92', EG2='1.02', return_code2='0', photon_flux_error2='3.50e-08', ts2='1.01', photon_index='2.19' WHERE bin_id='1444' AND source_name='4FGL J0909.7-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 02:24:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 38445: <4FGL_J0909.7-0230_daily_bin1444> in cluster <slac> Done

Job <4FGL_J0909.7-0230_daily_bin1444> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 02:11:02 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 02:11:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 02:11:04 2021
Terminated at Tue Aug 31 02:24:31 2021
Results reported at Tue Aug 31 02:24:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0909.7-0230_daily_bin1444 137.446 -2.5143 613612801 613872001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0909.7-0230 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            809 sec.

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

