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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1486
RA = 193.552, Dec = -22.0872
tmin = 624499201, tmax = 624758401
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='983820', job_status='RUN', time_executed='2021-09-06 08:51:19.116378', time_epoch_executed='1630943479.12' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983820/ft1_4FGL_J1254.2-2205_daily_bin1486.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983820/ft2_4FGL_J1254.2-2205_daily_bin1486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983820/ft1_4FGL_J1254.2-2205_daily_bin1486.fits outfile=/scratch/kocevski/983820/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1486.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=624499201.0 tmax=624758401.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.50
user 3.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983820/ft1_filtered_4FGL_J1254.2-2205_daily_bin1486.fits" evtable="EVENTS" scfile=/scratch/kocevski/983820/ft2_4FGL_J1254.2-2205_daily_bin1486.fits sctable="SC_DATA" outfile=/scratch/kocevski/983820/ltcube_624499201_624758401_4FGL_J1254.2-2205_daily_bin1486.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/983820/ft2_4FGL_J1254.2-2205_daily_bin1486.fits
.....................!
real 11.70
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983820/ft1_filtered_4FGL_J1254.2-2205_daily_bin1486.fits evtable="EVENTS" scfile=/scratch/kocevski/983820/ft2_4FGL_J1254.2-2205_daily_bin1486.fits sctable="SC_DATA" expcube=/scratch/kocevski/983820/ltcube_624499201_624758401_4FGL_J1254.2-2205_daily_bin1486.fits outfile=/scratch/kocevski/983820/expmap_624499201_624758401_4FGL_J1254.2-2205_daily_bin1486.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/983820/ltcube_624499201_624758401_4FGL_J1254.2-2205_daily_bin1486.fits
.....................!
real 190.44
user 185.67
sys 4.14

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/983820/ft1_filtered_4FGL_J1254.2-2205_daily_bin1486.fits scfile=/scratch/kocevski/983820/ft2_4FGL_J1254.2-2205_daily_bin1486.fits outfile=/scratch/kocevski/983820/cmap_624499201_624758401_4FGL_J1254.2-2205_daily_bin1486.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.552 yref=-22.0872 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40213E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.797       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14669E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9770       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91236E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4407       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3704       1.0000         .10000E-03   10000.    
    17 'norm      '    .94711       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0081       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.342       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0572       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4734       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99930       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=   7876.742     FROM MIGRAD    STATUS=CONVERGED   1035 CALLS     3249 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    8.7776        .67047E-01** at limit **
   2  Prefactor     56.795        49.435        .53230E-04    .37141E-03
   3  Prefactor     39.737        44.229        .63658E-04    .18752E-04
   4  Prefactor     .10000E-03    11.347        .18142E-02** at limit **
   5  Prefactor     .10001E-03    313.74        .36285E-03** at limit **
   6  Prefactor     14.521        24.933        .10507E-03   -.25860E-04
   7  Prefactor     .10000E-03    3.7785        .16720E-02** at limit **
   8  Prefactor     8.4276        2.6943        .80127E-04   -.82718E-04
   9  Prefactor     20.398        16.322        .88679E-04   -.15461E-03
  10  Prefactor     .10000E-03    2.9592        .14903E-02** at limit **
  11  norm          5.9763        1.6621        .57270E-04   -.49627E-05
  12  Prefactor     .10000E-03    33.039        .18142E-02** at limit **
  13  norm          .38535E-02    9.5821        .67370E-01    .89578E-04
  14  norm          .10000E-03    7.5165        .36285E-03** at limit **
  15  Prefactor     8.4415        6.0840        .13798E-03   -.24017E-03
  16  norm          4.3673        5.1367        .96331E-03   -.38305E-03
  17  norm          .94751        1.3473        .15822E-02   -.41330E-03
  18  Prefactor     .10000E-03    5.7909        .18142E-02** at limit **
  19  Prefactor     6.9740        20.155        .15154E-03   -.27998E-03
  20  Prefactor     .10000E-03    13.842        .18142E-02** at limit **
  21  Prefactor     10.339        9.2788        .12459E-03   -.10858E-04
  22  Prefactor     1.0725        48.064        .47816E-02    .12405E-03
  23  Normalizat    1.4737        .31207        .37647E-03   -.19629E-05
  24  Prefactor     .99942        .14144        .20471E-03   -.13384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Prefactor  = 56.7948
  Prefactor  = 39.7372
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 14.5211
  Prefactor  = 0.0001
  Prefactor  = 8.42756
  Prefactor  = 20.3984
  Prefactor  = 0.0001
  norm       = 5.9763
  Prefactor  = 0.0001
  norm       = 0.00385351
  norm       = 0.0001
  Prefactor  = 8.44148
  norm       = 4.36727
  norm       = 0.947507
  Prefactor  = 0.0001
  Prefactor  = 6.97402
  Prefactor  = 0.0001
  Prefactor  = 10.3392
  Prefactor  = 1.0725
  Normalizat = 1.47374
  Prefactor  = 0.999417
 **********
 **   18 **HESSE 
 **********

 FCN=   7876.742     FROM HESSE     STATUS=OK           397 CALLS     3646 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    8.0537        .71698E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     56.795        49.436        .10646E-04   -1.4199    
   3  Prefactor     39.737        44.191        .25463E-05   -1.4446    
   4  Prefactor     .10000E-03    11.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    313.74        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.521        24.932        .42028E-05   -1.4946    
   7  Prefactor     .10000E-03    3.7804        .33440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4276        2.6943        .32051E-05   -1.5127    
   9  Prefactor     20.398        16.322        .35472E-05   -1.4804    
  10  Prefactor     .10000E-03    2.9593        .29805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9763        1.6621        .22908E-05   -1.5219    
  12  Prefactor     .10000E-03    33.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .38535E-02    8.3741        .73964E-01   -1.5696    
  14  norm          .10000E-03    7.5167        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.4415        6.0837        .55193E-05   -1.5127    
  16  norm          4.3673        5.1359        .38532E-04   -1.5290    
  17  norm          .94751        1.3466        .63288E-04   -1.5513    
  18  Prefactor     .10000E-03    5.7916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9740        19.395        .60616E-05   -1.5180    
  20  Prefactor     .10000E-03    13.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.339        9.2786        .49838E-05   -1.5065    
  22  Prefactor     1.0725        44.625        .19126E-03   -1.5501    
  23  Normalizat    1.4737        .31245        .15059E-04   -.78519    
  24  Prefactor     .99942        .14154        .81883E-05   -.92749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58125e-09
Minuit parameter uncertainties:
  1  0.000783213
  2  49.4722
  3  44.2276
  4  9.81681e-05
  5  0.00330164
  6  24.9502
  7  2.46353e-05
  8  2.69434
  9  16.3253
  10  1.16795e-05
  11  1.66208
  12  2.49319e-06
  13  0.354633
  14  8.86391e-05
  15  6.08415
  16  5.13645
  17  1.34663
  18  1.46481e-05
  19  19.4129
  20  3.35785e-05
  21  9.27988
  22  13.8466
  23  0.312863
  24  0.141594
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.493e-06  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:  9.994e-01  1.416e-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.474e+00  3.129e-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: 8.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983820/likelihoodResults_624499201_624758401_4FGL_J1254.2-2205_daily_bin1486.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): 0
logL (Free Index) = 7876.74259778
delta logL = -0.000144131956404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7876.74245371
delta logL = -6.19556885795e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2627       1.0000          .0000       10.000    
     3 'Normalizat'    1.4737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99942       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=   7876.742     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7138.0        .90712E-02** at limit **
   2  Index         2.2500        5.1747        .50000        .32996E-05
   3  Normalizat    1.4737        .11353        .85035E-01    .12891E-04
   4  Prefactor     .99942        .52436E-01    .46260E-01    .77041E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25003
  Normalizat = 1.47374
  Prefactor  = 0.999417
 **********
 **   18 **HESSE 
 **********

 FCN=   7876.742     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2500        6.1215        .50000       -.58236    
   3  Normalizat    1.4737        .30152        .37646E-03   -.78519    
   4  Prefactor     .99942        .13960        .20471E-03   -.92749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15404e-11
Minuit parameter uncertainties:
  1  9.9066e-06
  2  4.3487
  3  0.301882
  4  0.139646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983820': 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): 0
logL (Free Index) = 7876.74245369
delta logL = -4.33910827269e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  9.907e-06  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.250e+00  4.349e+00  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:  9.994e-01  1.396e-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.474e+00  3.019e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/983820/cmap_HighResolution_624499201_624758401_4FGL_J1254.2-2205_daily_bin1486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.99e-08', time_completed='2021-09-06 09:05:46.176942', job_id='983820', GAL2='1.00', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630944346.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-4.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1486' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 983820: <4FGL_J1254.2-2205_daily_bin1486> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1486 193.552 -22.0872 624499201 624758401 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 :                                   839.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            891 sec.

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

