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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin504
RA = 194.945, Dec = -32.3898
tmin = 369964801, tmax = 370224001
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='84895', job_status='RUN', time_executed='2021-09-06 14:09:19.368684', time_epoch_executed='1630962559.37' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84895/ft1_4FGL_J1259.7-3223_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84895/ft1_4FGL_J1259.7-3223_daily_bin504.fits outfile=/scratch/kocevski/84895/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin504.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=369964801.0 tmax=370224001.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 7.64
user 7.35
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.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/84895/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/84895/ltcube_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.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/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits
.....................!
real 11.58
user 11.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/84895/ltcube_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.fits outfile=/scratch/kocevski/84895/expmap_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.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/84895/ltcube_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.fits
.....................!
real 190.58
user 185.75
sys 4.30

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 192 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1259.7-3223 @ 194.945 -32.3898

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.fits scfile=/scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits outfile=/scratch/kocevski/84895/cmap_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.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=194.945 yref=-32.3898 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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.fits scfile=/scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits outfile=/scratch/kocevski/84895/cmap_HighResolution_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.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=194.945 yref=-32.3898 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/84895/Model_4FGL_J1259.7-3223_daily_bin504.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/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.fits.....................!
real 106.69
user 105.08
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.fits', '/scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits', expMap='/scratch/kocevski/84895/expmap_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.fits', expCube='/scratch/kocevski/84895/ltcube_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/84895/Model_4FGL_J1259.7-3223_daily_bin504.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1259.7-3223'

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.897e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/84895/ft1_filtered_4FGL_J1259.7-3223_daily_bin504.fits
Spacecraft file(s): /scratch/kocevski/84895/ft2_4FGL_J1259.7-3223_daily_bin504.fits
Exposure map: /scratch/kocevski/84895/expmap_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.fits
Exposure cube: /scratch/kocevski/84895/ltcube_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/84895/Model_4FGL_J1259.7-3223_daily_bin504.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) = 6009.01321577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.7087       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    25.321       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.415       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4261       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.299       1.0000         .10000E-03   10000.    
    16 'norm      '    46.916       1.0000         .10000E-03   10000.    
    17 'norm      '    .10771E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .75662       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6009.009     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2019 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.305        .90712E-02** at limit **
   2  Prefactor     .10129E-03    121.01        .90712E-02** at limit **
   3  Prefactor     .10000E-03    30.731        .90712E-02** at limit **
   4  norm          7.7088        1.8966        .36108E-02    .93405E-04
   5  Prefactor     .10005E-03    85.771        .90712E-02** at limit **
   6  norm          25.324        10.002        .19902E-02    .44712E-03
   7  Prefactor     .10000E-03    3.2641        .90712E-02** at limit **
   8  norm          .10000E-03    6.0584        .90712E-02** at limit **
   9  Prefactor     16.416        14.753        .24714E-02   -.14853E-03
  10  norm          .10000E-03    7.2233        .90712E-02** at limit **
  11  Prefactor     .10000E-03    3.6541        .90712E-02** at limit **
  12  norm          .10000E-03    1.8058        .90712E-02** at limit **
  13  norm          4.4259        7.2549        .47854E-02    .26371E-03
  14  Prefactor     .10000E-03    9.1791        .90712E-02** at limit **
  15  Prefactor     75.299        67.997        .11568E-02   -.66573E-04
  16  norm          46.917        40.907        .14635E-02   -.19124E-03
  17  norm          .10113E-03    140.43        .90712E-02** at limit **
  18  norm          .10000E-03    19.330        .90712E-02** at limit **
  19  Normalizat    .75645        .33785        .11303       -.50994E-04
  20  Prefactor     1.1543        .13723        .35815E-01   -.25557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101291
  Prefactor  = 0.0001
  norm       = 7.70882
  Prefactor  = 0.00010005
  norm       = 25.324
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.416
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.42585
  Prefactor  = 0.0001
  Prefactor  = 75.2992
  norm       = 46.9173
  norm       = 0.000101131
  norm       = 0.0001
  Normalizat = 0.756454
  Prefactor  = 1.15426
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.009     FROM HESSE     STATUS=OK           279 CALLS     2298 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10129E-03    122.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.7088        1.8958        .50984E-04   -1.5153    
   5  Prefactor     .10005E-03    85.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25.324        9.9909        .79608E-04   -1.4701    
   7  Prefactor     .10000E-03    3.2719        .13668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.1958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.416        14.750        .98854E-04   -1.4897    
  10  norm          .10000E-03    7.2287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6670        .14471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8463        .10171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4259        7.2343        .19142E-03   -1.5287    
  14  Prefactor     .10000E-03    9.2204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     75.299        67.992        .46272E-04   -1.3970    
  16  norm          46.917        40.917        .58539E-04   -1.4337    
  17  norm          .10113E-03    141.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    19.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .75645        .37115        .50119E-03   -1.0170    
  20  Prefactor     1.1543        .15254        .16983E-03   -.87751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93654e-08
Minuit parameter uncertainties:
  1  3.94384e-05
  2  0.0251588
  3  7.99209e-05
  4  1.89585
  5  0.00415941
  6  9.99152
  7  2.121e-07
  8  2.73479e-05
  9  14.7528
  10  1.56875e-05
  11  1.04064e-06
  12  6.02642e-07
  13  7.23569
  14  2.38774e-05
  15  68.0621
  16  40.9417
  17  0.0253802
  18  3.94479e-05
  19  0.372397
  20  0.152597
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  2.735e-05  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.154e+00  1.526e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  7.565e-01  3.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.945 -32.390
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/84895/likelihoodResults_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.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) = 6009.00977242
delta logL = -0.000769172187574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6009.00900329
delta logL = -3.77758624381e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3034       1.0000          .0000       5.0000    
     3 'Normalizat'    .75648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+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=   6009.009     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      247 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.255        .62597E-01** at limit **
   2  alpha         2.0305        3.3014        .16525       -.35086E-08
   3  Normalizat    .75645        .12699E-01    .50119E-03    .40748E-03
   4  Prefactor     1.1543        .52544E-02    .16983E-03    .14315E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.03046
  Normalizat = 0.756454
  Prefactor  = 1.15426
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.009     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2281        .31056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0305        3.4231        .66102E-02   -.18894    
   3  Normalizat    .75645        .36625        .20048E-04   -1.0170    
   4  Prefactor     1.1543        .15198        .33967E-04   -.87751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05813e-09
Minuit parameter uncertainties:
  1  6.1851e-05
  2  218.442
  3  0.367444
  4  0.152034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84895': 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) = 6009.0090023
delta logL = 9.47632543102e-07

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  6.185e-05  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.030e+00  2.184e+02  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.154e+00  1.520e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  7.565e-01  3.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.945 -32.390

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/84895/cmap_HighResolution_369964801_370224001_4FGL_J1259.7-3223_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-06 14:20:55.710226', job_id='84895', GAL2='1.15', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630963255.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='9.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='504' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:20:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 84895: <4FGL_J1259.7-3223_daily_bin504> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin504> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 14:05:31 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:05:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:05:33 2021
Terminated at Mon Sep  6 14:20:56 2021
Results reported at Mon Sep  6 14:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin504 194.945 -32.3898 369964801 370224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1259.7-3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

