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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1480
RA = 204.799, Dec = -26.3351
tmin = 622944001, tmax = 623203201
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='868698', job_status='RUN', time_executed='2021-09-08 08:15:47.090415', time_epoch_executed='1631114147.09' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868698/ft1_4FGL_J1339.1-2620_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868698/ft1_4FGL_J1339.1-2620_daily_bin1480.fits outfile=/scratch/kocevski/868698/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1480.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=622944001.0 tmax=623203201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.05
user 2.83
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.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/868698/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1480.fits evtable="EVENTS" outfile="/scratch/kocevski/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/868698/ltcube_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.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/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits
.....................!
real 15.90
user 15.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/868698/ltcube_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.fits outfile=/scratch/kocevski/868698/expmap_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.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/868698/ltcube_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.fits
.....................!
real 191.61
user 186.12
sys 5.04

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 198 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.1-2620 @ 204.799 -26.3351

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.fits scfile=/scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits outfile=/scratch/kocevski/868698/cmap_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.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.799 yref=-26.3351 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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.fits scfile=/scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits outfile=/scratch/kocevski/868698/cmap_HighResolution_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.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.799 yref=-26.3351 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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/868698/Model_4FGL_J1339.1-2620_daily_bin1480.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/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.fits......................!
real 35.75
user 34.27
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.fits', '/scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits', expMap='/scratch/kocevski/868698/expmap_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.fits', expCube='/scratch/kocevski/868698/ltcube_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/868698/Model_4FGL_J1339.1-2620_daily_bin1480.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.1-2620'

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.296e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/868698/ft1_filtered_4FGL_J1339.1-2620_daily_bin1480.fits
Spacecraft file(s): /scratch/kocevski/868698/ft2_4FGL_J1339.1-2620_daily_bin1480.fits
Exposure map: /scratch/kocevski/868698/expmap_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.fits
Exposure cube: /scratch/kocevski/868698/ltcube_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/868698/Model_4FGL_J1339.1-2620_daily_bin1480.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) = 1430.69973933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9998.3       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.976       1.0000         .10000E-03   10000.    
     3 'norm      '    490.19       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.510       1.0000         .10000E-03   10000.    
     5 'norm      '    2669.7       1.0000         .10000E-03   10000.    
     6 'norm      '    .11260E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16346E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.756       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.636       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26465E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    179.15       1.0000         .10000E-03   10000.    
    14 'norm      '    8.6992       1.0000         .10000E-03   10000.    
    15 'norm      '    .88148E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14995E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .73750E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3811       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.743       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2357       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4104       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .51038       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1428.865     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2226 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        221.50        .13629E-05** at limit **
   2  Prefactor    10000.0        9348.4        .26251E-03** at limit **
   3  norm          .10007E-03    558.84        .55086E-04** at limit **
   4  Prefactor     .10003E-03    375.58        .24710E-04** at limit **
   5  norm          1475.5        1483.3       -.64063E-04   -.12694E-04
   6  norm          .10000E-03    18.546       -.11477E-05** at limit **
   7  norm          .10000E-03    18.386       -.25399E-05** at limit **
   8  Prefactor     24.141        34.401       -.53674E-07   -.64513E-04
   9  Prefactor     .10000E-03    20.722        .89411E-06** at limit **
  10  Prefactor     9.8639        27.056        .12947E-05   -.10181E-03
  11  Prefactor     .10000E-03    16.624        .11027E-05** at limit **
  12  norm          .10000E-03    5.4261        .74833E-07** at limit **
  13  Prefactor     187.83        171.43        .66382E-05    .15541E-04
  14  norm          12.730        64.147       -.58237E-05    .77921E-04
  15  norm          .10000E-03    34.030       -.18038E-06** at limit **
  16  Prefactor     .10000E-03    59.681       -.26745E-06** at limit **
  17  norm          .10000E-03    43.094       -.77797E-05** at limit **
  18  Prefactor     4.4332        8.0616        .24927E-05   -.44849E-04
  19  Prefactor     .10001E-03    993.57        .35063E-04** at limit **
  20  Prefactor     .10000E-03    108.16        .10886E-05** at limit **
  21  Prefactor     2.4574        137.52       -.50462E-04    .97873E-04
  22  Normalizat    .58056        .61119        .19029E-04   -.38204E-04
  23  Prefactor     .80332        .25100       -.10133E-05   -.89739E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.000100069
  Prefactor  = 0.000100029
  norm       = 1475.48
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.1413
  Prefactor  = 0.0001
  Prefactor  = 9.86388
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 187.834
  norm       = 12.7301
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.4332
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 2.4574
  Normalizat = 0.580564
  Prefactor  = 0.803315
 **********
 **   18 **HESSE 
 **********

 FCN=   1428.865     FROM HESSE     STATUS=OK           408 CALLS     2634 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        221.42        .80160E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        9311.6        .20039E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10007E-03    554.98        .46316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    376.01        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1475.5        1481.1        .22605E-03   -.78229    
   6  norm          .10000E-03    18.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.023        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.141        34.238        .20128E-02   -1.4725    
   9  Prefactor     .10000E-03    20.697        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8639        27.405        .30712E-02   -1.5080    
  11  Prefactor     .10000E-03    16.504        .10721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.3825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     187.83        172.00        .75390E-03   -1.2958    
  14  norm          12.730        64.050        .33976E-02   -1.6422    
  15  norm          .10000E-03    34.567        .10422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    59.382        .90978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    43.453        .10475E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4332        8.1443        .48105E-02   -1.5287    
  19  Prefactor     .10001E-03    1019.0        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    105.75        .10099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4574        142.69        .43190E-02   -1.5394    
  22  Normalizat    .58056        .54818        .10419       -1.0882    
  23  Prefactor     .80332        .22146        .43823E-01   -.99606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23655e-09
Minuit parameter uncertainties:
  1  0.000858293
  2  0.290399
  3  0.0124595
  4  0.00661047
  5  1527.93
  6  4.89261e-05
  7  0.000121398
  8  34.2658
  9  5.48994e-05
  10  27.4397
  11  1.12214e-05
  12  9.0829e-06
  13  172.46
  14  57.2068
  15  0.000122092
  16  0.000291168
  17  0.000304605
  18  8.1463
  19  0.00755304
  20  0.000209292
  21  37.5449
  22  0.553423
  23  0.221705
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  9.864e+00  2.744e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  8.033e-01  2.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  5.806e-01  5.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 204.799 -26.335
Photon Flux Upper Limit: 3.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/868698/likelihoodResults_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.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): 0
logL (Free Index) = 1428.86244364
delta logL = 0.0025391114516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1428.85978046
delta logL = 0.00520229475705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.549       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0907       1.0000          .0000       10.000    
     3 'Normalizat'    .58247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+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=   1428.860     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      264 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.541        40.973        .11308E-03    .53512E-03
   2  Index         2.0912        1.4809        .82894E-02    .19522E-03
   3  Normalizat    .58276        .60284        .46108E-03   -.58991E-04
   4  Prefactor     .80234        .24950        .16091E-03   -.23823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5415
  Index      = 2.09117
  Normalizat = 0.582761
  Prefactor  = 0.802338
 **********
 **   18 **HESSE 
 **********

 FCN=   1428.860     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.541        38.239        .22615E-04   -1.5000    
   2  Index         2.0912        1.3865        .33157E-03   -.62090    
   3  Normalizat    .58276        .60297        .18443E-04   -1.0872    
   4  Prefactor     .80234        .24954        .32182E-04   -.99642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20109e-09
Minuit parameter uncertainties:
  1  38.3143
  2  1.41491
  3  0.609956
  4  0.249888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868698': 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) = 1428.8597803
delta logL = 0.00520245221128

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.254e+01  3.831e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.091e+00  1.415e+00  0.000e+00  1.000e+01 (-1.000e+00)
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  8.023e-01  2.499e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  5.828e-01  6.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 204.799 -26.335

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/868698/cmap_HighResolution_622944001_623203201_4FGL_J1339.1-2620_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-02', job_status='DONE', photon_flux_upper_limit='3.35e-07', time_completed='2021-09-08 08:26:13.214365', job_id='868698', GAL2='0.80', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1631114773.21', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.20e-03', ts2='0.23', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1480' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 868698: <4FGL_J1339.1-2620_daily_bin1480> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1480> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 08:15:23 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:15:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 08:15:25 2021
Terminated at Wed Sep  8 08:26:13 2021
Results reported at Wed Sep  8 08:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1480 204.799 -26.3351 622944001 623203201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.1-2620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   428.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            650 sec.

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

