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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1240
RA = 193.637, Dec = 22.1808
tmin = 560736001, tmax = 560995201
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='991532', job_status='RUN', time_executed='2021-09-06 09:18:55.100600', time_epoch_executed='1630945135.1' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991532/ft1_4FGL_J1254.5+2210_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991532/ft1_4FGL_J1254.5+2210_daily_bin1240.fits outfile=/scratch/kocevski/991532/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1240.fits ra=193.637 dec=22.1808 rad=12.0 tmin=560736001.0 tmax=560995201.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.96
user 3.58
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.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/991532/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/991532/ft1_filtered_4FGL_J1254.5+2210_daily_bin1240.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.68
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991532/ft1_filtered_4FGL_J1254.5+2210_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/991532/ltcube_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.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/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.fits
.....................!
real 11.90
user 11.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991532/ft1_filtered_4FGL_J1254.5+2210_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/991532/ltcube_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.fits outfile=/scratch/kocevski/991532/expmap_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.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/991532/ltcube_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.fits
.....................!
real 190.49
user 185.17
sys 4.77

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/991532/ft1_filtered_4FGL_J1254.5+2210_daily_bin1240.fits scfile=/scratch/kocevski/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.fits outfile=/scratch/kocevski/991532/cmap_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991532/ft1_filtered_4FGL_J1254.5+2210_daily_bin1240.fits scfile=/scratch/kocevski/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.fits outfile=/scratch/kocevski/991532/cmap_HighResolution_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.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.55
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991532/ft1_filtered_4FGL_J1254.5+2210_daily_bin1240.fits', '/scratch/kocevski/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.fits', expMap='/scratch/kocevski/991532/expmap_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.fits', expCube='/scratch/kocevski/991532/ltcube_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991532/Model_4FGL_J1254.5+2210_daily_bin1240.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/991532/ft1_filtered_4FGL_J1254.5+2210_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/991532/ft2_4FGL_J1254.5+2210_daily_bin1240.fits
Exposure map: /scratch/kocevski/991532/expmap_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.fits
Exposure cube: /scratch/kocevski/991532/ltcube_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991532/Model_4FGL_J1254.5+2210_daily_bin1240.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 68.3778683087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 66.8194230039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.9802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5058       1.0000         .10000E-03   10000.    
     7 'norm      '    .10498E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.5566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15770       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    912.19       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0566       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4582       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7873       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51985E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12759       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8374       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0127       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5549       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8539       1.0000         .10000E-03   10000.    
    22 'norm      '    9.2768       1.0000         .10000E-03   10000.    
    23 'norm      '    7.5637       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.0879       1.0000         .10000E-03   10000.    
    25 'norm      '    7.7069       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7548       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.6676       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3007       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   66.81345     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      336 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.454        .90712E-02** at limit **
   2  Prefactor     .10000E-03    33.544        .90712E-02** at limit **
   3  norm          7.9802        1.0020         .0000         .0000    
   4  Prefactor     1.8326        1.0431         .0000         .0000    
   5  Prefactor     3.2056        1.0127         .0000         .0000    
   6  Prefactor     2.5058        1.0214         .0000         .0000    
   7  norm          .10000E-03    .20571        .33193E-05** at limit **
   8  norm          6.5566        1.0029         .0000         .0000    
   9  Prefactor     .10000E-03    .23926       -.21261E-06** at limit **
  10  Prefactor     7.3878        1.0023         .0000         .0000    
  11  Prefactor     912.43        1.0001       -.40822E-06   -.18983E-01
  12  Prefactor     8.0566        1.0019         .0000         .0000    
  13  Prefactor     .10000E-03    .10633        .93221E-04** at limit **
  14  Prefactor     1.7873        1.0457         .0000         .0000    
  15  Prefactor     .10000E-03    .22916       -.49667E-05** at limit **
  16  norm          2.9938        1.0147         .0000         .0000    
  17  Prefactor     .10008E-03    .23242        .73316E-04** at limit **
  18  Prefactor     4.8374        1.0054         .0000         .0000    
  19  norm          3.0127        1.0145         .0000         .0000    
  20  norm          5.5549        1.0041         .0000         .0000    
  21  norm          1.8539        1.0420         .0000         .0000    
  22  norm          9.2768        1.0015         .0000         .0000    
  23  norm          7.5637        1.0022         .0000         .0000    
  24  Prefactor     .11554E-03    .12756        .15928E-03** at limit **
  25  norm          7.7069        1.0021         .0000         .0000    
  26  Prefactor     2.7548        1.0175         .0000         .0000    
  27  Prefactor     6.6676        1.0028         .0000         .0000    
  28  Normalizat    .10000E-01    .25715        .61966E-05** at limit **
  29  Prefactor     1.3021        1.0777       -.30781E-04    .24063E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.98016
  Prefactor  = 1.83259
  Prefactor  = 3.20562
  Prefactor  = 2.50582
  norm       = 0.0001
  norm       = 6.55658
  Prefactor  = 0.0001
  Prefactor  = 7.38783
  Prefactor  = 912.433
  Prefactor  = 8.05657
  Prefactor  = 0.000100001
  Prefactor  = 1.78728
  Prefactor  = 0.0001
  norm       = 2.99384
  Prefactor  = 0.000100077
  Prefactor  = 4.83739
  norm       = 3.01271
  norm       = 5.55486
  norm       = 1.85393
  norm       = 9.27679
  norm       = 7.56369
  Prefactor  = 0.000115535
  norm       = 7.7069
  Prefactor  = 2.75481
  Prefactor  = 6.66756
  Normalizat = 0.01
  Prefactor  = 1.30212
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   66.81345     FROM HESSE     STATUS=FAILED        15 CALLS      351 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.454        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          505.39        497.38         .0000       -1.5143    
   4  Prefactor     1.8326        1.0431         .0000       -1.5437    
   5  Prefactor     3.2056        1.0127         .0000       -1.5350    
   6  Prefactor     2.5058        1.0214         .0000       -1.5391    
   7  norm          .10000E-03    .20571        .33193E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5566        1.0029         .0000       -1.5196    
   9  Prefactor     .10000E-03    .23926       -.21261E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3878        1.0023         .0000       -1.5164    
  11  Prefactor     912.43        1.0001       -.40822E-06   -.95708    
  12  Prefactor     8.0566        1.0019         .0000       -1.5140    
  13  Prefactor     .10000E-03    .10633        .93221E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7873        1.0457         .0000       -1.5441    
  15  Prefactor     .10000E-03    .22916       -.49667E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9938        1.0147         .0000       -1.5362    
  17  Prefactor     .10008E-03    .23242        .73316E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8374        1.0054         .0000       -1.5268    
  19  norm          3.0127        1.0145         .0000       -1.5361    
  20  norm          5.5549        1.0041         .0000       -1.5237    
  21  norm          1.8539        1.0420         .0000       -1.5436    
  22  norm          9.2768        1.0015         .0000       -1.5099    
  23  norm          7.5637        1.0022         .0000       -1.5158    
  24  Prefactor     .11554E-03    .12756        .15928E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.7069        1.0021         .0000       -1.5153    
  26  Prefactor     2.7548        1.0175         .0000       -1.5376    
  27  Prefactor     6.6676        1.0028         .0000       -1.5191    
  28  Normalizat    .10000E-01    .25715        .61966E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.3021        1.0777       -.30781E-04   -.83244    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.18075e-11
Minuit parameter uncertainties:
  1  4.12917e-06
  2  2.24514e-05
  3  1.00198
  4  1.04314
  5  1.01271
  6  1.02144
  7  7.8071e-07
  8  1.00294
  9  5.35754e-08
  10  1.00231
  11  1.00012
  12  1.00194
  13  2.10514e-05
  14  1.04575
  15  1.81194e-06
  16  1.01467
  17  0.0002667
  18  1.00544
  19  1.01448
  20  1.00411
  21  1.04199
  22  1.00146
  23  1.0022
  24  0.00281539
  25  1.00212
  26  1.0175
  27  1.00284
  28  1.47742e-07
  29  1.09702
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 66.8134464393

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  1.046e+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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.302e+00  1.097e+00  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.000e-02  1.477e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.55e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991532/likelihoodResults_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.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): 101
logL (Free Index) = 66.8139043375
delta logL = -0.000457898138023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 66.8139043375
delta logL = -0.000457898138023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.0891       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   66.81390     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.0891        1.0176        .25300         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.08907
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   66.81390     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .47493        1.7068        .25300       -.62141    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991532': 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): 101
logL (Free Index) = 66.8139043375
delta logL = -0.000457898138023

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
302        Index:  2.089e+00  1.029e+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:  1.301e+00  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.010e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/991532/cmap_HighResolution_560736001_560995201_4FGL_J1254.5+2210_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.55e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-06 09:25:56.539082', job_id='991532', GAL2='1.30', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630945556.54', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='1.30', dlogl='-4.58e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1240' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:25:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 991532: <4FGL_J1254.5+2210_daily_bin1240> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1240> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:15:57 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:15:59 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:15:59 2021
Terminated at Mon Sep  6 09:25:57 2021
Results reported at Mon Sep  6 09:25:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1240 193.637 22.1808 560736001 560995201 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 :                                   318.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             275.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            600 sec.

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

