/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 134 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin2
RA = 193.637, Dec = 22.1808
tmin = 239846401, tmax = 240105601
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='984963', job_status='RUN', time_executed='2021-09-06 08:57:52.443598', time_epoch_executed='1630943872.44' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984963/ft1_4FGL_J1254.5+2210_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984963/ft2_4FGL_J1254.5+2210_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984963/ft1_4FGL_J1254.5+2210_daily_bin2.fits outfile=/scratch/kocevski/984963/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin2.fits ra=193.637 dec=22.1808 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.45
user 1.25
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984963/ft1_filtered_4FGL_J1254.5+2210_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/984963/ft2_4FGL_J1254.5+2210_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/984963/ltcube_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.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/984963/ft2_4FGL_J1254.5+2210_daily_bin2.fits
.....................!
real 12.39
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984963/ft1_filtered_4FGL_J1254.5+2210_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/984963/ft2_4FGL_J1254.5+2210_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/984963/ltcube_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.fits outfile=/scratch/kocevski/984963/expmap_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.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/984963/ltcube_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.fits
.....................!
real 189.75
user 185.09
sys 4.29

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/984963/ft1_filtered_4FGL_J1254.5+2210_daily_bin2.fits scfile=/scratch/kocevski/984963/ft2_4FGL_J1254.5+2210_daily_bin2.fits outfile=/scratch/kocevski/984963/cmap_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984963/ft1_filtered_4FGL_J1254.5+2210_daily_bin2.fits scfile=/scratch/kocevski/984963/ft2_4FGL_J1254.5+2210_daily_bin2.fits outfile=/scratch/kocevski/984963/cmap_HighResolution_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984963/ft1_filtered_4FGL_J1254.5+2210_daily_bin2.fits', '/scratch/kocevski/984963/ft2_4FGL_J1254.5+2210_daily_bin2.fits', expMap='/scratch/kocevski/984963/expmap_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.fits', expCube='/scratch/kocevski/984963/ltcube_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984963/Model_4FGL_J1254.5+2210_daily_bin2.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/984963/ft1_filtered_4FGL_J1254.5+2210_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/984963/ft2_4FGL_J1254.5+2210_daily_bin2.fits
Exposure map: /scratch/kocevski/984963/expmap_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.fits
Exposure cube: /scratch/kocevski/984963/ltcube_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984963/Model_4FGL_J1254.5+2210_daily_bin2.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) = 5616.90360822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4720       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .88324E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    8.8289       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14229E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2722       1.0000         .10000E-03   10000.    
    16 'norm      '    .10397E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.273       1.0000         .10000E-03   10000.    
    21 'norm      '    .21020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .16283E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .59677       1.0000         .10000E-03   10000.    
    25 'norm      '    10.459       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2127       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1833       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91916       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=   5616.863     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3798 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6674        3.2931        .62372E-02    .55256E-03
   2  Prefactor     .10000E-03    1.8964        .90712E-02** at limit **
   3  norm          .10000E-03    1.9023        .90712E-02** at limit **
   4  Prefactor     1.4724        1.8431        .88532E-02    .26755E-03
   5  Prefactor     16.839        4.0901        .24400E-02   -.11935E-03
   6  Prefactor     .10000E-03    2.7600        .90712E-02** at limit **
   7  norm          .88307E-01    .16600        .77339E-02    .20383E-02
   8  norm          8.8286        5.6516        .33724E-02    .39575E-03
   9  Prefactor     .10000E-03    3.3554        .90712E-02** at limit **
  10  Prefactor     .10000E-03    9.5773        .90712E-01** at limit **
  11  Prefactor     .10000E-03    37.171        .90712E-02** at limit **
  12  Prefactor     5.6368        307.00        .42314E-02   -.74072E-04
  13  Prefactor     .10000E-03    18.269        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.2429        .90712E-02** at limit **
  15  Prefactor     2.2731        8.5779        .68109E-02    .31716E-03
  16  norm          .10000E-03    2.2753        .42763E-01** at limit **
  17  Prefactor     26.219        16.055        .19555E-02    .64333E-03
  18  Prefactor     .10000E-03    9.5385        .90712E-02** at limit **
  19  norm          .10000E-03    1.8936        .90712E-02** at limit **
  20  norm          13.270        5.9742        .27487E-02    .18178E-03
  21  norm          .10000E-03    7.4408        .68045E-01** at limit **
  22  norm          .10000E-03    8.9464        .90712E-02** at limit **
  23  norm          .10000E-03    4.2408        .52068E-01** at limit **
  24  Prefactor     .39268        19.565        .18589        .90535E-04
  25  norm          10.462        7.8797        .30974E-02    .47351E-03
  26  Prefactor     1.2139        45.580        .10264E-01    .22961E-03
  27  Prefactor     .10000E-03    16.896        .90712E-02** at limit **
  28  Normalizat    1.1832        .19516        .54691E-01    .36949E-04
  29  Prefactor     .91945        .18951        .45249E-01    .50426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66741
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.47242
  Prefactor  = 16.8394
  Prefactor  = 0.0001
  norm       = 0.0883074
  norm       = 8.82863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.63676
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.27315
  norm       = 0.0001
  Prefactor  = 26.2186
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.2704
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.39268
  norm       = 10.4619
  Prefactor  = 1.2139
  Prefactor  = 0.0001
  Normalizat = 1.1832
  Prefactor  = 0.919454
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.863     FROM HESSE     STATUS=OK           565 CALLS     4363 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6674        3.2751        .14358E-03   -1.5381    
   2  Prefactor     .10000E-03    1.9328        .20088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9388        .10067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4724        1.8103        .10978E-03   -1.5465    
   5  Prefactor     16.839        4.0328        .69730E-04   -1.4887    
   6  Prefactor     .10000E-03    2.7695        .12152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .88307E-01    .14008        .39810E-03   -1.5649    
   8  norm          8.8286        5.6408        .13490E-03   -1.5114    
   9  Prefactor     .10000E-03    3.3590        .13408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    66.414        .43883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6368        301.40        .16925E-03   -1.5233    
  13  Prefactor     .10000E-03    18.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2458        .10961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2731        8.5434        .27244E-03   -1.5406    
  16  norm          .10000E-03    4.5711        .21733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.219        16.036        .78222E-04   -1.4683    
  18  Prefactor     .10000E-03    9.5430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9130        .10068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.270        5.1795        .10238E-03   -1.4979    
  21  norm          .10000E-03    18.479        .34472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.9570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.976        .29268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .39268        30.593        .12217       -1.5583    
  25  norm          10.462        7.7383        .12389E-03   -1.5061    
  26  Prefactor     1.2139        46.777        .41058E-03   -1.5488    
  27  Prefactor     .10000E-03    16.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1832        .22721        .24183E-03   -.87124    
  29  Prefactor     .91945        .22078        .27640E-03   -.95465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07042e-09
Minuit parameter uncertainties:
  1  3.27534
  2  9.10973e-07
  3  4.75317e-08
  4  1.81037
  5  4.03285
  6  1.14332e-06
  7  0.140081
  8  5.64118
  9  9.47522e-08
  10  0.00018406
  11  0.000311029
  12  82.8786
  13  0.000211844
  14  3.26593e-07
  15  8.54802
  16  1.79032e-06
  17  16.0386
  18  2.77031e-05
  19  1.3121e-06
  20  5.17968
  21  0.000213784
  22  5.17921e-06
  23  3.03592e-05
  24  6.93486
  25  7.73909
  26  15.0829
  27  3.05169e-05
  28  0.227399
  29  0.220991
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.266e-07  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:  9.195e-01  2.210e-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.183e+00  2.274e-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: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984963/likelihoodResults_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.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) = 5616.86487473
delta logL = -0.0020805692493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5616.86279391
delta logL = 2.45367118623e-07

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.0722       1.0000          .0000       10.000    
     3 'Normalizat'    1.1832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91943       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5616.863     FROM MIGRAD    STATUS=FAILED        91 CALLS      242 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10434E-03    2.5930        .11089E-01** at limit **
   2  Index         1.8605        5.9292        .50000        .33939E-04
   3  Normalizat    1.1832        .47829E-02    .24183E-03   -.33895E-04
   4  Prefactor     .91945        .49123E-02    .27640E-03    .10735E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5616.863     FROM SIMPLEX   STATUS=PROGRESS      94 CALLS      336 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10094E-03    2.5930        .20461E-03** at limit **
   2  Index         1.7734        5.9292        .32739E-01    .33939E-04
   3  Normalizat    1.1831        .47829E-02    .37730E-04   -.33895E-04
   4  Prefactor     .91937        .49123E-02    .39490E-04    .10735E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5616.863     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      381 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    6.2384        .11703E-01** at limit **
   2  Index         1.6540        7.0240        .50000        .68609E-05
   3  Normalizat    1.1832        .72230E-02    .96732E-05    .46682E-03
   4  Prefactor     .91946        .74183E-02    .11056E-04    .66817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010014
  Index      = 1.65405
  Normalizat = 1.1832
  Prefactor  = 0.919458
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.863     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      410 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    143.36        .12037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6540        8.4280        .50000       -.73312    
   3  Normalizat    1.1832        .36811E-01    .19346E-05   -.87124    
   4  Prefactor     .91946        .37794E-01    .22112E-05   -.95464    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.20511e-09
Minuit parameter uncertainties:
  1  0.00898557
  2  881.49
  3  0.0368122
  4  0.0377949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984963': 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) = 5616.8627904
delta logL = 3.75832405553e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.001e-04  8.986e-03  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.654e+00  8.815e+02  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:  9.195e-01  3.779e-02  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.183e+00  3.681e-02  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/984963/cmap_HighResolution_239846401_240105601_4FGL_J1254.5+2210_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-03', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-09-06 09:10:41.604057', job_id='984963', GAL2='0.92', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630944641.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='2' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 984963: <4FGL_J1254.5+2210_daily_bin2> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin2> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:27 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:28 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:55:28 2021
Terminated at Mon Sep  6 09:10:42 2021
Results reported at Mon Sep  6 09:10:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin2 193.637 22.1808 239846401 240105601 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 :                                   766.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

