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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1577
RA = 193.552, Dec = -22.0872
tmin = 648086401, tmax = 648345601
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='984937', job_status='RUN', time_executed='2021-09-06 08:58:04.301048', time_epoch_executed='1630943884.3' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984937/ft1_4FGL_J1254.2-2205_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984937/ft2_4FGL_J1254.2-2205_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984937/ft1_4FGL_J1254.2-2205_daily_bin1577.fits outfile=/scratch/kocevski/984937/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1577.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.24
user 4.01
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984937/ft1_filtered_4FGL_J1254.2-2205_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/984937/ft2_4FGL_J1254.2-2205_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/984937/ltcube_648086401_648345601_4FGL_J1254.2-2205_daily_bin1577.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/984937/ft2_4FGL_J1254.2-2205_daily_bin1577.fits
.....................!
real 12.64
user 12.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984937/ft1_filtered_4FGL_J1254.2-2205_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/984937/ft2_4FGL_J1254.2-2205_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/984937/ltcube_648086401_648345601_4FGL_J1254.2-2205_daily_bin1577.fits outfile=/scratch/kocevski/984937/expmap_648086401_648345601_4FGL_J1254.2-2205_daily_bin1577.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/984937/ltcube_648086401_648345601_4FGL_J1254.2-2205_daily_bin1577.fits
.....................!
real 191.70
user 185.87
sys 5.10

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/984937/ft1_filtered_4FGL_J1254.2-2205_daily_bin1577.fits scfile=/scratch/kocevski/984937/ft2_4FGL_J1254.2-2205_daily_bin1577.fits outfile=/scratch/kocevski/984937/cmap_648086401_648345601_4FGL_J1254.2-2205_daily_bin1577.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984937/ft1_filtered_4FGL_J1254.2-2205_daily_bin1577.fits scfile=/scratch/kocevski/984937/ft2_4FGL_J1254.2-2205_daily_bin1577.fits outfile=/scratch/kocevski/984937/cmap_HighResolution_648086401_648345601_4FGL_J1254.2-2205_daily_bin1577.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984937/ft1_filtered_4FGL_J1254.2-2205_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/984937/ft2_4FGL_J1254.2-2205_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984937/Model_4FGL_J1254.2-2205_daily_bin1577.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/984937/ft1_filtered_4FGL_J1254.2-2205_daily_bin1577.fits.....................!
real 55.10
user 53.27
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    101.46       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2514       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1301       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .95701       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4103       1.0000         .10000E-03   10000.    
    14 'norm      '    .10782E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8233       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4192       1.0000         .10000E-03   10000.    
    17 'norm      '    .73209E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.657       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.281       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.033       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4687       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92995       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=   6247.837     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2760 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8840       -.47663E-06** at limit **
   2  Prefactor     .10000E-03    20.088       -.10387E-05** at limit **
   3  Prefactor     101.45        50.160       -.31140E-07   -.12115E-03
   4  Prefactor     .10000E-03    15.142        .18120E-06** at limit **
   5  Prefactor     .10000E-03    31.815        .40637E-06** at limit **
   6  Prefactor     .10000E-03    12.339        .14705E-06** at limit **
   7  Prefactor     2.2483        8.3848        .71576E-05   -.26173E-03
   8  Prefactor     4.9930        2.5804       -.47372E-06    .20729E-03
   9  Prefactor     7.1269        16.620        .34200E-06    .47384E-04
  10  Prefactor     .10000E-03    10.650       -.24822E-06** at limit **
  11  norm          .95702        .78059        .11490E-09    .10370E-03
  12  Prefactor     .10000E-03    30.373       -.96134E-07** at limit **
  13  norm          1.4110        14.574        .11110E-05    .75960E-04
  14  norm          .10000E-03    4.3760       -.33059E-05** at limit **
  15  Prefactor     5.8400        5.9576        .14122E-05    .21280E-02
  16  norm          3.4181        5.8926        .10812E-06    .17072E-04
  17  norm          .10001E-03    1.6411       -.55897E-06** at limit **
  18  Prefactor     11.656        12.280        .10939E-06    .22530E-04
  19  Prefactor     11.285        19.283        .49876E-07    .49758E-04
  20  Prefactor     .10000E-03    15.449        .32021E-06** at limit **
  21  Prefactor     29.034        18.187       -.46665E-08    .10487E-05
  22  Prefactor     .10000E-03    6.9840        .20330E-06** at limit **
  23  Normalizat    1.4687        .27819       -.77347E-06    .36067E-03
  24  Prefactor     .93006        .12648       -.17001E-07    .63966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 101.454
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.24834
  Prefactor  = 4.99302
  Prefactor  = 7.12695
  Prefactor  = 0.0001
  norm       = 0.957023
  Prefactor  = 0.0001
  norm       = 1.41099
  norm       = 0.000100004
  Prefactor  = 5.83997
  norm       = 3.41806
  norm       = 0.000100008
  Prefactor  = 11.6562
  Prefactor  = 11.285
  Prefactor  = 0.0001
  Prefactor  = 29.0344
  Prefactor  = 0.0001
  Normalizat = 1.46867
  Prefactor  = 0.930058
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.837     FROM HESSE     STATUS=OK           399 CALLS     3159 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     101.45        50.110        .39915E-04   -1.3690    
   4  Prefactor     .10000E-03    15.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2483        8.3905        .13692E-02   -1.5408    
   8  Prefactor     4.9930        2.5891        .83710E-04   -1.5261    
   9  Prefactor     7.1269        16.623        .15023E-03   -1.5174    
  10  Prefactor     .10000E-03    10.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .95702        .75686        .61166E-03   -1.5512    
  12  Prefactor     .10000E-03    30.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4110        14.679        .36482E-03   -1.5470    
  14  norm          .10000E-03    17.649        .26929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8400        5.7387        .16643E-03   -1.5225    
  16  norm          3.4181        5.8858        .21877E-03   -1.5338    
  17  norm          .10001E-03    16.701        .19287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.656        12.297        .11734E-03   -1.5025    
  19  Prefactor     11.285        19.292        .11928E-03   -1.5036    
  20  Prefactor     .10000E-03    15.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.034        18.193        .74355E-04   -1.4630    
  22  Prefactor     .10000E-03    6.9961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4687        .32471        .35266E-03   -.78662    
  24  Prefactor     .93006        .14746        .19748E-03   -.95099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73322e-09
Minuit parameter uncertainties:
  1  0.000117589
  2  0.000357551
  3  50.131
  4  0.000134195
  5  0.000319445
  6  0.000112986
  7  8.3949
  8  2.58916
  9  16.6341
  10  0.000133191
  11  0.756865
  12  2.65166e-05
  13  9.10475
  14  0.000551694
  15  5.73923
  16  5.8868
  17  0.000729279
  18  12.2995
  19  19.3031
  20  6.35412e-05
  21  18.1968
  22  3.20962e-05
  23  0.325172
  24  0.147527
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.652e-05  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.301e-01  1.475e-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.469e+00  3.252e-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: 7.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984937/likelihoodResults_648086401_648345601_4FGL_J1254.2-2205_daily_bin1577.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) = 6247.83724011
delta logL = -0.000156739302838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6247.83708405
delta logL = -6.82641257299e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3679       1.0000          .0000       10.000    
     3 'Normalizat'    1.4687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93006       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=   6247.837     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    108.53        .18142E-02** at limit **
   2  Index         2.3030        8.1155        .50000        .13771E-04
   3  Normalizat    1.4687        .14887E-01    .35266E-03    .35783E-05
   4  Prefactor     .93006        .68714E-02    .19748E-03   -.54114E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101725
  Index      = 2.30297
  Normalizat = 1.46867
  Prefactor  = 0.930057
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.837     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10173E-03    469.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3030        8.8427        .50000       -.56973    
   3  Normalizat    1.4687        .31622E-01    .14106E-04   -.78662    
   4  Prefactor     .93006        .14595E-01    .78993E-05   -.95099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.76935e-09
Minuit parameter uncertainties:
  1  0.0573568
  2  361.626
  3  0.0316222
  4  0.0145954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984937': 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) = 6247.83708371
delta logL = -3.41419763572e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.017e-04  5.736e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.303e+00  3.616e+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:  9.301e-01  1.460e-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.469e+00  3.162e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.552 -22.087

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/984937/cmap_HighResolution_648086401_648345601_4FGL_J1254.2-2205_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.79e-08', time_completed='2021-09-06 09:10:04.217379', job_id='984937', GAL2='0.93', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630944604.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-3.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1577' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 984937: <4FGL_J1254.2-2205_daily_bin1577> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1577> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:24 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:55:26 2021
Terminated at Mon Sep  6 09:10:06 2021
Results reported at Mon Sep  6 09:10:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1577 193.552 -22.0872 648086401 648345601 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 :                                   711.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            882 sec.

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

