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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin305
RA = 194.945, Dec = -32.3898
tmin = 318384001, tmax = 318643201
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='82880', job_status='RUN', time_executed='2021-09-06 14:04:08.441936', time_epoch_executed='1630962248.44' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82880/ft1_4FGL_J1259.7-3223_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82880/ft2_4FGL_J1259.7-3223_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82880/ft1_4FGL_J1259.7-3223_daily_bin305.fits outfile=/scratch/kocevski/82880/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin305.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=318384001.0 tmax=318643201.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.29
user 3.04
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82880/ft1_filtered_4FGL_J1259.7-3223_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/82880/ft2_4FGL_J1259.7-3223_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/82880/ltcube_318384001_318643201_4FGL_J1259.7-3223_daily_bin305.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/82880/ft2_4FGL_J1259.7-3223_daily_bin305.fits
.....................!
real 13.71
user 13.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82880/ft1_filtered_4FGL_J1259.7-3223_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/82880/ft2_4FGL_J1259.7-3223_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/82880/ltcube_318384001_318643201_4FGL_J1259.7-3223_daily_bin305.fits outfile=/scratch/kocevski/82880/expmap_318384001_318643201_4FGL_J1259.7-3223_daily_bin305.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/82880/ltcube_318384001_318643201_4FGL_J1259.7-3223_daily_bin305.fits
.....................!
real 190.47
user 185.59
sys 4.51

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/82880/ft1_filtered_4FGL_J1259.7-3223_daily_bin305.fits scfile=/scratch/kocevski/82880/ft2_4FGL_J1259.7-3223_daily_bin305.fits outfile=/scratch/kocevski/82880/cmap_318384001_318643201_4FGL_J1259.7-3223_daily_bin305.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82880/ft1_filtered_4FGL_J1259.7-3223_daily_bin305.fits scfile=/scratch/kocevski/82880/ft2_4FGL_J1259.7-3223_daily_bin305.fits outfile=/scratch/kocevski/82880/cmap_HighResolution_318384001_318643201_4FGL_J1259.7-3223_daily_bin305.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82880/ft1_filtered_4FGL_J1259.7-3223_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/82880/ft2_4FGL_J1259.7-3223_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82880/Model_4FGL_J1259.7-3223_daily_bin305.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/82880/ft1_filtered_4FGL_J1259.7-3223_daily_bin305.fits.....................!
real 118.27
user 115.98
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .11040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.822       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4793       1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.881       1.0000         .10000E-03   10000.    
     6 'norm      '    .67347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3325       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2707       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3987       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.5293       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.440       1.0000         .10000E-03   10000.    
    17 'norm      '    .12983E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2546       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0096       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=   6965.746     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2011 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7900        .74673E-07** at limit **
   2  Prefactor     .10000E-03    70.401        .37215E-05** at limit **
   3  Prefactor     63.810        41.076        .99038E-06   -.60307E-04
   4  norm          2.4793        1.3784       -.81859E-07   -.10356E-03
   5  Prefactor     56.769        98.612       -.14340E-04    .39575E-04
   6  norm          .69552        18.576        .15058E-04   -.14363E-04
   7  Prefactor     8.3260        6.3425       -.17702E-05   -.12589E-03
   8  norm          5.2712        4.9735        .85994E-07   -.23099E-04
   9  Prefactor     9.4007        8.7952        .22178E-06    .39212E-05
  10  norm          .10000E-03    5.8039        .11571E-06** at limit **
  11  Prefactor     .10000E-03    4.4928        .39590E-08** at limit **
  12  norm          .10000E-03    2.9204        .17035E-06** at limit **
  13  norm          6.5314        8.0809        .17153E-06    .43354E-04
  14  Prefactor     .10000E-03    5.7274       -.55863E-07** at limit **
  15  Prefactor     .10000E-03    169.68        .43993E-05** at limit **
  16  norm          21.459        29.619       -.88887E-06   -.43156E-04
  17  norm          .10000E-03    63.059       -.28490E-05** at limit **
  18  norm          .10000E-03    5.6971       -.93204E-07** at limit **
  19  Normalizat    1.2546        .30841       -.59737E-07   -.86240E-04
  20  Prefactor     1.0095        .11747       -.10645E-05   -.38478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.8103
  norm       = 2.47925
  Prefactor  = 56.7695
  norm       = 0.695517
  Prefactor  = 8.32604
  norm       = 5.27119
  Prefactor  = 9.40073
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.53141
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 21.4591
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.25464
  Prefactor  = 1.00952
 **********
 **   18 **HESSE 
 **********

 FCN=   6965.746     FROM HESSE     STATUS=OK           289 CALLS     2300 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7919        .17840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     63.810        41.102        .50232E-04   -1.4109    
   4  norm          2.4793        1.3724        .69944E-04   -1.5393    
   5  Prefactor     56.769        100.58        .26595E-03   -1.4200    
   6  norm          .69552        19.744        .30583E-02   -1.5541    
   7  Prefactor     8.3260        6.3611        .13888E-03   -1.5131    
   8  norm          5.2712        4.9745        .17471E-03   -1.5249    
   9  Prefactor     9.4007        8.7970        .13072E-03   -1.5095    
  10  norm          .10000E-03    5.8096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5236        .17275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0375        .27840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.5314        8.0738        .15706E-03   -1.5197    
  14  Prefactor     .10000E-03    5.7347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    170.27        .21449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.459        29.592        .86504E-04   -1.4781    
  17  norm          .10000E-03    62.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.7047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2546        .36229        .42285E-03   -.84931    
  20  Prefactor     1.0095        .13909        .18098E-03   -.92413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94232e-08
Minuit parameter uncertainties:
  1  7.44006e-06
  2  0.000300542
  3  41.1199
  4  1.3724
  5  100.884
  6  7.4135
  7  6.36158
  8  4.9749
  9  8.79817
  10  8.83345e-06
  11  1.47151e-05
  12  2.40972e-05
  13  8.07512
  14  2.03518e-05
  15  0.00139611
  16  29.6121
  17  0.00021946
  18  5.96003e-06
  19  0.363026
  20  0.139136
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  5.271e+00  4.975e+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:  1.010e+00  1.391e-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.255e+00  3.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 194.945 -32.390
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.10e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.40e-05

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) = 6965.29428174
delta logL = 0.452007490795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6965.18358647
delta logL = 0.562702761821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8515       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2054       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0060       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=   6965.184     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8501        3.0079        .60192E-02   -.25712E-03
   2  alpha         1.2042        .59051        .50000       -.35861E-04
   3  Normalizat    1.2835        .29756        .94541E-01    .23856E-04
   4  Prefactor     1.0061        .11638        .43981E-01    .18580E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85012
  alpha      = 1.20417
  Normalizat = 1.28353
  Prefactor  = 1.00605
 **********
 **   18 **HESSE 
 **********

 FCN=   6965.184     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8501        4.0817        .13973E-03   -1.5370    
   2  alpha         1.2042        .86381        .21936E-01   -.54490    
   3  Normalizat    1.2835        .35309        .41880E-03   -.84059    
   4  Prefactor     1.0061        .13852        .18129E-03   -.92528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54253e-09
Minuit parameter uncertainties:
  1  4.08213
  2  0.889231
  3  0.353757
  4  0.138569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82880': 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) = 6965.18358477
delta logL = 0.562704465555

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  2.850e+00  4.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.204e+00  8.892e-01  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.006e+00  1.386e-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.284e+00  3.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 1.20 +/- 0.89
Photon Flux (Free Index): 9.54e-09 +/- 1.35e-08
Energy Flux (Free Index): 2.70e-05 +/- 4.19e-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/82880/cmap_HighResolution_318384001_318643201_4FGL_J1259.7-3223_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.10e-08', energy_flux2='2.70e-05', photon_flux_error='3.87e-08', dlogl='5.63e-01', energy_flux='1.49e-05', photon_flux2='9.54e-09', job_status='DONE', time_completed='2021-09-06 14:15:02.755480', photon_index_error2='0.89', photon_index2='1.20', ts='4.28', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='4.19e-05', EG='1.25', time_epoch_completed='1630962902.76', return_code='0', job_id='82880', GAL2='1.01', EG2='1.28', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.35e-08', ts2='5.40', photon_index='2.32' WHERE bin_id='305' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:15:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 82880: <4FGL_J1259.7-3223_daily_bin305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin305 194.945 -32.3898 318384001 318643201 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 :                                   653.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

