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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1298
RA = 193.552, Dec = -22.0872
tmin = 575769601, tmax = 576028801
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='983555', job_status='RUN', time_executed='2021-09-06 08:51:00.858371', time_epoch_executed='1630943460.86' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983555/ft1_4FGL_J1254.2-2205_daily_bin1298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983555/ft2_4FGL_J1254.2-2205_daily_bin1298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983555/ft1_4FGL_J1254.2-2205_daily_bin1298.fits outfile=/scratch/kocevski/983555/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1298.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=575769601.0 tmax=576028801.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.91
user 3.62
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983555/ft1_filtered_4FGL_J1254.2-2205_daily_bin1298.fits" evtable="EVENTS" scfile=/scratch/kocevski/983555/ft2_4FGL_J1254.2-2205_daily_bin1298.fits sctable="SC_DATA" outfile=/scratch/kocevski/983555/ltcube_575769601_576028801_4FGL_J1254.2-2205_daily_bin1298.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/983555/ft2_4FGL_J1254.2-2205_daily_bin1298.fits
.....................!
real 12.46
user 12.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983555/ft1_filtered_4FGL_J1254.2-2205_daily_bin1298.fits evtable="EVENTS" scfile=/scratch/kocevski/983555/ft2_4FGL_J1254.2-2205_daily_bin1298.fits sctable="SC_DATA" expcube=/scratch/kocevski/983555/ltcube_575769601_576028801_4FGL_J1254.2-2205_daily_bin1298.fits outfile=/scratch/kocevski/983555/expmap_575769601_576028801_4FGL_J1254.2-2205_daily_bin1298.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/983555/ltcube_575769601_576028801_4FGL_J1254.2-2205_daily_bin1298.fits
.....................!
real 194.11
user 187.22
sys 5.67

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/983555/ft1_filtered_4FGL_J1254.2-2205_daily_bin1298.fits scfile=/scratch/kocevski/983555/ft2_4FGL_J1254.2-2205_daily_bin1298.fits outfile=/scratch/kocevski/983555/cmap_575769601_576028801_4FGL_J1254.2-2205_daily_bin1298.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983555/ft1_filtered_4FGL_J1254.2-2205_daily_bin1298.fits scfile=/scratch/kocevski/983555/ft2_4FGL_J1254.2-2205_daily_bin1298.fits outfile=/scratch/kocevski/983555/cmap_HighResolution_575769601_576028801_4FGL_J1254.2-2205_daily_bin1298.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/983555/ft1_filtered_4FGL_J1254.2-2205_daily_bin1298.fits evtable="EVENTS" scfile=/scratch/kocevski/983555/ft2_4FGL_J1254.2-2205_daily_bin1298.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983555/Model_4FGL_J1254.2-2205_daily_bin1298.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/983555/ft1_filtered_4FGL_J1254.2-2205_daily_bin1298.fits.....................!
real 54.11
user 52.66
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10580E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.867       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5935       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.740       1.0000         .10000E-03   10000.    
    11 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6172       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
    16 'norm      '    10.618       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9162       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.215       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0710       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0292       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1325       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=   6774.921     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2771 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8153        .33711E-06** at limit **
   2  Prefactor     .10000E-03    22.643       -.92808E-06** at limit **
   3  Prefactor     .10013E-03    185.40       -.31432E-04** at limit **
   4  Prefactor     .10002E-03    158.94        .10679E-03** at limit **
   5  Prefactor     30.824        63.031       -.55024E-04   -.45277E-04
   6  Prefactor     24.989        32.652        .77035E-06    .29680E-04
   7  Prefactor     1.5930        3.9582       -.68412E-06   -.59191E-03
   8  Prefactor     3.3294        2.0259       -.15106E-07    .60639E-04
   9  Prefactor     .10000E-03    14.908       -.38090E-05** at limit **
  10  Prefactor     22.738        14.556        .51112E-06   -.10711E-03
  11  norm          .10000E-03    .57402       -.28144E-07** at limit **
  12  Prefactor     .10000E-03    21.318       -.24952E-05** at limit **
  13  norm          .10000E-03    9.1704       -.28963E-06** at limit **
  14  norm          2.6171        4.8977       -.29359E-06   -.43224E-03
  15  Prefactor     10.063        6.6164       -.39678E-06   -.84800E-03
  16  norm          10.618        7.0710       -.28096E-06   -.40319E-04
  17  norm          1.9162        1.9913       -.76993E-07    .49179E-04
  18  Prefactor     .10000E-03    10.593        .46455E-06** at limit **
  19  Prefactor     .10000E-03    18.074        .30054E-05** at limit **
  20  Prefactor     50.215        37.632        .29037E-06   -.22145E-03
  21  Prefactor     9.0616        18.597        .69498E-05   -.39521E-03
  22  Prefactor     .10000E-03    16.880        .36014E-05** at limit **
  23  Normalizat    1.0294        .28455        .80262E-07   -.18294E-03
  24  Prefactor     1.1324        .13129        .15969E-05   -.72436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100125
  Prefactor  = 0.000100017
  Prefactor  = 30.8242
  Prefactor  = 24.9888
  Prefactor  = 1.59304
  Prefactor  = 3.32943
  Prefactor  = 0.000100001
  Prefactor  = 22.7382
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.61713
  Prefactor  = 10.0629
  norm       = 10.6183
  norm       = 1.91623
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 50.215
  Prefactor  = 9.06156
  Prefactor  = 0.000100002
  Normalizat = 1.02944
  Prefactor  = 1.1324
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.921     FROM HESSE     STATUS=OK           395 CALLS     3166 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10013E-03    187.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    175.24        .41450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.824        65.196        .72117E-04   -1.4597    
   6  Prefactor     24.989        32.649        .80132E-04   -1.4708    
   7  Prefactor     1.5930        3.9125        .24847E-03   -1.5456    
   8  Prefactor     3.3294        2.0245        .87929E-04   -1.5343    
   9  Prefactor     .10000E-03    15.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.738        14.573        .83998E-04   -1.4754    
  11  norm          .10000E-03    1.0537        .12042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.2763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6171        4.8668        .22501E-03   -1.5384    
  15  Prefactor     10.063        6.6025        .63158E-03   -1.5073    
  16  norm          10.618        7.0715        .12296E-03   -1.5056    
  17  norm          1.9162        1.9947        .11512E-03   -1.5431    
  18  Prefactor     .10000E-03    10.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     50.215        37.549        .56592E-04   -1.4290    
  21  Prefactor     9.0616        18.499        .13307E-03   -1.5106    
  22  Prefactor     .10000E-03    17.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0294        .32544        .41303E-03   -.92051    
  24  Prefactor     1.1324        .15127        .18455E-03   -.88438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60346e-09
Minuit parameter uncertainties:
  1  8.52881e-05
  2  0.000295172
  3  0.00972077
  4  0.00350003
  5  65.3477
  6  32.6724
  7  3.91313
  8  2.02453
  9  0.000255068
  10  14.5758
  11  4.43162e-06
  12  0.000173615
  13  1.37663e-05
  14  4.86756
  15  6.60296
  16  7.07202
  17  1.99473
  18  4.95999e-05
  19  0.000318224
  20  37.5669
  21  18.5109
  22  0.000370397
  23  0.326074
  24  0.151326
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.736e-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:  1.132e+00  1.513e-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.029e+00  3.261e-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: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983555/likelihoodResults_575769601_576028801_4FGL_J1254.2-2205_daily_bin1298.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) = 6774.92096306
delta logL = -0.000134191871439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6774.92083007
delta logL = -1.20722233987e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4993       1.0000          .0000       10.000    
     3 'Normalizat'    1.0294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1324       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=   6774.921     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      282 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10406E-03    5.0890        .18142E-01** at limit **
   2  Index         2.4068        5.2388        .50000        .19448E-04
   3  Normalizat    1.0294        .38873E-02    .41303E-03   -.67299E-04
   4  Prefactor     1.1324        .18248E-02    .18455E-03   -.21083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104056
  Index      = 2.40676
  Normalizat = 1.02944
  Prefactor  = 1.13241
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.921     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10406E-03    61.303        .32311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4068        6.1731        .50000       -.54527    
   3  Normalizat    1.0294        .13546E-01    .16521E-04   -.92051    
   4  Prefactor     1.1324        .63590E-02    .36910E-04   -.88437    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29625e-09
Minuit parameter uncertainties:
  1  0.0315683
  2  218.6
  3  0.0135461
  4  0.00635902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983555': 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) = 6774.92082974
delta logL = -8.7281659944e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.041e-04  3.157e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.407e+00  2.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:  1.132e+00  6.359e-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.029e+00  1.355e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/983555/cmap_HighResolution_575769601_576028801_4FGL_J1254.2-2205_daily_bin1298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-06 09:03:18.708273', job_id='983555', GAL2='1.13', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630944198.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-8.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1298' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:03:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 983555: <4FGL_J1254.2-2205_daily_bin1298> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1298> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:50:37 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:50:38 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:38 2021
Terminated at Mon Sep  6 09:03:19 2021
Results reported at Mon Sep  6 09:03:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1298 193.552 -22.0872 575769601 576028801 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 :                                   733.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

