/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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.2-2205_daily_bin231
RA = 193.552, Dec = -22.0872
tmin = 299203201, tmax = 299462401
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='976296', job_status='RUN', time_executed='2021-09-06 08:28:08.788010', time_epoch_executed='1630942088.79' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/976296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/976296/ft1_4FGL_J1254.2-2205_daily_bin231.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/976296/ft2_4FGL_J1254.2-2205_daily_bin231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/976296/ft1_4FGL_J1254.2-2205_daily_bin231.fits outfile=/scratch/kocevski/976296/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin231.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=299203201.0 tmax=299462401.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.40
user 3.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/976296/ft2_4FGL_J1254.2-2205_daily_bin231.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/976296/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin231.fits evtable="EVENTS" outfile="/scratch/kocevski/976296/ft1_filtered_4FGL_J1254.2-2205_daily_bin231.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/976296/ft1_filtered_4FGL_J1254.2-2205_daily_bin231.fits" evtable="EVENTS" scfile=/scratch/kocevski/976296/ft2_4FGL_J1254.2-2205_daily_bin231.fits sctable="SC_DATA" outfile=/scratch/kocevski/976296/ltcube_299203201_299462401_4FGL_J1254.2-2205_daily_bin231.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/976296/ft2_4FGL_J1254.2-2205_daily_bin231.fits
.....................!
real 11.64
user 11.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/976296/ft1_filtered_4FGL_J1254.2-2205_daily_bin231.fits evtable="EVENTS" scfile=/scratch/kocevski/976296/ft2_4FGL_J1254.2-2205_daily_bin231.fits sctable="SC_DATA" expcube=/scratch/kocevski/976296/ltcube_299203201_299462401_4FGL_J1254.2-2205_daily_bin231.fits outfile=/scratch/kocevski/976296/expmap_299203201_299462401_4FGL_J1254.2-2205_daily_bin231.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/976296/ltcube_299203201_299462401_4FGL_J1254.2-2205_daily_bin231.fits
.....................!
real 191.61
user 185.95
sys 5.34

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/976296/ft1_filtered_4FGL_J1254.2-2205_daily_bin231.fits scfile=/scratch/kocevski/976296/ft2_4FGL_J1254.2-2205_daily_bin231.fits outfile=/scratch/kocevski/976296/cmap_299203201_299462401_4FGL_J1254.2-2205_daily_bin231.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/976296/ft1_filtered_4FGL_J1254.2-2205_daily_bin231.fits scfile=/scratch/kocevski/976296/ft2_4FGL_J1254.2-2205_daily_bin231.fits outfile=/scratch/kocevski/976296/cmap_HighResolution_299203201_299462401_4FGL_J1254.2-2205_daily_bin231.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.73
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/976296/ft1_filtered_4FGL_J1254.2-2205_daily_bin231.fits evtable="EVENTS" scfile=/scratch/kocevski/976296/ft2_4FGL_J1254.2-2205_daily_bin231.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/976296/Model_4FGL_J1254.2-2205_daily_bin231.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/976296/ft1_filtered_4FGL_J1254.2-2205_daily_bin231.fits.....................!
real 65.06
user 62.43
sys 1.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6067       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.501       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7539       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13958       1.0000         .10000E-03   10000.    
    13 'norm      '    .30962E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4492       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0722       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3600       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99251       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=   7650.986     FROM MIGRAD    STATUS=CONVERGED    982 CALLS     2820 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4560        .17963E-02** at limit **
   2  Prefactor     79.348        49.586        .22535E-03   -.13024E-03
   3  Prefactor     .10000E-03    28.580        .18142E-02** at limit **
   4  Prefactor     .10000E-03    9.2399        .18142E-02** at limit **
   5  Prefactor     .10000E-03    37.974        .18142E-02** at limit **
   6  Prefactor     .10000E-03    17.152        .18142E-02** at limit **
   7  Prefactor     .23169        8.7057        .28178E-02    .95824E-03
   8  Prefactor     7.6062        2.4808        .75343E-04    .20054E-03
   9  Prefactor     8.2763        15.753        .13911E-03    .12569E-03
  10  Prefactor     10.498        11.967        .12364E-03    .44962E-04
  11  norm          3.7543        1.3328        .57526E-04    .56481E-03
  12  Prefactor     .10034E-03    70.672        .20455    ** at limit **
  13  norm          .10000E-03    49.214        .37907E-02** at limit **
  14  norm          .10000E-03    5.9658        .36285E-03** at limit **
  15  Prefactor     .10000E-03    6.0748        .18142E-02** at limit **
  16  norm          2.4505        4.7685        .25809E-03    .91137E-04
  17  norm          2.0727        2.1282        .12568E-03    .75534E-04
  18  Prefactor     12.208        10.377        .11466E-03   -.23796E-05
  19  Prefactor     .10000E-03    50.767        .36285E-03** at limit **
  20  Prefactor     .10000E-03    25.420        .18142E-02** at limit **
  21  Prefactor     .10000E-03    14.003        .18142E-02** at limit **
  22  Prefactor     .10000E-03    9.0647        .18142E-02** at limit **
  23  Normalizat    1.3601        .30712        .36041E-03    .20443E-03
  24  Prefactor     .99245        .14110        .19234E-03    .27662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 79.3478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.231687
  Prefactor  = 7.60618
  Prefactor  = 8.27629
  Prefactor  = 10.4979
  norm       = 3.75427
  Prefactor  = 0.000100337
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45045
  norm       = 2.07273
  Prefactor  = 12.2077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36012
  Prefactor  = 0.992454
 **********
 **   18 **HESSE 
 **********

 FCN=   7650.986     FROM HESSE     STATUS=OK           387 CALLS     3207 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4573        .35926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     79.348        49.585        .45070E-04   -1.3924    
   3  Prefactor     .10000E-03    28.586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .23169        8.7271        .11271E-03   -1.5612    
   8  Prefactor     7.6062        2.4740        .30137E-05   -1.5156    
   9  Prefactor     8.2763        15.753        .55645E-05   -1.5133    
  10  Prefactor     10.498        11.966        .49458E-05   -1.5060    
  11  norm          3.7543        1.3328        .23011E-05   -1.5320    
  12  Prefactor     .10034E-03    74.451        .19764       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    51.260        .15163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9660        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4505        4.7681        .10324E-04   -1.5395    
  17  norm          2.0727        2.1282        .50270E-05   -1.5420    
  18  Prefactor     12.208        10.377        .45864E-05   -1.5009    
  19  Prefactor     .10000E-03    50.770        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.0667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3601        .30737        .14416E-04   -.81789    
  24  Prefactor     .99245        .14123        .38468E-04   -.92981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3221e-09
Minuit parameter uncertainties:
  1  2.4003e-05
  2  49.6109
  3  3.83577e-06
  4  2.67862e-05
  5  0.000290758
  6  7.55878e-05
  7  2.84375
  8  2.47406
  9  15.7605
  10  11.9691
  11  1.3328
  12  0.0100376
  13  0.000362801
  14  2.10569e-06
  15  1.72361e-05
  16  4.76888
  17  2.12828
  18  10.3788
  19  0.000272649
  20  6.50201e-05
  21  1.92478e-05
  22  4.35453e-06
  23  0.307789
  24  0.141286
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.003e-04  1.004e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.925e-01  1.413e-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.360e+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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/976296/likelihoodResults_299203201_299462401_4FGL_J1254.2-2205_daily_bin231.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) = 7650.98641488
delta logL = -2.43278918788e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7650.98641488
delta logL = -2.42672285822e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1912       1.0000          .0000       10.000    
     3 'Normalizat'    1.3601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99246       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=   7650.903     FROM MIGRAD    STATUS=CONVERGED    197 CALLS      381 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14162E-03    .38340E-02    .65304E-03** at limit **
   2  Index         6.9868        2.3607        .14035        .18174E-03
   3  Normalizat    1.3237        .30420E-01    .82363E-01    .53888E-04
   4  Prefactor     1.0035        .14209E-01    .46173E-01    .60994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000141623
  Index      = 6.98676
  Normalizat = 1.32365
  Prefactor  = 1.00345
 **********
 **   18 **HESSE 
 **********

 FCN=   7650.903     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      416 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14162E-03    .14146        .22913E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9868        8.0721        .99988E-02    .40863    
   3  Normalizat    1.3237        .16090        .36463E-03   -.82863    
   4  Prefactor     1.0035        .73517E-01    .19141E-03   -.92614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01341e-10
Minuit parameter uncertainties:
  1  0.004853
  2  11.7848
  3  0.160965
  4  0.0735246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/976296': 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) = 7650.90295018
delta logL = 0.0834644495962

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.416e-04  4.853e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  6.987e+00  1.178e+01  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.003e+00  7.352e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.324e+00  1.610e-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/976296/cmap_HighResolution_299203201_299462401_4FGL_J1254.2-2205_daily_bin231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-06 08:41:33.056093', job_id='976296', GAL2='1.00', fit_tolerance='1e-08', EG2='1.32', EG='1.36', time_epoch_completed='1630942893.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.35e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='231' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:41:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 976296: <4FGL_J1254.2-2205_daily_bin231> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin231> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 08:25:57 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:25:58 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:25:58 2021
Terminated at Mon Sep  6 08:41:33 2021
Results reported at Mon Sep  6 08:41:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin231 193.552 -22.0872 299203201 299462401 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 :                                   800.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            936 sec.

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

