/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 39 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 = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0906.3-0905_daily_bin1193
RA = 136.583, Dec = -9.0925
tmin = 548553601, tmax = 548812801
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='21883', job_status='RUN', time_executed='2021-08-31 01:23:41.795140', time_epoch_executed='1630398221.8' WHERE source_name='4FGL J0906.3-0905' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21883/ft1_4FGL_J0906.3-0905_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21883/ft1_4FGL_J0906.3-0905_daily_bin1193.fits outfile=/scratch/kocevski/21883/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin1193.fits ra=136.583 dec=-9.0925 rad=12.0 tmin=548553601.0 tmax=548812801.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 5.96
user 3.21
sys 2.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21883/ft1_filtered_4FGL_J0906.3-0905_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/21883/ltcube_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.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/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits
.....................!
real 15.04
user 11.88
sys 3.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21883/ft1_filtered_4FGL_J0906.3-0905_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/21883/ltcube_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.fits outfile=/scratch/kocevski/21883/expmap_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.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/21883/ltcube_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.fits
.....................!
real 193.59
user 185.78
sys 7.41

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/21883/ft1_filtered_4FGL_J0906.3-0905_daily_bin1193.fits scfile=/scratch/kocevski/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits outfile=/scratch/kocevski/21883/cmap_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.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 3.17
user 0.36
sys 2.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21883/ft1_filtered_4FGL_J0906.3-0905_daily_bin1193.fits scfile=/scratch/kocevski/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits outfile=/scratch/kocevski/21883/cmap_HighResolution_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.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 2.97
user 0.37
sys 2.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/21883/ft1_filtered_4FGL_J0906.3-0905_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/21883/Model_4FGL_J0906.3-0905_daily_bin1193.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/21883/ft1_filtered_4FGL_J0906.3-0905_daily_bin1193.fits.....................!
real 69.23
user 64.27
sys 4.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/21883/ft1_filtered_4FGL_J0906.3-0905_daily_bin1193.fits', '/scratch/kocevski/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits', expMap='/scratch/kocevski/21883/expmap_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.fits', expCube='/scratch/kocevski/21883/ltcube_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/21883/Model_4FGL_J0906.3-0905_daily_bin1193.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/21883/ft1_filtered_4FGL_J0906.3-0905_daily_bin1193.fits
Spacecraft file(s): /scratch/kocevski/21883/ft2_4FGL_J0906.3-0905_daily_bin1193.fits
Exposure map: /scratch/kocevski/21883/expmap_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.fits
Exposure cube: /scratch/kocevski/21883/ltcube_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/21883/Model_4FGL_J0906.3-0905_daily_bin1193.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) = 6293.56682024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.021       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .41663E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.1978       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0311       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14747E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11260       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6785       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11178E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0787       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .64296       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2789       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91157       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6293.489     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2214 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.021        18.022         .0000        .22455E-02
   2  Prefactor     .10000E-03    7.9651         .0000    ** at limit **
   3  norm          .10000E-03    4.4006         .0000    ** at limit **
   4  norm          3.1999        2.6087         .0000        .22163E-04
   5  Prefactor     .89846        4.9262         .0000        .72294E-03
   6  Prefactor     .10000E-03    16.805         .0000    ** at limit **
   7  Prefactor     .10000E-03    3.3693         .0000    ** at limit **
   8  norm          .10000E-03    1.9716         .0000    ** at limit **
   9  norm          5.1984        4.2615         .0000        .36323E-04
  10  Prefactor     5.0296        13.584         .0000       -.12312E-02
  11  Prefactor     .10006E-03    152.62         .0000    ** at limit **
  12  Prefactor     .61398E-01    12.570         .0000       -.80178E-03
  13  Prefactor     8.6896        27.225         .0000       -.81391E-03
  14  Prefactor     .30391E-03    86.547         .0000    ** at limit **
  15  Prefactor     .10000E-03    7.6402         .0000    ** at limit **
  16  norm          2.0623        11.561         .0000        .12115E-01
  17  norm          .10000E-03    1.7525         .0000    ** at limit **
  18  norm          .64343        1.4613         .0000        .10191E-02
  19  Normalizat    1.2790        .19441         .0000       -.32486E-04
  20  Prefactor     .91160        .12878         .0000       -.28551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0209
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.19989
  Prefactor  = 0.898457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 5.19838
  Prefactor  = 5.02964
  Prefactor  = 0.00010006
  Prefactor  = 0.0613978
  Prefactor  = 8.68957
  Prefactor  = 0.000303911
  Prefactor  = 0.0001
  norm       = 2.06234
  norm       = 0.0001
  norm       = 0.643426
  Normalizat = 1.27898
  Prefactor  = 0.911595
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.489     FROM HESSE     STATUS=OK           315 CALLS     2529 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.021        18.022        .11101E-03   -1.4986    
   2  Prefactor     .10000E-03    7.9702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.4621        .16246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1999        2.6072        .11207E-03   -1.5350    
   5  Prefactor     .89846        9.8738        .32888E-02   -1.5518    
   6  Prefactor     .10000E-03    17.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3880        .14219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    24.307        .21319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1984        4.2579        .14385E-03   -1.5252    
  10  Prefactor     5.0296        13.578        .17927E-03   -1.5259    
  11  Prefactor     .10006E-03    158.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .61398E-01    15.853        .81597E-01   -1.5658    
  13  Prefactor     8.6896        27.204        .13607E-03   -1.5118    
  14  Prefactor     .30391E-03    70.039        .13590       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0623        10.370        .14322E-02   -1.5421    
  17  norm          .10000E-03    3.1286        .20367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .64343        1.1773        .14017E-02   -1.5548    
  19  Normalizat    1.2790        .22588        .26333E-03   -.84196    
  20  Prefactor     .91160        .15042        .20544E-03   -.95737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42148e-08
Minuit parameter uncertainties:
  1  18.0293
  2  1.00044e-05
  3  2.7581e-06
  4  2.60727
  5  5.95782
  6  4.64198e-05
  7  5.1509e-07
  8  0.000647906
  9  4.25812
  10  13.586
  11  0.00620112
  12  1.97206
  13  27.2424
  14  0.239293
  15  9.59566e-06
  16  9.25163
  17  5.06639e-07
  18  1.17729
  19  0.22605
  20  0.150488
Done.

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

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  5.151e-07  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.116e-01  1.505e-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.279e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.583 -9.092
Photon Flux Upper Limit: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21883/likelihoodResults_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.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): 102
logL (Free Index) = 6293.49042044
delta logL = -0.00140387058491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6293.48901643
delta logL = 1.43698343891e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0869       1.0000          .0000       10.000    
     3 'Normalizat'    1.2790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91159       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6293.489     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10133E-03    47.186        .14410E-02** at limit **
   2  Index         2.0218        5.8408        .50000        .33906E-04
   3  Normalizat    1.2790        .18578E-01    .26333E-03   -.95540E-04
   4  Prefactor     .91160        .12544E-01    .20544E-03   -.19424E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6293.489     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      365 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    47.186        .28469E-03** at limit **
   2  Index         2.0207        5.8408        .36984E-03    .33906E-04
   3  Normalizat    1.2790        .18578E-01    .44621E-05   -.95540E-04
   4  Prefactor     .91159        .12544E-01    .25666E-05   -.19424E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6293.489     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      417 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.650        .28820E-02** at limit **
   2  Index         1.7521        9.1037        .50000        .55788E-06
   3  Normalizat    1.2790        .16070E-01    .10533E-04   -.12865E-03
   4  Prefactor     .91159        .10851E-01    .82174E-05   -.16159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.75214
  Normalizat = 1.27898
  Prefactor  = 0.911595
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.489     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    205.77        .57640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7521        5.1180        .50000       -.70702    
   3  Normalizat    1.2790        .39139E-01    .21067E-05   -.84196    
   4  Prefactor     .91159        .26421E-01    .16435E-05   -.95737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.17776e-10
Minuit parameter uncertainties:
  1  0.000645634
  2  699.479
  3  0.0391399
  4  0.0264215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21883': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6293.48901465
delta logL = 1.92538846022e-06

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  6.456e-04  1.000e-04  1.000e+04 ( 1.000e-13)
289        Index:  1.752e+00  6.995e+02  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.116e-01  2.642e-02  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.279e+00  3.914e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.583 -9.092

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/21883/cmap_HighResolution_548553601_548812801_4FGL_J0906.3-0905_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-08-31 01:35:55.972569', job_id='21883', GAL2='0.91', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630398955.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1193' AND source_name='4FGL J0906.3-0905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 01:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 21883: <4FGL_J0906.3-0905_daily_bin1193> in cluster <slac> Done

Job <4FGL_J0906.3-0905_daily_bin1193> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 01:21:19 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 01:21:21 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:21:21 2021
Terminated at Tue Aug 31 01:35:57 2021
Results reported at Tue Aug 31 01:35:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0906.3-0905_daily_bin1193 136.583 -9.0925 548553601 548812801 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            878 sec.

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

