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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1482
RA = 204.756, Dec = -24.0085
tmin = 623462401, tmax = 623721601
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='859477', job_status='RUN', time_executed='2021-09-08 07:46:25.374448', time_epoch_executed='1631112385.37' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859477/ft1_4FGL_J1339.0-2400_daily_bin1482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859477/ft1_4FGL_J1339.0-2400_daily_bin1482.fits outfile=/scratch/kocevski/859477/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1482.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=623462401.0 tmax=623721601.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 2.27
user 2.07
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.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/859477/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1482.fits evtable="EVENTS" outfile="/scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.fits" evtable="EVENTS" scfile=/scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits sctable="SC_DATA" outfile=/scratch/kocevski/859477/ltcube_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.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/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits
.....................!
real 12.72
user 12.24
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits sctable="SC_DATA" expcube=/scratch/kocevski/859477/ltcube_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.fits outfile=/scratch/kocevski/859477/expmap_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.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/859477/ltcube_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.fits
.....................!
real 156.70
user 151.97
sys 4.11

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 192 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1339.0-2400 @ 204.756 -24.0085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.fits scfile=/scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits outfile=/scratch/kocevski/859477/cmap_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.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=204.756 yref=-24.0085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.fits scfile=/scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits outfile=/scratch/kocevski/859477/cmap_HighResolution_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.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=204.756 yref=-24.0085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/859477/Model_4FGL_J1339.0-2400_daily_bin1482.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.fits.....................!
real 36.75
user 35.56
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.fits', '/scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits', expMap='/scratch/kocevski/859477/expmap_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.fits', expCube='/scratch/kocevski/859477/ltcube_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/859477/Model_4FGL_J1339.0-2400_daily_bin1482.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.0-2400'

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  8.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/859477/ft1_filtered_4FGL_J1339.0-2400_daily_bin1482.fits
Spacecraft file(s): /scratch/kocevski/859477/ft2_4FGL_J1339.0-2400_daily_bin1482.fits
Exposure map: /scratch/kocevski/859477/expmap_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.fits
Exposure cube: /scratch/kocevski/859477/ltcube_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/859477/Model_4FGL_J1339.0-2400_daily_bin1482.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) = 2116.95472331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90579E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11101E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.676       1.0000         .10000E-03   10000.    
     7 'norm      '    23.621       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31863       1.0000         .10000E-03   10000.    
     9 'norm      '    .12113E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    12.601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.660       1.0000         .10000E-03   10000.    
    15 'norm      '    31.375       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.8289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    285.43       1.0000         .10000E-03   10000.    
    22 'Prefactor '    70.874       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3782       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2116.953     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3430 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    124.82        .23430E-06** at limit **
   2  Prefactor     .10000E-03    6890.5        .19363E-04** at limit **
   3  norm          .10000E-03    158.86       -.43683E-06** at limit **
   4  norm          .10000E-03    69.776        .59113E-08** at limit **
   5  Prefactor     .10000E-03    50.230        .27696E-07** at limit **
   6  norm          11.673        19.194       -.19807E-07   -.72345E-05
   7  norm          23.616        26.105       -.70941E-07   -.58087E-05
   8  Prefactor     .15464E-03    106.97       -.18842E-05** at limit **
   9  norm          .10001E-03    44.003        .66017E-05** at limit **
  10  norm          12.669        18.760        .42696E-05    .11235E-03
  11  Prefactor     .10000E-03    22.225       -.90056E-07** at limit **
  12  Prefactor     .10000E-03    32.724        .10423E-06** at limit **
  13  Prefactor     .10000E-03    14.434       -.24762E-07** at limit **
  14  Prefactor     32.659        36.911       -.34577E-07   -.51861E-04
  15  norm          31.380        16.656        .40365E-07   -.45519E-03
  16  Prefactor     .10000E-03    70.697       -.17898E-06** at limit **
  17  norm          .10000E-03    21.162       -.19079E-08** at limit **
  18  Prefactor     .10013E-03    1639.0        .20926E-06** at limit **
  19  norm          6.8332        25.974        .54250E-07    .28910E-04
  20  Prefactor     2.6293        16.693       -.49835E-06    .41707E-05
  21  Prefactor     285.34        183.04        .50942E-06    .41286E-05
  22  Prefactor     70.797        150.13        .67375E-06    .90560E-06
  23  Prefactor     .10000E-03    26.916       -.86604E-07** at limit **
  24  Normalizat    1.3783        .57034        .57434E-06   -.76826E-04
  25  Prefactor     .86399        .22591        .27871E-06   -.16951E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6734
  norm       = 23.6159
  Prefactor  = 0.000154642
  norm       = 0.00010001
  norm       = 12.6691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6592
  norm       = 31.3795
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100133
  norm       = 6.83322
  Prefactor  = 2.62925
  Prefactor  = 285.34
  Prefactor  = 70.797
  Prefactor  = 0.0001
  Normalizat = 1.37834
  Prefactor  = 0.863986
 **********
 **   18 **HESSE 
 **********

 FCN=   2116.953     FROM HESSE     STATUS=OK           427 CALLS     3857 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    125.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6893.1        .18257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    158.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    69.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.673        19.224        .11724E-03   -1.5025    
   7  norm          23.616        26.128        .82417E-04   -1.4736    
   8  Prefactor     .15464E-03    114.28        .11428       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    44.125        .35607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.669        20.119        .11284E-03   -1.4996    
  11  Prefactor     .10000E-03    22.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.440        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.659        36.961        .70115E-04   -1.4564    
  15  norm          31.380        16.652        .71533E-04   -1.4587    
  16  Prefactor     .10000E-03    70.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10013E-03    1680.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.8332        25.581        .15354E-03   -1.5185    
  20  Prefactor     2.6293        16.168        .25115E-03   -1.5384    
  21  Prefactor     285.34        183.33        .12011E-03   -1.2313    
  22  Prefactor     70.797        150.56        .47684E-04   -1.4023    
  23  Prefactor     .10000E-03    26.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3783        .69394        .39377E-03   -.81257    
  25  Prefactor     .86399        .27648        .19875E-03   -.97411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33373e-09
Minuit parameter uncertainties:
  1  4.29712e-05
  2  0.00104363
  3  1.9088e-08
  4  1.81347e-06
  5  2.23626e-06
  6  19.2345
  7  26.1409
  8  0.158348
  9  0.00131277
  10  20.1293
  11  2.61831e-05
  12  3.20796e-06
  13  1.15102e-05
  14  36.9872
  15  16.6547
  16  3.53372e-05
  17  6.60182e-07
  18  0.0307694
  19  25.6216
  20  13.0447
  21  183.701
  22  151.384
  23  0.000103963
  24  0.698752
  25  0.276927
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  3.208e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  8.640e-01  2.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.378e+00  6.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.756 -24.009
Photon Flux Upper Limit: 2.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859477/likelihoodResults_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.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) = 2116.95278595
delta logL = -0.000144564105085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2116.95264221
delta logL = -8.19953584141e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9075       1.0000          .0000       10.000    
     3 'Normalizat'    1.3783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+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=   2116.953     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      268 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10335E-03    16.350        .18142E-01** at limit **
   2  Index         2.8096        6.3215        .50000        .81997E-05
   3  Normalizat    1.3783        .11163E-01    .39376E-03    .81996E-05
   4  Prefactor     .86399        .46164E-02    .19875E-03    .70072E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103348
  Index      = 2.80956
  Normalizat = 1.37834
  Prefactor  = 0.863987
 **********
 **   18 **HESSE 
 **********

 FCN=   2116.953     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10335E-03    205.16        .21862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8096        5.6995        .50000       -.45347    
   3  Normalizat    1.3783        .39915E-01    .15751E-04   -.81257    
   4  Prefactor     .86399        .16506E-01    .79499E-05   -.97411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.44362e-09
Minuit parameter uncertainties:
  1  0.052594
  2  622.858
  3  0.0399158
  4  0.0165064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859477': 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) = 2116.95264204
delta logL = -6.48324657959e-07

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.033e-04  5.259e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.810e+00  6.229e+02  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  8.640e-01  1.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.378e+00  3.992e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.756 -24.009

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/859477/cmap_HighResolution_623462401_623721601_4FGL_J1339.0-2400_daily_bin1482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', job_status='DONE', photon_flux_upper_limit='2.65e-07', time_completed='2021-09-08 07:53:41.205559', job_id='859477', GAL2='0.86', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1631112821.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-6.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1482' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:53:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 859477: <4FGL_J1339.0-2400_daily_bin1482> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1482> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 07:45:23 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:45:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 07:45:30 2021
Terminated at Wed Sep  8 07:53:41 2021
Results reported at Wed Sep  8 07:53:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1482 204.756 -24.0085 623462401 623721601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.0-2400 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   403.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   491 sec.
    Turnaround time :                            498 sec.

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

