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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1618
RA = 193.552, Dec = -22.0872
tmin = 658713601, tmax = 658972801
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='336440', job_status='RUN', time_executed='2021-12-07 23:29:21.826176', time_epoch_executed='1638948561.83' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336440/ft1_4FGL_J1254.2-2205_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336440/ft1_4FGL_J1254.2-2205_daily_bin1618.fits outfile=/scratch/kocevski/336440/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1618.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=658713601.0 tmax=658972801.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.03
user 2.79
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.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/336440/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1618.fits evtable="EVENTS" outfile="/scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.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.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/336440/ltcube_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.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/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits
.....................!
real 14.37
user 13.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/336440/ltcube_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.fits outfile=/scratch/kocevski/336440/expmap_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.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/336440/ltcube_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.fits
.....................!
real 191.52
user 185.51
sys 5.56

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
Added 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.2-2205 @ 193.552 -22.0872

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.fits scfile=/scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits outfile=/scratch/kocevski/336440/cmap_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.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=193.552 yref=-22.0872 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.fits scfile=/scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits outfile=/scratch/kocevski/336440/cmap_HighResolution_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.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=193.552 yref=-22.0872 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/336440/Model_4FGL_J1254.2-2205_daily_bin1618.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.fits.....................!
real 56.26
user 54.83
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.fits', '/scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits', expMap='/scratch/kocevski/336440/expmap_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.fits', expCube='/scratch/kocevski/336440/ltcube_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/336440/Model_4FGL_J1254.2-2205_daily_bin1618.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.2-2205'

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  8.803e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/336440/ft1_filtered_4FGL_J1254.2-2205_daily_bin1618.fits
Spacecraft file(s): /scratch/kocevski/336440/ft2_4FGL_J1254.2-2205_daily_bin1618.fits
Exposure map: /scratch/kocevski/336440/expmap_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.fits
Exposure cube: /scratch/kocevski/336440/ltcube_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/336440/Model_4FGL_J1254.2-2205_daily_bin1618.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) = 6707.73645833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10786E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.356       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5737       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9873       1.0000         .10000E-03   10000.    
    11 'norm      '    .31013       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1819       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7230       1.0000         .10000E-03   10000.    
    17 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .62702       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9393       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.490       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4453       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6707.725     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2752 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1196       -.25474E-06** at limit **
   2  Prefactor     .10000E-03    31.386        .20702E-05** at limit **
   3  Prefactor     29.322        32.404        .25108E-04    .56003E-05
   4  Prefactor     9.5688        16.783       -.17208E-05   -.34655E-04
   5  Prefactor     .10000E-03    28.705       -.56833E-06** at limit **
   6  Prefactor     .10000E-03    15.007       -.36735E-06** at limit **
   7  Prefactor     .10000E-03    1.5793        .50765E-07** at limit **
   8  Prefactor     3.5339        1.8633        .91985E-07   -.16541E-05
   9  Prefactor     12.690        12.684        .48779E-07   -.15306E-04
  10  Prefactor     5.9796        10.919       -.25035E-05   -.11202E-03
  11  norm          .30899        .85636       -.35475E-06   -.14912E-02
  12  Prefactor     .10000E-03    31.596       -.94293E-06** at limit **
  13  norm          .10000E-03    4.4903        .13777E-07** at limit **
  14  norm          .10000E-03    4.8290        .47229E-07** at limit **
  15  Prefactor     7.1862        6.9849        .17480E-06   -.24022E-04
  16  norm          3.7226        4.0878        .21799E-07    .36306E-04
  17  norm          .10000E-03    2.7503        .80196E-07** at limit **
  18  Prefactor     .10000E-03    6.1108       -.22257E-07** at limit **
  19  Prefactor     .10000E-03    12.088        .19234E-06** at limit **
  20  Prefactor     .30722        44.426       -.35209E-05    .11610E-03
  21  Prefactor     8.9619        15.191        .72226E-05    .68188E-04
  22  Prefactor     15.500        22.979       -.42412E-05    .72388E-04
  23  Normalizat    1.4454        .27052       -.85214E-06    .12038E-03
  24  Prefactor     .96154        .12418       -.76327E-06    .27013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.322
  Prefactor  = 9.56884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53388
  Prefactor  = 12.6901
  Prefactor  = 5.97964
  norm       = 0.308989
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.18622
  norm       = 3.7226
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.307223
  Prefactor  = 8.96189
  Prefactor  = 15.5004
  Normalizat = 1.44537
  Prefactor  = 0.961537
 **********
 **   18 **HESSE 
 **********

 FCN=   6707.725     FROM HESSE     STATUS=OK           407 CALLS     3159 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1248        .11649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.322        32.262        .73946E-04   -1.4624    
   4  Prefactor     9.5688        16.782        .12952E-03   -1.5089    
   5  Prefactor     .10000E-03    28.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5837        .10050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5339        1.8628        .78702E-04   -1.5332    
   9  Prefactor     12.690        12.691        .11244E-03   -1.4995    
  10  Prefactor     5.9796        10.971        .16410E-03   -1.5219    
  11  norm          .30899        .91429        .11729E-02   -1.5597    
  12  Prefactor     .10000E-03    31.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.5077        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.8636        .17535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1862        6.9302        .14968E-03   -1.5172    
  16  norm          3.7226        4.0879        .16884E-03   -1.5322    
  17  norm          .10000E-03    2.8323        .26509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .30722        48.480        .14952       -1.5597    
  21  Prefactor     8.9619        15.177        .13406E-03   -1.5109    
  22  Prefactor     15.500        22.992        .10176E-03   -1.4920    
  23  Normalizat    1.4454        .32242        .34902E-03   -.79325    
  24  Prefactor     .96154        .14889        .19423E-03   -.94023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31253e-09
Minuit parameter uncertainties:
  1  3.79167e-05
  2  1.30139e-05
  3  32.2811
  4  16.79
  5  1.65215e-05
  6  0.000145825
  7  3.23583e-06
  8  1.86286
  9  12.694
  10  10.975
  11  0.914329
  12  1.57992e-05
  13  8.5741e-06
  14  1.25054e-05
  15  6.93093
  16  4.08818
  17  9.70605e-06
  18  7.39979e-06
  19  7.50718e-05
  20  7.72373
  21  15.1834
  22  23.0047
  23  0.322877
  24  0.148954
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.580e-05  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.615e-01  1.490e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.445e+00  3.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 8.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336440/likelihoodResults_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.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) = 6707.72537993
delta logL = -0.00015071170219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6707.7252294
delta logL = -1.74733031599e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11257E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1168       1.0000          .0000       10.000    
     3 'Normalizat'    1.4454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96154       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6707.725     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6306.8        .90712E-02** at limit **
   2  Index         2.1111        8.0610        .50000        .14304E-05
   3  Normalizat    1.4454        .72913E-01    .78856E-01    .98605E-05
   4  Prefactor     .96154        .34159E-01    .45785E-01    .48276E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11108
  Normalizat = 1.44537
  Prefactor  = 0.961537
 **********
 **   18 **HESSE 
 **********

 FCN=   6707.725     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7688.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1111        5.2409        .50000       -.61601    
   3  Normalizat    1.4454        .17127        .34902E-03   -.79325    
   4  Prefactor     .96154        .80350E-01    .19423E-03   -.94023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73133e-10
Minuit parameter uncertainties:
  1  0.000280715
  2  59.5397
  3  0.171341
  4  0.0803597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336440': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6707.72522919
delta logL = 2.99451130559e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.807e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.111e+00  5.954e+01  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.615e-01  8.036e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.445e+00  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.552 -22.087

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/336440/cmap_HighResolution_658713601_658972801_4FGL_J1254.2-2205_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.80e-08', time_completed='2021-12-07 23:41:30.460300', job_id='336440', GAL2='0.96', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1638949290.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1618' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:41:30 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 336440: <4FGL_J1254.2-2205_daily_bin1618> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1618> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec  7 23:25:27 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:27:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:27:44 2021
Terminated at Tue Dec  7 23:41:31 2021
Results reported at Tue Dec  7 23:41:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1618 193.552 -22.0872 658713601 658972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.2-2205 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            964 sec.

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

