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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin693
RA = 193.552, Dec = -22.0872
tmin = 418953601, tmax = 419212801
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='980084', job_status='RUN', time_executed='2021-09-06 08:41:32.932170', time_epoch_executed='1630942892.93' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980084/ft1_4FGL_J1254.2-2205_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980084/ft2_4FGL_J1254.2-2205_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980084/ft1_4FGL_J1254.2-2205_daily_bin693.fits outfile=/scratch/kocevski/980084/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin693.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.66
user 5.28
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/980084/ft2_4FGL_J1254.2-2205_daily_bin693.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/980084/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin693.fits evtable="EVENTS" outfile="/scratch/kocevski/980084/ft1_filtered_4FGL_J1254.2-2205_daily_bin693.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.75
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980084/ft1_filtered_4FGL_J1254.2-2205_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/980084/ft2_4FGL_J1254.2-2205_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/980084/ltcube_418953601_419212801_4FGL_J1254.2-2205_daily_bin693.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/980084/ft2_4FGL_J1254.2-2205_daily_bin693.fits
.....................!
real 12.31
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980084/ft1_filtered_4FGL_J1254.2-2205_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/980084/ft2_4FGL_J1254.2-2205_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/980084/ltcube_418953601_419212801_4FGL_J1254.2-2205_daily_bin693.fits outfile=/scratch/kocevski/980084/expmap_418953601_419212801_4FGL_J1254.2-2205_daily_bin693.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/980084/ltcube_418953601_419212801_4FGL_J1254.2-2205_daily_bin693.fits
.....................!
real 193.51
user 187.26
sys 4.51

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/980084/ft1_filtered_4FGL_J1254.2-2205_daily_bin693.fits scfile=/scratch/kocevski/980084/ft2_4FGL_J1254.2-2205_daily_bin693.fits outfile=/scratch/kocevski/980084/cmap_418953601_419212801_4FGL_J1254.2-2205_daily_bin693.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980084/ft1_filtered_4FGL_J1254.2-2205_daily_bin693.fits scfile=/scratch/kocevski/980084/ft2_4FGL_J1254.2-2205_daily_bin693.fits outfile=/scratch/kocevski/980084/cmap_HighResolution_418953601_419212801_4FGL_J1254.2-2205_daily_bin693.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11992E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    94.102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.962       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8097       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1533       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7467       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2872       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4417       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1452       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .18318E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .85419       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8575       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9068       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3711       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0333       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=   8392.748     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2728 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.730       -.77913E-05** at limit **
   2  Prefactor     94.098        69.589       -.32868E-05   -.55644E-04
   3  Prefactor     .10000E-03    24.092       -.85373E-05** at limit **
   4  Prefactor     .10000E-03    16.527        .15235E-04** at limit **
   5  Prefactor     .10000E-03    31.521        .23198E-04** at limit **
   6  Prefactor     21.946        33.532       -.14907E-04    .55233E-04
   7  Prefactor     1.8084        6.9340       -.45619E-06   -.41038E-03
   8  Prefactor     7.1532        2.8876       -.15479E-07    .17630E-03
   9  Prefactor     9.7415        18.624       -.67244E-06    .33340E-04
  10  Prefactor     .10000E-03    24.015       -.86909E-05** at limit **
  11  norm          2.2870        1.1533       -.14965E-07    .35361E-03
  12  Prefactor     .10000E-03    76.954       -.98776E-05** at limit **
  13  norm          1.4420        5.3484       -.40146E-05   -.63448E-04
  14  norm          1.1398        2.5517        .63941E-06   -.11344E-02
  15  Prefactor     .10000E-03    3.8014       -.27853E-06** at limit **
  16  norm          .10007E-03    3.3591       -.20177E-05** at limit **
  17  norm          .85459        2.0638       -.35767E-06   -.19363E-03
  18  Prefactor     21.018        12.160       -.22665E-06    .26485E-04
  19  Prefactor     1.8635        13.614       -.12736E-05   -.23906E-03
  20  Prefactor     10.968        18.777       -.88742E-06    .80892E-05
  21  Prefactor     8.9069        8.0439       -.12983E-06    .17936E-04
  22  Prefactor     .10000E-03    10.526        .92421E-06** at limit **
  23  Normalizat    1.3712        .25226        .24870E-05    .32250E-03
  24  Prefactor     1.0332        .11444        .52247E-06    .63422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 94.0983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9462
  Prefactor  = 1.80844
  Prefactor  = 7.15318
  Prefactor  = 9.74155
  Prefactor  = 0.0001
  norm       = 2.28698
  Prefactor  = 0.0001
  norm       = 1.44197
  norm       = 1.13984
  Prefactor  = 0.0001
  norm       = 0.000100074
  norm       = 0.854592
  Prefactor  = 21.0176
  Prefactor  = 1.8635
  Prefactor  = 10.9675
  Prefactor  = 8.90688
  Prefactor  = 0.0001
  Normalizat = 1.37117
  Prefactor  = 1.03324
 **********
 **   18 **HESSE 
 **********

 FCN=   8392.748     FROM HESSE     STATUS=OK           399 CALLS     3127 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     94.098        69.694        .41430E-04   -1.3765    
   3  Prefactor     .10000E-03    24.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.946        33.577        .85470E-04   -1.4771    
   7  Prefactor     1.8084        7.5699        .15529E-02   -1.5439    
   8  Prefactor     7.1532        2.8870        .91355E-04   -1.5173    
   9  Prefactor     9.7415        18.624        .12836E-03   -1.5084    
  10  Prefactor     .10000E-03    24.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2870        1.1491        .66793E-04   -1.5406    
  12  Prefactor     .10000E-03    77.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4420        5.3109        .35923E-03   -1.5468    
  14  norm          1.1398        7.0812        .21675E-02   -1.5494    
  15  Prefactor     .10000E-03    3.8528        .17421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10007E-03    13.403        .32009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .85459        2.0341        .19496E-03   -1.5523    
  18  Prefactor     21.018        12.170        .87366E-04   -1.4791    
  19  Prefactor     1.8635        14.690        .15290E-02   -1.5435    
  20  Prefactor     10.968        18.775        .12098E-03   -1.5045    
  21  Prefactor     8.9069        8.0435        .13430E-03   -1.5111    
  22  Prefactor     .10000E-03    10.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3712        .29510        .37858E-03   -.81466    
  24  Prefactor     1.0332        .13352        .19470E-03   -.91630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03969e-08
Minuit parameter uncertainties:
  1  0.000341862
  2  69.7549
  3  0.000121178
  4  2.15622e-05
  5  3.22421e-05
  6  33.6057
  7  7.4013
  8  2.88708
  9  18.6347
  10  8.406e-06
  11  1.14914
  12  8.25607e-05
  13  5.31261
  14  5.68277
  15  1.43976e-05
  16  0.00198896
  17  2.03425
  18  12.1712
  19  10.4675
  20  18.7847
  21  8.04443
  22  1.92073e-05
  23  0.29547
  24  0.133561
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  8.256e-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.033e+00  1.336e-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.371e+00  2.955e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980084/likelihoodResults_418953601_419212801_4FGL_J1254.2-2205_daily_bin693.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) = 8392.74845844
delta logL = -6.17119167146e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8392.74839676
delta logL = -3.71383066522e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1446       1.0000          .0000       10.000    
     3 'Normalizat'    1.3712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0332       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=   8392.748     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1547.4        .90712E-02** at limit **
   2  Index         2.1717        8.4541        .50000       -.33140E-05
   3  Normalizat    1.3712        .31340E-01    .85505E-01    .30397E-04
   4  Prefactor     1.0332        .14325E-01    .41011E-01    .27336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.17166
  Normalizat = 1.37117
  Prefactor  = 1.03323
 **********
 **   18 **HESSE 
 **********

 FCN=   8392.748     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7316.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1717        6.2294        .50000       -.60124    
   3  Normalizat    1.3712        .62175E-01    .37858E-03   -.81466    
   4  Prefactor     1.0332        .28467E-01    .19470E-03   -.91630    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.58282e-09
Minuit parameter uncertainties:
  1  0.0133978
  2  36.076
  3  0.0621779
  4  0.0284679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980084': 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) = 8392.74839674
delta logL = -1.57142494572e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.033e+00  2.847e-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.371e+00  6.218e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/980084/cmap_HighResolution_418953601_419212801_4FGL_J1254.2-2205_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-06 08:55:25.538543', job_id='980084', GAL2='1.03', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630943725.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-1.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='693' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:55:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 980084: <4FGL_J1254.2-2205_daily_bin693> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:40:23 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:40:25 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:40:25 2021
Terminated at Mon Sep  6 08:55:26 2021
Results reported at Mon Sep  6 08:55:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin693 193.552 -22.0872 418953601 419212801 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 :                                   828.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

