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


Performing analysis on: 4FGL_J0906.3-0905_daily_bin1037
RA = 136.583, Dec = -9.0925
tmin = 508118401, tmax = 508377601
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='21584', job_status='RUN', time_executed='2021-08-31 01:24:54.863949', time_epoch_executed='1630398294.86' WHERE source_name='4FGL J0906.3-0905' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21584/ft1_4FGL_J0906.3-0905_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21584/ft2_4FGL_J0906.3-0905_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21584/ft1_4FGL_J0906.3-0905_daily_bin1037.fits outfile=/scratch/kocevski/21584/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin1037.fits ra=136.583 dec=-9.0925 rad=12.0 tmin=508118401.0 tmax=508377601.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.08
user 3.44
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21584/ft2_4FGL_J0906.3-0905_daily_bin1037.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/21584/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/21584/ft1_filtered_4FGL_J0906.3-0905_daily_bin1037.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.84
user 0.32
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21584/ft1_filtered_4FGL_J0906.3-0905_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/21584/ft2_4FGL_J0906.3-0905_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/21584/ltcube_508118401_508377601_4FGL_J0906.3-0905_daily_bin1037.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/21584/ft2_4FGL_J0906.3-0905_daily_bin1037.fits
.....................!
real 12.39
user 11.64
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21584/ft1_filtered_4FGL_J0906.3-0905_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/21584/ft2_4FGL_J0906.3-0905_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/21584/ltcube_508118401_508377601_4FGL_J0906.3-0905_daily_bin1037.fits outfile=/scratch/kocevski/21584/expmap_508118401_508377601_4FGL_J0906.3-0905_daily_bin1037.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/21584/ltcube_508118401_508377601_4FGL_J0906.3-0905_daily_bin1037.fits
.....................!
real 191.17
user 185.20
sys 4.75

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/21584/ft1_filtered_4FGL_J0906.3-0905_daily_bin1037.fits scfile=/scratch/kocevski/21584/ft2_4FGL_J0906.3-0905_daily_bin1037.fits outfile=/scratch/kocevski/21584/cmap_508118401_508377601_4FGL_J0906.3-0905_daily_bin1037.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 0.78
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21584/ft1_filtered_4FGL_J0906.3-0905_daily_bin1037.fits scfile=/scratch/kocevski/21584/ft2_4FGL_J0906.3-0905_daily_bin1037.fits outfile=/scratch/kocevski/21584/cmap_HighResolution_508118401_508377601_4FGL_J0906.3-0905_daily_bin1037.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 0.83
user 0.40
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/21584/ft1_filtered_4FGL_J0906.3-0905_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/21584/ft2_4FGL_J0906.3-0905_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/21584/Model_4FGL_J0906.3-0905_daily_bin1037.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/21584/ft1_filtered_4FGL_J0906.3-0905_daily_bin1037.fits.....................!
real 61.94
user 60.14
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8919       1.0000         .10000E-03   10000.    
     3 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4468       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9405       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.656       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3651       1.0000         .10000E-03   10000.    
     9 'norm      '    15.040       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    95.494       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.436       1.0000         .10000E-03   10000.    
    16 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1572       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .63852       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1784       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=   5628.338     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2026 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.859       -.73619E-05** at limit **
   2  Prefactor     8.8881        19.545       -.34435E-05   -.37596E-04
   3  norm          .10000E-03    11.274        .80351E-05** at limit **
   4  norm          4.4487        4.3042        .11344E-06   -.50903E-03
   5  Prefactor     3.9375        6.6887       -.11276E-05   -.36172E-03
   6  Prefactor     20.648        19.438       -.34917E-05   -.13889E-03
   7  Prefactor     .10000E-03    2.9174        .22559E-08** at limit **
   8  norm          6.3662        5.0755        .72194E-06   -.15747E-03
   9  norm          15.036        9.9912       -.22375E-06   -.51038E-04
  10  Prefactor     .10000E-03    42.696        .59176E-05** at limit **
  11  Prefactor     .10000E-03    28.299        .75895E-06** at limit **
  12  Prefactor     5.0286        20.519       -.26364E-04   -.48781E-04
  13  Prefactor     95.487        54.822       -.56929E-05   -.10568E-05
  14  Prefactor     .10000E-03    19.842       -.29514E-05** at limit **
  15  Prefactor     26.440        23.011        .38514E-06   -.24216E-05
  16  norm          .10000E-03    8.1263        .29400E-06** at limit **
  17  norm          .10000E-03    1.7866        .10850E-07** at limit **
  18  norm          2.1572        1.9604       -.24220E-07    .13010E-03
  19  Normalizat    .63822        .23528        .66255E-05   -.11260E-03
  20  Prefactor     1.1787        .14980       -.22007E-06   -.21260E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.88809
  norm       = 0.0001
  norm       = 4.4487
  Prefactor  = 3.93746
  Prefactor  = 20.6484
  Prefactor  = 0.0001
  norm       = 6.36619
  norm       = 15.0364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.02863
  Prefactor  = 95.4874
  Prefactor  = 0.0001
  Prefactor  = 26.4395
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.15723
  Normalizat = 0.638217
  Prefactor  = 1.17866
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.338     FROM HESSE     STATUS=OK           293 CALLS     2319 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8881        19.547        .13441E-03   -1.5112    
   3  norm          .10000E-03    11.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4487        4.2858        .13950E-03   -1.5286    
   5  Prefactor     3.9375        6.7350        .20322E-03   -1.5311    
   6  Prefactor     20.648        19.407        .88129E-04   -1.4799    
   7  Prefactor     .10000E-03    2.9210        .12513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3662        5.0653        .14372E-03   -1.5203    
   9  norm          15.036        10.006        .10328E-03   -1.4932    
  10  Prefactor     .10000E-03    43.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0286        20.693        .17867E-03   -1.5259    
  13  Prefactor     95.487        54.849        .41130E-04   -1.3750    
  14  Prefactor     .10000E-03    19.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.440        23.006        .77913E-04   -1.4679    
  16  norm          .10000E-03    8.2447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7954        .97902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1572        1.9710        .97415E-04   -1.5414    
  19  Normalizat    .63822        .25911        .36903E-03   -1.0638    
  20  Prefactor     1.1787        .16763        .18794E-03   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03689e-10
Minuit parameter uncertainties:
  1  5.16588e-06
  2  19.5612
  3  3.00833e-05
  4  4.28612
  5  6.73626
  6  19.4129
  7  9.63295e-07
  8  5.06568
  9  10.0069
  10  7.02419e-05
  11  7.79108e-05
  12  20.4139
  13  54.8781
  14  1.31582e-05
  15  23.0136
  16  1.00524e-05
  17  4.55712e-07
  18  1.97109
  19  0.259608
  20  0.167703
Done.

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

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  9.633e-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:  1.179e+00  1.677e-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:  6.382e-01  2.596e-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: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21584/likelihoodResults_508118401_508377601_4FGL_J0906.3-0905_daily_bin1037.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) = 5628.33974212
delta logL = -0.00161132814537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5628.33813075
delta logL = 4.07362676924e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0970       1.0000          .0000       10.000    
     3 'Normalizat'    .63823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1787       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=   5628.338     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    329.30        .12549E-02** at limit **
   2  Index         2.0885        8.8600        .50000        .23213E-04
   3  Normalizat    .63822        .68025E-01    .36903E-03   -.14141E-04
   4  Prefactor     1.1787        .46230E-01    .18794E-03   -.10586E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5628.338     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      416 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    329.30        .32100E-03** at limit **
   2  Index         2.0885        8.8600        .15917E-05    .23213E-04
   3  Normalizat    .63822        .68025E-01    .56380E-07   -.14141E-04
   4  Prefactor     1.1787        .46230E-01    .93604E-08   -.10586E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5628.338     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      450 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9408        .25099E-03** at limit **
   2  Index         2.0883        5.7689        .50000        .23205E-04
   3  Normalizat    .63822        .23806        .14761E-04   -.13093E-04
   4  Prefactor     1.1787        .16198        .75177E-05   -.84687E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.08829
  Normalizat = 0.638219
  Prefactor  = 1.17866
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.338     FROM HESSE     STATUS=OK            29 CALLS      479 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9925        .50198E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0883        6.0396        .50000       -.62161    
   3  Normalizat    .63822        .23829        .29522E-05   -1.0638    
   4  Prefactor     1.1787        .16209        .15035E-05   -.86990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52489e-10
Minuit parameter uncertainties:
  1  0.000138576
  2  4.1045
  3  0.238676
  4  0.162158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21584': 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) = 5628.3381307
delta logL = 9.94577931124e-08

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  1.386e-04  1.000e-04  1.000e+04 ( 1.000e-13)
289        Index:  2.088e+00  4.105e+00  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:  1.179e+00  1.622e-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:  6.382e-01  2.387e-01  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/21584/cmap_HighResolution_508118401_508377601_4FGL_J0906.3-0905_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-08-31 01:36:26.242535', job_id='21584', GAL2='1.18', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630398986.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='9.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1037' AND source_name='4FGL J0906.3-0905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 01:36:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 21584: <4FGL_J0906.3-0905_daily_bin1037> in cluster <slac> Done

Job <4FGL_J0906.3-0905_daily_bin1037> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 01:20:52 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 01:20:54 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:20:54 2021
Terminated at Tue Aug 31 01:36:27 2021
Results reported at Tue Aug 31 01:36:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0906.3-0905_daily_bin1037 136.583 -9.0925 508118401 508377601 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 :                                   565.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

