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


Performing analysis on: 4FGL_J1307.6-4259_daily_bin998
RA = 196.91, Dec = -42.995
tmin = 498009601, tmax = 498268801
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='223509', job_status='RUN', time_executed='2021-09-06 21:39:20.662134', time_epoch_executed='1630989560.66' WHERE source_name='4FGL J1307.6-4259' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223509/ft1_4FGL_J1307.6-4259_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223509/ft1_4FGL_J1307.6-4259_daily_bin998.fits outfile=/scratch/kocevski/223509/ft1_filteredMKT_4FGL_J1307.6-4259_daily_bin998.fits ra=196.91 dec=-42.995 rad=12.0 tmin=498009601.0 tmax=498268801.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 6.61
user 6.29
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.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/223509/ft1_filteredMKT_4FGL_J1307.6-4259_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.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.46
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/223509/ltcube_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.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/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits
.....................!
real 14.10
user 13.74
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/223509/ltcube_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.fits outfile=/scratch/kocevski/223509/expmap_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.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/223509/ltcube_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.fits
.....................!
real 157.80
user 152.56
sys 4.20

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.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 272 point sources and 6 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 J1307.6-4259 @ 196.91 -42.995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.fits scfile=/scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits outfile=/scratch/kocevski/223509/cmap_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.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=196.91 yref=-42.995 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.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.fits scfile=/scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits outfile=/scratch/kocevski/223509/cmap_HighResolution_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.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=196.91 yref=-42.995 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.51
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223509/Model_4FGL_J1307.6-4259_daily_bin998.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 FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.fits.....................!
real 76.98
user 75.51
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.fits', '/scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits', expMap='/scratch/kocevski/223509/expmap_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.fits', expCube='/scratch/kocevski/223509/ltcube_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223509/Model_4FGL_J1307.6-4259_daily_bin998.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1307.6-4259'

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  2.721e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/223509/ft1_filtered_4FGL_J1307.6-4259_daily_bin998.fits
Spacecraft file(s): /scratch/kocevski/223509/ft2_4FGL_J1307.6-4259_daily_bin998.fits
Exposure map: /scratch/kocevski/223509/expmap_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.fits
Exposure cube: /scratch/kocevski/223509/ltcube_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223509/Model_4FGL_J1307.6-4259_daily_bin998.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) = 4336.92370978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.368       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.816       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.768       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.5652       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3004       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.356       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    23.683       1.0000         .10000E-03   10000.    
    15 'norm      '    14.175       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    320.73       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13862E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.582       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5525       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4336.837     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2700 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.545        .37360E-06** at limit **
   2  Prefactor     14.388        129.86        .39048E-04   -.91070E-05
   3  Prefactor     .10000E-03    124.62       -.81566E-04** at limit **
   4  Prefactor     11.814        11.691       -.31453E-05   -.16648E-03
   5  Prefactor     .10000E-03    38.111       -.10852E-04** at limit **
   6  Prefactor     19.769        22.056        .37680E-05   -.61076E-04
   7  Prefactor     .10000E-03    5.4093        .68830E-07** at limit **
   8  Prefactor     .10000E-03    33.122        .47098E-05** at limit **
   9  norm          5.5653        10.341        .48589E-05   -.16272E-03
  10  Prefactor     4.3017        11.906        .25194E-05   -.12890E-03
  11  Prefactor     16.356        16.134        .12885E-05   -.56468E-04
  12  norm          .10000E-03    10.241        .87948E-07** at limit **
  13  Prefactor     .10000E-03    5.0587        .18947E-07** at limit **
  14  norm          23.681        14.750        .21771E-05   -.32797E-04
  15  norm          14.178        12.172        .23489E-05   -.20324E-03
  16  norm          2.2193        4.8360        .33152E-06   -.27502E-03
  17  Prefactor     322.23        474.49        .83420E-03    .85477E-05
  18  Prefactor     .10000E-03    175.14        .10053E-03** at limit **
  19  norm          .10000E-03    51.332        .12387E-04** at limit **
  20  Prefactor     .10000E-03    250.63        .11908E-03** at limit **
  21  Prefactor     .10000E-03    393.42       -.12805E-03** at limit **
  22  Prefactor     27.402        81.927       -.20414E-03    .51218E-06
  23  Normalizat    1.5518        .42959       -.39826E-04   -.11079E-05
  24  Prefactor     .78963        .11478       -.55691E-06   -.10445E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.3876
  Prefactor  = 0.0001
  Prefactor  = 11.8136
  Prefactor  = 0.0001
  Prefactor  = 19.7695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.56527
  Prefactor  = 4.30166
  Prefactor  = 16.3562
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.6805
  norm       = 14.1781
  norm       = 2.21933
  Prefactor  = 322.226
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4019
  Normalizat = 1.55175
  Prefactor  = 0.789628
 **********
 **   18 **HESSE 
 **********

 FCN=   4336.837     FROM HESSE     STATUS=OK           395 CALLS     3095 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.388        128.20        .10567E-03   -1.4949    
   3  Prefactor     .10000E-03    124.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.814        11.622        .11654E-03   -1.5020    
   5  Prefactor     .10000E-03    38.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.769        22.055        .90084E-04   -1.4818    
   7  Prefactor     .10000E-03    5.4124        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.5653        10.343        .17030E-03   -1.5236    
  10  Prefactor     4.3017        11.898        .19427E-03   -1.5293    
  11  Prefactor     16.356        16.135        .99033E-04   -1.4899    
  12  norm          .10000E-03    10.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0842        .14465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          23.681        14.795        .82310E-04   -1.4734    
  15  norm          14.178        12.204        .10639E-03   -1.4955    
  16  norm          2.2193        4.8111        .20584E-03   -1.5410    
  17  Prefactor     322.23        474.11        .11351E-03   -1.2098    
  18  Prefactor     .10000E-03    175.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    51.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    252.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    393.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.402        82.120        .76282E-04   -1.4661    
  23  Normalizat    1.5518        .49383        .44896E-03   -.76334    
  24  Prefactor     .78963        .13294        .16450E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84309e-09
Minuit parameter uncertainties:
  1  0.000203308
  2  86.1422
  3  0.00014005
  4  11.624
  5  7.95346e-06
  6  22.0638
  7  1.23778e-05
  8  4.22942e-05
  9  10.3468
  10  11.9047
  11  16.1389
  12  1.65905e-05
  13  6.16467e-06
  14  14.7972
  15  12.2058
  16  4.81193
  17  479.997
  18  0.000789866
  19  0.000324575
  20  0.00048451
  21  0.000226248
  22  82.4615
  23  0.49538
  24  0.13299
Done.

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

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  1.000e-04  6.165e-06  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  7.896e-01  1.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
957        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
958        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
944   Normalization:  1.552e+00  4.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.910 -42.995
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223509/likelihoodResults_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.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) = 4336.83837627
delta logL = -0.000932192103392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4336.83744402
delta logL = 5.63777575735e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9244       1.0000          .0000       10.000    
     3 'Normalizat'    1.5517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9650E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4336.837     FROM MIGRAD    STATUS=FAILED        89 CALLS      241 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    68.854        .14588E-02** at limit **
   2  Index         1.8675        5.1132        .50000        .17858E-04
   3  Normalizat    1.5517        .41132E-01    .44898E-03    .21017E-05
   4  Prefactor     .78963        .11284E-01    .16450E-03   -.16863E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4336.837     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      368 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    68.854        .37862E-03** at limit **
   2  Index         1.8675        5.1132        .33366E-03    .17858E-04
   3  Normalizat    1.5517        .41132E-01    .66490E-05    .21017E-05
   4  Prefactor     .78963        .11284E-01    .23274E-05   -.16863E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4336.837     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      413 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.204        .29176E-02** at limit **
   2  Index         1.6021        6.0992        .50000        .58753E-07
   3  Normalizat    1.5517        .35850E-01    .17959E-04    .44565E-04
   4  Prefactor     .78963        .98356E-02    .65801E-05    .12232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60206
  Normalizat = 1.55174
  Prefactor  = 0.789634
 **********
 **   18 **HESSE 
 **********

 FCN=   4336.837     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      442 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    311.17        .58352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6021        5.2497        .50000       -.74720    
   3  Normalizat    1.5517        .89477E-01    .35918E-05   -.76335    
   4  Prefactor     .78963        .24544E-01    .13160E-05   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99652e-11
Minuit parameter uncertainties:
  1  0.000255291
  2  944.435
  3  0.0894859
  4  0.0245443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223509': 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) = 4336.83744311
delta logL = 9.65672370512e-07

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  1.000e-04  2.553e-04  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.602e+00  9.444e+02  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  7.896e-01  2.454e-02  0.000e+00  1.000e+01 ( 1.000e+00)
957        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
958        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
944   Normalization:  1.552e+00  8.949e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.910 -42.995

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/223509/cmap_HighResolution_498009601_498268801_4FGL_J1307.6-4259_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-06 21:51:19.112142', job_id='223509', GAL2='0.79', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1630990279.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='9.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='998' AND source_name='4FGL J1307.6-4259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 223509: <4FGL_J1307.6-4259_daily_bin998> in cluster <slac> Done

Job <4FGL_J1307.6-4259_daily_bin998> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:35:49 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:36:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 21:36:47 2021
Terminated at Mon Sep  6 21:51:19 2021
Results reported at Mon Sep  6 21:51:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1307.6-4259_daily_bin998 196.91 -42.995 498009601 498268801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1307.6-4259 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.39 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             257.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            930 sec.

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

