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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin430
RA = 193.552, Dec = -22.0872
tmin = 350784001, tmax = 351043201
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='978586', job_status='RUN', time_executed='2021-09-06 08:38:41.845151', time_epoch_executed='1630942721.85' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978586/ft1_4FGL_J1254.2-2205_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978586/ft1_4FGL_J1254.2-2205_daily_bin430.fits outfile=/scratch/kocevski/978586/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin430.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=350784001.0 tmax=351043201.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.43
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.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/978586/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin430.fits evtable="EVENTS" outfile="/scratch/kocevski/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/978586/ltcube_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.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/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits
.....................!
real 11.97
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/978586/ltcube_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.fits outfile=/scratch/kocevski/978586/expmap_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.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/978586/ltcube_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.fits
.....................!
real 190.02
user 185.19
sys 4.26

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/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.fits scfile=/scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits outfile=/scratch/kocevski/978586/cmap_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.fits scfile=/scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits outfile=/scratch/kocevski/978586/cmap_HighResolution_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/978586/Model_4FGL_J1254.2-2205_daily_bin430.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/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.fits.....................!
real 55.88
user 54.07
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.fits', '/scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits', expMap='/scratch/kocevski/978586/expmap_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.fits', expCube='/scratch/kocevski/978586/ltcube_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/978586/Model_4FGL_J1254.2-2205_daily_bin430.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/978586/ft1_filtered_4FGL_J1254.2-2205_daily_bin430.fits
Spacecraft file(s): /scratch/kocevski/978586/ft2_4FGL_J1254.2-2205_daily_bin430.fits
Exposure map: /scratch/kocevski/978586/expmap_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.fits
Exposure cube: /scratch/kocevski/978586/ltcube_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/978586/Model_4FGL_J1254.2-2205_daily_bin430.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) = 6852.28378539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.382       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    41.198       1.0000         .10000E-03   10000.    
    14 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0111       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5084       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3269       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.998       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.868       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92571       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95280       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=   6852.254     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2686 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2092       -.15502E-07** at limit **
   2  Prefactor     .10000E-03    18.495        .53172E-05** at limit **
   3  Prefactor     .10000E-03    18.500        .53486E-05** at limit **
   4  Prefactor     .10000E-03    6.9906        .87936E-09** at limit **
   5  Prefactor     .10000E-03    17.529       -.72566E-05** at limit **
   6  Prefactor     .10000E-03    29.589        .56567E-05** at limit **
   7  Prefactor     .10000E-03    2.7506        .34224E-08** at limit **
   8  Prefactor     7.7275        2.7835        .23744E-07    .26998E-04
   9  Prefactor     .10000E-03    9.4643        .10722E-06** at limit **
  10  Prefactor     10.382        10.065       -.15020E-05   -.13133E-02
  11  norm          3.2825        1.2616       -.22353E-07   -.47622E-04
  12  Prefactor     .10000E-03    210.84       -.27120E-05** at limit **
  13  norm          41.198        13.246       -.17704E-07    .19858E-05
  14  norm          .10000E-03    7.5227       -.17077E-07** at limit **
  15  Prefactor     8.0125        6.4431       -.24849E-06   -.64790E-04
  16  norm          2.5080        5.0688       -.27988E-05   -.42591E-03
  17  norm          2.3268        2.1701       -.34379E-07   -.40200E-04
  18  Prefactor     .10000E-03    2.6940       -.11224E-07** at limit **
  19  Prefactor     .10000E-03    25.063       -.85826E-05** at limit **
  20  Prefactor     32.000        30.253       -.43104E-06    .30824E-04
  21  Prefactor     .10000E-03    3.4035        .63715E-11** at limit **
  22  Prefactor     24.864        15.158        .23489E-06    .24801E-03
  23  Normalizat    .92574        .24539        .60100E-06    .26549E-04
  24  Prefactor     .95280        .11449        .29236E-06    .72897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.72753
  Prefactor  = 0.0001
  Prefactor  = 10.382
  norm       = 3.28251
  Prefactor  = 0.0001
  norm       = 41.1985
  norm       = 0.0001
  Prefactor  = 8.01248
  norm       = 2.50796
  norm       = 2.32676
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 32.0004
  Prefactor  = 0.0001
  Prefactor  = 24.8645
  Normalizat = 0.925735
  Prefactor  = 0.952802
 **********
 **   18 **HESSE 
 **********

 FCN=   6852.254     FROM HESSE     STATUS=OK           393 CALLS     3079 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2220        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7650        .13402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7275        2.7841        .80170E-04   -1.5152    
   9  Prefactor     .10000E-03    9.5016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.382        10.879        .62176E-03   -1.5063    
  11  norm          3.2825        1.2606        .55024E-04   -1.5346    
  12  Prefactor     .10000E-03    211.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          41.198        13.248        .62453E-04   -1.4423    
  14  norm          .10000E-03    7.6492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.0125        6.4186        .14166E-03   -1.5142    
  16  norm          2.5080        5.2705        .25800E-03   -1.5391    
  17  norm          2.3268        2.1705        .11432E-03   -1.5403    
  18  Prefactor     .10000E-03    2.6977        .13269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.000        30.270        .70835E-04   -1.4576    
  21  Prefactor     .10000E-03    3.4055        .14914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.864        15.118        .80329E-04   -1.4710    
  23  Normalizat    .92574        .28493        .38852E-03   -.95562    
  24  Prefactor     .95280        .13401        .18045E-03   -.94320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67899e-09
Minuit parameter uncertainties:
  1  2.57223e-06
  2  0.000277983
  3  0.00028879
  4  1.80968e-06
  5  0.000357117
  6  0.000411851
  7  1.63629e-06
  8  2.78412
  9  1.04518e-05
  10  10.8812
  11  1.26064
  12  0.000502071
  13  13.2494
  14  7.39357e-06
  15  6.41919
  16  5.27145
  17  2.17053
  18  4.58793e-07
  19  0.000596295
  20  30.2846
  21  3.29192e-07
  22  15.1207
  23  0.285398
  24  0.134059
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  5.021e-04  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.528e-01  1.341e-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:  9.257e-01  2.854e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978586/likelihoodResults_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.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) = 6852.25386432
delta logL = -2.23431461563e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6852.25384213
delta logL = -1.54499502969e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18145E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2228       1.0000          .0000       10.000    
     3 'Normalizat'    .92574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95280       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=   6852.254     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      250 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    9475.4        .90712E-02** at limit **
   2  Index         2.2974        6.0525        .50000       -.30494E-05
   3  Normalizat    .92574        .50039E-01    .87734E-01    .22246E-04
   4  Prefactor     .95280        .23689E-01    .45674E-01   -.12631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 2.29742
  Normalizat = 0.925736
  Prefactor  = 0.952802
 **********
 **   18 **HESSE 
 **********

 FCN=   6852.254     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    9940.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2974        8.7782        .50000       -.57105    
   3  Normalizat    .92574        .72400E-01    .38852E-03   -.95562    
   4  Prefactor     .95280        .34358E-01    .18045E-03   -.94320    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42661e-08
Minuit parameter uncertainties:
  1  0.0540955
  2  42.8331
  3  0.0724077
  4  0.0343584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978586': 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) = 6852.25384191
delta logL = 7.07204890205e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  5.410e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.297e+00  4.283e+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.528e-01  3.436e-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:  9.257e-01  7.241e-02  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/978586/cmap_HighResolution_350784001_351043201_4FGL_J1254.2-2205_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-06 08:50:36.253255', job_id='978586', GAL2='0.95', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630943436.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='430' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 978586: <4FGL_J1254.2-2205_daily_bin430> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin430> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:35:21 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:35:23 2021
Terminated at Mon Sep  6 08:50:36 2021
Results reported at Mon Sep  6 08:50:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin430 193.552 -22.0872 350784001 351043201 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 :                                   712.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

