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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1562
RA = 193.552, Dec = -22.0872
tmin = 644198401, tmax = 644457601
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='984915', job_status='RUN', time_executed='2021-09-06 08:57:00.916152', time_epoch_executed='1630943820.92' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984915/ft1_4FGL_J1254.2-2205_daily_bin1562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984915/ft2_4FGL_J1254.2-2205_daily_bin1562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984915/ft1_4FGL_J1254.2-2205_daily_bin1562.fits outfile=/scratch/kocevski/984915/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1562.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=644198401.0 tmax=644457601.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.42
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984915/ft1_filtered_4FGL_J1254.2-2205_daily_bin1562.fits" evtable="EVENTS" scfile=/scratch/kocevski/984915/ft2_4FGL_J1254.2-2205_daily_bin1562.fits sctable="SC_DATA" outfile=/scratch/kocevski/984915/ltcube_644198401_644457601_4FGL_J1254.2-2205_daily_bin1562.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/984915/ft2_4FGL_J1254.2-2205_daily_bin1562.fits
.....................!
real 12.59
user 12.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984915/ft1_filtered_4FGL_J1254.2-2205_daily_bin1562.fits evtable="EVENTS" scfile=/scratch/kocevski/984915/ft2_4FGL_J1254.2-2205_daily_bin1562.fits sctable="SC_DATA" expcube=/scratch/kocevski/984915/ltcube_644198401_644457601_4FGL_J1254.2-2205_daily_bin1562.fits outfile=/scratch/kocevski/984915/expmap_644198401_644457601_4FGL_J1254.2-2205_daily_bin1562.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/984915/ltcube_644198401_644457601_4FGL_J1254.2-2205_daily_bin1562.fits
.....................!
real 190.25
user 184.89
sys 4.89

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/984915/ft1_filtered_4FGL_J1254.2-2205_daily_bin1562.fits scfile=/scratch/kocevski/984915/ft2_4FGL_J1254.2-2205_daily_bin1562.fits outfile=/scratch/kocevski/984915/cmap_644198401_644457601_4FGL_J1254.2-2205_daily_bin1562.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984915/ft1_filtered_4FGL_J1254.2-2205_daily_bin1562.fits scfile=/scratch/kocevski/984915/ft2_4FGL_J1254.2-2205_daily_bin1562.fits outfile=/scratch/kocevski/984915/cmap_HighResolution_644198401_644457601_4FGL_J1254.2-2205_daily_bin1562.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.56
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984915/ft1_filtered_4FGL_J1254.2-2205_daily_bin1562.fits evtable="EVENTS" scfile=/scratch/kocevski/984915/ft2_4FGL_J1254.2-2205_daily_bin1562.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984915/Model_4FGL_J1254.2-2205_daily_bin1562.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/984915/ft1_filtered_4FGL_J1254.2-2205_daily_bin1562.fits.....................!
real 51.67
user 50.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.025       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.513       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1357       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1382       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9567       1.0000         .10000E-03   10000.    
    12 'Prefactor '    122.46       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.779       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.162       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2953       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79285       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=   6126.947     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2648 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4220        .85158E-06** at limit **
   2  Prefactor     .10000E-03    34.160        .11082E-04** at limit **
   3  Prefactor     24.165        35.504       -.26591E-04    .54313E-05
   4  Prefactor     27.023        33.957        .20310E-04   -.68286E-04
   5  Prefactor     55.452        70.890       -.68937E-04    .17244E-04
   6  Prefactor     .10000E-03    25.458       -.61311E-05** at limit **
   7  Prefactor     6.1359        4.7482       -.24898E-06    .23215E-04
   8  Prefactor     3.1383        1.5998       -.38434E-07    .18034E-03
   9  Prefactor     .10000E-03    7.5626       -.29648E-06** at limit **
  10  Prefactor     .10000E-03    2.9578       -.11414E-05** at limit **
  11  norm          3.9567        1.5112       -.37079E-06   -.23876E-02
  12  Prefactor     122.48        91.876        .17606E-04    .23725E-04
  13  norm          .10000E-03    2.9141        .11247E-05** at limit **
  14  norm          .10000E-03    2.5423       -.29929E-06** at limit **
  15  Prefactor     .10000E-03    4.1425       -.77434E-06** at limit **
  16  norm          .10000E-03    2.1841       -.55276E-07** at limit **
  17  norm          .10000E-03    .82437       -.28483E-07** at limit **
  18  Prefactor     .10000E-03    2.6948       -.32248E-06** at limit **
  19  Prefactor     14.774        15.642       -.12925E-05   -.95881E-05
  20  Prefactor     48.158        35.603       -.40574E-05    .58181E-05
  21  Prefactor     .10000E-03    4.3198        .65659E-06** at limit **
  22  Prefactor     .10000E-03    12.130        .51145E-06** at limit **
  23  Normalizat    1.2952        .25086        .37327E-05    .13770E-04
  24  Prefactor     .79289        .11478        .15806E-05    .10389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 24.1649
  Prefactor  = 27.0233
  Prefactor  = 55.4522
  Prefactor  = 0.0001
  Prefactor  = 6.13592
  Prefactor  = 3.13827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95668
  Prefactor  = 122.483
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7743
  Prefactor  = 48.1576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29516
  Prefactor  = 0.792886
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.947     FROM HESSE     STATUS=OK           393 CALLS     3041 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4418        .16072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.165        35.508        .81451E-04   -1.4724    
   4  Prefactor     27.023        33.999        .77062E-04   -1.4668    
   5  Prefactor     55.452        70.883        .53838E-04   -1.4217    
   6  Prefactor     .10000E-03    25.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1359        4.7525        .14494E-03   -1.5213    
   8  Prefactor     3.1383        1.6023        .68662E-04   -1.5354    
   9  Prefactor     .10000E-03    7.5953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9618        .13147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9567        1.5123        .28350E-03   -1.5310    
  12  Prefactor     122.48        91.855        .18185E-03   -1.3490    
  13  norm          .10000E-03    2.9217        .13047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5489        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2070        .15546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1887        .11297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .82614        .69401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6963        .12549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.774        15.636        .10419E-03   -1.4939    
  20  Prefactor     48.158        35.606        .57781E-04   -1.4319    
  21  Prefactor     .10000E-03    4.3212        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2952        .29395        .33420E-03   -.83711    
  24  Prefactor     .79289        .13466        .19140E-03   -.99991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22429e-09
Minuit parameter uncertainties:
  1  0.000197418
  2  0.000446817
  3  35.5388
  4  34.0231
  5  70.9912
  6  0.000186377
  7  4.75279
  8  1.60232
  9  2.81478e-05
  10  6.83843e-06
  11  1.51229
  12  91.9619
  13  1.76864e-05
  14  5.75626e-05
  15  9.38997e-05
  16  5.35308e-06
  17  4.33017e-06
  18  4.6022e-06
  19  15.6406
  20  35.6218
  21  1.14678e-06
  22  3.53665e-06
  23  0.294334
  24  0.134712
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.225e+02  9.196e+01  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:  7.929e-01  1.347e-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.295e+00  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 193.552 -22.087
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.29e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.50e-05

TS (Fixed Index): 2.86
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984915/likelihoodResults_644198401_644457601_4FGL_J1254.2-2205_daily_bin1562.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) = 6126.70940928
delta logL = 0.237345246991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6126.67885209
delta logL = 0.267902432539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.160       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5947       1.0000          .0000       10.000    
     3 'Normalizat'    1.2627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80004       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=   6126.679     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      297 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.173        101.14        .46938E-04    .14435E-03
   2  Index         2.5944        .66367        .42142E-02    .17313E-03
   3  Normalizat    1.2618        .29588        .33777E-03    .32229E-03
   4  Prefactor     .80050        .13517        .19051E-03    .97626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.1728
  Index      = 2.59439
  Normalizat = 1.26182
  Prefactor  = 0.800497
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.679     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.173        87.889        .93877E-05   -1.3995    
   2  Index         2.5944        .57624        .16857E-03   -.50193    
   3  Normalizat    1.2618        .29511        .67554E-04   -.84713    
   4  Prefactor     .80050        .13496        .38103E-04   -.99710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59737e-10
Minuit parameter uncertainties:
  1  88.0452
  2  0.577918
  3  0.295507
  4  0.135011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984915': 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) = 6126.67884545
delta logL = 0.267909073346

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  7.317e+01  8.805e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.594e+00  5.779e-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:  8.005e-01  1.350e-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.262e+00  2.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 2.59 +/- 0.58
Photon Flux (Free Index): 1.09e-07 +/- 8.27e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.98e-05

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/984915/cmap_HighResolution_644198401_644457601_4FGL_J1254.2-2205_daily_bin1562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='7.29e-08', energy_flux2='2.87e-05', photon_flux_error='5.47e-08', dlogl='2.68e-01', energy_flux='3.33e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-06 09:08:30.141044', photon_index_error2='0.58', photon_index2='2.59', ts='2.86', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.98e-05', EG='1.30', time_epoch_completed='1630944510.14', return_code='0', job_id='984915', GAL2='0.80', EG2='1.26', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='8.27e-08', ts2='3.40', photon_index='2.19' WHERE bin_id='1562' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:08:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 984915: <4FGL_J1254.2-2205_daily_bin1562> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1562> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:22 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:23 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:23 2021
Terminated at Mon Sep  6 09:08:30 2021
Results reported at Mon Sep  6 09:08:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1562 193.552 -22.0872 644198401 644457601 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 :                                   685.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            788 sec.

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

