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


Performing analysis on: 4FGL_J0905.6+1358_daily_bin487
RA = 136.402, Dec = 13.975
tmin = 365558401, tmax = 365817601
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='9708', job_status='RUN', time_executed='2021-08-31 00:49:35.727176', time_epoch_executed='1630396175.73' WHERE source_name='4FGL J0905.6+1358' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9708

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9708/ft1_4FGL_J0905.6+1358_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9708/ft1_4FGL_J0905.6+1358_daily_bin487.fits outfile=/scratch/kocevski/9708/ft1_filteredMKT_4FGL_J0905.6+1358_daily_bin487.fits ra=136.402 dec=13.975 rad=12.0 tmin=365558401.0 tmax=365817601.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.60
user 3.36
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.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/9708/ft1_filteredMKT_4FGL_J0905.6+1358_daily_bin487.fits evtable="EVENTS" outfile="/scratch/kocevski/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/9708/ltcube_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.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/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits
.....................!
real 11.96
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/9708/ltcube_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.fits outfile=/scratch/kocevski/9708/expmap_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.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/9708/ltcube_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.fits
.....................!
real 190.51
user 184.89
sys 5.23

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

Setting source of interest to:
4FGL J0905.6+1358 @ 136.402 13.975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.fits scfile=/scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits outfile=/scratch/kocevski/9708/cmap_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.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=136.402 yref=13.975 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.fits scfile=/scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits outfile=/scratch/kocevski/9708/cmap_HighResolution_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.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=136.402 yref=13.975 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.61
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9708/Model_4FGL_J0905.6+1358_daily_bin487.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/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.fits.....................!
real 66.09
user 63.79
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.fits', '/scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits', expMap='/scratch/kocevski/9708/expmap_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.fits', expCube='/scratch/kocevski/9708/ltcube_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/9708/Model_4FGL_J0905.6+1358_daily_bin487.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0905.6+1358'

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        alpha:  1.592e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.283e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/9708/ft1_filtered_4FGL_J0905.6+1358_daily_bin487.fits
Spacecraft file(s): /scratch/kocevski/9708/ft2_4FGL_J0905.6+1358_daily_bin487.fits
Exposure map: /scratch/kocevski/9708/expmap_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.fits
Exposure cube: /scratch/kocevski/9708/ltcube_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/9708/Model_4FGL_J0905.6+1358_daily_bin487.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) = 6795.10214179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .97940       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.777       1.0000         .10000E-03   10000.    
     7 'norm      '    7.6923       1.0000         .10000E-03   10000.    
     8 'norm      '    45.964       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .96968E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.1726       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.3980       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6795.030     FROM MIGRAD    STATUS=CONVERGED    251 CALLS     1050 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8750        .86486E-07** at limit **
   2  Prefactor     3.7750        6.9584        .45819E-06   -.28572E-05
   3  Prefactor     .10000E-03    3.8798        .13185E-06** at limit **
   4  Prefactor     .10000E-03    11.555        .43696E-07** at limit **
   5  norm          .98042        .74179       -.26793E-07   -.33450E-04
   6  Prefactor     30.768        16.785        .40460E-07   -.49076E-04
   7  norm          7.6913        8.4256        .18512E-05    .59098E-04
   8  norm          45.944        40.461       -.14818E-05   -.32604E-04
   9  Prefactor     .10000E-03    401.66       -.23403E-04** at limit **
  10  Prefactor     .10000E-03    3.0721        .23617E-06** at limit **
  11  norm          .10000E-03    .61478        .21833E-06** at limit **
  12  Prefactor     .10000E-03    12.976        .13939E-06** at limit **
  13  Normalizat    1.1726        .19923       -.97784E-06   -.12369E-03
  14  Prefactor     1.3980        .17498       -.10088E-05   -.11953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.77501
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.98042
  Prefactor  = 30.7681
  norm       = 7.69134
  norm       = 45.9439
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17265
  Prefactor  = 1.39801
 **********
 **   18 **HESSE 
 **********

 FCN=   6795.030     FROM HESSE     STATUS=OK           164 CALLS     1214 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7750        6.9230        .20782E-03   -1.5319    
   3  Prefactor     .10000E-03    17.349        .31052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .98042        .71145        .57460E-03   -1.5510    
   6  Prefactor     30.768        16.740        .72222E-04   -1.4598    
   7  norm          7.6913        8.4702        .72293E-03   -1.5153    
   8  norm          45.944        40.344        .59139E-04   -1.4351    
   9  Prefactor     .10000E-03    403.03        .41565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1444        .14119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0992        .12555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    1.1726        .23770        .28724E-03   -.87452    
  14  Prefactor     1.3980        .20967        .23621E-03   -.80438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48143e-10
Minuit parameter uncertainties:
  1  7.04071e-06
  2  6.92451
  3  0.000482373
  4  4.75912e-06
  5  0.711461
  6  16.7426
  7  8.47147
  8  40.3684
  9  0.00187101
  10  1.14495e-05
  11  1.10609e-06
  12  2.96778e-05
  13  0.237922
  14  0.209799
Done.

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

Extracting fit parameters...

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  7.691e+00  8.471e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        alpha:  1.592e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.283e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.398e+00  2.098e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.173e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 136.402 13.975
Photon Index (Fixed Index): 1.59 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 1.37e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 2.98e-05

TS (Fixed Index): 1.30
Ra Dec: 136.402 13.975
Photon Flux Upper Limit: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9708/likelihoodResults_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.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) = 6794.47482917
delta logL = 0.55489832456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6794.46794532
delta logL = 0.561782175506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3790       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6794.468     FROM MIGRAD    STATUS=FAILED        89 CALLS      286 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3774        11.811        .12997E-03    .50822E-04
   2  alpha         2.5699        1.5022        .11588E-01    .35627E-03
   3  Normalizat    1.1394        .25526        .29077E-03    .57772E-03
   4  Prefactor     1.4072        .21704        .23542E-03    .27764E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6794.468     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      359 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3774        11.811        .15532E-03   -1.5289    
   2  alpha         2.5699        1.5022        .20021E-02    .27945E-01
   3  Normalizat    1.1394        .25526        .30598E-03   -.88497    
   4  Prefactor     1.4072        .21704        .32185E-03   -.80172    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6794.468     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      388 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3773        7.7709        .51987E-05   -.21125E-03
   2  alpha         2.5699        1.0273        .23175E-02    .13235E-04
   3  Normalizat    1.1394        .24380        .58154E-04    .23580E-03
   4  Prefactor     1.4072        .21209        .47083E-04    .10861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.37726
  alpha      = 2.56988
  Normalizat = 1.13939
  Prefactor  = 1.40723
 **********
 **   18 **HESSE 
 **********

 FCN=   6794.468     FROM HESSE     STATUS=OK            23 CALLS      411 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3773        7.3499        .10397E-05   -1.5289    
   2  alpha         2.5699        .97437        .92702E-04    .27955E-01
   3  Normalizat    1.1394        .24285        .11631E-04   -.88497    
   4  Prefactor     1.4072        .21169        .94167E-05   -.80172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38798e-10
Minuit parameter uncertainties:
  1  7.35143
  2  1.00091
  3  0.243093
  4  0.211823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9708': 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) = 6794.46794528
delta logL = 0.561782222881

Extracting fit parameters...

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  4.377e+00  7.351e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        alpha:  2.570e+00  1.001e+00  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.283e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.407e+00  2.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.139e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 136.402 13.975
Photon Index (Free Index): 2.57 +/- 1.00
Photon Flux (Free Index): 4.53e-08 +/- 5.22e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.40e-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/9708/cmap_HighResolution_365558401_365817601_4FGL_J0905.6+1358_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-04', comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='1.70e-05', photon_flux_error='1.37e-08', dlogl='5.62e-01', energy_flux='2.71e-05', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-08-31 00:58:01.303354', photon_index_error2='1.00', photon_index2='2.57', ts='1.30', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', photon_flux_upper_limit='4.84e-08', energy_flux_error2='1.40e-05', EG='1.17', time_epoch_completed='1630396681.3', return_code='0', job_id='9708', GAL2='1.41', EG2='1.14', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='5.22e-08', ts2='2.42', photon_index='1.59' WHERE bin_id='487' AND source_name='4FGL J0905.6+1358' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 00:58:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 9708: <4FGL_J0905.6+1358_daily_bin487> in cluster <slac> Done

Job <4FGL_J0905.6+1358_daily_bin487> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 00:45:34 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 00:45:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 00:45:36 2021
Terminated at Tue Aug 31 00:58:02 2021
Results reported at Tue Aug 31 00:58:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0905.6+1358_daily_bin487 136.402 13.975 365558401 365817601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0905.6+1358 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   503.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            748 sec.

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

