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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1244
RA = 193.552, Dec = -22.0872
tmin = 561772801, tmax = 562032001
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='982103', job_status='RUN', time_executed='2021-09-06 08:46:43.838288', time_epoch_executed='1630943203.84' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982103/ft1_4FGL_J1254.2-2205_daily_bin1244.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982103/ft2_4FGL_J1254.2-2205_daily_bin1244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982103/ft1_4FGL_J1254.2-2205_daily_bin1244.fits outfile=/scratch/kocevski/982103/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1244.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=561772801.0 tmax=562032001.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 4.68
user 3.76
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/982103/ft1_filtered_4FGL_J1254.2-2205_daily_bin1244.fits" evtable="EVENTS" scfile=/scratch/kocevski/982103/ft2_4FGL_J1254.2-2205_daily_bin1244.fits sctable="SC_DATA" outfile=/scratch/kocevski/982103/ltcube_561772801_562032001_4FGL_J1254.2-2205_daily_bin1244.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/982103/ft2_4FGL_J1254.2-2205_daily_bin1244.fits
.....................!
real 11.89
user 11.29
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982103/ft1_filtered_4FGL_J1254.2-2205_daily_bin1244.fits evtable="EVENTS" scfile=/scratch/kocevski/982103/ft2_4FGL_J1254.2-2205_daily_bin1244.fits sctable="SC_DATA" expcube=/scratch/kocevski/982103/ltcube_561772801_562032001_4FGL_J1254.2-2205_daily_bin1244.fits outfile=/scratch/kocevski/982103/expmap_561772801_562032001_4FGL_J1254.2-2205_daily_bin1244.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/982103/ltcube_561772801_562032001_4FGL_J1254.2-2205_daily_bin1244.fits
.....................!
real 192.78
user 185.75
sys 4.09

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/982103/ft1_filtered_4FGL_J1254.2-2205_daily_bin1244.fits scfile=/scratch/kocevski/982103/ft2_4FGL_J1254.2-2205_daily_bin1244.fits outfile=/scratch/kocevski/982103/cmap_561772801_562032001_4FGL_J1254.2-2205_daily_bin1244.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/982103/ft1_filtered_4FGL_J1254.2-2205_daily_bin1244.fits evtable="EVENTS" scfile=/scratch/kocevski/982103/ft2_4FGL_J1254.2-2205_daily_bin1244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/982103/Model_4FGL_J1254.2-2205_daily_bin1244.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/982103/ft1_filtered_4FGL_J1254.2-2205_daily_bin1244.fits.....................!
real 57.48
user 55.98
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.461       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2537       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0735       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7954       1.0000         .10000E-03   10000.    
    12 'Prefactor '    100.12       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14501E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11091E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17849E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.716       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.179       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.199       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0719       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1834       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=   7099.480     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2688 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9563        .11256E-05** at limit **
   2  Prefactor     .10001E-03    33.948        .42818E-05** at limit **
   3  Prefactor     .10000E-03    9.2026        .10813E-05** at limit **
   4  Prefactor     .10000E-03    11.840       -.12140E-05** at limit **
   5  Prefactor     .10000E-03    87.265       -.14000E-05** at limit **
   6  Prefactor     .10001E-03    29.870       -.36018E-05** at limit **
   7  Prefactor     .10000E-03    11.139       -.69469E-06** at limit **
   8  Prefactor     10.461        4.5398       -.21189E-07    .52479E-05
   9  Prefactor     5.2532        12.399        .33829E-05   -.36037E-03
  10  Prefactor     5.0752        35.119        .55043E-06    .71815E-05
  11  norm          3.7956        1.5291        .13112E-07   -.13827E-03
  12  Prefactor     100.12        98.825        .24925E-06    .45878E-04
  13  norm          .10000E-03    5.0246        .70190E-08** at limit **
  14  norm          .10000E-03    8.1807       -.13077E-05** at limit **
  15  Prefactor     .10000E-03    6.4497        .21948E-06** at limit **
  16  norm          .10002E-03    4.4136        .12617E-05** at limit **
  17  norm          2.7115        3.3976        .14816E-06   -.93795E-04
  18  Prefactor     13.716        22.377        .64959E-07   -.12438E-04
  19  Prefactor     21.179        16.994        .58605E-07   -.36060E-05
  20  Prefactor     .10000E-03    20.057       -.68828E-06** at limit **
  21  Prefactor     41.200        16.938        .65283E-07   -.62001E-06
  22  Prefactor     .10000E-03    5.9294       -.63978E-07** at limit **
  23  Normalizat    1.0717        .31097       -.52966E-06   -.96388E-04
  24  Prefactor     1.1835        .13643       -.13832E-06   -.23439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 10.4609
  Prefactor  = 5.25318
  Prefactor  = 5.0752
  norm       = 3.79558
  Prefactor  = 100.119
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100022
  norm       = 2.71147
  Prefactor  = 13.7156
  Prefactor  = 21.179
  Prefactor  = 0.0001
  Prefactor  = 41.1998
  Prefactor  = 0.0001
  Normalizat = 1.07171
  Prefactor  = 1.18346
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    36.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    88.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    31.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.461        4.5335        .11405E-03   -1.5061    
   9  Prefactor     5.2532        14.104        .87681E-03   -1.5250    
  10  Prefactor     5.0752        35.167        .17851E-03   -1.5257    
  11  norm          3.7956        1.5263        .62045E-04   -1.5318    
  12  Prefactor     100.12        98.866        .40179E-04   -1.3703    
  13  norm          .10000E-03    5.0325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.4942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    15.282        .31833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7115        3.3939        .16719E-03   -1.5379    
  18  Prefactor     13.716        22.377        .10815E-03   -1.4967    
  19  Prefactor     21.179        16.987        .87035E-04   -1.4787    
  20  Prefactor     .10000E-03    20.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.200        16.932        .62452E-04   -1.4423    
  22  Prefactor     .10000E-03    5.9399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0717        .35430        .44079E-03   -.90665    
  24  Prefactor     1.1835        .15642        .18927E-03   -.86842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70018e-09
Minuit parameter uncertainties:
  1  0.000137943
  2  0.00114677
  3  0.000146996
  4  0.000186599
  5  0.0005612
  6  0.000856987
  7  0.000100734
  8  4.53366
  9  14.1126
  10  26.7414
  11  1.52633
  12  99.0291
  13  1.05268e-06
  14  0.000173627
  15  2.33586e-05
  16  0.00116792
  17  3.39413
  18  22.3907
  19  16.9905
  20  0.000134567
  21  16.9336
  22  6.16768e-06
  23  0.355084
  24  0.156476
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.001e+02  9.903e+01  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.183e+00  1.565e-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.072e+00  3.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 193.552 -22.087
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 2.69e-05

TS (Fixed Index): 1.54
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/982103/likelihoodResults_561772801_562032001_4FGL_J1254.2-2205_daily_bin1244.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7098.62120693
delta logL = 0.85922372695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7098.60074861
delta logL = 0.879682047273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.153       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4582       1.0000          .0000       10.000    
     3 'Normalizat'    .91487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2287       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=   7098.601     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      300 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.145        241.72        .10647E-03   -.61955E-03
   2  Index         3.4585        3.1333        .34140E-02   -.33157E-03
   3  Normalizat    .91466        .37328        .47269E-03    .76276E-03
   4  Prefactor     1.2288        .16133        .18612E-03    .15239E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1448
  Index      = 3.45849
  Normalizat = 0.914661
  Prefactor  = 1.22885
 **********
 **   18 **HESSE 
 **********

 FCN=   7098.601     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.145        39.681        .42587E-05   -1.4956    
   2  Index         3.4585        1.1466        .13656E-03   -.31341    
   3  Normalizat    .91466        .36715        .94538E-04   -.95947    
   4  Prefactor     1.2288        .16058        .37224E-04   -.85448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99514e-09
Minuit parameter uncertainties:
  1  39.7549
  2  1.15802
  3  0.368158
  4  0.160644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982103': 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) = 7098.6007483
delta logL = 0.879682353781

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.414e+01  3.975e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.458e+00  1.158e+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.229e+00  1.606e-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.147e-01  3.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 3.46 +/- 1.16
Photon Flux (Free Index): 1.82e-07 +/- 1.26e-07
Energy Flux (Free Index): 3.07e-05 +/- 1.97e-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/982103/cmap_HighResolution_561772801_562032001_4FGL_J1254.2-2205_daily_bin1244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='3.07e-05', photon_flux_error='5.89e-08', dlogl='8.80e-01', energy_flux='2.72e-05', photon_flux2='1.82e-07', job_status='DONE', time_completed='2021-09-06 08:59:53.197330', photon_index_error2='1.16', photon_index2='3.46', ts='1.54', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.97e-05', EG='1.07', time_epoch_completed='1630943993.2', return_code='0', job_id='982103', GAL2='1.23', EG2='0.91', return_code2='0', energy_flux_error='2.69e-05', photon_flux_error2='1.26e-07', ts2='3.53', photon_index='2.19' WHERE bin_id='1244' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:59:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 982103: <4FGL_J1254.2-2205_daily_bin1244> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1244> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 08:45:59 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:46:00 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:46:00 2021
Terminated at Mon Sep  6 08:59:53 2021
Results reported at Mon Sep  6 08:59:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1244 193.552 -22.0872 561772801 562032001 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 :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

