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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1049
RA = 193.552, Dec = -22.0872
tmin = 511228801, tmax = 511488001
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='981839', job_status='RUN', time_executed='2021-09-06 08:47:01.749967', time_epoch_executed='1630943221.75' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981839/ft1_4FGL_J1254.2-2205_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981839/ft2_4FGL_J1254.2-2205_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981839/ft1_4FGL_J1254.2-2205_daily_bin1049.fits outfile=/scratch/kocevski/981839/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1049.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=511228801.0 tmax=511488001.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.48
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981839/ft1_filtered_4FGL_J1254.2-2205_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/981839/ft2_4FGL_J1254.2-2205_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/981839/ltcube_511228801_511488001_4FGL_J1254.2-2205_daily_bin1049.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/981839/ft2_4FGL_J1254.2-2205_daily_bin1049.fits
.....................!
real 12.55
user 11.60
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981839/ft1_filtered_4FGL_J1254.2-2205_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/981839/ft2_4FGL_J1254.2-2205_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/981839/ltcube_511228801_511488001_4FGL_J1254.2-2205_daily_bin1049.fits outfile=/scratch/kocevski/981839/expmap_511228801_511488001_4FGL_J1254.2-2205_daily_bin1049.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/981839/ltcube_511228801_511488001_4FGL_J1254.2-2205_daily_bin1049.fits
.....................!
real 192.36
user 184.92
sys 5.02

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/981839/ft1_filtered_4FGL_J1254.2-2205_daily_bin1049.fits scfile=/scratch/kocevski/981839/ft2_4FGL_J1254.2-2205_daily_bin1049.fits outfile=/scratch/kocevski/981839/cmap_511228801_511488001_4FGL_J1254.2-2205_daily_bin1049.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.57
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/981839/ft1_filtered_4FGL_J1254.2-2205_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/981839/ft2_4FGL_J1254.2-2205_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/981839/Model_4FGL_J1254.2-2205_daily_bin1049.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/981839/ft1_filtered_4FGL_J1254.2-2205_daily_bin1049.fits.....................!
real 54.24
user 52.62
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30647E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.834       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.527       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3046       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8388       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12442E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2019       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3504       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0201       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=   6414.848     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2739 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.962        .84651E-05** at limit **
   2  Prefactor     .10000E-03    37.423        .33240E-05** at limit **
   3  Prefactor     41.941        57.681        .12702E-05    .79792E-05
   4  Prefactor     .10000E-03    30.932        .10801E-04** at limit **
   5  Prefactor     15.935        109.62       -.68239E-06    .25382E-05
   6  Prefactor     .10000E-03    26.684       -.12881E-05** at limit **
   7  Prefactor     .10000E-03    6.8352        .17412E-06** at limit **
   8  Prefactor     6.5988        3.0125        .12557E-07   -.33175E-04
   9  Prefactor     .10000E-03    9.3524        .62403E-06** at limit **
  10  Prefactor     19.529        16.948       -.77873E-07   -.14270E-05
  11  norm          1.3042        1.3610       -.28557E-07   -.12741E-04
  12  Prefactor     .10000E-03    41.801        .28184E-06** at limit **
  13  norm          .10000E-03    11.277        .35549E-06** at limit **
  14  norm          10.194        5.9979       -.66943E-08   -.15782E-04
  15  Prefactor     .10000E-03    1.9344        .69560E-07** at limit **
  16  norm          .10000E-03    2.7572        .63550E-07** at limit **
  17  norm          2.8381        2.6433       -.20405E-07   -.18913E-04
  18  Prefactor     .10000E-03    3.7227        .47504E-07** at limit **
  19  Prefactor     .10000E-03    7.2594        .61876E-07** at limit **
  20  Prefactor     .10000E-03    102.91        .76484E-06** at limit **
  21  Prefactor     .10000E-03    11.206        .14602E-06** at limit **
  22  Prefactor     6.2009        11.790       -.10308E-06   -.59451E-05
  23  Normalizat    1.3503        .29650        .99851E-06   -.62950E-04
  24  Prefactor     1.0203        .13307       -.11057E-05    .64385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.941
  Prefactor  = 0.0001
  Prefactor  = 15.9353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.59879
  Prefactor  = 0.0001
  Prefactor  = 19.5287
  norm       = 1.30419
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.1944
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.83809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20091
  Normalizat = 1.35034
  Prefactor  = 1.02028
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.848     FROM HESSE     STATUS=OK           393 CALLS     3132 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.421        .44566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.941        57.901        .61978E-04   -1.4412    
   4  Prefactor     .10000E-03    31.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.935        109.71        .10001E-03   -1.4909    
   6  Prefactor     .10000E-03    26.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5988        3.0090        .90322E-04   -1.5194    
   9  Prefactor     .10000E-03    9.3910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.529        17.097        .90639E-04   -1.4824    
  11  norm          1.3042        1.3415        .90212E-04   -1.5480    
  12  Prefactor     .10000E-03    41.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.194        5.9955        .12549E-03   -1.5069    
  15  Prefactor     .10000E-03    1.9386        .10876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7733        .12988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8381        2.6384        .12182E-03   -1.5371    
  18  Prefactor     .10000E-03    3.7338        .15092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.2709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    104.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.2009        11.781        .16120E-03   -1.5210    
  23  Normalizat    1.3503        .35083        .37367E-03   -.82076    
  24  Prefactor     1.0203        .15675        .19340E-03   -.92057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65949e-11
Minuit parameter uncertainties:
  1  2.33481e-05
  2  4.86904e-05
  3  57.9783
  4  6.26206e-05
  5  83.8472
  6  3.23385e-05
  7  6.04463e-06
  8  3.00907
  9  3.27268e-06
  10  17.1015
  11  1.3415
  12  1.22352e-05
  13  1.23038e-05
  14  5.99582
  15  1.5529e-06
  16  2.66709e-06
  17  2.6385
  18  8.21424e-07
  19  5.94388e-06
  20  0.000119235
  21  1.19509e-05
  22  11.7855
  23  0.351457
  24  0.15682
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.224e-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.020e+00  1.568e-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.350e+00  3.515e-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: 9.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981839/likelihoodResults_511228801_511488001_4FGL_J1254.2-2205_daily_bin1049.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) = 6414.84814003
delta logL = -0.000113823968604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6414.84802645
delta logL = -2.4405107979e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4342       1.0000          .0000       10.000    
     3 'Normalizat'    1.3503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0203       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=   6414.848     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      243 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.964        .90712E-02** at limit **
   2  Index         2.4148        6.0005        .50000        .44976E-05
   3  Normalizat    1.3503        .58792E-02    .84398E-01    .12720E-04
   4  Prefactor     1.0203        .27050E-02    .42113E-01    .20339E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41477
  Normalizat = 1.35034
  Prefactor  = 1.02028
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.848     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    163.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4148        6.7196        .50000       -.54340    
   3  Normalizat    1.3503        .15397E-01    .37367E-03   -.82076    
   4  Prefactor     1.0203        .70956E-02    .19340E-03   -.92057    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.81467e-08
Minuit parameter uncertainties:
  1  0.000191613
  2  226.98
  3  0.0153968
  4  0.00709563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981839': 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) = 6414.84802637
delta logL = -1.65959136211e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.916e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.415e+00  2.270e+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:  1.020e+00  7.096e-03  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.350e+00  1.540e-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/981839/cmap_HighResolution_511228801_511488001_4FGL_J1254.2-2205_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.18e-08', time_completed='2021-09-06 08:59:50.142622', job_id='981839', GAL2='1.02', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630943990.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1049' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:59:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 981839: <4FGL_J1254.2-2205_daily_bin1049> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1049 193.552 -22.0872 511228801 511488001 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 :                                   700.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            852 sec.

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

