/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 21 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 = 7655
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1259.7-3223_daily_bin272
RA = 194.945, Dec = -32.3898
tmin = 309830401, tmax = 310089601
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='82792', job_status='RUN', time_executed='2021-09-06 14:01:16.626473', time_epoch_executed='1630962076.63' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82792/ft1_4FGL_J1259.7-3223_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82792/ft1_4FGL_J1259.7-3223_daily_bin272.fits outfile=/scratch/kocevski/82792/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin272.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=309830401.0 tmax=310089601.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.55
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.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/82792/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin272.fits evtable="EVENTS" outfile="/scratch/kocevski/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/82792/ltcube_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.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/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits
.....................!
real 12.66
user 12.10
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/82792/ltcube_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.fits outfile=/scratch/kocevski/82792/expmap_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.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/82792/ltcube_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.fits
.....................!
real 196.55
user 187.89
sys 5.75

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/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.fits scfile=/scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits outfile=/scratch/kocevski/82792/cmap_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.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.70
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.fits scfile=/scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits outfile=/scratch/kocevski/82792/cmap_HighResolution_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.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.71
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82792/Model_4FGL_J1259.7-3223_daily_bin272.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/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.fits....................!
real 148.85
user 142.84
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.fits', '/scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits', expMap='/scratch/kocevski/82792/expmap_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.fits', expCube='/scratch/kocevski/82792/ltcube_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82792/Model_4FGL_J1259.7-3223_daily_bin272.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/82792/ft1_filtered_4FGL_J1259.7-3223_daily_bin272.fits
Spacecraft file(s): /scratch/kocevski/82792/ft2_4FGL_J1259.7-3223_daily_bin272.fits
Exposure map: /scratch/kocevski/82792/expmap_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.fits
Exposure cube: /scratch/kocevski/82792/ltcube_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82792/Model_4FGL_J1259.7-3223_daily_bin272.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) = 8292.35688551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    10.127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.242       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0466       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.877       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1696       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7090       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6486       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6850       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3946       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.901       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16958       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8442       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    2.2015       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .66345       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=   8292.293     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     2414 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0013        .17785E-02** at limit **
   2  Prefactor     10.132        35.869        .12591E-03    .77650E-05
   3  Prefactor     13.239        19.372        .11007E-03    .76429E-05
   4  norm          2.0468        1.1334        .69624E-04    .91441E-04
   5  Prefactor     30.925        62.156        .36053E-03    .88294E-05
   6  norm          1.1535        4.8608        .36651E-03    .52297E-04
   7  Prefactor     2.7153        4.6982        .24568E-03   -.85145E-05
   8  norm          .10000E-03    1.5819        .11169E-02** at limit **
   9  Prefactor     .10000E-03    8.8718        .18142E-02** at limit **
  10  norm          18.548        15.155        .92999E-04   -.34229E-05
  11  Prefactor     4.6487        4.4338        .17934E-03    .22568E-04
  12  norm          4.6866        3.5211        .14305E-03   -.40531E-04
  13  norm          2.3952        6.4970        .26464E-03   -.67790E-04
  14  Prefactor     12.895        11.605        .11152E-03   -.44855E-05
  15  Prefactor     .10000E-03    80.338        .21777    ** at limit **
  16  norm          3.8328        34.584        .20583E-03   -.29826E-05
  17  norm          .10000E-03    15.309        .18142E-02** at limit **
  18  norm          .10000E-03    11.480        .18142E-02** at limit **
  19  Normalizat    2.2014        .32701        .33481E-03   -.93135E-04
  20  Prefactor     .66342        .12430        .21179E-03   -.99736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.1321
  Prefactor  = 13.2394
  norm       = 2.04681
  Prefactor  = 30.9248
  norm       = 1.15346
  Prefactor  = 2.71533
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5476
  Prefactor  = 4.64873
  norm       = 4.68659
  norm       = 2.39518
  Prefactor  = 12.8952
  Prefactor  = 0.000100003
  norm       = 3.83279
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 2.20141
  Prefactor  = 0.663424
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.293     FROM HESSE     STATUS=OK           281 CALLS     2695 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0014        .35569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.132        35.859        .50365E-05   -1.5071    
   3  Prefactor     13.239        19.370        .44030E-05   -1.4980    
   4  norm          2.0468        1.1334        .27850E-05   -1.5422    
   5  Prefactor     30.925        62.128        .14421E-04   -1.4595    
   6  norm          1.1535        4.8522        .14660E-04   -1.5493    
   7  Prefactor     2.7153        4.6963        .98272E-05   -1.5378    
   8  norm          .10000E-03    1.5819        .22337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8788        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.548        15.155        .37199E-05   -1.4846    
  11  Prefactor     4.6487        4.4337        .71735E-05   -1.5277    
  12  norm          4.6866        3.5211        .57221E-05   -1.5275    
  13  norm          2.3952        6.4961        .10586E-04   -1.5398    
  14  Prefactor     12.895        11.605        .44608E-05   -1.4990    
  15  Prefactor     .10000E-03    83.189        .21298       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8328        34.608        .82333E-05   -1.5316    
  17  norm          .10000E-03    15.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    2.2014        .32730        .66961E-04   -.59593    
  20  Prefactor     .66342        .12441        .84716E-05   -1.0498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30112e-11
Minuit parameter uncertainties:
  1  1.10795e-06
  2  35.9351
  3  19.3788
  4  1.13339
  5  62.2581
  6  4.73197
  7  4.69698
  8  3.36223e-06
  9  1.86949e-05
  10  15.158
  11  4.43399
  12  3.52122
  13  6.49803
  14  11.6071
  15  0.000948894
  16  23.0518
  17  3.89354e-06
  18  8.14886e-06
  19  0.327641
  20  0.124466
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  3.362e-06  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:  6.634e-01  1.245e-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:  2.201e+00  3.276e-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: 6.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82792/likelihoodResults_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8292.29598121
delta logL = -0.00295884126172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8292.2930224
delta logL = -3.33056959789e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3229       1.0000          .0000       5.0000    
     3 'Normalizat'    2.2014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66344       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=   8292.293     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      216 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1.6096        .11169E-02** at limit **
   2  alpha         2.2974        3.3964        .16513E-01    .10063E-05
   3  Normalizat    2.2014        .32148        .33480E-03   -.10187E-04
   4  Prefactor     .66342        .12253        .21179E-03   -.11380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  alpha      = 2.29744
  Normalizat = 2.20141
  Prefactor  = 0.663423
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.293     FROM HESSE     STATUS=OK            23 CALLS      239 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.5832        .22338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2974        3.6344        .33026E-02   -.81113E-01
   3  Normalizat    2.2014        .32183        .13392E-04   -.59593    
   4  Prefactor     .66342        .12266        .84715E-05   -1.0498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98599e-08
Minuit parameter uncertainties:
  1  0.000311626
  2  253.836
  3  0.322151
  4  0.122707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82792': 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) = 8292.29302236
delta logL = 1.09630491352e-08

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  3.116e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.297e+00  2.538e+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:  6.634e-01  1.227e-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:  2.201e+00  3.222e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/82792/cmap_HighResolution_309830401_310089601_4FGL_J1259.7-3223_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-06 14:15:53.278412', job_id='82792', GAL2='0.66', fit_tolerance='1e-08', EG2='2.20', EG='2.20', time_epoch_completed='1630962953.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='272' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:15:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 82792: <4FGL_J1259.7-3223_daily_bin272> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin272> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 14:00:32 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:00: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:00:33 2021
Terminated at Mon Sep  6 14:15:53 2021
Results reported at Mon Sep  6 14:15:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin272 194.945 -32.3898 309830401 310089601 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 :                                   860.17 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             356.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

