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


Performing analysis on: 4FGL_J0906.3-0905_daily_bin1022
RA = 136.583, Dec = -9.0925
tmin = 504230401, tmax = 504489601
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='21560', job_status='RUN', time_executed='2021-08-31 01:24:04.776607', time_epoch_executed='1630398244.78' WHERE source_name='4FGL J0906.3-0905' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21560/ft1_4FGL_J0906.3-0905_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21560/ft2_4FGL_J0906.3-0905_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21560/ft1_4FGL_J0906.3-0905_daily_bin1022.fits outfile=/scratch/kocevski/21560/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin1022.fits ra=136.583 dec=-9.0925 rad=12.0 tmin=504230401.0 tmax=504489601.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.90
user 3.33
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21560/ft1_filtered_4FGL_J0906.3-0905_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/21560/ft2_4FGL_J0906.3-0905_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/21560/ltcube_504230401_504489601_4FGL_J0906.3-0905_daily_bin1022.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/21560/ft2_4FGL_J0906.3-0905_daily_bin1022.fits
.....................!
real 11.86
user 11.29
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21560/ft1_filtered_4FGL_J0906.3-0905_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/21560/ft2_4FGL_J0906.3-0905_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/21560/ltcube_504230401_504489601_4FGL_J0906.3-0905_daily_bin1022.fits outfile=/scratch/kocevski/21560/expmap_504230401_504489601_4FGL_J0906.3-0905_daily_bin1022.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/21560/ltcube_504230401_504489601_4FGL_J0906.3-0905_daily_bin1022.fits
.....................!
real 189.91
user 184.74
sys 4.66

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/21560/ft1_filtered_4FGL_J0906.3-0905_daily_bin1022.fits scfile=/scratch/kocevski/21560/ft2_4FGL_J0906.3-0905_daily_bin1022.fits outfile=/scratch/kocevski/21560/cmap_504230401_504489601_4FGL_J0906.3-0905_daily_bin1022.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.92
user 0.38
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21560/ft1_filtered_4FGL_J0906.3-0905_daily_bin1022.fits scfile=/scratch/kocevski/21560/ft2_4FGL_J0906.3-0905_daily_bin1022.fits outfile=/scratch/kocevski/21560/cmap_HighResolution_504230401_504489601_4FGL_J0906.3-0905_daily_bin1022.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.14
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/21560/ft1_filtered_4FGL_J0906.3-0905_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/21560/ft2_4FGL_J0906.3-0905_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/21560/Model_4FGL_J0906.3-0905_daily_bin1022.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/21560/ft1_filtered_4FGL_J0906.3-0905_daily_bin1022.fits.....................!
real 80.99
user 70.41
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.344       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9505       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3306       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44875       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39424E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16730E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.4284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1226       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22989E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    90.669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5232       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1357       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93229       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=   6681.441     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2117 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.786        .90472E-06** at limit **
   2  Prefactor     15.347        24.591        .53862E-06    .53826E-05
   3  norm          2.9503        4.5329       -.15897E-06   -.91613E-04
   4  norm          2.3303        2.5996        .14506E-06   -.95265E-04
   5  Prefactor     .47919        5.2622        .23368E-05   -.67161E-03
   6  Prefactor     .10011E-03    11.321        .31177E-05** at limit **
   7  Prefactor     .10000E-03    3.6083        .20238E-07** at limit **
   8  norm          .10000E-03    2.1426       -.10735E-06** at limit **
   9  norm          5.4345        6.5102        .18257E-05    .89276E-03
  10  Prefactor     2.0686        34.507       -.64654E-05   -.71565E-04
  11  Prefactor     .10002E-03    90.923        .60258E-05** at limit **
  12  Prefactor     .10000E-03    15.622       -.33279E-06** at limit **
  13  Prefactor     90.669        39.986        .21180E-06    .18195E-04
  14  Prefactor     11.292        30.832        .23008E-05    .43264E-04
  15  Prefactor     .10000E-03    3.5465       -.99035E-09** at limit **
  16  norm          .10000E-03    6.0367       -.55862E-06** at limit **
  17  norm          1.5232        1.5017       -.18930E-07   -.39871E-04
  18  norm          .10000E-03    .45599       -.78235E-08** at limit **
  19  Normalizat    1.1358        .19406       -.57359E-06   -.15293E-03
  20  Prefactor     .93215        .12200        .33958E-06   -.11765E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.3471
  norm       = 2.95034
  norm       = 2.33031
  Prefactor  = 0.479186
  Prefactor  = 0.000100105
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.43452
  Prefactor  = 2.06859
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 90.6691
  Prefactor  = 11.2924
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.52318
  norm       = 0.0001
  Normalizat = 1.13577
  Prefactor  = 0.932147
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.441     FROM HESSE     STATUS=OK           295 CALLS     2412 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.347        24.615        .10225E-03   -1.4924    
   3  norm          2.9503        4.5068        .20833E-03   -1.5364    
   4  norm          2.3303        2.5570        .13240E-03   -1.5403    
   5  Prefactor     .47919        18.808        .26412E-02   -1.5570    
   6  Prefactor     .10011E-03    43.218        .41548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6313        .15161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1227        .22979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.4345        6.8482        .86234E-03   -1.5242    
  10  Prefactor     2.0686        35.633        .28306E-03   -1.5420    
  11  Prefactor     .10002E-03    94.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     90.669        40.107        .42200E-04   -1.3801    
  14  Prefactor     11.292        30.750        .11916E-03   -1.5036    
  15  Prefactor     .10000E-03    3.5473        .15033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.1725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5232        1.5235        .97011E-04   -1.5461    
  18  norm          .10000E-03    .45731        .53903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1358        .22524        .27372E-03   -.88611    
  20  Prefactor     .93215        .14563        .19767E-03   -.95027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1932e-09
Minuit parameter uncertainties:
  1  4.27665e-05
  2  24.6309
  3  4.50727
  4  2.55717
  5  6.00559
  6  0.00427004
  7  6.7128e-08
  8  4.92023e-05
  9  6.84914
  10  17.1824
  11  0.00239488
  12  2.44991e-05
  13  40.1193
  14  30.7927
  15  4.43429e-06
  16  7.94285e-05
  17  1.52352
  18  2.10148e-07
  19  0.225436
  20  0.145695
Done.

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

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  6.713e-08  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.321e-01  1.457e-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.136e+00  2.254e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21560/likelihoodResults_504230401_504489601_4FGL_J0906.3-0905_daily_bin1022.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) = 6681.44238765
delta logL = -0.00131135072479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6681.44107592
delta logL = 3.87152795156e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0786       1.0000          .0000       10.000    
     3 'Normalizat'    1.1358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93215       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=   6681.441     FROM MIGRAD    STATUS=FAILED        89 CALLS      247 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10169E-03    37.105        .15585E-02** at limit **
   2  Index         2.0147        5.9866        .50000        .46865E-04
   3  Normalizat    1.1358        .14918E-01    .27373E-03   -.26166E-05
   4  Prefactor     .93215        .99205E-02    .19767E-03   -.80521E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6681.441     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      365 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10169E-03    37.105        .33717E-03** at limit **
   2  Index         2.0147        5.9866        .48772E-03    .46865E-04
   3  Normalizat    1.1358        .14918E-01    .30486E-05   -.26166E-05
   4  Prefactor     .93215        .99205E-02    .24149E-05   -.80521E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6681.441     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      411 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.176        .31171E-02** at limit **
   2  Index         1.6821        5.1044        .50000        .48362E-07
   3  Normalizat    1.1358        .13943E-01    .10949E-04    .95319E-04
   4  Prefactor     .93215        .92726E-02    .79066E-05    .13890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68212
  Normalizat = 1.13577
  Prefactor  = 0.932146
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.441     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      440 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    188.03        .62341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6821        7.0101        .50000       -.72559    
   3  Normalizat    1.1358        .32173E-01    .21898E-05   -.88611    
   4  Prefactor     .93215        .21401E-01    .15813E-05   -.95027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.542e-12
Minuit parameter uncertainties:
  1  3.89928e-05
  2  537.317
  3  0.0321736
  4  0.021401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21560': 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) = 6681.44107323
delta logL = 3.06910078507e-06

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  3.899e-05  1.000e-04  1.000e+04 ( 1.000e-13)
289        Index:  1.682e+00  5.373e+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.321e-01  2.140e-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.136e+00  3.217e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/21560/cmap_HighResolution_504230401_504489601_4FGL_J0906.3-0905_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-08-31 01:36:46.880897', job_id='21560', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630399006.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1022' AND source_name='4FGL J0906.3-0905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 01:36:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 21560: <4FGL_J0906.3-0905_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0906.3-0905_daily_bin1022 136.583 -9.0925 504230401 504489601 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 :                                   627.02 sec.
    Max Memory :                                 1125 MB
    Average Memory :                             262.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

