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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1122
RA = 193.637, Dec = 22.1808
tmin = 530150401, tmax = 530409601
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='991313', job_status='RUN', time_executed='2021-09-06 09:16:23.172479', time_epoch_executed='1630944983.17' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991313/ft1_4FGL_J1254.5+2210_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991313/ft2_4FGL_J1254.5+2210_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991313/ft1_4FGL_J1254.5+2210_daily_bin1122.fits outfile=/scratch/kocevski/991313/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1122.fits ra=193.637 dec=22.1808 rad=12.0 tmin=530150401.0 tmax=530409601.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.94
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991313/ft1_filtered_4FGL_J1254.5+2210_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/991313/ft2_4FGL_J1254.5+2210_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/991313/ltcube_530150401_530409601_4FGL_J1254.5+2210_daily_bin1122.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/991313/ft2_4FGL_J1254.5+2210_daily_bin1122.fits
.....................!
real 11.96
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991313/ft1_filtered_4FGL_J1254.5+2210_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/991313/ft2_4FGL_J1254.5+2210_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/991313/ltcube_530150401_530409601_4FGL_J1254.5+2210_daily_bin1122.fits outfile=/scratch/kocevski/991313/expmap_530150401_530409601_4FGL_J1254.5+2210_daily_bin1122.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/991313/ltcube_530150401_530409601_4FGL_J1254.5+2210_daily_bin1122.fits
.....................!
real 191.21
user 185.99
sys 4.89

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/991313/ft1_filtered_4FGL_J1254.5+2210_daily_bin1122.fits scfile=/scratch/kocevski/991313/ft2_4FGL_J1254.5+2210_daily_bin1122.fits outfile=/scratch/kocevski/991313/cmap_530150401_530409601_4FGL_J1254.5+2210_daily_bin1122.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991313/ft1_filtered_4FGL_J1254.5+2210_daily_bin1122.fits scfile=/scratch/kocevski/991313/ft2_4FGL_J1254.5+2210_daily_bin1122.fits outfile=/scratch/kocevski/991313/cmap_HighResolution_530150401_530409601_4FGL_J1254.5+2210_daily_bin1122.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5061       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8679       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7849       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27158       1.0000         .10000E-03   10000.    
     7 'norm      '    .35623       1.0000         .10000E-03   10000.    
     8 'norm      '    4.7738       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7440       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3390       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4704       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0045       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8704       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    25.944       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.7452       1.0000         .10000E-03   10000.    
    25 'norm      '    10.214       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84175       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3002       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=   6020.598     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3166 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72911        3.9621        .16072E-05   -.18674E-03
   2  Prefactor     2.5100        3.5468       -.32365E-06   -.21959E-03
   3  norm          6.8677        3.3462        .25298E-07    .13542E-04
   4  Prefactor     1.7848        1.8296        .15512E-07   -.17460E-04
   5  Prefactor     3.6933        2.3931        .63718E-07   -.66906E-04
   6  Prefactor     .22707        8.1063        .30157E-06    .16881E-04
   7  norm          .35633        .22874       -.65232E-08   -.62237E-03
   8  norm          4.7780        3.9757       -.37404E-06   -.35144E-03
   9  Prefactor     5.7416        9.8233        .34212E-06    .10780E-04
  10  Prefactor     .10000E-03    3.1980        .33197E-07** at limit **
  11  Prefactor     .10000E-03    8.3555       -.51772E-07** at limit **
  12  Prefactor     .10000E-03    36.136       -.23203E-06** at limit **
  13  Prefactor     .10000E-03    29.742        .16422E-06** at limit **
  14  Prefactor     .10000E-03    2.8062        .14515E-07** at limit **
  15  Prefactor     3.3376        10.801        .11869E-05    .18453E-04
  16  norm          1.4741        3.9057        .34660E-06   -.15239E-03
  17  Prefactor     .10000E-03    7.9377        .14247E-06** at limit **
  18  Prefactor     4.9759        32.312        .27081E-05    .61290E-04
  19  norm          2.8702        2.6523        .34872E-07   -.11368E-04
  20  norm          .10000E-03    .92148        .62350E-07** at limit **
  21  norm          .10000E-03    1.3227        .24769E-07** at limit **
  22  norm          .10000E-03    7.5893       -.55320E-07** at limit **
  23  norm          25.943        9.2899        .21104E-06    .11552E-03
  24  Prefactor     9.6346        34.063       -.14342E-05   -.31018E-04
  25  norm          10.213        8.8443        .19832E-06    .48289E-04
  26  Prefactor     .10000E-03    8.3089        .15350E-07** at limit **
  27  Prefactor     .10000E-03    4.8087        .29326E-08** at limit **
  28  Normalizat    .84168        .18690       -.96726E-06   -.77282E-04
  29  Prefactor     1.3005        .19604        .10106E-06   -.11718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.72911
  Prefactor  = 2.50998
  norm       = 6.86773
  Prefactor  = 1.7848
  Prefactor  = 3.69326
  Prefactor  = 0.227073
  norm       = 0.356329
  norm       = 4.77796
  Prefactor  = 5.74157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33762
  norm       = 1.47408
  Prefactor  = 0.0001
  Prefactor  = 4.97594
  norm       = 2.87018
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 25.9425
  Prefactor  = 9.63457
  norm       = 10.2128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.841684
  Prefactor  = 1.30046
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.598     FROM HESSE     STATUS=OK           561 CALLS     3727 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72911        4.3522        .27178E-02   -1.5537    
   2  Prefactor     2.5100        3.4913        .14861E-03   -1.5391    
   3  norm          6.8677        3.3526        .93375E-04   -1.5184    
   4  Prefactor     1.7848        1.8235        .10065E-03   -1.5441    
   5  Prefactor     3.6933        2.3851        .91011E-04   -1.5324    
   6  Prefactor     .22707        73.126        .38947E-02   -1.5613    
   7  norm          .35633        .22271        .27873E-04   -1.5589    
   8  norm          4.7780        4.1104        .13233E-03   -1.5271    
   9  Prefactor     5.7416        9.8328        .16759E-03   -1.5229    
  10  Prefactor     .10000E-03    3.2063        .13551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8212        .12693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3376        10.785        .22150E-03   -1.5343    
  16  norm          1.4741        3.8790        .20932E-03   -1.5465    
  17  Prefactor     .10000E-03    7.9746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9759        33.648        .17976E-03   -1.5262    
  19  norm          2.8702        2.6518        .11788E-03   -1.5369    
  20  norm          .10000E-03    .92341        .72654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3227        .87139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.6057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          25.943        9.3033        .78648E-04   -1.4689    
  24  Prefactor     9.6346        34.201        .12837E-03   -1.5087    
  25  norm          10.213        8.8426        .12537E-03   -1.5069    
  26  Prefactor     .10000E-03    8.3506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.8100        .16618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .84168        .21710        .27534E-03   -.98541    
  29  Prefactor     1.3005        .23072        .24716E-03   -.83293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45486e-08
Minuit parameter uncertainties:
  1  3.56287
  2  3.49159
  3  3.35271
  4  1.82353
  5  2.38521
  6  8.15811
  7  0.222714
  8  4.11061
  9  9.8356
  10  2.33437e-06
  11  4.58578e-06
  12  3.23778e-05
  13  1.17787e-06
  14  1.9526e-06
  15  10.7913
  16  3.87962
  17  5.22844e-06
  18  25.8997
  19  2.65189
  20  2.17035e-06
  21  1.14709e-06
  22  4.48542e-06
  23  9.30381
  24  34.2705
  25  8.84377
  26  2.76418e-06
  27  4.07186e-07
  28  0.217322
  29  0.230897
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.953e-06  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.300e+00  2.309e-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:  8.417e-01  2.173e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991313/likelihoodResults_530150401_530409601_4FGL_J1254.5+2210_daily_bin1122.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) = 6020.60009076
delta logL = -0.00167736708863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6020.59841343
delta logL = -3.11802068609e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0733       1.0000          .0000       10.000    
     3 'Normalizat'    .84169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3005       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=   6020.598     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10143E-03    51.545        .12821E-02** at limit **
   2  Index         1.9989        5.0897        .50000        .34713E-04
   3  Normalizat    .84168        .19005E-01    .27535E-03   -.16639E-04
   4  Prefactor     1.3005        .20791E-01    .24716E-03   -.19917E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6020.598     FROM SIMPLEX   STATUS=PROGRESS     120 CALLS      359 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    51.545        .25199E-03** at limit **
   2  Index         1.9982        5.0897        .25958E-03    .34713E-04
   3  Normalizat    .84168        .19005E-01    .42043E-05   -.16639E-04
   4  Prefactor     1.3005        .20791E-01    .32524E-05   -.19917E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6020.598     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      409 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.486        .25642E-02** at limit **
   2  Index         1.7185        6.8516        .50000       -.26671E-07
   3  Normalizat    .84168        .16561E-01    .11014E-04    .43766E-04
   4  Prefactor     1.3005        .18119E-01    .98865E-05    .60716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.71852
  Normalizat = 0.841684
  Prefactor  = 1.30046
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.598     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      438 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.34        .51283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7185        8.9403        .50000       -.71590    
   3  Normalizat    .84168        .41179E-01    .22028E-05   -.98541    
   4  Prefactor     1.3005        .45033E-01    .19773E-05   -.83293    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.04499e-12
Minuit parameter uncertainties:
  1  2.71886e-05
  2  843.176
  3  0.0411806
  4  0.0450347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991313': 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) = 6020.59841131
delta logL = 2.08164874493e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.719e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.719e+00  8.432e+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:  1.300e+00  4.503e-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:  8.417e-01  4.118e-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/991313/cmap_HighResolution_530150401_530409601_4FGL_J1254.5+2210_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-03', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-09-06 09:29:05.248996', job_id='991313', GAL2='1.30', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630945745.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='2.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1122' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:29:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 991313: <4FGL_J1254.5+2210_daily_bin1122> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1122 193.637 22.1808 530150401 530409601 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 :                                   753.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

