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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1221
RA = 193.552, Dec = -22.0872
tmin = 555811201, tmax = 556070401
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='982080', job_status='RUN', time_executed='2021-09-06 08:50:36.724156', time_epoch_executed='1630943436.72' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982080/ft1_4FGL_J1254.2-2205_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982080/ft2_4FGL_J1254.2-2205_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982080/ft1_4FGL_J1254.2-2205_daily_bin1221.fits outfile=/scratch/kocevski/982080/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1221.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=555811201.0 tmax=556070401.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.56
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/982080/ft2_4FGL_J1254.2-2205_daily_bin1221.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/982080/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/982080/ft1_filtered_4FGL_J1254.2-2205_daily_bin1221.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/982080/ft1_filtered_4FGL_J1254.2-2205_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/982080/ft2_4FGL_J1254.2-2205_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/982080/ltcube_555811201_556070401_4FGL_J1254.2-2205_daily_bin1221.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/982080/ft2_4FGL_J1254.2-2205_daily_bin1221.fits
.....................!
real 12.08
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982080/ft1_filtered_4FGL_J1254.2-2205_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/982080/ft2_4FGL_J1254.2-2205_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/982080/ltcube_555811201_556070401_4FGL_J1254.2-2205_daily_bin1221.fits outfile=/scratch/kocevski/982080/expmap_555811201_556070401_4FGL_J1254.2-2205_daily_bin1221.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/982080/ltcube_555811201_556070401_4FGL_J1254.2-2205_daily_bin1221.fits
.....................!
real 191.71
user 185.85
sys 5.19

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/982080/ft1_filtered_4FGL_J1254.2-2205_daily_bin1221.fits scfile=/scratch/kocevski/982080/ft2_4FGL_J1254.2-2205_daily_bin1221.fits outfile=/scratch/kocevski/982080/cmap_555811201_556070401_4FGL_J1254.2-2205_daily_bin1221.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.54
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/982080/ft1_filtered_4FGL_J1254.2-2205_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/982080/ft2_4FGL_J1254.2-2205_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/982080/Model_4FGL_J1254.2-2205_daily_bin1221.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/982080/ft1_filtered_4FGL_J1254.2-2205_daily_bin1221.fits.....................!
real 32.08
user 30.72
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.520       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.810       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.638       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3553       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.190       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.800       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2368       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84752       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=   2836.032     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2711 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.909        32.420       -.10443E-04    .38511E-04
   2  Prefactor     .10000E-03    130.97        .95363E-06** at limit **
   3  Prefactor     .10001E-03    928.34        .71617E-06** at limit **
   4  Prefactor     .10000E-03    175.91        .87943E-06** at limit **
   5  Prefactor     .10000E-03    76.339       -.12490E-06** at limit **
   6  Prefactor     .10000E-03    29.607       -.13269E-07** at limit **
   7  Prefactor     14.467        12.026       -.53225E-06   -.11768E-03
   8  Prefactor     .49116        4.1408        .14004E-05    .27872E-04
   9  Prefactor     29.520        31.629        .12503E-07   -.46437E-05
  10  Prefactor     13.810        18.143       -.76448E-07   -.28069E-04
  11  norm          .10000E-03    1.0806        .22330E-07** at limit **
  12  Prefactor     .10000E-03    76.487       -.28718E-06** at limit **
  13  norm          .10000E-03    10.256        .18247E-07** at limit **
  14  norm          .10000E-03    8.6700        .44476E-07** at limit **
  15  Prefactor     26.638        16.489       -.55440E-08   -.54355E-05
  16  norm          .10000E-03    6.3905        .41457E-08** at limit **
  17  norm          2.3553        4.7736        .31188E-06   -.64429E-05
  18  Prefactor     .10000E-03    4.6738        .70078E-08** at limit **
  19  Prefactor     14.189        19.768        .24100E-07   -.40798E-05
  20  Prefactor     .10000E-03    39.571        .19427E-06** at limit **
  21  Prefactor     .10000E-03    95.516        .22735E-05** at limit **
  22  Prefactor     29.804        30.494        .42556E-06   -.82414E-05
  23  Normalizat    1.2369        .41682        .98509E-06   -.43818E-04
  24  Prefactor     .84750        .18951       -.93610E-06   -.24041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9086
  Prefactor  = 0.000100002
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4668
  Prefactor  = 0.491161
  Prefactor  = 29.5204
  Prefactor  = 13.8095
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.6383
  norm       = 0.0001
  norm       = 2.35525
  Prefactor  = 0.0001
  Prefactor  = 14.1886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8044
  Normalizat = 1.23689
  Prefactor  = 0.847503
 **********
 **   18 **HESSE 
 **********

 FCN=   2836.032     FROM HESSE     STATUS=OK           395 CALLS     3106 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.909        32.310        .70914E-04   -1.4578    
   2  Prefactor     .10000E-03    131.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    931.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    178.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    76.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.467        11.597        .10530E-03   -1.4947    
   8  Prefactor     .49116        3.8481        .18527E-03   -1.5568    
   9  Prefactor     29.520        31.674        .73741E-04   -1.4621    
  10  Prefactor     13.810        18.195        .10778E-03   -1.4965    
  11  norm          .10000E-03    1.0879        .54040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    76.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.300        .16654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.6878        .15282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.638        16.459        .77619E-04   -1.4675    
  16  norm          .10000E-03    6.3919        .13149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3553        4.7669        .15782E-03   -1.5401    
  18  Prefactor     .10000E-03    4.6781        .11244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.189        19.740        .10633E-03   -1.4954    
  20  Prefactor     .10000E-03    39.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    98.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.804        30.522        .73394E-04   -1.4616    
  23  Normalizat    1.2369        .49055        .36976E-03   -.85470    
  24  Prefactor     .84750        .22322        .20125E-03   -.98000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40993e-11
Minuit parameter uncertainties:
  1  32.3279
  2  0.00102671
  3  0.00577021
  4  0.000984047
  5  0.000104031
  6  2.73856e-05
  7  11.5988
  8  2.74955
  9  31.6917
  10  18.2023
  11  2.4325e-06
  12  0.00025711
  13  3.36164e-06
  14  3.89311e-06
  15  16.4622
  16  9.57654e-07
  17  4.76767
  18  6.89947e-07
  19  19.7495
  20  4.31345e-05
  21  0.000386187
  22  30.5383
  23  0.492402
  24  0.223464
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.571e-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:  8.475e-01  2.235e-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.237e+00  4.924e-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.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/982080/likelihoodResults_555811201_556070401_4FGL_J1254.2-2205_daily_bin1221.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) = 2836.03241042
delta logL = -6.21383173893e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2836.03234853
delta logL = -2.52911377174e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7126       1.0000          .0000       10.000    
     3 'Normalizat'    1.2369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84750       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=   2836.032     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.093        .90712E-02** at limit **
   2  Index         2.6935        6.3142        .50000        .30809E-05
   3  Normalizat    1.2369        .73789E-02    .83515E-01    .59463E-05
   4  Prefactor     .84750        .34113E-02    .44332E-01    .12676E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.69348
  Normalizat = 1.23689
  Prefactor  = 0.847502
 **********
 **   18 **HESSE 
 **********

 FCN=   2836.032     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    340.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6935        5.0192        .50000       -.47946    
   3  Normalizat    1.2369        .25893E-01    .36976E-03   -.85470    
   4  Prefactor     .84750        .11988E-01    .20125E-03   -.98000    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2369e-07
Minuit parameter uncertainties:
  1  0.000363061
  2  501.762
  3  0.0258937
  4  0.0119885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982080': 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) = 2836.03234851
delta logL = -2.37935637415e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  3.631e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.693e+00  5.018e+02  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:  8.475e-01  1.199e-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.237e+00  2.589e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/982080/cmap_HighResolution_555811201_556070401_4FGL_J1254.2-2205_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', job_status='DONE', photon_flux_upper_limit='1.92e-07', time_completed='2021-09-06 09:00:11.612145', job_id='982080', GAL2='0.85', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630944011.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-2.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1221' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:00:11 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1221 193.552 -22.0872 555811201 556070401 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 :                                   479.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

