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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin479
RA = 193.552, Dec = -22.0872
tmin = 363484801, tmax = 363744001
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='978658', job_status='RUN', time_executed='2021-09-06 08:37:36.041937', time_epoch_executed='1630942656.04' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978658

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978658/ft1_4FGL_J1254.2-2205_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978658/ft2_4FGL_J1254.2-2205_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978658/ft1_4FGL_J1254.2-2205_daily_bin479.fits outfile=/scratch/kocevski/978658/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin479.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=363484801.0 tmax=363744001.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.72
user 3.46
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978658/ft1_filtered_4FGL_J1254.2-2205_daily_bin479.fits" evtable="EVENTS" scfile=/scratch/kocevski/978658/ft2_4FGL_J1254.2-2205_daily_bin479.fits sctable="SC_DATA" outfile=/scratch/kocevski/978658/ltcube_363484801_363744001_4FGL_J1254.2-2205_daily_bin479.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/978658/ft2_4FGL_J1254.2-2205_daily_bin479.fits
.....................!
real 11.76
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978658/ft1_filtered_4FGL_J1254.2-2205_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/978658/ft2_4FGL_J1254.2-2205_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/978658/ltcube_363484801_363744001_4FGL_J1254.2-2205_daily_bin479.fits outfile=/scratch/kocevski/978658/expmap_363484801_363744001_4FGL_J1254.2-2205_daily_bin479.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/978658/ltcube_363484801_363744001_4FGL_J1254.2-2205_daily_bin479.fits
.....................!
real 191.82
user 186.52
sys 4.91

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/978658/ft1_filtered_4FGL_J1254.2-2205_daily_bin479.fits scfile=/scratch/kocevski/978658/ft2_4FGL_J1254.2-2205_daily_bin479.fits outfile=/scratch/kocevski/978658/cmap_363484801_363744001_4FGL_J1254.2-2205_daily_bin479.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.63
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/978658/ft1_filtered_4FGL_J1254.2-2205_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/978658/ft2_4FGL_J1254.2-2205_daily_bin479.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/978658/Model_4FGL_J1254.2-2205_daily_bin479.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/978658/ft1_filtered_4FGL_J1254.2-2205_daily_bin479.fits.....................!
real 59.23
user 57.56
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.645       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25490E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17570E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43830E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1535       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11048E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.586       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32626       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5214       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4194       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.410       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5786       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87247       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=   7228.908     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2824 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3918        .90712E-02** at limit **
   2  Prefactor     30.681        61.056        .18095E-02    .39791E-03
   3  Prefactor     .10002E-03    49.706        .90712E-02** at limit **
   4  Prefactor     .10001E-03    38.310        .10729E-01** at limit **
   5  Prefactor     .10000E-03    277.92        .10171E-01** at limit **
   6  Prefactor     .10000E-03    8.8134        .90712E-02** at limit **
   7  Prefactor     9.5116        6.2491        .32483E-02   -.70719E-04
   8  Prefactor     8.6774        3.0286        .34018E-02   -.13030E-03
   9  Prefactor     .10003E-03    8.0920        .92399E-01** at limit **
  10  Prefactor     4.1521        12.657        .49443E-02    .11973E-03
  11  norm          .10000E-03    .28831        .25286E-01** at limit **
  12  Prefactor     .10001E-03    56.609        .90712E-02** at limit **
  13  norm          .10000E-03    2.7314        .90712E-02** at limit **
  14  norm          .10000E-03    5.6024        .63304E-01** at limit **
  15  Prefactor     16.590        7.7742        .24586E-02   -.19555E-03
  16  norm          .10000E-03    3.1649        .90712E-02** at limit **
  17  norm          .33522        1.9476        .39527E-01    .12701E-02
  18  Prefactor     8.5205        10.928        .34331E-02    .13365E-02
  19  Prefactor     1.4228        38.989        .90795E-02   -.70622E-03
  20  Prefactor     .10000E-03    6.9729        .90712E-02** at limit **
  21  Prefactor     27.410        14.620        .19130E-02   -.53966E-03
  22  Prefactor     .10000E-03    10.524        .90712E-02** at limit **
  23  Normalizat    1.5789        .25796        .76289E-01   -.68382E-04
  24  Prefactor     .87239        .11679        .44653E-01    .12111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.6812
  Prefactor  = 0.000100015
  Prefactor  = 0.000100014
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.51163
  Prefactor  = 8.67735
  Prefactor  = 0.000100035
  Prefactor  = 4.15213
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.59
  norm       = 0.0001
  norm       = 0.335216
  Prefactor  = 8.52053
  Prefactor  = 1.42275
  Prefactor  = 0.0001
  Prefactor  = 27.4104
  Prefactor  = 0.0001
  Normalizat = 1.57886
  Prefactor  = 0.872387
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.908     FROM HESSE     STATUS=OK           407 CALLS     3231 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4039        .15290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.681        60.841        .72378E-04   -1.4600    
   3  Prefactor     .10002E-03    50.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    38.724        .21457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    290.24        .40684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5116        6.2502        .12993E-03   -1.5091    
   8  Prefactor     8.6774        3.0287        .83295E-04   -1.5119    
   9  Prefactor     .10003E-03    10.019        .77901E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1521        12.657        .19777E-03   -1.5300    
  11  norm          .10000E-03    .55527        .88687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    56.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7372        .13722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    25.707        .35027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.590        7.0918        .98343E-04   -1.4893    
  16  norm          .10000E-03    3.1957        .14768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33522        3.9974        .22673E-02   -1.5592    
  18  Prefactor     8.5205        10.928        .68662E-03   -1.5124    
  19  Prefactor     1.4228        39.337        .36318E-03   -1.5469    
  20  Prefactor     .10000E-03    6.9743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.410        14.622        .76520E-04   -1.4660    
  22  Prefactor     .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5789        .30744        .33759E-03   -.75586    
  24  Prefactor     .87239        .13966        .19946E-03   -.97113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48076e-08
Minuit parameter uncertainties:
  1  1.06825e-05
  2  60.9643
  3  0.0017437
  4  0.00147678
  5  0.00139965
  6  2.68479e-05
  7  6.25064
  8  3.02873
  9  0.00117741
  10  12.6651
  11  3.55721e-06
  12  0.00119124
  13  2.17876e-05
  14  4.13349e-05
  15  7.09213
  16  2.00424e-05
  17  2.315
  18  10.9304
  19  14.9726
  20  7.16508e-05
  21  14.6236
  22  2.32814e-06
  23  0.307804
  24  0.139718
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.191e-03  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.724e-01  1.397e-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.579e+00  3.078e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978658/likelihoodResults_363484801_363744001_4FGL_J1254.2-2205_daily_bin479.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) = 7228.90764519
delta logL = -8.39249678393e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7228.90756133
delta logL = -6.52944436297e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2457       1.0000          .0000       10.000    
     3 'Normalizat'    1.5789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87239       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=   7228.908     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8468.4        .90712E-02** at limit **
   2  Index         2.2135        6.0840        .50000        .49526E-05
   3  Normalizat    1.5789        .12408        .76289E-01    .56548E-05
   4  Prefactor     .87239        .56933E-01    .44652E-01    .71612E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.21348
  Normalizat = 1.57886
  Prefactor  = 0.872386
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.908     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2135        5.9623        .50000       -.59114    
   3  Normalizat    1.5789        .29804        .33759E-03   -.75586    
   4  Prefactor     .87239        .13699        .19946E-03   -.97113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47951e-11
Minuit parameter uncertainties:
  1  0.000527197
  2  5.4853
  3  0.298375
  4  0.137045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978658': 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) = 7228.90756129
delta logL = -2.61379682343e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  5.272e-04  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.213e+00  5.485e+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:  8.724e-01  1.370e-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.579e+00  2.984e-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/978658/cmap_HighResolution_363484801_363744001_4FGL_J1254.2-2205_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.77e-08', time_completed='2021-09-06 08:50:26.088912', job_id='978658', GAL2='0.87', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630943426.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-2.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='479' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 978658: <4FGL_J1254.2-2205_daily_bin479> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin479 193.552 -22.0872 363484801 363744001 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 :                                   766.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

