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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1207
RA = 193.552, Dec = -22.0872
tmin = 552182401, tmax = 552441601
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='982062', job_status='RUN', time_executed='2021-09-06 08:46:11.065759', time_epoch_executed='1630943171.07' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982062

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982062/ft1_4FGL_J1254.2-2205_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982062/ft1_4FGL_J1254.2-2205_daily_bin1207.fits outfile=/scratch/kocevski/982062/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1207.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=552182401.0 tmax=552441601.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.75
user 3.46
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/982062/ft1_filtered_4FGL_J1254.2-2205_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/982062/ltcube_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.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/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits
.....................!
real 11.69
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982062/ft1_filtered_4FGL_J1254.2-2205_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/982062/ltcube_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.fits outfile=/scratch/kocevski/982062/expmap_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.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/982062/ltcube_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.fits
.....................!
real 193.11
user 187.44
sys 4.37

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/982062/ft1_filtered_4FGL_J1254.2-2205_daily_bin1207.fits scfile=/scratch/kocevski/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits outfile=/scratch/kocevski/982062/cmap_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.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 1.02
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/982062/ft1_filtered_4FGL_J1254.2-2205_daily_bin1207.fits scfile=/scratch/kocevski/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits outfile=/scratch/kocevski/982062/cmap_HighResolution_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.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.64
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/982062/ft1_filtered_4FGL_J1254.2-2205_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/982062/Model_4FGL_J1254.2-2205_daily_bin1207.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/982062/ft1_filtered_4FGL_J1254.2-2205_daily_bin1207.fits.....................!
real 46.04
user 44.40
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/982062/ft1_filtered_4FGL_J1254.2-2205_daily_bin1207.fits', '/scratch/kocevski/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits', expMap='/scratch/kocevski/982062/expmap_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.fits', expCube='/scratch/kocevski/982062/ltcube_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/982062/Model_4FGL_J1254.2-2205_daily_bin1207.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/982062/ft1_filtered_4FGL_J1254.2-2205_daily_bin1207.fits
Spacecraft file(s): /scratch/kocevski/982062/ft2_4FGL_J1254.2-2205_daily_bin1207.fits
Exposure map: /scratch/kocevski/982062/expmap_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.fits
Exposure cube: /scratch/kocevski/982062/ltcube_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/982062/Model_4FGL_J1254.2-2205_daily_bin1207.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5182.21705932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    160.68       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12218E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17271E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.907       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3581       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9524       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4483       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.794       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.269       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .59037       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1626       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=   5182.124     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2722 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5270        .11728E-06** at limit **
   2  Prefactor     160.78        93.043       -.80514E-07    .38132E-04
   3  Prefactor     .10000E-03    15.328        .21589E-07** at limit **
   4  Prefactor     .10000E-03    17.801        .12257E-05** at limit **
   5  Prefactor     .10000E-03    54.167        .21408E-05** at limit **
   6  Prefactor     22.901        27.109       -.36905E-06   -.11632E-04
   7  Prefactor     .10000E-03    6.5244       -.77937E-07** at limit **
   8  Prefactor     19.363        6.0659       -.42879E-07   -.76877E-06
   9  Prefactor     11.259        17.653       -.24065E-06   -.35905E-05
  10  Prefactor     .10000E-03    7.8502       -.40957E-07** at limit **
  11  norm          1.4393        1.0957       -.41742E-07   -.20672E-04
  12  Prefactor     .10000E-03    59.252       -.21023E-06** at limit **
  13  norm          .10000E-03    5.8709       -.14457E-06** at limit **
  14  norm          6.3569        6.3859       -.73746E-07   -.17550E-05
  15  Prefactor     .10000E-03    3.6772       -.77486E-07** at limit **
  16  norm          .10000E-03    1.9076       -.13895E-06** at limit **
  17  norm          .10000E-03    2.6905       -.47679E-07** at limit **
  18  Prefactor     1.9403        93.443       -.25193E-07   -.54216E-05
  19  Prefactor     6.4941        66.991       -.14800E-04   -.15462E-04
  20  Prefactor     21.798        39.651       -.81374E-06   -.72489E-06
  21  Prefactor     .10000E-03    6.1078       -.10405E-06** at limit **
  22  Prefactor     14.255        32.677        .74804E-05    .21315E-04
  23  Normalizat    .59047        .35860        .26557E-05    .14670E-05
  24  Prefactor     1.1626        .15418       -.41607E-06    .31725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 160.779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9008
  Prefactor  = 0.0001
  Prefactor  = 19.3632
  Prefactor  = 11.2591
  Prefactor  = 0.0001
  norm       = 1.43934
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.35694
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.94029
  Prefactor  = 6.49406
  Prefactor  = 21.7981
  Prefactor  = 0.0001
  Prefactor  = 14.2548
  Normalizat = 0.590475
  Prefactor  = 1.16257
 **********
 **   18 **HESSE 
 **********

 FCN=   5182.124     FROM HESSE     STATUS=OK           395 CALLS     3117 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5296        .11174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     160.78        91.858        .15906E-03   -1.3165    
   3  Prefactor     .10000E-03    15.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.901        27.051        .83691E-04   -1.4751    
   7  Prefactor     .10000E-03    6.5351        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.363        6.0639        .91019E-04   -1.4828    
   9  Prefactor     11.259        17.617        .11938E-03   -1.5037    
  10  Prefactor     .10000E-03    7.8513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4393        1.0956        .35958E-04   -1.5468    
  12  Prefactor     .10000E-03    59.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.8845        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3569        6.3748        .15918E-03   -1.5204    
  15  Prefactor     .10000E-03    3.7049        .13466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9220        .97077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7589        .23048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9403        93.932        .29697E-03   -1.5429    
  19  Prefactor     6.4941        67.367        .15805E-03   -1.5198    
  20  Prefactor     21.798        39.602        .85798E-04   -1.4774    
  21  Prefactor     .10000E-03    6.1212        .17373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.255        32.731        .10603E-03   -1.4953    
  23  Normalizat    .59047        .37709        .51080E-03   -1.0839    
  24  Prefactor     1.1626        .16637        .16884E-03   -.87491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9922e-11
Minuit parameter uncertainties:
  1  1.90317e-06
  2  91.9396
  3  7.01306e-07
  4  4.11087e-05
  5  3.32104e-05
  6  27.0657
  7  1.82724e-06
  8  6.06405
  9  17.6254
  10  6.8438e-07
  11  1.09558
  12  6.22252e-05
  13  1.62706e-06
  14  6.37553
  15  2.46465e-07
  16  5.33381e-07
  17  4.99484e-07
  18  27.0448
  19  41.8926
  20  39.65
  21  3.06291e-07
  22  32.7726
  23  0.378749
  24  0.166446
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  6.223e-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:  1.163e+00  1.664e-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:  5.905e-01  3.787e-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.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/982062/likelihoodResults_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.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) = 5182.12399962
delta logL = -8.03164393801e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5182.12392164
delta logL = -2.33120317716e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27175E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3896       1.0000          .0000       10.000    
     3 'Normalizat'    .59047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1626       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=   5182.124     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10329E-03    7.7781        .21431E-01** at limit **
   2  Index         2.3513        6.1684        .50000        .83628E-05
   3  Normalizat    .59047        .31227E-02    .51082E-03   -.20453E-04
   4  Prefactor     1.1626        .14209E-02    .16884E-03   -.66727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010329
  Index      = 2.35134
  Normalizat = 0.590475
  Prefactor  = 1.16257
 **********
 **   18 **HESSE 
 **********

 FCN=   5182.124     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10329E-03    92.202        .42862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3513        7.3422        .50000       -.55828    
   3  Normalizat    .59047        .10765E-01    .20433E-04   -1.0839    
   4  Prefactor     1.1626        .48982E-02    .67537E-05   -.87491    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.44876e-10
Minuit parameter uncertainties:
  1  0.0348889
  2  199.255
  3  0.0107646
  4  0.00489822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982062': 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) = 5182.12391959
delta logL = -2.85401256406e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.033e-04  3.489e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.351e+00  1.993e+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:  1.163e+00  4.898e-03  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:  5.905e-01  1.076e-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/982062/cmap_HighResolution_552182401_552441601_4FGL_J1254.2-2205_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-06 08:56:47.831667', job_id='982062', GAL2='1.16', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630943807.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-2.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1207' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:56:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 982062: <4FGL_J1254.2-2205_daily_bin1207> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1207> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 08:45:55 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:45:57 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:45:57 2021
Terminated at Mon Sep  6 08:56:50 2021
Results reported at Mon Sep  6 08:56:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1207 193.552 -22.0872 552182401 552441601 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 :                                   615.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            655 sec.

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

