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


Performing analysis on: 4FGL_J0906.3-0905_daily_bin1362
RA = 136.583, Dec = -9.0925
tmin = 592358401, tmax = 592617601
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='23207', job_status='RUN', time_executed='2021-08-31 01:27:57.205186', time_epoch_executed='1630398477.21' WHERE source_name='4FGL J0906.3-0905' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23207

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23207/ft1_4FGL_J0906.3-0905_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23207/ft2_4FGL_J0906.3-0905_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23207/ft1_4FGL_J0906.3-0905_daily_bin1362.fits outfile=/scratch/kocevski/23207/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin1362.fits ra=136.583 dec=-9.0925 rad=12.0 tmin=592358401.0 tmax=592617601.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 12.10
user 3.29
sys 8.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/23207/ft2_4FGL_J0906.3-0905_daily_bin1362.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/23207/ft1_filteredMKT_4FGL_J0906.3-0905_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/23207/ft1_filtered_4FGL_J0906.3-0905_daily_bin1362.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 8.92
user 0.34
sys 8.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23207/ft1_filtered_4FGL_J0906.3-0905_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/23207/ft2_4FGL_J0906.3-0905_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/23207/ltcube_592358401_592617601_4FGL_J0906.3-0905_daily_bin1362.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/23207/ft2_4FGL_J0906.3-0905_daily_bin1362.fits
.....................!
real 21.85
user 12.02
sys 9.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23207/ft1_filtered_4FGL_J0906.3-0905_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/23207/ft2_4FGL_J0906.3-0905_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/23207/ltcube_592358401_592617601_4FGL_J0906.3-0905_daily_bin1362.fits outfile=/scratch/kocevski/23207/expmap_592358401_592617601_4FGL_J0906.3-0905_daily_bin1362.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/23207/ltcube_592358401_592617601_4FGL_J0906.3-0905_daily_bin1362.fits
.....................!
real 200.81
user 184.74
sys 14.91

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/23207/ft1_filtered_4FGL_J0906.3-0905_daily_bin1362.fits scfile=/scratch/kocevski/23207/ft2_4FGL_J0906.3-0905_daily_bin1362.fits outfile=/scratch/kocevski/23207/cmap_592358401_592617601_4FGL_J0906.3-0905_daily_bin1362.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 8.60
user 0.41
sys 8.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23207/ft1_filtered_4FGL_J0906.3-0905_daily_bin1362.fits scfile=/scratch/kocevski/23207/ft2_4FGL_J0906.3-0905_daily_bin1362.fits outfile=/scratch/kocevski/23207/cmap_HighResolution_592358401_592617601_4FGL_J0906.3-0905_daily_bin1362.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 9.00
user 0.39
sys 8.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/23207/ft1_filtered_4FGL_J0906.3-0905_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/23207/ft2_4FGL_J0906.3-0905_daily_bin1362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/23207/Model_4FGL_J0906.3-0905_daily_bin1362.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/23207/ft1_filtered_4FGL_J0906.3-0905_daily_bin1362.fits.....................!
real 97.96
user 82.03
sys 13.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3194       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1856       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1906       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.803       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.0953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.495       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2247       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.700       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .75970       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2083       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=   8074.914     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2025 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2674        64.459       -.29948E-07   -.15967E-04
   2  Prefactor     .10000E-03    11.499       -.62243E-06** at limit **
   3  norm          1.1827        7.1241        .30641E-05   -.11611E-03
   4  norm          1.1908        1.8123       -.12058E-07   -.18656E-03
   5  Prefactor     .10000E-03    2.1450        .28020E-07** at limit **
   6  Prefactor     .10000E-03    1.8651       -.25570E-07** at limit **
   7  Prefactor     13.804        7.9046        .55831E-06   -.13486E-03
   8  norm          .10000E-03    1.5448        .99443E-07** at limit **
   9  norm          7.0964        4.5383        .30556E-06    .27555E-03
  10  Prefactor     .10000E-03    7.2505       -.30099E-06** at limit **
  11  Prefactor     43.476        34.480       -.10518E-05   -.11754E-03
  12  Prefactor     8.2160        15.730        .14148E-05    .95344E-04
  13  Prefactor     15.704        26.177        .16098E-06   -.12253E-04
  14  Prefactor     .10000E-03    9.3349        .45900E-06** at limit **
  15  Prefactor     .10000E-03    13.542        .42165E-06** at limit **
  16  norm          .10000E-03    5.2290        .86737E-07** at limit **
  17  norm          .10000E-03    1.7828       -.12606E-07** at limit **
  18  norm          .10000E-03    .68768        .44229E-08** at limit **
  19  Normalizat    .75949        .17904       -.83099E-06   -.45634E-04
  20  Prefactor     1.2085        .12056       -.12389E-07   -.11604E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26738
  Prefactor  = 0.0001
  norm       = 1.18271
  norm       = 1.1908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8041
  norm       = 0.0001
  norm       = 7.09644
  Prefactor  = 0.0001
  Prefactor  = 43.476
  Prefactor  = 8.216
  Prefactor  = 15.7037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.759489
  Prefactor  = 1.20849
 **********
 **   18 **HESSE 
 **********

 FCN=   8074.914     FROM HESSE     STATUS=OK           287 CALLS     2312 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2674        65.420        .26935E-03   -1.5407    
   2  Prefactor     .10000E-03    11.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1827        7.3548        .41907E-03   -1.5490    
   4  norm          1.1908        1.7632        .14361E-03   -1.5490    
   5  Prefactor     .10000E-03    2.1672        .12849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8663        .11985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.804        7.9220        .53905E-03   -1.4965    
   8  norm          .10000E-03    1.5696        .10904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.0964        4.5885        .14984E-03   -1.5175    
  10  Prefactor     .10000E-03    7.2583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.476        35.281        .60788E-04   -1.4388    
  12  Prefactor     8.2160        15.985        .13979E-03   -1.5135    
  13  Prefactor     15.704        26.185        .10108E-03   -1.4915    
  14  Prefactor     .10000E-03    9.3832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3823        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7997        .11713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .69877        .72766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .75949        .20475        .32289E-03   -1.0159    
  20  Prefactor     1.2085        .13856        .18168E-03   -.86071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64854e-10
Minuit parameter uncertainties:
  1  24.3871
  2  5.82114e-05
  3  5.89948
  4  1.76325
  5  1.37205e-06
  6  1.37959e-06
  7  7.92265
  8  4.02615e-07
  9  4.58873
  10  9.77848e-07
  11  35.2978
  12  15.9931
  13  26.2046
  14  4.11334e-05
  15  3.77212e-05
  16  7.37905e-06
  17  2.37328e-06
  18  4.95618e-07
  19  0.204954
  20  0.138598
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.208e+00  1.386e-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:  7.595e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.31
Ra Dec: 136.583 -9.092
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 5.60e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.74e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8074.87486079
delta logL = 0.0390974362581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8074.87245375
delta logL = 0.0415044782885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.779       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2430       1.0000          .0000       10.000    
     3 'Normalizat'    .74854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2133       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8074.872     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.781        11.136        .11672E-03   -.56083E-03
   2  Index         2.2431        .54333        .54506E-02   -.18775E-03
   3  Normalizat    .74856        .20143        .32505E-03    .32688E-03
   4  Prefactor     1.2133        .13823        .18137E-03    .93856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7809
  Index      = 2.2431
  Normalizat = 0.748564
  Prefactor  = 1.21327
 **********
 **   18 **HESSE 
 **********

 FCN=   8074.872     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.781        10.106        .46689E-05   -1.5021    
   2  Index         2.2431        .49268        .21802E-03   -.58402    
   3  Normalizat    .74856        .20077        .13002E-04   -1.0201    
   4  Prefactor     1.2133        .13799        .36275E-04   -.85924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06281e-10
Minuit parameter uncertainties:
  1  10.1077
  2  0.493835
  3  0.200966
  4  0.13803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23207': 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) = 8074.87245328
delta logL = 0.041504945887

Extracting fit parameters...

4FGL J0906.3-0905
   Spectrum: PowerLaw
288    Prefactor:  1.178e+01  1.011e+01  1.000e-04  1.000e+04 ( 1.000e-13)
289        Index:  2.243e+00  4.938e-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:  1.213e+00  1.380e-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:  7.486e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 136.583 -9.092
Photon Index (Free Index): 2.24 +/- 0.49
Photon Flux (Free Index): 6.34e-08 +/- 4.31e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/23207/cmap_HighResolution_592358401_592617601_4FGL_J0906.3-0905_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.60e-08', energy_flux2='2.64e-05', photon_flux_error='3.21e-08', dlogl='4.15e-02', energy_flux='3.04e-05', photon_flux2='6.34e-08', job_status='DONE', time_completed='2021-08-31 01:40:44.069514', photon_index_error2='0.49', photon_index2='2.24', ts='5.31', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.76', time_epoch_completed='1630399244.07', return_code='0', job_id='23207', GAL2='1.21', EG2='0.75', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='4.31e-08', ts2='5.40', photon_index='2.11' WHERE bin_id='1362' AND source_name='4FGL J0906.3-0905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 01:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 23207: <4FGL_J0906.3-0905_daily_bin1362> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0906.3-0905_daily_bin1362 136.583 -9.0925 592358401 592617601 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 :                                   856.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

