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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin765
RA = 193.552, Dec = -22.0872
tmin = 437616001, tmax = 437875201
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='980189', job_status='RUN', time_executed='2021-09-06 08:42:48.332761', time_epoch_executed='1630942968.33' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980189/ft1_4FGL_J1254.2-2205_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980189/ft2_4FGL_J1254.2-2205_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980189/ft1_4FGL_J1254.2-2205_daily_bin765.fits outfile=/scratch/kocevski/980189/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin765.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=437616001.0 tmax=437875201.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 5.61
user 5.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980189/ft1_filtered_4FGL_J1254.2-2205_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/980189/ft2_4FGL_J1254.2-2205_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/980189/ltcube_437616001_437875201_4FGL_J1254.2-2205_daily_bin765.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/980189/ft2_4FGL_J1254.2-2205_daily_bin765.fits
.....................!
real 13.00
user 12.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980189/ft1_filtered_4FGL_J1254.2-2205_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/980189/ft2_4FGL_J1254.2-2205_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/980189/ltcube_437616001_437875201_4FGL_J1254.2-2205_daily_bin765.fits outfile=/scratch/kocevski/980189/expmap_437616001_437875201_4FGL_J1254.2-2205_daily_bin765.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/980189/ltcube_437616001_437875201_4FGL_J1254.2-2205_daily_bin765.fits
.....................!
real 190.99
user 185.44
sys 5.10

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/980189/ft1_filtered_4FGL_J1254.2-2205_daily_bin765.fits scfile=/scratch/kocevski/980189/ft2_4FGL_J1254.2-2205_daily_bin765.fits outfile=/scratch/kocevski/980189/cmap_437616001_437875201_4FGL_J1254.2-2205_daily_bin765.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980189/ft1_filtered_4FGL_J1254.2-2205_daily_bin765.fits scfile=/scratch/kocevski/980189/ft2_4FGL_J1254.2-2205_daily_bin765.fits outfile=/scratch/kocevski/980189/cmap_HighResolution_437616001_437875201_4FGL_J1254.2-2205_daily_bin765.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/980189/ft1_filtered_4FGL_J1254.2-2205_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/980189/ft2_4FGL_J1254.2-2205_daily_bin765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/980189/Model_4FGL_J1254.2-2205_daily_bin765.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/980189/ft1_filtered_4FGL_J1254.2-2205_daily_bin765.fits.....................!
real 62.57
user 60.56
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18334E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.913       1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5375       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.289       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.769       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.3304       1.0000         .10000E-03   10000.    
    17 'norm      '    .10664E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21503       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.176       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0623       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0964       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=   7817.237     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2710 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.981        .14462E-04** at limit **
   2  Prefactor     46.898        62.857       -.18103E-04   -.20130E-04
   3  Prefactor     63.520        49.347       -.81710E-05   -.23645E-03
   4  Prefactor     .10000E-03    23.198       -.17576E-05** at limit **
   5  Prefactor     27.160        55.569        .36556E-05   -.19894E-04
   6  Prefactor     .10000E-03    24.703        .14841E-04** at limit **
   7  Prefactor     .10000E-03    1.7498        .37670E-07** at limit **
   8  Prefactor     7.5374        2.9712       -.12380E-07    .35354E-04
   9  Prefactor     .10000E-03    9.1442        .99383E-06** at limit **
  10  Prefactor     13.289        13.916       -.43328E-06   -.30831E-04
  11  norm          1.8234        1.1282       -.55365E-08   -.35547E-03
  12  Prefactor     .10000E-03    100.35       -.13728E-04** at limit **
  13  norm          11.766        11.391       -.19973E-06   -.35592E-04
  14  norm          .10000E-03    4.1145       -.10713E-06** at limit **
  15  Prefactor     .10000E-03    2.7257       -.21269E-07** at limit **
  16  norm          8.3299        6.9890       -.29818E-06   -.16076E-03
  17  norm          .10000E-03    1.2178       -.10794E-06** at limit **
  18  Prefactor     .17778        6.1927        .40951E-06   -.48160E-03
  19  Prefactor     .10000E-03    11.526       -.94536E-05** at limit **
  20  Prefactor     .10000E-03    19.738       -.16308E-04** at limit **
  21  Prefactor     20.177        11.884       -.28972E-06    .12553E-03
  22  Prefactor     .10000E-03    3.3680        .36730E-09** at limit **
  23  Normalizat    1.0623        .26055        .11748E-05    .59932E-05
  24  Prefactor     1.0965        .11909        .46562E-06    .69293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 46.8982
  Prefactor  = 63.5198
  Prefactor  = 0.0001
  Prefactor  = 27.1601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.53742
  Prefactor  = 0.0001
  Prefactor  = 13.2888
  norm       = 1.82337
  Prefactor  = 0.0001
  norm       = 11.7658
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.3299
  norm       = 0.0001
  Prefactor  = 0.177781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1772
  Prefactor  = 0.0001
  Normalizat = 1.06228
  Prefactor  = 1.09648
 **********
 **   18 **HESSE 
 **********

 FCN=   7817.237     FROM HESSE     STATUS=OK           401 CALLS     3111 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.898        62.816        .58541E-04   -1.4337    
   3  Prefactor     63.520        49.823        .50347E-04   -1.4112    
   4  Prefactor     .10000E-03    23.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.160        55.505        .76873E-04   -1.4665    
   6  Prefactor     .10000E-03    24.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7510        .11421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5374        2.9711        .92591E-04   -1.5159    
   9  Prefactor     .10000E-03    9.1759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.289        13.919        .10988E-03   -1.4979    
  11  norm          1.8234        1.1263        .70639E-04   -1.5438    
  12  Prefactor     .10000E-03    100.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.766        11.401        .11677E-03   -1.5022    
  14  norm          .10000E-03    4.2337        .35004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7527        .14250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.3299        6.9896        .13890E-03   -1.5131    
  17  norm          .10000E-03    2.8325        .18952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17778        9.4204        .72590E-01   -1.5624    
  19  Prefactor     .10000E-03    11.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.177        11.884        .89170E-04   -1.4809    
  22  Prefactor     .10000E-03    3.3780        .15845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0623        .29871        .40555E-03   -.90972    
  24  Prefactor     1.0965        .13722        .18535E-03   -.89579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25061e-10
Minuit parameter uncertainties:
  1  0.000163663
  2  62.9044
  3  49.8559
  4  0.000117608
  5  55.6105
  6  2.04363e-05
  7  1.60336e-07
  8  2.97114
  9  7.53911e-06
  10  13.922
  11  1.12628
  12  3.88776e-05
  13  11.4028
  14  6.11497e-06
  15  3.27873e-06
  16  6.99029
  17  4.70476e-06
  18  2.58796
  19  2.93682e-05
  20  7.96525e-05
  21  11.8855
  22  2.71164e-06
  23  0.299186
  24  0.137265
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  3.888e-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:  1.096e+00  1.373e-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.062e+00  2.992e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980189/likelihoodResults_437616001_437875201_4FGL_J1254.2-2205_daily_bin765.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) = 7817.23684919
delta logL = -4.72330166303e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7817.23684919
delta logL = -4.72319161418e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1912       1.0000          .0000       10.000    
     3 'Normalizat'    1.0623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0965       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7817.237     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      241 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9281.1        .18142E-02** at limit **
   2  Index         2.2127        6.6044        .50000       -.17862E-05
   3  Normalizat    1.0623        .95742E-01    .40555E-03   -.12637E-03
   4  Prefactor     1.0965        .44734E-01    .18535E-03   -.43640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21269
  Normalizat = 1.06228
  Prefactor  = 1.09647
 **********
 **   18 **HESSE 
 **********

 FCN=   7817.237     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2127        6.0581        .50000       -.59132    
   3  Normalizat    1.0623        .28920        .16222E-04   -.90972    
   4  Prefactor     1.0965        .13526        .37069E-04   -.89579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11796e-10
Minuit parameter uncertainties:
  1  0.000426612
  2  4.88259
  3  0.289626
  4  0.135307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980189': 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) = 7817.23680194
delta logL = 9.15315467864e-09

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.266e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.213e+00  4.883e+00  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:  1.096e+00  1.353e-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.062e+00  2.896e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/980189/cmap_HighResolution_437616001_437875201_4FGL_J1254.2-2205_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-06 08:56:06.640575', job_id='980189', GAL2='1.10', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630943766.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='9.15e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='765' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 980189: <4FGL_J1254.2-2205_daily_bin765> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin765> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:40:32 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:40: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 08:40:33 2021
Terminated at Mon Sep  6 08:56:07 2021
Results reported at Mon Sep  6 08:56:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin765 193.552 -22.0872 437616001 437875201 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 :                                   792.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

