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


Performing analysis on: 4FGL_J0909.7-0230_daily_bin1595
RA = 137.446, Dec = -2.5143
tmin = 652752001, tmax = 653011201
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='51308', job_status='RUN', time_executed='2021-09-11 00:08:37.860805', time_epoch_executed='1631344117.86' WHERE source_name='4FGL J0909.7-0230' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51308/ft1_4FGL_J0909.7-0230_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51308/ft1_4FGL_J0909.7-0230_daily_bin1595.fits outfile=/scratch/kocevski/51308/ft1_filteredMKT_4FGL_J0909.7-0230_daily_bin1595.fits ra=137.446 dec=-2.5143 rad=12.0 tmin=652752001.0 tmax=653011201.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.18
user 2.97
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.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/51308/ft1_filteredMKT_4FGL_J0909.7-0230_daily_bin1595.fits evtable="EVENTS" outfile="/scratch/kocevski/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/51308/ltcube_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.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/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits
.....................!
real 15.29
user 14.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/51308/ltcube_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.fits outfile=/scratch/kocevski/51308/expmap_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.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/51308/ltcube_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.fits
.....................!
real 189.68
user 185.05
sys 4.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
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/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits scfile=/scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits outfile=/scratch/kocevski/51308/cmap_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.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 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits scfile=/scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits outfile=/scratch/kocevski/51308/cmap_HighResolution_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/51308/Model_4FGL_J0909.7-0230_daily_bin1595.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/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits.....................!
real 67.49
user 66.16
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits', '/scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits', expMap='/scratch/kocevski/51308/expmap_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.fits', expCube='/scratch/kocevski/51308/ltcube_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/51308/Model_4FGL_J0909.7-0230_daily_bin1595.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/51308/ft1_filtered_4FGL_J0909.7-0230_daily_bin1595.fits
Spacecraft file(s): /scratch/kocevski/51308/ft2_4FGL_J0909.7-0230_daily_bin1595.fits
Exposure map: /scratch/kocevski/51308/expmap_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.fits
Exposure cube: /scratch/kocevski/51308/ltcube_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/51308/Model_4FGL_J0909.7-0230_daily_bin1595.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) = 5630.52883504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    46.274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32554E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .23549E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11477E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.004       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9955       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.404       1.0000         .10000E-03   10000.    
    15 'norm      '    .70443       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1302       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4362       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .61046       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=   5630.358     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     1825 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .46715        .98478E-04** at limit **
   2  norm          46.267        12.711        .58942E-04    .12826E-03
   3  Prefactor     .10004E-03    169.63        .70194E-02** at limit **
   4  norm          .10029E-03    82.905        .32770E-02** at limit **
   5  norm          4.2873        3.0015        .10449E-03    .53663E-03
   6  Prefactor     .10000E-03    6.8431        .18142E-02** at limit **
   7  Prefactor     .10000E-03    2.8961        .12450E-02** at limit **
   8  norm          .10000E-03    11.911        .24374E-02** at limit **
   9  norm          17.001        8.9077        .97127E-04   -.18026E-04
  10  Prefactor     .10000E-03    22.660        .18142E-02** at limit **
  11  Prefactor     5.9922        5.6985        .16399E-03    .30282E-03
  12  Prefactor     .10000E-03    246.59        .42438E-03** at limit **
  13  Prefactor     .10000E-03    39.729        .18142E-02** at limit **
  14  Prefactor     21.392        22.523        .86576E-04    .83779E-05
  15  norm          .70406        2.4611        .20619E-02    .55755E-03
  16  norm          1.1297        1.1219        .76704E-04   -.47310E-03
  17  Normalizat    1.4365        .25223        .24389E-03    .13183E-03
  18  Prefactor     .61069        .17558        .25557E-03   -.94618E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 46.2671
  Prefactor  = 0.000100036
  norm       = 0.000100292
  norm       = 4.2873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 17.0015
  Prefactor  = 0.000100001
  Prefactor  = 5.99223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3924
  norm       = 0.704059
  norm       = 1.12967
  Normalizat = 1.43646
  Prefactor  = 0.610686
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.358     FROM HESSE     STATUS=OK           228 CALLS     2053 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .46715        .19696E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          46.267        12.710        .11788E-04   -1.4347    
   3  Prefactor     .10004E-03    173.97        .28078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10029E-03    85.385        .13108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2873        2.9980        .41794E-05   -1.5294    
   6  Prefactor     .10000E-03    6.8443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8962        .24900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.967        .48748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.001        8.9069        .38851E-05   -1.4883    
  10  Prefactor     .10000E-03    22.673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9922        5.6976        .65594E-05   -1.5218    
  12  Prefactor     .10000E-03    246.61        .84877E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.392        22.522        .17315E-04   -1.4783    
  15  norm          .70406        2.4580        .82477E-04   -1.5540    
  16  norm          1.1297        1.1217        .30682E-05   -1.5495    
  17  Normalizat    1.4365        .25229        .48778E-04   -.79580    
  18  Prefactor     .61069        .17572        .10223E-04   -1.0714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27705e-09
Minuit parameter uncertainties:
  1  2.32237e-06
  2  12.7105
  3  0.00501026
  4  0.00999914
  5  2.99808
  6  3.62313e-05
  7  1.26321e-05
  8  0.000196304
  9  8.90763
  10  0.000323036
  11  5.69816
  12  0.000614871
  13  0.000166228
  14  22.5314
  15  2.4583
  16  1.12176
  17  0.252508
  18  0.17588
Done.

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

Extracting fit parameters...

4FGL J0909.7-0230
   Spectrum: LogParabola
269         norm:  1.700e+01  8.908e+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:  6.107e-01  1.759e-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.436e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.20
Ra Dec: 137.446 -2.514
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.72e-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) = 5630.34232271
delta logL = 0.0159502262768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5630.34086374
delta logL = 0.0174091993495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.347       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1064       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60662       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.

 FCN=   5630.341     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.347        28.341        .24041E-02    .57157E-03
   2  alpha         2.1064        1.2503        .30285        .44478E-04
   3  Normalizat    1.4444        .22604        .55030E-01   -.73332E-04
   4  Prefactor     .60662        .16108        .41144E-01    .60974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.3472
  alpha      = 2.10643
  Normalizat = 1.44442
  Prefactor  = 0.606621
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.341     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.347        9.2164        .96162E-04   -1.4875    
   2  alpha         2.1064        .46496        .12081E-01   -.15808    
   3  Normalizat    1.4444        .24782        .24332E-03   -.79352    
   4  Prefactor     .60662        .17587        .25633E-03   -1.0731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62679e-10
Minuit parameter uncertainties:
  1  9.21711
  2  0.467758
  3  0.248027
  4  0.176028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51308': 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) = 5630.34086374
delta logL = 0.0174091996669

Extracting fit parameters...

4FGL J0909.7-0230
   Spectrum: LogParabola
269         norm:  1.735e+01  9.217e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  2.106e+00  4.678e-01  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:  6.066e-01  1.760e-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.444e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 137.446 -2.514
Photon Index (Free Index): 2.11 +/- 0.47
Photon Flux (Free Index): 7.65e-08 +/- 4.93e-08
Energy Flux (Free Index): 3.45e-05 +/- 2.05e-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/51308/cmap_HighResolution_652752001_653011201_4FGL_J0909.7-0230_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='3.45e-05', photon_flux_error='4.30e-08', dlogl='1.74e-02', energy_flux='3.29e-05', photon_flux2='7.65e-08', job_status='DONE', time_completed='2021-09-11 00:16:40.052969', photon_index_error2='0.47', photon_index2='2.11', ts='7.20', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.44', time_epoch_completed='1631344600.05', return_code='0', job_id='51308', GAL2='0.61', EG2='1.44', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.93e-08', ts2='7.19', photon_index='2.19' WHERE bin_id='1595' AND source_name='4FGL J0909.7-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:16:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 51308: <4FGL_J0909.7-0230_daily_bin1595> in cluster <slac> Done

Job <4FGL_J0909.7-0230_daily_bin1595> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:06:26 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:06:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:06:28 2021
Terminated at Sat Sep 11 00:16:40 2021
Results reported at Sat Sep 11 00:16:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0909.7-0230_daily_bin1595 137.446 -2.5143 652752001 653011201 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 :                                   484.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            614 sec.

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

