/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 68 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_bin1357
RA = 193.552, Dec = -22.0872
tmin = 591062401, tmax = 591321601
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='983641', job_status='RUN', time_executed='2021-09-06 08:52:02.836706', time_epoch_executed='1630943522.84' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983641/ft1_4FGL_J1254.2-2205_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983641/ft2_4FGL_J1254.2-2205_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983641/ft1_4FGL_J1254.2-2205_daily_bin1357.fits outfile=/scratch/kocevski/983641/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1357.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=591062401.0 tmax=591321601.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.02
user 2.82
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983641/ft2_4FGL_J1254.2-2205_daily_bin1357.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/983641/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1357.fits evtable="EVENTS" outfile="/scratch/kocevski/983641/ft1_filtered_4FGL_J1254.2-2205_daily_bin1357.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983641/ft1_filtered_4FGL_J1254.2-2205_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/983641/ft2_4FGL_J1254.2-2205_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/983641/ltcube_591062401_591321601_4FGL_J1254.2-2205_daily_bin1357.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/983641/ft2_4FGL_J1254.2-2205_daily_bin1357.fits
.....................!
real 12.22
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983641/ft1_filtered_4FGL_J1254.2-2205_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/983641/ft2_4FGL_J1254.2-2205_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/983641/ltcube_591062401_591321601_4FGL_J1254.2-2205_daily_bin1357.fits outfile=/scratch/kocevski/983641/expmap_591062401_591321601_4FGL_J1254.2-2205_daily_bin1357.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/983641/ltcube_591062401_591321601_4FGL_J1254.2-2205_daily_bin1357.fits
.....................!
real 190.27
user 185.91
sys 3.99

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/983641/ft1_filtered_4FGL_J1254.2-2205_daily_bin1357.fits scfile=/scratch/kocevski/983641/ft2_4FGL_J1254.2-2205_daily_bin1357.fits outfile=/scratch/kocevski/983641/cmap_591062401_591321601_4FGL_J1254.2-2205_daily_bin1357.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983641/ft1_filtered_4FGL_J1254.2-2205_daily_bin1357.fits scfile=/scratch/kocevski/983641/ft2_4FGL_J1254.2-2205_daily_bin1357.fits outfile=/scratch/kocevski/983641/cmap_HighResolution_591062401_591321601_4FGL_J1254.2-2205_daily_bin1357.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3751       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.230       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.549       1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.342       1.0000         .10000E-03   10000.    
    10 'Prefactor '    880.35       1.0000         .10000E-03   10000.    
    11 'norm      '    12.850       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.300       1.0000         .10000E-03   10000.    
    13 'norm      '    26.943       1.0000         .10000E-03   10000.    
    14 'norm      '    .94514E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20947E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.419       1.0000         .10000E-03   10000.    
    17 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32462E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17738E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21511E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.776       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .23794       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   867.2252     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     2464 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9994.9        1049.8        .30472E-04   -.47814E-02
   2  Prefactor     9999.9        9998.7       -.59759E-03    .44906E-03
   3  Prefactor    10000.0        7573.0       -.58733E-04    .15774E-02
   4  Prefactor    10000.0        8432.0       -.26903E-04    .40648E-03
   5  Prefactor    10000.0        8669.0        .23210E-03    .50021E-03
   6  Prefactor    10000.0        1589.7       -.10878E-04    .20368E-02
   7  Prefactor    10000.0        1122.4       -.11658E-04** at limit **
   8  Prefactor     .10593E-03    366.41       -.25912E-05** at limit **
   9  Prefactor     .35069E-03    690.51       -.28524E-04** at limit **
  10  Prefactor     4.3748        479.22        .85313E-04    .54313E-02
  11  norm          .10000E-03    6.0601       -.12497E-05** at limit **
  12  Prefactor     .10061E-03    376.05       -.20843E-05** at limit **
  13  norm          .10033E-03    96.296       -.11148E-04** at limit **
  14  norm          .10000E-03    13.260        .93569E-06** at limit **
  15  Prefactor     .10000E-03    12.567        .17118E-05** at limit **
  16  norm          .10000E-03    67.350        .35997E-06** at limit **
  17  norm          .10000E-03    3.6718       -.74787E-07** at limit **
  18  Prefactor     .10000E-03    22.497       -.45662E-06** at limit **
  19  Prefactor     .10000E-03    183.84        .75364E-06** at limit **
  20  Prefactor     .10000E-03    19.827       -.30124E-05** at limit **
  21  Prefactor     .10000E-03    7.1918       -.45164E-07** at limit **
  22  Prefactor     49.789        33.357        .71586E-06    .20628E-03
  23  Normalizat    .10000E-01    .58661       -.19800E-04** at limit **
  24  Prefactor     1.2443        .21122       -.28694E-05    .31957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9994.93
  Prefactor  = 9999.94
  Prefactor  = 9999.95
  Prefactor  = 9999.99
  Prefactor  = 9999.99
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000105929
  Prefactor  = 0.000350689
  Prefactor  = 4.37483
  norm       = 0.0001
  Prefactor  = 0.000100614
  norm       = 0.000100325
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7888
  Normalizat = 0.01
  Prefactor  = 1.24428
 **********
 **   18 **HESSE 
 **********

 FCN=   867.2252     FROM HESSE     STATUS=OK           427 CALLS     2891 TOTAL
                     EDM=   .37E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9994.9        9996.4        .32722E-02    1.5258    
   2  Prefactor     9999.9        9986.0        .40740E-02    1.5755    
   3  Prefactor    10000.0        7763.0        .30811E-02    1.5753    
   4  Prefactor    10000.0        8364.5        .60378E-02    1.5723    
   5  Prefactor    10000.0        8636.6        .47039E-02    1.5729    
   6  Prefactor    10000.0        1612.2        .22834E-02    1.5722    
   7  Prefactor    10000.0        1044.0        .29699E-02    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10593E-03    386.59        .26251E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .35069E-03    671.07        .11882E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3748        8813.0        .35293E-03   -1.5290    
  11  norm          .10000E-03    5.9842        .27935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10061E-03    368.39        .20315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10033E-03    99.042        .19295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.193        .10400E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    63.122        .23991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.507        .98706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    178.41        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1090        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     49.789        33.610        .14354E-02   -1.4296    
  23  Normalizat    .10000E-01    .58419        .24884       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2443        .23268        .32741E-01   -.84979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000368284
Minuit parameter uncertainties:
  1  690.377
  2  77.2261
  3  37.4396
  4  14.5064
  5  21.3849
  6  5.74698
  7  1.14849
  8  0.0963778
  9  0.829777
  10  453.069
  11  5.73481e-06
  12  0.0302687
  13  0.0113726
  14  1.59759e-05
  15  5.70423e-07
  16  0.000501447
  17  1.42066e-05
  18  2.68972e-05
  19  0.000902122
  20  0.00010138
  21  1.1163e-05
  22  33.6232
  23  2.87777e-06
  24  0.23287
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.006e-04  3.027e-02  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.244e+00  2.329e-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.000e-02  2.878e-06  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.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983641/likelihoodResults_591062401_591321601_4FGL_J1254.2-2205_daily_bin1357.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) = 867.225224027
delta logL = -1.40455541668e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 867.225210143
delta logL = -1.61248067343e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8040       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2443       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=   867.2252     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    207.35        .90712E-02** at limit **
   2  Index         2.7861        6.2303        .50000        .68479E-06
   3  Normalizat    .10000E-01    .65037E-03    .32094    ** at limit **
   4  Prefactor     1.2443        .81967E-02    .33660E-01    .21660E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.78607
  Normalizat = 0.01
  Prefactor  = 1.24428
 **********
 **   18 **HESSE 
 **********

 FCN=   867.2252     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1328.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7861        8.2028        .50000       -.45870    
   3  Normalizat    .10000E-01    .77787E-02    .11225E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2443        .21264E-01    .17274E-03   -.84979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79044e-08
Minuit parameter uncertainties:
  1  0.00102419
  2  889.705
  3  3.6791e-08
  4  0.0212638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983641': 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) = 867.225210051
delta logL = -6.97602899891e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.024e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.786e+00  8.897e+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.244e+00  2.126e-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.000e-02  3.679e-08  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/983641/cmap_HighResolution_591062401_591321601_4FGL_J1254.2-2205_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-02', job_status='DONE', photon_flux_upper_limit='9.96e-07', time_completed='2021-09-06 08:59:30.569086', job_id='983641', GAL2='1.24', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630943970.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-6.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1357' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:59:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 983641: <4FGL_J1254.2-2205_daily_bin1357> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1357> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:50:42 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:50:44 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:50:44 2021
Terminated at Mon Sep  6 08:59:31 2021
Results reported at Mon Sep  6 08:59:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1357 193.552 -22.0872 591062401 591321601 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 :                                   369.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   526 sec.
    Turnaround time :                            529 sec.

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

