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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1599
RA = 193.637, Dec = 22.1808
tmin = 653788801, tmax = 654048001
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='952565', job_status='RUN', time_executed='2021-09-23 00:25:17.850731', time_epoch_executed='1632381917.85' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952565

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952565/ft1_4FGL_J1254.5+2210_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952565/ft2_4FGL_J1254.5+2210_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952565/ft1_4FGL_J1254.5+2210_daily_bin1599.fits outfile=/scratch/kocevski/952565/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1599.fits ra=193.637 dec=22.1808 rad=12.0 tmin=653788801.0 tmax=654048001.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.21
user 3.00
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952565/ft2_4FGL_J1254.5+2210_daily_bin1599.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/952565/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/952565/ft1_filtered_4FGL_J1254.5+2210_daily_bin1599.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.47
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952565/ft1_filtered_4FGL_J1254.5+2210_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/952565/ft2_4FGL_J1254.5+2210_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/952565/ltcube_653788801_654048001_4FGL_J1254.5+2210_daily_bin1599.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/952565/ft2_4FGL_J1254.5+2210_daily_bin1599.fits
.....................!
real 13.29
user 12.93
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952565/ft1_filtered_4FGL_J1254.5+2210_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/952565/ft2_4FGL_J1254.5+2210_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/952565/ltcube_653788801_654048001_4FGL_J1254.5+2210_daily_bin1599.fits outfile=/scratch/kocevski/952565/expmap_653788801_654048001_4FGL_J1254.5+2210_daily_bin1599.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/952565/ltcube_653788801_654048001_4FGL_J1254.5+2210_daily_bin1599.fits
.....................!
real 155.52
user 151.92
sys 3.27

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/952565/ft1_filtered_4FGL_J1254.5+2210_daily_bin1599.fits scfile=/scratch/kocevski/952565/ft2_4FGL_J1254.5+2210_daily_bin1599.fits outfile=/scratch/kocevski/952565/cmap_653788801_654048001_4FGL_J1254.5+2210_daily_bin1599.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.48
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952565/ft1_filtered_4FGL_J1254.5+2210_daily_bin1599.fits scfile=/scratch/kocevski/952565/ft2_4FGL_J1254.5+2210_daily_bin1599.fits outfile=/scratch/kocevski/952565/cmap_HighResolution_653788801_654048001_4FGL_J1254.5+2210_daily_bin1599.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.51
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7473       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3995       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    46.412       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.304       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19801E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.739       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.379       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4100       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0869       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.504       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7168       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11301E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .15280E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.805       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5995       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3176       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86451       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=   6742.563     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3803 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6263       -.32062E-06** at limit **
   2  Prefactor     4.7472        3.1106        .31257E-06    .62624E-03
   3  norm          7.3999        3.3069       -.85551E-09   -.13562E-03
   4  Prefactor     2.6415        1.7968       -.35370E-07   -.15607E-03
   5  Prefactor     3.6908        2.0970        .20523E-07   -.21673E-03
   6  Prefactor     .10000E-03    1.6422       -.51479E-07** at limit **
   7  norm          .10000E-03    .12138       -.29580E-06** at limit **
   8  norm          46.414        9.0125        .18188E-06    .56559E-04
   9  Prefactor     10.305        18.332       -.33011E-06    .30113E-04
  10  Prefactor     .10001E-03    5.1423        .97202E-06** at limit **
  11  Prefactor     22.733        37.811        .89141E-07    .12892E-04
  12  Prefactor     30.581        116.36        .43061E-05    .65108E-04
  13  Prefactor     9.5409        28.147       -.22259E-05    .11216E-05
  14  Prefactor     3.0690        4.1021        .70368E-07   -.58403E-05
  15  Prefactor     5.4110        8.2358        .47097E-05    .62178E-03
  16  norm          6.0861        5.5935        .41497E-06    .70251E-04
  17  Prefactor     27.368        15.921       -.35997E-06    .15402E-04
  18  Prefactor     .10000E-03    36.842        .12904E-05** at limit **
  19  norm          .10000E-03    .91173       -.68741E-07** at limit **
  20  norm          14.505        7.3519       -.15457E-06   -.88320E-04
  21  norm          2.7163        10.033        .10771E-05    .60719E-04
  22  norm          .10000E-03    5.7333       -.95093E-07** at limit **
  23  norm          .10000E-03    3.2922       -.71359E-06** at limit **
  24  Prefactor     .10000E-03    11.331       -.14046E-06** at limit **
  25  norm          .10030E-03    5.6918        .10262E-05** at limit **
  26  Prefactor     43.817        25.283        .37829E-06   -.19508E-05
  27  Prefactor     9.6030        29.394        .10922E-05   -.86997E-06
  28  Normalizat    1.3172        .22481       -.69186E-05    .45342E-03
  29  Prefactor     .86487        .21305        .85228E-05    .73229E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.74715
  norm       = 7.39988
  Prefactor  = 2.64147
  Prefactor  = 3.69085
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 46.4144
  Prefactor  = 10.3048
  Prefactor  = 0.000100005
  Prefactor  = 22.7333
  Prefactor  = 30.5814
  Prefactor  = 9.54091
  Prefactor  = 3.06896
  Prefactor  = 5.41102
  norm       = 6.08607
  Prefactor  = 27.3682
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.5051
  norm       = 2.71633
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100296
  Prefactor  = 43.8172
  Prefactor  = 9.603
  Normalizat = 1.31715
  Prefactor  = 0.86487
 **********
 **   18 **HESSE 
 **********

 FCN=   6742.563     FROM HESSE     STATUS=OK           575 CALLS     4378 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3650        .19670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7472        3.0364        .11058E-03   -1.5272    
   3  norm          7.3999        3.3046        .95811E-04   -1.5164    
   4  Prefactor     2.6415        1.8024        .87565E-04   -1.5383    
   5  Prefactor     3.6908        2.0910        .85885E-04   -1.5324    
   6  Prefactor     .10000E-03    1.6437        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .16811        .54449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          46.414        9.0075        .58854E-04   -1.4344    
   9  Prefactor     10.305        18.250        .12482E-03   -1.5066    
  10  Prefactor     .10001E-03    17.801        .35529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.733        37.645        .84000E-04   -1.4754    
  12  Prefactor     30.581        116.28        .36347E-03   -1.4601    
  13  Prefactor     9.5409        28.149        .12973E-03   -1.5090    
  14  Prefactor     3.0690        4.0938        .18685E-03   -1.5358    
  15  Prefactor     5.4110        8.5178        .86384E-03   -1.5243    
  16  norm          6.0861        5.5747        .16273E-03   -1.5215    
  17  Prefactor     27.368        15.935        .76575E-04   -1.4661    
  18  Prefactor     .10000E-03    36.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .91321        .76562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.505        7.2947        .10476E-03   -1.4946    
  21  norm          2.7163        9.9409        .24709E-03   -1.5378    
  22  norm          .10000E-03    5.7354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.0596        .28031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10030E-03    5.8668        .58289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     43.817        25.208        .60573E-04   -1.4383    
  27  Prefactor     9.6030        29.278        .12934E-03   -1.5088    
  28  Normalizat    1.3172        .23938        .25790E-03   -.83056    
  29  Prefactor     .86487        .22783        .31327E-03   -.97380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21177e-09
Minuit parameter uncertainties:
  1  0.000138716
  2  3.03654
  3  3.30466
  4  1.80246
  5  2.091
  6  1.41978e-07
  7  3.07088e-06
  8  9.00776
  9  18.2595
  10  0.000607141
  11  37.684
  12  117.157
  13  28.1881
  14  4.09419
  15  8.51968
  16  5.57516
  17  15.9372
  18  0.00012166
  19  6.59303e-08
  20  7.29511
  21  9.94698
  22  1.19525e-06
  23  0.000190719
  24  1.0809e-05
  25  0.00263792
  26  25.2137
  27  29.3219
  28  0.239578
  29  0.228082
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.069e+00  4.094e+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:  8.649e-01  2.281e-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.317e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.20e-08 +/- 1.60e-08
Energy Flux (Fixed Index): 6.76e-06 +/- 9.02e-06

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

Saving results to:
/scratch/kocevski/952565/likelihoodResults_653788801_654048001_4FGL_J1254.5+2210_daily_bin1599.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): 0
logL (Free Index) = 6742.55053622
delta logL = 0.0128546630222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6742.54503838
delta logL = 0.0183525054163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5977       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9173       1.0000          .0000       10.000    
     3 'Normalizat'    1.3195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86347       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6742.545     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      277 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5965        5.4736        .10080E-02   -.80413E-05
   2  Index         1.9168        .89516        .10816E-01    .89557E-05
   3  Normalizat    1.3195        .21906        .25770E-03    .99700E-05
   4  Prefactor     .86345        .22160        .31349E-03   -.36592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59648
  Index      = 1.91678
  Normalizat = 1.31951
  Prefactor  = 0.863448
 **********
 **   18 **HESSE 
 **********

 FCN=   6742.545     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5965        5.2882        .40321E-04   -1.5329    
   2  Index         1.9168        .86561        .43263E-03   -.66447    
   3  Normalizat    1.3195        .21923        .10308E-04   -.82986    
   4  Prefactor     .86345        .22180        .12539E-04   -.97430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25429e-11
Minuit parameter uncertainties:
  1  5.2889
  2  0.872747
  3  0.219386
  4  0.222033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952565': 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) = 6742.54503806
delta logL = 0.0183528293637

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.596e+00  5.289e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.917e+00  8.727e-01  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:  8.634e-01  2.220e-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.320e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 193.637 22.181
Photon Index (Free Index): 1.92 +/- 0.87
Photon Flux (Free Index): 1.02e-08 +/- 1.66e-08
Energy Flux (Free Index): 8.70e-06 +/- 1.68e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/952565/cmap_HighResolution_653788801_654048001_4FGL_J1254.5+2210_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', comment='SUCCESS', photon_flux='1.20e-08', energy_flux2='8.70e-06', photon_flux_error='1.60e-08', dlogl='1.84e-02', energy_flux='6.76e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-23 00:37:28.830405', photon_index_error2='0.87', photon_index2='1.92', ts='1.15', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='6.42e-08', energy_flux_error2='1.68e-05', EG='1.32', time_epoch_completed='1632382648.83', return_code='0', job_id='952565', GAL2='0.86', EG2='1.32', return_code2='0', energy_flux_error='9.02e-06', photon_flux_error2='1.66e-08', ts2='1.19', photon_index='2.09' WHERE bin_id='1599' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:37:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 952565: <4FGL_J1254.5+2210_daily_bin1599> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1599> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 23 00:22:03 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:23:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:23:07 2021
Terminated at Thu Sep 23 00:37:29 2021
Results reported at Thu Sep 23 00:37:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1599 193.637 22.1808 653788801 654048001 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 :                                   732.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            926 sec.

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

