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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1430
RA = 193.637, Dec = 22.1808
tmin = 609984001, tmax = 610243201
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='992845', job_status='RUN', time_executed='2021-09-06 09:22:29.505591', time_epoch_executed='1630945349.51' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992845/ft1_4FGL_J1254.5+2210_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992845/ft1_4FGL_J1254.5+2210_daily_bin1430.fits outfile=/scratch/kocevski/992845/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1430.fits ra=193.637 dec=22.1808 rad=12.0 tmin=609984001.0 tmax=610243201.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.39
user 4.84
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.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/992845/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1430.fits evtable="EVENTS" outfile="/scratch/kocevski/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/992845/ltcube_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.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/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits
.....................!
real 11.61
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/992845/ltcube_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.fits outfile=/scratch/kocevski/992845/expmap_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.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/992845/ltcube_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.fits
.....................!
real 191.28
user 185.66
sys 5.16

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.fits scfile=/scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits outfile=/scratch/kocevski/992845/cmap_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.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.637 yref=22.1808 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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.fits scfile=/scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits outfile=/scratch/kocevski/992845/cmap_HighResolution_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.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.637 yref=22.1808 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992845/Model_4FGL_J1254.5+2210_daily_bin1430.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/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.fits.....................!
real 44.52
user 42.94
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.fits', '/scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits', expMap='/scratch/kocevski/992845/expmap_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.fits', expCube='/scratch/kocevski/992845/ltcube_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992845/Model_4FGL_J1254.5+2210_daily_bin1430.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/992845/ft1_filtered_4FGL_J1254.5+2210_daily_bin1430.fits
Spacecraft file(s): /scratch/kocevski/992845/ft2_4FGL_J1254.5+2210_daily_bin1430.fits
Exposure map: /scratch/kocevski/992845/expmap_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.fits
Exposure cube: /scratch/kocevski/992845/ltcube_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992845/Model_4FGL_J1254.5+2210_daily_bin1430.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) = 4888.69234249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7217       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3753       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .38444       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.977       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0901       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.993       1.0000         .10000E-03   10000.    
    12 'Prefactor '    74.702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3737       1.0000         .10000E-03   10000.    
    16 'norm      '    9.3127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.488       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.080       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    31.318       1.0000         .10000E-03   10000.    
    23 'norm      '    .10755E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    27.741       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    52.252       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4888.656     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3681 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5931        .58520E-07** at limit **
   2  Prefactor     .10000E-03    2.5844        .11930E-06** at limit **
   3  norm          1.7216        1.7023       -.10506E-07    .61290E-05
   4  Prefactor     2.3752        1.9549        .71869E-08   -.13288E-04
   5  Prefactor     7.8342        3.2811        .31732E-07   -.42949E-04
   6  Prefactor     .10000E-03    3.1826        .63465E-07** at limit **
   7  norm          .38441        .25068        .17859E-07   -.15260E-03
   8  norm          .10000E-03    1.9177        .41399E-07** at limit **
   9  Prefactor     18.978        13.229       -.21386E-07   -.60048E-05
  10  Prefactor     7.0895        7.9298        .20739E-07   -.80480E-05
  11  Prefactor     33.990        27.238        .37839E-06    .28914E-04
  12  Prefactor     74.679        69.644        .38293E-05    .86732E-04
  13  Prefactor     .10000E-03    30.564       -.24339E-05** at limit **
  14  Prefactor     .10000E-03    6.9688        .20338E-06** at limit **
  15  Prefactor     2.3791        14.480        .77902E-05   -.10523E-03
  16  norm          9.3122        5.6648       -.15691E-06   -.84416E-04
  17  Prefactor     58.479        23.142        .12863E-06    .99777E-04
  18  Prefactor     .10000E-03    49.932        .74515E-06** at limit **
  19  norm          .10000E-03    3.4492       -.17498E-06** at limit **
  20  norm          12.078        5.7731       -.15309E-07   -.10836E-03
  21  norm          .10000E-03    5.0925        .49634E-07** at limit **
  22  norm          31.319        24.869       -.11378E-06   -.45161E-04
  23  norm          .10000E-03    9.5552       -.13977E-06** at limit **
  24  Prefactor     .10000E-03    26.937        .20547E-05** at limit **
  25  norm          27.740        13.481        .17712E-06    .16814E-04
  26  Prefactor     .10000E-03    6.7693       -.30516E-06** at limit **
  27  Prefactor     52.245        32.497        .94974E-06    .62626E-04
  28  Normalizat    1.0789        .21142        .59463E-06   -.69207E-04
  29  Prefactor     .67437        .19897       -.24321E-05   -.99247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72164
  Prefactor  = 2.37524
  Prefactor  = 7.83423
  Prefactor  = 0.0001
  norm       = 0.384411
  norm       = 0.0001
  Prefactor  = 18.9775
  Prefactor  = 7.08953
  Prefactor  = 33.9896
  Prefactor  = 74.6788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.37913
  norm       = 9.31223
  Prefactor  = 58.4793
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.0779
  norm       = 0.0001
  norm       = 31.3185
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 27.7399
  Prefactor  = 0.0001
  Prefactor  = 52.2449
  Normalizat = 1.07887
  Prefactor  = 0.674369
 **********
 **   18 **HESSE 
 **********

 FCN=   4888.656     FROM HESSE     STATUS=OK           551 CALLS     4232 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6115        .86146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6617        .21937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7216        1.7219        .88114E-04   -1.5446    
   4  Prefactor     2.3752        1.9546        .85767E-04   -1.5400    
   5  Prefactor     7.8342        3.2831        .77726E-04   -1.5148    
   6  Prefactor     .10000E-03    3.1942        .12180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38441        .24792        .26904E-04   -1.5584    
   8  norm          .10000E-03    1.9277        .94541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.978        13.230        .91940E-04   -1.4836    
  10  Prefactor     7.0895        7.9299        .15065E-03   -1.5175    
  11  Prefactor     33.990        27.257        .68730E-04   -1.4541    
  12  Prefactor     74.679        69.846        .23227E-03   -1.3977    
  13  Prefactor     .10000E-03    30.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0295        .18023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3791        14.657        .13296E-02   -1.5399    
  16  norm          9.3122        5.6699        .12275E-03   -1.5098    
  17  Prefactor     58.479        23.218        .52458E-04   -1.4177    
  18  Prefactor     .10000E-03    50.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.4704        .24833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.078        5.7685        .10959E-03   -1.5013    
  21  norm          .10000E-03    5.0996        .15376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          31.319        24.755        .71598E-04   -1.4588    
  23  norm          .10000E-03    9.6863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          27.740        13.446        .76063E-04   -1.4654    
  26  Prefactor     .10000E-03    6.7781        .17771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     52.245        32.609        .55484E-04   -1.4261    
  28  Normalizat    1.0789        .25132        .25073E-03   -.90433    
  29  Prefactor     .67437        .23456        .30008E-03   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1282e-10
Minuit parameter uncertainties:
  1  4.17309e-06
  2  1.0203e-05
  3  1.72199
  4  1.95467
  5  3.28314
  6  6.44512e-06
  7  0.247925
  8  3.28715e-06
  9  13.232
  10  7.93104
  11  27.2665
  12  69.9228
  13  0.000220589
  14  2.33829e-05
  15  11.8145
  16  5.67025
  17  23.2215
  18  8.14942e-05
  19  1.83826e-05
  20  5.76879
  21  6.42922e-06
  22  24.7633
  23  3.6171e-06
  24  0.000189375
  25  13.4476
  26  2.04789e-05
  27  32.6199
  28  0.251603
  29  0.234904
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.338e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  6.744e-01  2.349e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.079e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992845/likelihoodResults_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.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) = 4888.6563804
delta logL = -0.000677667590026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4888.65570277
delta logL = -3.70373527403e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1096       1.0000          .0000       10.000    
     3 'Normalizat'    1.0789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67435       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4888.656     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.54        .90712E-02** at limit **
   2  Index         2.1309        8.8094        .50000       -.24861E-04
   3  Normalizat    1.0789        .19447E-01    .56700E-01    .59287E-04
   4  Prefactor     .67437        .18896E-01    .67813E-01    .54515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13089
  Normalizat = 1.07886
  Prefactor  = 0.67437
 **********
 **   18 **HESSE 
 **********

 FCN=   4888.656     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1309        6.0629        .50000       -.61116    
   3  Normalizat    1.0789        .23678        .25072E-03   -.90433    
   4  Prefactor     .67437        .22975        .30008E-03   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23733e-10
Minuit parameter uncertainties:
  1  5.37826e-05
  2  4.11299
  3  0.237011
  4  0.23007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992845': 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) = 4888.65570248
delta logL = 2.51546225627e-07

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.378e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.131e+00  4.113e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  6.744e-01  2.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.079e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

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/992845/cmap_HighResolution_609984001_610243201_4FGL_J1254.5+2210_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-06 09:34:22.315362', job_id='992845', GAL2='0.67', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630946062.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1430' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:34:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 992845: <4FGL_J1254.5+2210_daily_bin1430> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1430> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:34 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:20:35 2021
Terminated at Mon Sep  6 09:34:23 2021
Results reported at Mon Sep  6 09:34:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1430 193.637 22.1808 609984001 610243201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

