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


Performing analysis on: 4FGL_J0906.3-0905_daily_bin859
RA = 136.583, Dec = -9.0925
tmin = 461980801, tmax = 462240001
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='19977', job_status='RUN', time_executed='2021-08-31 01:19:54.020529', time_epoch_executed='1630397994.02' WHERE source_name='4FGL J0906.3-0905' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19977

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19977/ft1_4FGL_J0906.3-0905_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19977/ft2_4FGL_J0906.3-0905_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19977/ft1_4FGL_J0906.3-0905_daily_bin859.fits outfile=/scratch/kocevski/19977/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin859.fits ra=136.583 dec=-9.0925 rad=12.0 tmin=461980801.0 tmax=462240001.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.73
user 3.36
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19977/ft1_filtered_4FGL_J0906.3-0905_daily_bin859.fits" evtable="EVENTS" scfile=/scratch/kocevski/19977/ft2_4FGL_J0906.3-0905_daily_bin859.fits sctable="SC_DATA" outfile=/scratch/kocevski/19977/ltcube_461980801_462240001_4FGL_J0906.3-0905_daily_bin859.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/19977/ft2_4FGL_J0906.3-0905_daily_bin859.fits
.....................!
real 13.28
user 11.64
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19977/ft1_filtered_4FGL_J0906.3-0905_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/19977/ft2_4FGL_J0906.3-0905_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/19977/ltcube_461980801_462240001_4FGL_J0906.3-0905_daily_bin859.fits outfile=/scratch/kocevski/19977/expmap_461980801_462240001_4FGL_J0906.3-0905_daily_bin859.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/19977/ltcube_461980801_462240001_4FGL_J0906.3-0905_daily_bin859.fits
.....................!
real 193.62
user 187.25
sys 5.99

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/19977/ft1_filtered_4FGL_J0906.3-0905_daily_bin859.fits scfile=/scratch/kocevski/19977/ft2_4FGL_J0906.3-0905_daily_bin859.fits outfile=/scratch/kocevski/19977/cmap_461980801_462240001_4FGL_J0906.3-0905_daily_bin859.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.75
user 0.38
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19977/ft1_filtered_4FGL_J0906.3-0905_daily_bin859.fits scfile=/scratch/kocevski/19977/ft2_4FGL_J0906.3-0905_daily_bin859.fits outfile=/scratch/kocevski/19977/cmap_HighResolution_461980801_462240001_4FGL_J0906.3-0905_daily_bin859.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.72
user 0.37
sys 1.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19977/ft1_filtered_4FGL_J0906.3-0905_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/19977/ft2_4FGL_J0906.3-0905_daily_bin859.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19977/Model_4FGL_J0906.3-0905_daily_bin859.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/19977/ft1_filtered_4FGL_J0906.3-0905_daily_bin859.fits.....................!
real 58.57
user 55.27
sys 2.74

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.686       1.0000         .10000E-03   10000.    
     3 'norm      '    12.453       1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5272       1.0000         .10000E-03   10000.    
     9 'norm      '    10.417       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11623E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .27397E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2050       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3578       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75010       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.

 FCN=   4949.091     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2130 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.519        .90712E-02** at limit **
   2  Prefactor     27.694        35.534        .19034E-02    .18870E-02
   3  norm          12.451        9.6505        .28378E-02   -.57159E-03
   4  norm          .10000E-03    1.7954        .90712E-02** at limit **
   5  Prefactor     .10000E-03    5.4341        .90712E-02** at limit **
   6  Prefactor     .10000E-03    29.795        .90712E-02** at limit **
   7  Prefactor     .10000E-03    5.1108        .90712E-02** at limit **
   8  norm          3.5270        4.2104        .53811E-02    .31033E-03
   9  norm          10.417        7.2466        .31035E-02    .48844E-03
  10  Prefactor     .10000E-03    6.2745        .90712E-02** at limit **
  11  Prefactor     .10000E-03    33.504        .90712E-02** at limit **
  12  Prefactor     .10000E-03    73.106        .90712E-02** at limit **
  13  Prefactor     .10000E-03    23.456        .90712E-02** at limit **
  14  Prefactor     .10000E-03    9.7540        .90712E-02** at limit **
  15  Prefactor     .10000E-03    7.3850        .90712E-02** at limit **
  16  norm          .68138E-02    6.5370        .60262E-01    .75718E-04
  17  norm          .10000E-03    2.3213        .90712E-02** at limit **
  18  norm          1.2046        2.5416        .10323E-01    .75027E-03
  19  Normalizat    1.3577        .22211        .57927E-01    .40951E-04
  20  Prefactor     .75014        .14040        .43064E-01    .53814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 27.6938
  norm       = 12.4507
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.52704
  norm       = 10.4174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00681378
  norm       = 0.0001
  norm       = 1.20463
  Normalizat = 1.35773
  Prefactor  = 0.750136
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.091     FROM HESSE     STATUS=OK           291 CALLS     2421 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.694        35.634        .76138E-04   -1.4655    
   3  norm          12.451        9.6422        .11351E-03   -1.5002    
   4  norm          .10000E-03    1.8156        .91987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4792        .16009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1324        .15530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5270        4.2061        .15196E-03   -1.5332    
   9  norm          10.417        7.2585        .12414E-03   -1.5062    
  10  Prefactor     .10000E-03    6.2820        .17210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    76.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .68138E-02    8.0695        .52281E-01   -1.5692    
  17  norm          .10000E-03    2.3454        .10462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2046        2.5054        .15716E-03   -1.5488    
  19  Normalizat    1.3577        .26341        .25616E-03   -.81859    
  20  Prefactor     .75014        .16614        .21336E-03   -1.0159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70728e-08
Minuit parameter uncertainties:
  1  3.43717e-06
  2  35.6609
  3  9.64339
  4  3.26972e-07
  5  4.60499e-06
  6  0.000144221
  7  1.0922e-06
  8  4.20642
  9  7.25911
  10  5.10418e-06
  11  0.000212075
  12  0.000101797
  13  5.13855e-05
  14  2.17042e-08
  15  6.35857e-07
  16  0.465582
  17  3.07475e-06
  18  2.50559
  19  0.263673
  20  0.166252
Done.

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

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  1.092e-06  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:  7.501e-01  1.663e-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.358e+00  2.637e-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: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19977/likelihoodResults_461980801_462240001_4FGL_J0906.3-0905_daily_bin859.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) = 4949.09201208
delta logL = -0.000927240495002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4949.09108484
delta logL = 1.06501829578e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1157       1.0000          .0000       10.000    
     3 'Normalizat'    1.3577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75016       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.

 FCN=   4949.091     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    131.42        .90712E-02** at limit **
   2  Index         2.1263        7.8573        .50000       -.17556E-04
   3  Normalizat    1.3577        .29594E-01    .57927E-01   -.12000E-04
   4  Prefactor     .75014        .19027E-01    .43065E-01   -.25811E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12626
  Normalizat = 1.35773
  Prefactor  = 0.750136
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.091     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    446.38        .15596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1263        7.7470        .50000       -.61230    
   3  Normalizat    1.3577        .59557E-01    .25616E-03   -.81859    
   4  Prefactor     .75014        .38295E-01    .21336E-03   -1.0159    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.15839e-08
Minuit parameter uncertainties:
  1  0.000138236
  2  38.3146
  3  0.0595603
  4  0.0382966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19977': 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) = 4949.09108476
delta logL = 8.62819433678e-08

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  1.382e-04  1.000e-04  1.000e+04 ( 1.000e-13)
289        Index:  2.126e+00  3.831e+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:  7.501e-01  3.830e-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.358e+00  5.956e-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/19977/cmap_HighResolution_461980801_462240001_4FGL_J0906.3-0905_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-08-31 01:29:03.550035', job_id='19977', GAL2='0.75', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630398543.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='859' AND source_name='4FGL J0906.3-0905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 01:29:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 19977: <4FGL_J0906.3-0905_daily_bin859> in cluster <slac> Done

Job <4FGL_J0906.3-0905_daily_bin859> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 01:15:44 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 01:15:46 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:15:46 2021
Terminated at Tue Aug 31 01:29:04 2021
Results reported at Tue Aug 31 01:29:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0906.3-0905_daily_bin859 136.583 -9.0925 461980801 462240001 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 :                                   563.00 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             241.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

