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


Performing analysis on: 4FGL_J0609.0-2219_daily_bin897
RA = 92.262, Dec = -22.3316
tmin = 471830401, tmax = 472089601
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='123232', job_status='RUN', time_executed='2021-08-24 13:38:15.848086', time_epoch_executed='1629837495.85' WHERE source_name='4FGL J0609.0-2219' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123232

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123232/ft1_4FGL_J0609.0-2219_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123232/ft1_4FGL_J0609.0-2219_daily_bin897.fits outfile=/scratch/kocevski/123232/ft1_filteredMKT_4FGL_J0609.0-2219_daily_bin897.fits ra=92.262 dec=-22.3316 rad=12.0 tmin=471830401.0 tmax=472089601.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.74
user 3.36
sys 1.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.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/123232/ft1_filteredMKT_4FGL_J0609.0-2219_daily_bin897.fits evtable="EVENTS" outfile="/scratch/kocevski/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.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.65
user 0.33
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/123232/ltcube_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.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/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits
.....................!
real 13.01
user 11.39
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/123232/ltcube_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.fits outfile=/scratch/kocevski/123232/expmap_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.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/123232/ltcube_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.fits
.....................!
real 191.99
user 185.75
sys 5.73

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J0609.0-2219 @ 92.262 -22.3316

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.fits scfile=/scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits outfile=/scratch/kocevski/123232/cmap_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.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=92.262 yref=-22.3316 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.73
user 0.38
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.fits scfile=/scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits outfile=/scratch/kocevski/123232/cmap_HighResolution_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.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=92.262 yref=-22.3316 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.76
user 0.40
sys 1.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/123232/Model_4FGL_J0609.0-2219_daily_bin897.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/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.fits.....................!
real 100.84
user 97.47
sys 2.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.fits', '/scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits', expMap='/scratch/kocevski/123232/expmap_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.fits', expCube='/scratch/kocevski/123232/ltcube_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123232/Model_4FGL_J0609.0-2219_daily_bin897.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0609.0-2219'

4FGL J0609.0-2219
   Spectrum: PowerLaw
249    Prefactor:  5.649e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.240e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.847e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/123232/ft1_filtered_4FGL_J0609.0-2219_daily_bin897.fits
Spacecraft file(s): /scratch/kocevski/123232/ft2_4FGL_J0609.0-2219_daily_bin897.fits
Exposure map: /scratch/kocevski/123232/expmap_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.fits
Exposure cube: /scratch/kocevski/123232/ltcube_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123232/Model_4FGL_J0609.0-2219_daily_bin897.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) = 6974.70014169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.440       1.0000         .10000E-03   10000.    
     2 'norm      '    .16350       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7752       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4486       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.299       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7481       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.934       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3162       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5737       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7102       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .60616       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6974.691     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3145 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.437        29.460       -.25004E-05   -.36127E-05
   2  norm          .17091        1.2493        .12707E-06   -.26729E-03
   3  norm          .10000E-03    18.831        .92932E-05** at limit **
   4  norm          1.6310        36.514        .52235E-06    .52264E-04
   5  Prefactor     .66819        11.613       -.27209E-05    .21608E-03
   6  Prefactor     .10000E-03    2.9697       -.84019E-07** at limit **
   7  Prefactor     .10000E-03    62.810       -.11101E-04** at limit **
   8  Prefactor     1.7962        64.997        .10091E-04    .12765E-03
   9  Prefactor     .10000E-03    14.871       -.49664E-05** at limit **
  10  Prefactor     .10000E-03    37.270        .35636E-04** at limit **
  11  Prefactor     .10000E-03    24.967       -.18136E-04** at limit **
  12  Prefactor     .10000E-03    28.131       -.87719E-05** at limit **
  13  norm          2.4515        7.9081       -.23183E-05    .40883E-04
  14  Prefactor     24.297        21.007       -.99212E-06    .10728E-03
  15  Prefactor     4.7475        6.7333       -.26740E-05    .29966E-04
  16  Prefactor     16.931        19.994       -.33570E-06   -.53532E-04
  17  norm          .10000E-03    15.230        .47781E-05** at limit **
  18  norm          .10000E-03    2.4968       -.23133E-06** at limit **
  19  norm          .10000E-03    1.1586       -.14245E-06** at limit **
  20  norm          5.3127        10.029        .67431E-06    .31153E-04
  21  Prefactor     1.5781        2.0104        .52250E-06   -.23509E-02
  22  norm          3.7120        7.9232       -.22263E-06   -.60698E-03
  23  Prefactor     .10000E-03    2.3287        .41261E-07** at limit **
  24  norm          .10000E-03    63.150       -.13958E-04** at limit **
  25  Normalizat    .60620        .22652        .16295E-05    .10736E-03
  26  Prefactor     1.0904        .83535E-01   -.24844E-06    .37169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4371
  norm       = 0.17091
  norm       = 0.0001
  norm       = 1.63103
  Prefactor  = 0.668191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.79616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45145
  Prefactor  = 24.2966
  Prefactor  = 4.74749
  Prefactor  = 16.9308
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.31271
  Prefactor  = 1.57809
  norm       = 3.71195
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.606205
  Prefactor  = 1.09042
 **********
 **   18 **HESSE 
 **********

 FCN=   6974.691     FROM HESSE     STATUS=OK           460 CALLS     3605 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.437        29.455        .10193E-03   -1.4922    
   2  norm          .17091        5.2815        .17319E-02   -1.5625    
   3  norm          .10000E-03    18.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6310        35.881        .33212E-03   -1.5453    
   5  Prefactor     .66819        37.965        .42340E-02   -1.5544    
   6  Prefactor     .10000E-03    2.9764        .14054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7962        59.212        .31422E-03   -1.5440    
   9  Prefactor     .10000E-03    14.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4515        7.7760        .26142E-03   -1.5395    
  14  Prefactor     24.297        20.950        .81262E-04   -1.4722    
  15  Prefactor     4.7475        6.6494        .18465E-03   -1.5272    
  16  Prefactor     16.931        19.998        .97329E-04   -1.4885    
  17  norm          .10000E-03    15.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5069        .12883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1934        .17522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3127        11.027        .17431E-03   -1.5247    
  21  Prefactor     1.5781        6.3577        .16939E-02   -1.5457    
  22  norm          3.7120        8.0955        .10483E-02   -1.5323    
  23  Prefactor     .10000E-03    2.3830        .24814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    63.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .60620        .23339        .48093E-03   -1.0772    
  26  Prefactor     1.0904        .87982E-01    .14559E-03   -.89773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61375e-08
Minuit parameter uncertainties:
  1  29.4829
  2  1.8998
  3  1.5683e-05
  4  15.3101
  5  10.0792
  6  3.02623e-06
  7  2.26166e-05
  8  20.6473
  9  1.35309e-05
  10  1.49588e-06
  11  7.69542e-05
  12  1.1505e-05
  13  7.77921
  14  20.9563
  15  6.65045
  16  20.006
  17  8.55226e-06
  18  1.70956e-07
  19  6.49346e-06
  20  11.0308
  21  6.33595
  22  8.09793
  23  2.64632e-06
  24  3.08045e-05
  25  0.233768
  26  0.0879934
Done.

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

Extracting fit parameters...

4FGL J0609.0-2219
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  2.262e-05  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.240e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.847e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.090e+00  8.799e-02  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  6.062e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 92.262 -22.332
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123232/likelihoodResults_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.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) = 6974.69100682
delta logL = -7.57273910494e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6974.69093129
delta logL = -1.95029315364e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6974.691     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      241 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.206        .90712E-02** at limit **
   2  Index         2.3765        6.0858        .50000        .47884E-05
   3  Normalizat    .60620        .50896E-02    .10840        .60845E-04
   4  Prefactor     1.0904        .20293E-02    .37962E-01   -.68418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37651
  Normalizat = 0.606205
  Prefactor  = 1.09042
 **********
 **   18 **HESSE 
 **********

 FCN=   6974.691     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    198.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3765        8.0390        .50000       -.55236    
   3  Normalizat    .60620        .11936E-01    .48093E-03   -1.0772    
   4  Prefactor     1.0904        .47800E-02    .14559E-03   -.89773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.30985e-08
Minuit parameter uncertainties:
  1  0.000412548
  2  201.476
  3  0.0119356
  4  0.00478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123232': 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) = 6974.69093121
delta logL = -1.22297933558e-07

Extracting fit parameters...

4FGL J0609.0-2219
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  4.125e-04  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.377e+00  2.015e+02  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.847e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.090e+00  4.780e-03  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  6.062e-01  1.194e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 92.262 -22.332

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/123232/cmap_HighResolution_471830401_472089601_4FGL_J0609.0-2219_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-08-24 13:50:53.969487', job_id='123232', GAL2='1.09', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1629838253.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='897' AND source_name='4FGL J0609.0-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 13:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 123232: <4FGL_J0609.0-2219_daily_bin897> in cluster <slac> Done

Job <4FGL_J0609.0-2219_daily_bin897> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 24 13:35:39 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 13:35:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 13:35:41 2021
Terminated at Tue Aug 24 13:50:54 2021
Results reported at Tue Aug 24 13:50:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0609.0-2219_daily_bin897 92.262 -22.3316 471830401 472089601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0609.0-2219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   772.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

