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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1367
RA = 193.552, Dec = -22.0872
tmin = 593654401, tmax = 593913601
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='983655', job_status='RUN', time_executed='2021-09-06 08:51:23.024915', time_epoch_executed='1630943483.02' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983655/ft1_4FGL_J1254.2-2205_daily_bin1367.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983655/ft2_4FGL_J1254.2-2205_daily_bin1367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983655/ft1_4FGL_J1254.2-2205_daily_bin1367.fits outfile=/scratch/kocevski/983655/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1367.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=593654401.0 tmax=593913601.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.64
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983655/ft1_filtered_4FGL_J1254.2-2205_daily_bin1367.fits" evtable="EVENTS" scfile=/scratch/kocevski/983655/ft2_4FGL_J1254.2-2205_daily_bin1367.fits sctable="SC_DATA" outfile=/scratch/kocevski/983655/ltcube_593654401_593913601_4FGL_J1254.2-2205_daily_bin1367.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/983655/ft2_4FGL_J1254.2-2205_daily_bin1367.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983655/ft1_filtered_4FGL_J1254.2-2205_daily_bin1367.fits evtable="EVENTS" scfile=/scratch/kocevski/983655/ft2_4FGL_J1254.2-2205_daily_bin1367.fits sctable="SC_DATA" expcube=/scratch/kocevski/983655/ltcube_593654401_593913601_4FGL_J1254.2-2205_daily_bin1367.fits outfile=/scratch/kocevski/983655/expmap_593654401_593913601_4FGL_J1254.2-2205_daily_bin1367.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/983655/ltcube_593654401_593913601_4FGL_J1254.2-2205_daily_bin1367.fits
.....................!
real 191.60
user 187.11
sys 4.15

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/983655/ft1_filtered_4FGL_J1254.2-2205_daily_bin1367.fits scfile=/scratch/kocevski/983655/ft2_4FGL_J1254.2-2205_daily_bin1367.fits outfile=/scratch/kocevski/983655/cmap_593654401_593913601_4FGL_J1254.2-2205_daily_bin1367.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983655/ft1_filtered_4FGL_J1254.2-2205_daily_bin1367.fits scfile=/scratch/kocevski/983655/ft2_4FGL_J1254.2-2205_daily_bin1367.fits outfile=/scratch/kocevski/983655/cmap_HighResolution_593654401_593913601_4FGL_J1254.2-2205_daily_bin1367.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983655/ft1_filtered_4FGL_J1254.2-2205_daily_bin1367.fits evtable="EVENTS" scfile=/scratch/kocevski/983655/ft2_4FGL_J1254.2-2205_daily_bin1367.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983655/Model_4FGL_J1254.2-2205_daily_bin1367.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/983655/ft1_filtered_4FGL_J1254.2-2205_daily_bin1367.fits.....................!
real 62.28
user 60.93
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7776       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.420       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.931       1.0000         .10000E-03   10000.    
    11 'norm      '    18.433       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.227       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.034       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.210       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3592       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8525       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1246       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3293       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5613       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83443       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=   7228.403     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2711 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3750       -.42050E-07** at limit **
   2  Prefactor     .10000E-03    34.903        .24978E-07** at limit **
   3  Prefactor     .10000E-03    8.9748       -.10096E-06** at limit **
   4  Prefactor     .10000E-03    14.452       -.14004E-06** at limit **
   5  Prefactor     .10000E-03    32.837       -.35376E-06** at limit **
   6  Prefactor     1.7785        65.950        .32025E-07   -.43817E-06
   7  Prefactor     .10000E-03    3.9768       -.61398E-07** at limit **
   8  Prefactor     5.7774        2.5652        .54219E-08    .54801E-05
   9  Prefactor     16.423        16.794       -.11215E-06   -.45072E-05
  10  Prefactor     25.932        16.087        .25666E-07    .87626E-07
  11  norm          18.434        2.7135       -.19078E-07   -.39258E-04
  12  Prefactor     20.506        259.97        .20779E-04   -.98746E-05
  13  norm          .10000E-03    2.6864       -.58702E-07** at limit **
  14  norm          13.108        17.923       -.21174E-05   -.57750E-04
  15  Prefactor     13.184        14.204        .56757E-06   -.35921E-04
  16  norm          2.3589        5.4196        .77712E-06   -.11920E-04
  17  norm          1.8497        3.3245        .73298E-07    .90513E-05
  18  Prefactor     .10000E-03    12.230       -.22198E-07** at limit **
  19  Prefactor     .10000E-03    7.0120       -.94386E-07** at limit **
  20  Prefactor     2.1229        34.528        .11954E-06   -.29203E-06
  21  Prefactor     4.3281        8.3296        .21738E-06   -.21343E-05
  22  Prefactor     .10000E-03    6.7420       -.76673E-08** at limit **
  23  Normalizat    1.5613        .28949       -.23633E-06    .32207E-05
  24  Prefactor     .83448        .12682        .13184E-06   -.10471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77855
  Prefactor  = 0.0001
  Prefactor  = 5.77744
  Prefactor  = 16.4228
  Prefactor  = 25.9325
  norm       = 18.4337
  Prefactor  = 20.5062
  norm       = 0.0001
  norm       = 13.1077
  Prefactor  = 13.1844
  norm       = 2.35893
  norm       = 1.84967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.12294
  Prefactor  = 4.32811
  Prefactor  = 0.0001
  Normalizat = 1.56129
  Prefactor  = 0.834475
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.403     FROM HESSE     STATUS=OK           401 CALLS     3112 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3825        .15254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7785        66.522        .31361E-03   -1.5441    
   7  Prefactor     .10000E-03    4.0311        .16547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7774        2.5639        .87868E-04   -1.5227    
   9  Prefactor     16.423        16.814        .98840E-04   -1.4897    
  10  Prefactor     25.932        16.161        .78668E-04   -1.4689    
  11  norm          18.434        2.7148        .50201E-04   -1.4849    
  12  Prefactor     20.506        260.54        .43468E-03   -1.4802    
  13  norm          .10000E-03    2.6884        .13609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.108        17.893        .11095E-03   -1.4984    
  15  Prefactor     13.184        14.161        .11021E-03   -1.4982    
  16  norm          2.3589        5.4188        .13341E-02   -1.5401    
  17  norm          1.8497        3.3021        .19697E-03   -1.5436    
  18  Prefactor     .10000E-03    12.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1229        34.595        .28291E-03   -1.5417    
  21  Prefactor     4.3281        8.3192        .96800E-03   -1.5292    
  22  Prefactor     .10000E-03    6.7658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5613        .33991        .37817E-03   -.76070    
  24  Prefactor     .83448        .14888        .22032E-03   -.98470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53118e-10
Minuit parameter uncertainties:
  1  2.55402e-07
  2  1.181e-06
  3  2.17071e-07
  4  9.6004e-07
  5  2.18355e-06
  6  21.7799
  7  3.28394e-07
  8  2.5639
  9  16.8186
  10  16.1636
  11  2.71485
  12  146.982
  13  2.72157e-07
  14  17.9003
  15  14.1646
  16  5.41988
  17  3.30242
  18  1.01529e-06
  19  2.45119e-07
  20  17.1511
  21  8.32141
  22  2.25961e-07
  23  0.34041
  24  0.148957
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  2.051e+01  1.470e+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:  8.345e-01  1.490e-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.561e+00  3.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/983655/likelihoodResults_593654401_593913601_4FGL_J1254.2-2205_daily_bin1367.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) = 7227.46336028
delta logL = 0.939789778196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7227.30947828
delta logL = 1.09367178123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5209       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3550       1.0000          .0000       10.000    
     3 'Normalizat'    1.3956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87723       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=   7227.309     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      283 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5167        14.387        .86608E-02    .66497E-03
   2  Index         4.3570        1.7123        .94341E-01    .18721E-03
   3  Normalizat    1.3953        .73887E-01    .89037E-01    .63079E-04
   4  Prefactor     .87725        .32732E-01    .44714E-01    .11618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51674
  Index      = 4.35696
  Normalizat = 1.39527
  Prefactor  = 0.877246
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.309     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5167        35.447        .70255E-04   -1.5462    
   2  Index         4.3570        3.2725        .32625E-02   -.12896    
   3  Normalizat    1.3953        .29079        .39428E-03   -.80765    
   4  Prefactor     .87725        .12724        .21500E-03   -.96941    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54919e-07
Minuit parameter uncertainties:
  1  14.6741
  2  3.57406
  3  0.291138
  4  0.127282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983655': 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) = 7227.30947167
delta logL = 1.09367838946

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.517e+00  1.467e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  4.357e+00  3.574e+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.772e-01  1.273e-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.395e+00  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 4.36 +/- 3.57
Photon Flux (Free Index): 2.11e-07 +/- 1.49e-07
Energy Flux (Free Index): 3.01e-05 +/- 2.52e-05

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/983655/cmap_HighResolution_593654401_593913601_4FGL_J1254.2-2205_daily_bin1367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', energy_flux2='3.01e-05', dlogl='1.09e+00', photon_flux2='2.11e-07', job_status='DONE', time_completed='2021-09-06 09:04:46.685836', photon_index_error2='3.57', photon_index2='4.36', ts='0.03', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='2.52e-05', EG='1.56', time_epoch_completed='1630944286.69', return_code='0', job_id='983655', GAL2='0.88', EG2='1.40', return_code2='102', photon_flux_error2='1.49e-07', ts2='2.41', photon_index='2.19' WHERE bin_id='1367' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:04:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 983655: <4FGL_J1254.2-2205_daily_bin1367> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1367> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:50:43 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:50:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:50:44 2021
Terminated at Mon Sep  6 09:04:47 2021
Results reported at Mon Sep  6 09:04:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1367 193.552 -22.0872 593654401 593913601 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 :                                   764.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

