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


Performing analysis on: 4FGL_J1345.9-2612_daily_bin1373
RA = 206.482, Dec = -26.2116
tmin = 595209601, tmax = 595468801
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='959843', job_status='RUN', time_executed='2021-09-08 12:01:28.338322', time_epoch_executed='1631127688.34' WHERE source_name='4FGL J1345.9-2612' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959843/ft1_4FGL_J1345.9-2612_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959843/ft1_4FGL_J1345.9-2612_daily_bin1373.fits outfile=/scratch/kocevski/959843/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin1373.fits ra=206.482 dec=-26.2116 rad=12.0 tmin=595209601.0 tmax=595468801.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.98
user 2.74
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.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/959843/ft1_filteredMKT_4FGL_J1345.9-2612_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.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.51
user 0.38
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/959843/ltcube_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.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/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits
.....................!
real 17.19
user 16.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/959843/ltcube_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.fits outfile=/scratch/kocevski/959843/expmap_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.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/959843/ltcube_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.fits
.....................!
real 192.03
user 186.68
sys 4.93

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 J1345.9-2612 @ 206.482 -26.2116

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.fits scfile=/scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits outfile=/scratch/kocevski/959843/cmap_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.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=206.482 yref=-26.2116 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.fits scfile=/scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits outfile=/scratch/kocevski/959843/cmap_HighResolution_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.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=206.482 yref=-26.2116 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/959843/Model_4FGL_J1345.9-2612_daily_bin1373.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/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.fits.....................!
real 44.50
user 43.15
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.fits', '/scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits', expMap='/scratch/kocevski/959843/expmap_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.fits', expCube='/scratch/kocevski/959843/ltcube_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/959843/Model_4FGL_J1345.9-2612_daily_bin1373.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1345.9-2612'

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  3.152e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  2.097e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  9.998e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  1.662e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/959843/ft1_filtered_4FGL_J1345.9-2612_daily_bin1373.fits
Spacecraft file(s): /scratch/kocevski/959843/ft2_4FGL_J1345.9-2612_daily_bin1373.fits
Exposure map: /scratch/kocevski/959843/expmap_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.fits
Exposure cube: /scratch/kocevski/959843/ltcube_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/959843/Model_4FGL_J1345.9-2612_daily_bin1373.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) = 2010.82981449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5669       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27816E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .44300E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9422       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    111.83       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10825E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.695       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    103.86       1.0000         .10000E-03   10000.    
    22 'norm      '    .13400E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .38926E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    426.87       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6001       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2010.826     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3621 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5735        8.4556       -.35518E-06   -.44429E-03
   2  Prefactor     .10050E-03    10.105        .24935E-05** at limit **
   3  norm          .10000E-03    7.6744        .67687E-06** at limit **
   4  norm          .10168E-03    3.9428       -.11554E-05** at limit **
   5  norm          .10000E-03    4.8413        .28502E-06** at limit **
   6  Prefactor     .10000E-03    31.293        .31447E-06** at limit **
   7  Prefactor     .10000E-03    22.059        .11298E-06** at limit **
   8  Prefactor     .10000E-03    8.1506        .10428E-06** at limit **
   9  Prefactor     5.9349        29.859       -.13811E-05   -.39276E-04
  10  norm          .10000E-03    4.9876        .16172E-06** at limit **
  11  Prefactor     111.70        193.64        .45745E-06   -.11236E-04
  12  norm          .10000E-03    33.249        .11156E-06** at limit **
  13  norm          .10000E-03    303.63       -.22025E-05** at limit **
  14  Prefactor     .10000E-03    59.338        .24343E-06** at limit **
  15  norm          .10000E-03    22.767       -.97759E-07** at limit **
  16  Prefactor     13.694        12.659        .44653E-07   -.95114E-05
  17  Prefactor     .10000E-03    97.042       -.10578E-05** at limit **
  18  Prefactor     .10000E-03    431.76       -.45631E-05** at limit **
  19  Prefactor     .10000E-03    109.39        .30438E-08** at limit **
  20  Prefactor     .10000E-03    69.852       -.11230E-06** at limit **
  21  Prefactor     103.73        152.51       -.62975E-06   -.10447E-04
  22  norm          .10002E-03    66.984       -.11889E-04** at limit **
  23  Prefactor     .10004E-03    384.43       -.16807E-04** at limit **
  24  Prefactor     425.89        502.68       -.23366E-06   -.62373E-05
  25  Normalizat    1.6000        .54577        .38282E-05   -.15932E-03
  26  Prefactor     .81457        .22094       -.34491E-05   -.22316E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57352
  Prefactor  = 0.000100504
  norm       = 0.0001
  norm       = 0.000101683
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.93494
  norm       = 0.0001
  Prefactor  = 111.703
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6942
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.73
  norm       = 0.00010002
  Prefactor  = 0.000100038
  Prefactor  = 425.888
  Normalizat = 1.60004
  Prefactor  = 0.814569
 **********
 **   18 **HESSE 
 **********

 FCN=   2010.826     FROM HESSE     STATUS=OK           446 CALLS     4067 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5735        7.4441        .19866E-03   -1.5387    
   2  Prefactor     .10050E-03    71.093        .21579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.8142        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10168E-03    80.792        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8621        .96398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1539        .12505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9349        29.758        .16473E-03   -1.5221    
  10  norm          .10000E-03    4.9921        .97826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     111.70        193.75        .19019E-03   -1.3590    
  12  norm          .10000E-03    33.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    304.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    59.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    22.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.694        12.678        .10823E-03   -1.4968    
  17  Prefactor     .10000E-03    97.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    432.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    109.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    69.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     103.73        152.68        .19728E-03   -1.3667    
  22  norm          .10002E-03    67.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    386.43        .21276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     425.89        502.71        .98936E-04   -1.1551    
  25  Normalizat    1.6000        .64240        .34970E-03   -.75005    
  26  Prefactor     .81457        .25677        .19139E-03   -.99194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71894e-08
Minuit parameter uncertainties:
  1  7.44673
  2  0.0119861
  3  5.20093e-05
  4  0.0233507
  5  1.93285e-05
  6  7.10606e-05
  7  1.18517e-05
  8  8.25367e-06
  9  26.5998
  10  1.08517e-05
  11  194.864
  12  3.50473e-05
  13  0.000538543
  14  9.305e-05
  15  3.57481e-06
  16  12.6809
  17  0.000244979
  18  0.00275092
  19  8.21518e-05
  20  6.08774e-05
  21  153.267
  22  0.00230214
  23  0.0076643
  24  508.056
  25  0.645752
  26  0.257152
Done.

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

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.000e-04  3.505e-05  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  2.097e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  9.998e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  1.662e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  8.146e-01  2.572e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.600e+00  6.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 206.482 -26.212
Photon Flux Upper Limit: 7.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/959843/likelihoodResults_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.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) = 2010.82603408
delta logL = -0.000138910200576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2010.82589851
delta logL = -3.33546904585e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0167       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+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=   2010.826     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      271 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    710.60        .14425E-01** at limit **
   2  alpha         1.4909        3.9681        .50000        .84242E-08
   3  Normalizat    1.6001        .59980E-01    .34969E-03    .46381E-03
   4  Prefactor     .81457        .24594E-01    .19139E-03    .85935E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.49087
  Normalizat = 1.60005
  Prefactor  = 0.814571
 **********
 **   18 **HESSE 
 **********

 FCN=   2010.826     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      298 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7817.1        .26205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4909        3.2010        .20000       -.41550    
   3  Normalizat    1.6001        .29656        .69939E-04   -.75004    
   4  Prefactor     .81457        .12169        .38279E-04   -.99193    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.2141e-09
Minuit parameter uncertainties:
  1  0.00106828
  2  19202.2
  3  0.296884
  4  0.121729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959843': 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) = 2010.82589507
delta logL = 1.04818127511e-07

Extracting fit parameters...

4FGL J1345.9-2612
   Spectrum: LogParabola
309         norm:  1.000e-04  1.068e-03  1.000e-04  1.000e+04 ( 1.000e-13)
310        alpha:  1.491e+00  1.920e+04  0.000e+00  5.000e+00 ( 1.000e+00)
311         beta:  9.998e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  1.662e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  8.146e-01  1.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  1.600e+00  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 206.482 -26.212

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/959843/cmap_HighResolution_595209601_595468801_4FGL_J1345.9-2612_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-05', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-08 12:10:13.005188', job_id='959843', GAL2='0.81', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1631128213.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1373' AND source_name='4FGL J1345.9-2612' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 12:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 959843: <4FGL_J1345.9-2612_daily_bin1373> in cluster <slac> Done

Job <4FGL_J1345.9-2612_daily_bin1373> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 12:00:45 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 12:00:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 12:00:57 2021
Terminated at Wed Sep  8 12:10:13 2021
Results reported at Wed Sep  8 12:10:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1345.9-2612_daily_bin1373 206.482 -26.2116 595209601 595468801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1345.9-2612 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   511.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            568 sec.

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

