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


Performing analysis on: 4FGL_J0906.3-0905_daily_bin1276
RA = 136.583, Dec = -9.0925
tmin = 570067201, tmax = 570326401
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='23087', job_status='RUN', time_executed='2021-08-31 01:29:34.239324', time_epoch_executed='1630398574.24' WHERE source_name='4FGL J0906.3-0905' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23087

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23087/ft1_4FGL_J0906.3-0905_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23087/ft1_4FGL_J0906.3-0905_daily_bin1276.fits outfile=/scratch/kocevski/23087/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin1276.fits ra=136.583 dec=-9.0925 rad=12.0 tmin=570067201.0 tmax=570326401.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.11
user 3.36
sys 0.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.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/23087/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.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.96
user 0.33
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/23087/ltcube_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.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/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits
.....................!
real 12.35
user 11.49
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/23087/ltcube_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.fits outfile=/scratch/kocevski/23087/expmap_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.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/23087/ltcube_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.fits
.....................!
real 192.49
user 186.24
sys 5.86

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

Setting source of interest to:
4FGL J0906.3-0905 @ 136.583 -9.0925

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.fits scfile=/scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits outfile=/scratch/kocevski/23087/cmap_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.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.583 yref=-9.0925 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.08
user 0.36
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.fits scfile=/scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits outfile=/scratch/kocevski/23087/cmap_HighResolution_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.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.583 yref=-9.0925 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.06
user 0.37
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/23087/Model_4FGL_J0906.3-0905_daily_bin1276.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/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.fits.....................!
real 63.26
user 59.94
sys 1.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.fits', '/scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits', expMap='/scratch/kocevski/23087/expmap_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.fits', expCube='/scratch/kocevski/23087/ltcube_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/23087/Model_4FGL_J0906.3-0905_daily_bin1276.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0906.3-0905'

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.519e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
289        Index:  2.105e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  1.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/23087/ft1_filtered_4FGL_J0906.3-0905_daily_bin1276.fits
Spacecraft file(s): /scratch/kocevski/23087/ft2_4FGL_J0906.3-0905_daily_bin1276.fits
Exposure map: /scratch/kocevski/23087/expmap_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.fits
Exposure cube: /scratch/kocevski/23087/ltcube_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/23087/Model_4FGL_J0906.3-0905_daily_bin1276.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) = 5419.4608193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.5727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .83173       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1116       1.0000         .10000E-03   10000.    
     8 'norm      '    .40279       1.0000         .10000E-03   10000.    
     9 'norm      '    8.3910       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.998       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.9701       1.0000         .10000E-03   10000.    
    17 'norm      '    .91399E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1204       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0862       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5419.453     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2028 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.121        .80481E-07** at limit **
   2  Prefactor     .10000E-03    45.674        .84718E-06** at limit **
   3  norm          .10000E-03    7.0370        .28884E-06** at limit **
   4  norm          4.5729        3.4696        .36501E-07   -.28120E-04
   5  Prefactor     .84484        4.4646        .19902E-06   -.11071E-04
   6  Prefactor     .10000E-03    8.2315        .11933E-06** at limit **
   7  Prefactor     6.1107        7.1488        .16954E-07   -.12325E-04
   8  norm          .40073        3.5030        .78954E-06   -.38291E-03
   9  norm          8.3879        7.5477        .18538E-05    .20535E-03
  10  Prefactor     9.3553        27.284       -.25928E-05   -.68967E-04
  11  Prefactor     19.937        47.143       -.12390E-06   -.77510E-04
  12  Prefactor     .10000E-03    16.996       -.81210E-06** at limit **
  13  Prefactor     .10000E-03    13.555       -.37911E-07** at limit **
  14  Prefactor     .10000E-03    8.9916        .25194E-07** at limit **
  15  Prefactor     .10000E-03    5.8117        .40518E-07** at limit **
  16  norm          6.9700        5.1182       -.30028E-07   -.18969E-04
  17  norm          .87597E-01    1.9499        .57149E-07   -.19570E-04
  18  norm          2.1207        2.0030        .16009E-07   -.22927E-04
  19  Normalizat    1.0869        .23241        .22328E-05   -.17202E-03
  20  Prefactor     .99455        .15281       -.21002E-05   -.46488E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.57293
  Prefactor  = 0.844845
  Prefactor  = 0.0001
  Prefactor  = 6.11068
  norm       = 0.400733
  norm       = 8.38792
  Prefactor  = 9.35529
  Prefactor  = 19.937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.96999
  norm       = 0.0875966
  norm       = 2.12071
  Normalizat = 1.08689
  Prefactor  = 0.994554
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.453     FROM HESSE     STATUS=OK           297 CALLS     2325 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.1134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5729        3.4674        .11537E-03   -1.5280    
   5  Prefactor     .84484        16.544        .29324E-02   -1.5524    
   6  Prefactor     .10000E-03    8.2690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1107        7.1459        .16240E-03   -1.5214    
   8  norm          .40073        6.8112        .25056E-02   -1.5581    
   9  norm          8.3879        7.8370        .69196E-03   -1.5129    
  10  Prefactor     9.3553        27.218        .13089E-03   -1.5096    
  11  Prefactor     19.937        47.140        .89566E-04   -1.4815    
  12  Prefactor     .10000E-03    17.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8139        .17334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.9700        5.1198        .13908E-03   -1.5180    
  17  norm          .87597E-01    17.262        .19880E-02   -1.5649    
  18  norm          2.1207        2.0072        .98252E-04   -1.5417    
  19  Normalizat    1.0869        .26584        .28997E-03   -.90174    
  20  Prefactor     .99455        .17440        .20172E-03   -.92911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83393e-08
Minuit parameter uncertainties:
  1  1.65873e-05
  2  9.7995e-05
  3  1.3786e-05
  4  3.46752
  5  7.4792
  6  4.18302e-06
  7  7.14692
  8  3.30425
  9  7.83793
  10  27.2544
  11  47.2285
  12  4.48569e-05
  13  8.21573e-07
  14  4.55265e-08
  15  1.24879e-06
  16  5.1201
  17  2.45869
  18  2.00722
  19  0.266163
  20  0.174495
Done.

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

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  6.111e+00  7.147e+00  1.000e-04  1.000e+04 ( 1.000e-13)
289        Index:  2.105e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  1.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.946e-01  1.745e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.087e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 136.583 -9.092
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.48e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.57e-05

TS (Fixed Index): 1.60
Ra Dec: 136.583 -9.092
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/23087/likelihoodResults_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.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) = 5419.23604781
delta logL = 0.217234028622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5419.23063994
delta logL = 0.222641902678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8388       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5483       1.0000          .0000       10.000    
     3 'Normalizat'    1.1013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+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=   5419.231     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8390        8.1667        .15342E-03   -.74580E-03
   2  Index         1.5485        .76051        .11613E-01   -.14223E-03
   3  Normalizat    1.1013        .24802        .28825E-03    .91737E-04
   4  Prefactor     .99046        .16681        .20207E-03    .12692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83904
  Index      = 1.5485
  Normalizat = 1.10127
  Prefactor  = 0.990456
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.231     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8390        8.2441        .30685E-04   -1.5185    
   2  Index         1.5485        .76770        .46453E-03   -.76190    
   3  Normalizat    1.1013        .24821        .11530E-04   -.89711    
   4  Prefactor     .99046        .16695        .40413E-04   -.93048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88043e-09
Minuit parameter uncertainties:
  1  8.24542
  2  0.773581
  3  0.248476
  4  0.16704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23087': 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) = 5419.2306399
delta logL = 0.222641941651

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  6.839e+00  8.245e+00  1.000e-04  1.000e+04 ( 1.000e-13)
289        Index:  1.549e+00  7.736e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  1.818e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.905e-01  1.670e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.101e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 136.583 -9.092
Photon Index (Free Index): 1.55 +/- 0.77
Photon Flux (Free Index): 1.09e-08 +/- 1.89e-08
Energy Flux (Free Index): 2.92e-05 +/- 5.06e-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/23087/cmap_HighResolution_570067201_570326401_4FGL_J0906.3-0905_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', comment='SUCCESS', photon_flux='2.48e-08', energy_flux2='2.92e-05', photon_flux_error='2.90e-08', dlogl='2.23e-01', energy_flux='1.34e-05', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-08-31 01:39:19.323890', photon_index_error2='0.77', photon_index2='1.55', ts='1.60', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='5.06e-05', EG='1.09', time_epoch_completed='1630399159.32', return_code='0', job_id='23087', GAL2='0.99', EG2='1.10', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='1.89e-08', ts2='2.05', photon_index='2.11' WHERE bin_id='1276' AND source_name='4FGL J0906.3-0905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 01:39:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 23087: <4FGL_J0906.3-0905_daily_bin1276> in cluster <slac> Done

Job <4FGL_J0906.3-0905_daily_bin1276> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 01:25:27 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 01:25:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 01:25:28 2021
Terminated at Tue Aug 31 01:39:22 2021
Results reported at Tue Aug 31 01:39:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0906.3-0905_daily_bin1276 136.583 -9.0925 570067201 570326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0906.3-0905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   557.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

