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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin265
RA = 194.945, Dec = -32.3898
tmin = 308016001, tmax = 308275201
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='82782', job_status='RUN', time_executed='2021-09-06 14:00:43.529542', time_epoch_executed='1630962043.53' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82782/ft1_4FGL_J1259.7-3223_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82782/ft2_4FGL_J1259.7-3223_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82782/ft1_4FGL_J1259.7-3223_daily_bin265.fits outfile=/scratch/kocevski/82782/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin265.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=308016001.0 tmax=308275201.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.76
user 3.16
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82782/ft2_4FGL_J1259.7-3223_daily_bin265.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/82782/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin265.fits evtable="EVENTS" outfile="/scratch/kocevski/82782/ft1_filtered_4FGL_J1259.7-3223_daily_bin265.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.59
user 0.34
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82782/ft1_filtered_4FGL_J1259.7-3223_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/82782/ft2_4FGL_J1259.7-3223_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/82782/ltcube_308016001_308275201_4FGL_J1259.7-3223_daily_bin265.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/82782/ft2_4FGL_J1259.7-3223_daily_bin265.fits
.....................!
real 12.64
user 12.10
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82782/ft1_filtered_4FGL_J1259.7-3223_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/82782/ft2_4FGL_J1259.7-3223_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/82782/ltcube_308016001_308275201_4FGL_J1259.7-3223_daily_bin265.fits outfile=/scratch/kocevski/82782/expmap_308016001_308275201_4FGL_J1259.7-3223_daily_bin265.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/82782/ltcube_308016001_308275201_4FGL_J1259.7-3223_daily_bin265.fits
.....................!
real 192.55
user 185.83
sys 5.90

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/82782/ft1_filtered_4FGL_J1259.7-3223_daily_bin265.fits scfile=/scratch/kocevski/82782/ft2_4FGL_J1259.7-3223_daily_bin265.fits outfile=/scratch/kocevski/82782/cmap_308016001_308275201_4FGL_J1259.7-3223_daily_bin265.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.72
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82782/ft1_filtered_4FGL_J1259.7-3223_daily_bin265.fits scfile=/scratch/kocevski/82782/ft2_4FGL_J1259.7-3223_daily_bin265.fits outfile=/scratch/kocevski/82782/cmap_HighResolution_308016001_308275201_4FGL_J1259.7-3223_daily_bin265.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.61
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82782/ft1_filtered_4FGL_J1259.7-3223_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/82782/ft2_4FGL_J1259.7-3223_daily_bin265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82782/Model_4FGL_J1259.7-3223_daily_bin265.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/82782/ft1_filtered_4FGL_J1259.7-3223_daily_bin265.fits.....................!
real 158.04
user 155.05
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    88.045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4678       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4044       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1881       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26782E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3812       1.0000         .10000E-03   10000.    
    12 'norm      '    .84269       1.0000         .10000E-03   10000.    
    13 'norm      '    13.748       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.8465       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89215       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.

 FCN=   9242.594     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2040 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0986       -.25839E-07** at limit **
   2  Prefactor     88.049        40.789        .57693E-07    .57478E-05
   3  Prefactor     7.4690        17.644        .28591E-06    .13586E-05
   4  norm          2.4043        1.2007       -.70765E-07   -.77972E-03
   5  Prefactor     .10001E-03    96.309        .20034E-05** at limit **
   6  norm          .10000E-03    4.5988       -.19811E-06** at limit **
   7  Prefactor     3.1794        5.2398        .16778E-05   -.76943E-03
   8  norm          1.9901        5.4278        .77817E-05    .26322E-03
   9  Prefactor     .10000E-03    6.9205        .54432E-05** at limit **
  10  norm          12.668        11.541       -.50903E-07    .18826E-05
  11  Prefactor     3.3819        6.3209        .28606E-06    .13086E-04
  12  norm          .84276        2.1151        .65725E-07   -.15143E-03
  13  norm          13.748        6.8269       -.12591E-06    .97308E-04
  14  Prefactor     .10000E-03    6.3075       -.38654E-07** at limit **
  15  Prefactor     .10000E-03    82.630       -.18689E-05** at limit **
  16  norm          .10000E-03    9.6679        .11778E-06** at limit **
  17  norm          .10000E-03    17.825        .54119E-07** at limit **
  18  norm          .10000E-03    10.082        .73460E-07** at limit **
  19  Normalizat    1.8464        .26601       -.10880E-05    .69470E-04
  20  Prefactor     .89212        .10453       -.21162E-06    .92256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 88.0486
  Prefactor  = 7.46899
  norm       = 2.4043
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 3.17938
  norm       = 1.99011
  Prefactor  = 0.000100004
  norm       = 12.668
  Prefactor  = 3.38195
  norm       = 0.842763
  norm       = 13.7478
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.84638
  Prefactor  = 0.892119
 **********
 **   18 **HESSE 
 **********

 FCN=   9242.594     FROM HESSE     STATUS=OK           293 CALLS     2333 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     88.049        40.800        .42819E-04   -1.3829    
   3  Prefactor     7.4690        17.636        .14676E-03   -1.5161    
   4  norm          2.4043        1.1983        .71204E-04   -1.5398    
   5  Prefactor     .10001E-03    96.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.6447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1794        5.2885        .11347E-02   -1.5351    
   8  norm          1.9901        5.5463        .14689E-02   -1.5426    
   9  Prefactor     .10000E-03    28.162        .42675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.668        11.530        .56272E-03   -1.4996    
  11  Prefactor     3.3819        6.3148        .22005E-03   -1.5340    
  12  norm          .84276        2.0960        .21413E-03   -1.5524    
  13  norm          13.748        6.8358        .10803E-03   -1.4966    
  14  Prefactor     .10000E-03    6.3358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    82.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.6681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.8464        .32030        .36715E-03   -.68459    
  20  Prefactor     .89212        .12614        .19776E-03   -.96417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22504e-10
Minuit parameter uncertainties:
  1  5.4697e-06
  2  40.8131
  3  17.6488
  4  1.19836
  5  0.00158724
  6  3.22349e-05
  7  5.28924
  8  5.54776
  9  0.000666614
  10  11.5316
  11  6.31604
  12  2.09618
  13  6.83618
  14  7.4379e-06
  15  0.00102767
  16  9.49257e-06
  17  1.66887e-05
  18  6.09888e-05
  19  0.32067
  20  0.126178
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.990e+00  5.548e+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

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  8.921e-01  1.262e-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:  1.846e+00  3.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/82782/likelihoodResults_308016001_308275201_4FGL_J1259.7-3223_daily_bin265.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) = 9240.92782059
delta logL = 1.66633302262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9240.8861396
delta logL = 1.70801400931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24051       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94125       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=   9240.886     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      308 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24056        3.6416        .59466E-02    .22167E-02
   2  alpha         5.0000        3.9706        .46401    ** at limit **
   3  Normalizat    1.6522        .14727        .86493E-01    .23296E-04
   4  Prefactor     .94133        .54750E-01    .45529E-01   -.11017E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.240562
  alpha      = 5
  Normalizat = 1.65225
  Prefactor  = 0.941334
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.886     FROM HESSE     STATUS=OK            37 CALLS      345 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24056        .17425        .26964E-03   -1.5610    
   2  alpha         5.0000        .65939        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6522        .33543        .38291E-03   -.73586    
   4  Prefactor     .94133        .12845        .19293E-03   -.94711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24158e-09
Minuit parameter uncertainties:
  1  0.174247
  2  4.97299e-07
  3  0.335888
  4  0.128493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82782': 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) = 9240.88613923
delta logL = 1.70801437857

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  2.406e-01  1.742e-01  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  5.000e+00  4.973e-07  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:  9.413e-01  1.285e-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:  1.652e+00  3.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.56e-07 +/- 1.12e-07
Energy Flux (Free Index): 2.15e-05 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/82782/cmap_HighResolution_308016001_308275201_4FGL_J1259.7-3223_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-05', comment='SUCCESS', energy_flux2='2.15e-05', dlogl='1.71e+00', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-06 14:15:39.040625', photon_index_error2='0.00', photon_index2='5.00', ts='0.15', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.55e-05', EG='1.85', time_epoch_completed='1630962939.04', return_code='0', job_id='82782', GAL2='0.94', EG2='1.65', return_code2='0', photon_flux_error2='1.12e-07', ts2='3.88', photon_index='2.32' WHERE bin_id='265' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:15:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 82782: <4FGL_J1259.7-3223_daily_bin265> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin265> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 14:00:31 2021
Job was executed on host(s) <bullet0048>, 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:39 2021
Results reported at Mon Sep  6 14:15:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin265 194.945 -32.3898 308016001 308275201 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 :                                   885.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             409.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

