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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1550
RA = 193.552, Dec = -22.0872
tmin = 641088001, tmax = 641347201
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='984899', job_status='RUN', time_executed='2021-09-06 08:58:52.304854', time_epoch_executed='1630943932.3' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984899/ft1_4FGL_J1254.2-2205_daily_bin1550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984899/ft1_4FGL_J1254.2-2205_daily_bin1550.fits outfile=/scratch/kocevski/984899/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1550.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=641088001.0 tmax=641347201.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.00
user 2.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984899/ft1_filtered_4FGL_J1254.2-2205_daily_bin1550.fits" evtable="EVENTS" scfile=/scratch/kocevski/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits sctable="SC_DATA" outfile=/scratch/kocevski/984899/ltcube_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.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/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits
.....................!
real 13.61
user 13.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984899/ft1_filtered_4FGL_J1254.2-2205_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits sctable="SC_DATA" expcube=/scratch/kocevski/984899/ltcube_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.fits outfile=/scratch/kocevski/984899/expmap_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.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/984899/ltcube_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.fits
.....................!
real 192.74
user 185.66
sys 5.12

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/984899/ft1_filtered_4FGL_J1254.2-2205_daily_bin1550.fits scfile=/scratch/kocevski/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits outfile=/scratch/kocevski/984899/cmap_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984899/ft1_filtered_4FGL_J1254.2-2205_daily_bin1550.fits scfile=/scratch/kocevski/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits outfile=/scratch/kocevski/984899/cmap_HighResolution_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984899/ft1_filtered_4FGL_J1254.2-2205_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984899/Model_4FGL_J1254.2-2205_daily_bin1550.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/984899/ft1_filtered_4FGL_J1254.2-2205_daily_bin1550.fits.......................................!
real 17.12
user 15.79
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984899/ft1_filtered_4FGL_J1254.2-2205_daily_bin1550.fits', '/scratch/kocevski/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits', expMap='/scratch/kocevski/984899/expmap_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.fits', expCube='/scratch/kocevski/984899/ltcube_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984899/Model_4FGL_J1254.2-2205_daily_bin1550.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/984899/ft1_filtered_4FGL_J1254.2-2205_daily_bin1550.fits
Spacecraft file(s): /scratch/kocevski/984899/ft2_4FGL_J1254.2-2205_daily_bin1550.fits
Exposure map: /scratch/kocevski/984899/expmap_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.fits
Exposure cube: /scratch/kocevski/984899/ltcube_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984899/Model_4FGL_J1254.2-2205_daily_bin1550.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 493.806559048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 488.907610773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25219E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    137.95       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20740E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40264E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    202.11       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .52841E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54247E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9840       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7438       1.0000         .10000E-03   10000.    
    13 'norm      '    57.637       1.0000         .10000E-03   10000.    
    14 'norm      '    39.981       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13597E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    41.041       1.0000         .10000E-03   10000.    
    17 'norm      '    .61699E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47824       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1439       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6273       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2961       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2346       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .45495E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84845       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   488.9060     FROM MIGRAD    STATUS=CONVERGED    324 CALLS      881 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5609        .10731E-01** at limit **
   2  Prefactor     136.91        123.88        .85735E-03    .67770E-02
   3  Prefactor     .10000E-03    53.552        .91263E-02** at limit **
   4  Prefactor     .10000E-03    29.387        .90712E-02** at limit **
   5  Prefactor     .10000E-03    63.676        .97431E-02** at limit **
   6  Prefactor     201.14        131.62        .71062E-03   -.27790E-01
   7  Prefactor     23.279        29.226        .20846E-02    .17059E-02
   8  Prefactor     14.596        11.804        .26133E-02    .23182E-02
   9  Prefactor     .10000E-03    54.858        .95626E-02** at limit **
  10  Prefactor     .10000E-03    30.002        .95439E-02** at limit **
  11  norm          5.9806        7.3376        .41036E-02    .29229E-01
  12  Prefactor     .78263E-03    8009.4        .32094E-02** at limit **
  13  norm          59.435        123.41        .13211E-02   -.37040E-03
  14  norm          41.113        61.322        .15848E-02   -.16763E-02
  15  Prefactor     .10000E-03    51.002        .90712E-02** at limit **
  16  norm          41.409        59.978        .15643E-02    .24709E-02
  17  norm          .10000E-03    34.092        .94488E-02** at limit **
  18  Prefactor     .10000E-03    879.12        .11182E-01** at limit **
  19  Prefactor     1.1439        1.1603         .0000         .0000    
  20  Prefactor     8.6273        1.0017         .0000         .0000    
  21  Prefactor     1.2961        1.1056         .0000         .0000    
  22  Prefactor     3.2346        1.0125         .0000         .0000    
  23  Normalizat    .37093E-01    .26295       -.86475E-03    .21379E-05
  24  Prefactor     .85224        1.1980        .69102E-04    .57905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 136.907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 201.139
  Prefactor  = 23.279
  Prefactor  = 14.596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.98056
  Prefactor  = 0.000782626
  norm       = 59.4354
  norm       = 41.1135
  Prefactor  = 0.0001
  norm       = 41.4095
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.14393
  Prefactor  = 8.62728
  Prefactor  = 1.29613
  Prefactor  = 3.23462
  Normalizat = 0.037093
  Prefactor  = 0.852244
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   488.9060     FROM HESSE     STATUS=FAILED        45 CALLS      926 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5609        .10731E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     136.91        123.88        .85735E-03   -1.3362    
   3  Prefactor     .10000E-03    53.552        .91263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    63.676        .97431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     201.14        131.62        .71062E-03   -1.2862    
   7  Prefactor     23.279        29.226        .20846E-02   -1.4743    
   8  Prefactor     14.596        11.804        .26133E-02   -1.4944    
   9  Prefactor     .10000E-03    54.858        .95626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.002        .95439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9806        7.3376        .41036E-02   -1.5219    
  12  Prefactor     .78263E-03    8009.4        .32094E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          59.435        123.41        .13211E-02   -1.4165    
  14  norm          41.113        61.322        .15848E-02   -1.4425    
  15  Prefactor     .10000E-03    51.002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          41.409        59.978        .15643E-02   -1.4420    
  17  norm          .10000E-03    34.092        .94488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    879.12        .11182E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     585.07        583.63         .0000       -1.5494    
  20  Prefactor     8.6273        1.0017         .0000       -1.5120    
  21  Prefactor     1.2961        1.1056         .0000       -1.5480    
  22  Prefactor     3.2346        1.0125         .0000       -1.5348    
  23  Normalizat    .37093E-01    .26295       -.86475E-03   -1.4666    
  24  Prefactor     .85224        1.1980        .69102E-04   -.97830    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.33046e-10
Minuit parameter uncertainties:
  1  6.33603e-06
  2  124.115
  3  6.69334e-05
  4  2.55162e-06
  5  5.65013e-05
  6  131.809
  7  29.2444
  8  11.806
  9  0.000137592
  10  2.5279e-05
  11  7.33871
  12  4.64151
  13  123.948
  14  61.4161
  15  4.75382e-05
  16  60.0658
  17  3.90334e-05
  18  0.00285927
  19  1.16033
  20  1.00169
  21  1.10561
  22  1.01247
  23  0.169794
  24  1.23817
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 488.906014366

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  7.826e-04  4.642e+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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.522e-01  1.238e+00  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:  3.709e-02  1.698e-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.39e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984899/likelihoodResults_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.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) = 488.906014366
delta logL = 1.23918653117e-11

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 488.906014366
delta logL = 2.43858266913e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78231E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1911       1.0000          .0000       10.000    
     3 'Normalizat'    .37094E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85224       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=   488.9060     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      239 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    926.60        .20915E-01** at limit **
   2  Index         2.2514        5.7985        .50000        .78731E-07
   3  Normalizat    .37094E-01    .83900E-02    .12185E-01   -.23251E-05
   4  Prefactor     .85224        .39683E-02    .18519E-03   -.21415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100994
  Index      = 2.25136
  Normalizat = 0.0370939
  Prefactor  = 0.852242
 **********
 **   18 **HESSE 
 **********

 FCN=   488.9060     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10099E-03    7096.7        .41831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2514        5.6840        .50000       -.58204    
   3  Normalizat    .37094E-01    .18952E-01    .48741E-03   -1.4666    
   4  Prefactor     .85224        .89523E-02    .37038E-04   -.97830    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16525e-10
Minuit parameter uncertainties:
  1  0.140472
  2  418.627
  3  0.0189567
  4  0.00895233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984899': 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) = 488.906014323
delta logL = 4.246271601e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.010e-04  1.405e-01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.251e+00  4.186e+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.522e-01  8.952e-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:  3.709e-02  1.896e-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/984899/cmap_HighResolution_641088001_641347201_4FGL_J1254.2-2205_daily_bin1550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-01', job_status='DONE', photon_flux_upper_limit='1.39e-06', time_completed='2021-09-06 09:04:32.300939', job_id='984899', GAL2='0.85', fit_tolerance='1e-08', EG2='0.04', EG='0.04', time_epoch_completed='1630944272.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.85', dlogl='4.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1550' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:04:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 984899: <4FGL_J1254.2-2205_daily_bin1550> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1550> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:21 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:22 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:55:22 2021
Terminated at Mon Sep  6 09:04:33 2021
Results reported at Mon Sep  6 09:04:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1550 193.552 -22.0872 641088001 641347201 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 :                                   332.45 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             222.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            552 sec.

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

