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


Performing analysis on: 4FGL_J0340.5-2118_daily_bin1611
RA = 55.1477, Dec = -21.3158
tmin = 656899201, tmax = 657158401
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='176442', job_status='RUN', time_executed='2021-12-07 14:12:31.983851', time_epoch_executed='1638915151.98' WHERE source_name='4FGL J0340.5-2118' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176442

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176442/ft1_4FGL_J0340.5-2118_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176442/ft1_4FGL_J0340.5-2118_daily_bin1611.fits outfile=/scratch/kocevski/176442/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin1611.fits ra=55.1477 dec=-21.3158 rad=12.0 tmin=656899201.0 tmax=657158401.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.61
user 3.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.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/176442/ft1_filteredMKT_4FGL_J0340.5-2118_daily_bin1611.fits evtable="EVENTS" outfile="/scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/176442/ltcube_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.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/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits
.....................!
real 12.97
user 12.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/176442/ltcube_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.fits outfile=/scratch/kocevski/176442/expmap_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.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/176442/ltcube_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.fits
.....................!
real 191.23
user 185.68
sys 4.94

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 157 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 J0340.5-2118 @ 55.1477 -21.3158

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.fits scfile=/scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits outfile=/scratch/kocevski/176442/cmap_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.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=55.1477 yref=-21.3158 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.fits scfile=/scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits outfile=/scratch/kocevski/176442/cmap_HighResolution_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.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=55.1477 yref=-21.3158 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/176442/Model_4FGL_J0340.5-2118_daily_bin1611.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.fits.....................!
real 166.12
user 164.33
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.fits', '/scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits', expMap='/scratch/kocevski/176442/expmap_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.fits', expCube='/scratch/kocevski/176442/ltcube_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/176442/Model_4FGL_J0340.5-2118_daily_bin1611.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0340.5-2118'

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/176442/ft1_filtered_4FGL_J0340.5-2118_daily_bin1611.fits
Spacecraft file(s): /scratch/kocevski/176442/ft2_4FGL_J0340.5-2118_daily_bin1611.fits
Exposure map: /scratch/kocevski/176442/expmap_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.fits
Exposure cube: /scratch/kocevski/176442/ltcube_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/176442/Model_4FGL_J0340.5-2118_daily_bin1611.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) = 7477.68154171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.842       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1711       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4061       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26243       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.539       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10679E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    103.60       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8488       1.0000         .10000E-03   10000.    
    22 'norm      '    .10415E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.673       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .49318E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4867       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .61695       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0351       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7477.651     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3349 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63786        1.1416       -.31075E-06   -.89117E-03
   2  Prefactor     25.836        48.584        .20237E-05    .84108E-04
   3  Prefactor     6.1707        9.1435        .11057E-05    .89757E-03
   4  norm          .10000E-03    .70122        .34188E-07** at limit **
   5  Prefactor     3.4076        7.2835       -.38729E-07    .61100E-04
   6  Prefactor     .10000E-03    53.261        .38758E-06** at limit **
   7  Prefactor     2.2485        2.7322        .89516E-08    .60457E-04
   8  Prefactor     3.8327        15.147        .99729E-07    .46384E-04
   9  Prefactor     .10000E-03    4.0904       -.33362E-07** at limit **
  10  Prefactor     .10000E-03    7.1881       -.14377E-06** at limit **
  11  Prefactor     .10000E-03    14.712       -.34505E-07** at limit **
  12  Prefactor     .10000E-03    19.461       -.12206E-05** at limit **
  13  Prefactor     3.3339        2.1037        .43522E-07    .30868E-03
  14  Prefactor     .27086        1.7669       -.12197E-05    .10861E-03
  15  Prefactor     .10000E-03    .98469       -.51204E-07** at limit **
  16  norm          12.538        1.4679       -.95576E-08   -.14657E-04
  17  Prefactor     .10000E-03    15.533        .12749E-05** at limit **
  18  norm          .10000E-03    .50168       -.14828E-08** at limit **
  19  Prefactor     103.58        74.622        .50317E-05    .30113E-03
  20  Prefactor     16.096        17.834        .12251E-07   -.12918E-03
  21  Prefactor     5.8485        2.5444        .32168E-07    .21371E-03
  22  norm          .10000E-03    7.0464        .11207E-06** at limit **
  23  Prefactor     24.666        19.369        .31112E-06    .86085E-04
  24  Prefactor     .10004E-03    10.104        .48952E-05** at limit **
  25  Prefactor     1.4878        3.4108        .25363E-06    .35985E-03
  26  Normalizat    .61706        .14829        .56187E-07    .84840E-04
  27  Prefactor     1.0350        .13430        .11961E-06   -.37607E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.637863
  Prefactor  = 25.836
  Prefactor  = 6.17074
  norm       = 0.0001
  Prefactor  = 3.40755
  Prefactor  = 0.0001
  Prefactor  = 2.2485
  Prefactor  = 3.83269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33388
  Prefactor  = 0.270864
  Prefactor  = 0.0001
  norm       = 12.5383
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 103.577
  Prefactor  = 16.096
  Prefactor  = 5.84855
  norm       = 0.0001
  Prefactor  = 24.6658
  Prefactor  = 0.000100036
  Prefactor  = 1.48783
  Normalizat = 0.617063
  Prefactor  = 1.03499
 **********
 **   18 **HESSE 
 **********

 FCN=   7477.651     FROM HESSE     STATUS=OK           496 CALLS     3845 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63786        1.0156        .12315E-02   -1.5548    
   2  Prefactor     25.836        48.772        .78803E-04   -1.4691    
   3  Prefactor     6.1707        9.7739        .80803E-03   -1.5211    
   4  norm          .10000E-03    .70416        .70701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4076        7.2590        .21920E-03   -1.5339    
   6  Prefactor     .10000E-03    53.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2485        2.6989        .14568E-03   -1.5408    
   8  Prefactor     3.8327        15.000        .20621E-03   -1.5316    
   9  Prefactor     .10000E-03    4.1166        .17079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3339        2.0578        .92630E-04   -1.5343    
  14  Prefactor     .27086        5.5951        .18928E-02   -1.5604    
  15  Prefactor     .10000E-03    .99374        .83672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.538        1.4685        .33849E-04   -1.5000    
  17  Prefactor     .10000E-03    15.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.7303        .11451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     103.58        76.642        .19752E-03   -1.3669    
  20  Prefactor     16.096        17.732        .99856E-04   -1.4905    
  21  Prefactor     5.8485        2.5158        .85468E-04   -1.5224    
  22  norm          .10000E-03    7.1632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.666        19.362        .80644E-04   -1.4714    
  24  Prefactor     .10004E-03    14.742        .27542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4878        3.4297        .22772E-03   -1.5464    
  26  Normalizat    .61706        .16911        .27873E-03   -1.0726    
  27  Prefactor     1.0350        .15425        .21309E-03   -.91572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69682e-09
Minuit parameter uncertainties:
  1  1.01558
  2  48.8469
  3  9.77643
  4  1.58704e-06
  5  7.2609
  6  9.34682e-05
  7  2.69904
  8  15.0148
  9  3.89215e-06
  10  1.54887e-05
  11  7.79811e-06
  12  0.000184604
  13  2.05787
  14  2.46193
  15  1.87504e-06
  16  1.46854
  17  0.000159588
  18  3.61983e-06
  19  76.7152
  20  17.7377
  21  2.51586
  22  4.16989e-07
  23  19.3671
  24  0.00145958
  25  3.43014
  26  0.169249
  27  0.154312
Done.

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

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  3.334e+00  2.058e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.261e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.035e+00  1.543e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.171e-01  1.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 55.148 -21.316
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.22e-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) = 7477.50807385
delta logL = 0.14310037164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7477.5076241
delta logL = 0.14355012463

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7477.508     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      265 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0131        58.883        .50315E-02    .59627E-03
   2  Index         2.0369        3.3342        .17671        .16601E-03
   3  Normalizat    .62652        .71276E-01    .62562E-01    .11656E-03
   4  Prefactor     1.0283        .64892E-01    .41398E-01   -.60296E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01308
  Index      = 2.03695
  Normalizat = 0.626521
  Prefactor  = 1.02831
 **********
 **   18 **HESSE 
 **********

 FCN=   7477.508     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0131        2.6295        .10204E-03   -1.5307    
   2  Index         2.0369        .40400        .64659E-02   -.63430    
   3  Normalizat    .62652        .15707        .27680E-03   -1.0687    
   4  Prefactor     1.0283        .15322        .21366E-03   -.91792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48451e-10
Minuit parameter uncertainties:
  1  2.62954
  2  0.404682
  3  0.157186
  4  0.153289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176442': 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) = 7477.50762284
delta logL = 0.143551379889

Extracting fit parameters...

4FGL J0340.5-2118
   Spectrum: PowerLaw
267    Prefactor:  4.013e+00  2.630e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.037e+00  4.047e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  1.008e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.028e+00  1.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.265e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 55.148 -21.316
Photon Index (Free Index): 2.04 +/- 0.40
Photon Flux (Free Index): 4.28e-08 +/- 2.96e-08
Energy Flux (Free Index): 2.71e-05 +/- 2.39e-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/176442/cmap_HighResolution_656899201_657158401_4FGL_J0340.5-2118_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='2.71e-05', photon_flux_error='3.03e-08', dlogl='1.44e-01', energy_flux='1.98e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-12-07 14:26:10.483815', photon_index_error2='0.40', photon_index2='2.04', ts='4.29', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.39e-05', EG='0.62', time_epoch_completed='1638915970.48', return_code='0', job_id='176442', GAL2='1.03', EG2='0.63', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.96e-08', ts2='4.55', photon_index='2.26' WHERE bin_id='1611' AND source_name='4FGL J0340.5-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:26:10 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 176442: <4FGL_J0340.5-2118_daily_bin1611> in cluster <slac> Done

Job <4FGL_J0340.5-2118_daily_bin1611> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 14:10:16 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:11:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:11:32 2021
Terminated at Tue Dec  7 14:26:11 2021
Results reported at Tue Dec  7 14:26:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0340.5-2118_daily_bin1611 55.1477 -21.3158 656899201 657158401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0340.5-2118 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   817.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            955 sec.

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

