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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1461
RA = 193.637, Dec = 22.1808
tmin = 618019201, tmax = 618278401
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='992889', job_status='RUN', time_executed='2021-09-06 09:23:08.807201', time_epoch_executed='1630945388.81' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992889/ft1_4FGL_J1254.5+2210_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992889/ft2_4FGL_J1254.5+2210_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992889/ft1_4FGL_J1254.5+2210_daily_bin1461.fits outfile=/scratch/kocevski/992889/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1461.fits ra=193.637 dec=22.1808 rad=12.0 tmin=618019201.0 tmax=618278401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.13
user 4.86
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992889/ft2_4FGL_J1254.5+2210_daily_bin1461.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/992889/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1461.fits evtable="EVENTS" outfile="/scratch/kocevski/992889/ft1_filtered_4FGL_J1254.5+2210_daily_bin1461.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992889/ft1_filtered_4FGL_J1254.5+2210_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/992889/ft2_4FGL_J1254.5+2210_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/992889/ltcube_618019201_618278401_4FGL_J1254.5+2210_daily_bin1461.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/992889/ft2_4FGL_J1254.5+2210_daily_bin1461.fits
.....................!
real 12.80
user 12.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992889/ft1_filtered_4FGL_J1254.5+2210_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/992889/ft2_4FGL_J1254.5+2210_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/992889/ltcube_618019201_618278401_4FGL_J1254.5+2210_daily_bin1461.fits outfile=/scratch/kocevski/992889/expmap_618019201_618278401_4FGL_J1254.5+2210_daily_bin1461.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/992889/ltcube_618019201_618278401_4FGL_J1254.5+2210_daily_bin1461.fits
.....................!
real 190.58
user 185.29
sys 4.92

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/992889/ft1_filtered_4FGL_J1254.5+2210_daily_bin1461.fits scfile=/scratch/kocevski/992889/ft2_4FGL_J1254.5+2210_daily_bin1461.fits outfile=/scratch/kocevski/992889/cmap_618019201_618278401_4FGL_J1254.5+2210_daily_bin1461.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992889/ft1_filtered_4FGL_J1254.5+2210_daily_bin1461.fits scfile=/scratch/kocevski/992889/ft2_4FGL_J1254.5+2210_daily_bin1461.fits outfile=/scratch/kocevski/992889/cmap_HighResolution_618019201_618278401_4FGL_J1254.5+2210_daily_bin1461.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/992889/ft1_filtered_4FGL_J1254.5+2210_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/992889/ft2_4FGL_J1254.5+2210_daily_bin1461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992889/Model_4FGL_J1254.5+2210_daily_bin1461.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/992889/ft1_filtered_4FGL_J1254.5+2210_daily_bin1461.fits.....................!
real 50.43
user 49.03
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2957       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7105       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7131       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .23961       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2795       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.017       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    153.58       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.602       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9174       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.1896       1.0000         .10000E-03   10000.    
    22 'norm      '    17.571       1.0000         .10000E-03   10000.    
    23 'norm      '    24.985       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.6015       1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.180       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1283       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0820       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=   5423.859     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3682 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9115        .90712E-02** at limit **
   2  Prefactor     2.2951        3.7624        .67721E-02    .89922E-03
   3  norm          6.7102        3.6316        .38725E-02   -.58790E-02
   4  Prefactor     .10000E-03    .80755        .90712E-02** at limit **
   5  Prefactor     4.7133        2.9427        .46338E-02    .16364E-02
   6  Prefactor     .10000E-03    3.7406        .90712E-02** at limit **
   7  norm          .23961        .22599        .71852E-02    .44792E-03
   8  norm          3.2792        5.0339        .55899E-02    .47028E-03
   9  Prefactor     .10000E-03    5.0174        .90712E-02** at limit **
  10  Prefactor     15.017        10.572        .25839E-02   -.11350E-03
  11  Prefactor     .10000E-03    30.720        .90712E-02** at limit **
  12  Prefactor     153.58        101.40        .81319E-03   -.46834E-05
  13  Prefactor     45.601        41.858        .14843E-02    .41919E-03
  14  Prefactor     .10000E-03    2.5113        .90712E-02** at limit **
  15  Prefactor     .10000E-03    5.9231        .90712E-02** at limit **
  16  norm          3.9175        4.3170        .50959E-02   -.90361E-03
  17  Prefactor     8.1244        16.132        .35163E-02   -.16330E-03
  18  Prefactor     .10000E-03    8.8586        .90712E-02** at limit **
  19  norm          .10000E-03    1.3859        .90712E-02** at limit **
  20  norm          .10000E-03    3.1278        .90712E-02** at limit **
  21  norm          7.1881        6.9264        .37399E-02   -.82657E-03
  22  norm          17.570        17.634        .23887E-02   -.12870E-02
  23  norm          24.989        11.041        .20035E-02   -.14143E-02
  24  Prefactor     2.4986        226.12        .63235E-02    .25359E-04
  25  norm          .10000E-03    13.302        .90712E-02** at limit **
  26  Prefactor     14.180        24.771        .26592E-02    .11117E-02
  27  Prefactor     .10000E-03    20.064        .90712E-02** at limit **
  28  Normalizat    1.1280        .21653        .61395E-01   -.22775E-05
  29  Prefactor     1.0822        .21004        .62052E-01    .99768E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 2.2951
  norm       = 6.7102
  Prefactor  = 0.0001
  Prefactor  = 4.71325
  Prefactor  = 0.0001
  norm       = 0.239612
  norm       = 3.27923
  Prefactor  = 0.000100002
  Prefactor  = 15.0171
  Prefactor  = 0.0001
  Prefactor  = 153.584
  Prefactor  = 45.6008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.91754
  Prefactor  = 8.12437
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.1881
  norm       = 17.5696
  norm       = 24.9889
  Prefactor  = 2.49861
  norm       = 0.0001
  Prefactor  = 14.1801
  Prefactor  = 0.0001
  Normalizat = 1.12803
  Prefactor  = 1.08224
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.859     FROM HESSE     STATUS=OK           545 CALLS     4227 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0795        .31717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2951        3.7329        .17360E-03   -1.5405    
   3  norm          6.7102        3.6310        .99214E-04   -1.5190    
   4  Prefactor     .10000E-03    .80903        .64602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7133        2.9400        .94433E-04   -1.5274    
   6  Prefactor     .10000E-03    3.7524        .13899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .23961        .22041        .32323E-04   -1.5610    
   8  norm          3.2792        5.0140        .19520E-03   -1.5346    
   9  Prefactor     .10000E-03    5.0314        .16111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.017        10.573        .10336E-03   -1.4933    
  11  Prefactor     .10000E-03    30.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     153.58        101.41        .32528E-04   -1.3223    
  13  Prefactor     45.601        41.861        .59373E-04   -1.4356    
  14  Prefactor     .10000E-03    2.5134        .11397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9415        .17500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9175        4.3096        .15264E-03   -1.5312    
  17  Prefactor     8.1244        16.147        .14065E-03   -1.5138    
  18  Prefactor     .10000E-03    8.8602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3898        .84660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1444        .12631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.1881        6.8782        .14960E-03   -1.5172    
  22  norm          17.570        17.633        .95548E-04   -1.4869    
  23  norm          24.989        11.030        .80140E-04   -1.4708    
  24  Prefactor     2.4986        227.12        .25294E-03   -1.5392    
  25  norm          .10000E-03    13.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.180        24.818        .10637E-03   -1.4955    
  27  Prefactor     .10000E-03    20.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1280        .26238        .27155E-03   -.88857    
  29  Prefactor     1.0822        .25404        .27444E-03   -.90036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8967e-08
Minuit parameter uncertainties:
  1  0.000206654
  2  3.73326
  3  3.63108
  4  2.93871e-06
  5  2.94006
  6  4.89887e-06
  7  0.220411
  8  5.01461
  9  0.000186623
  10  10.5745
  11  0.000186752
  12  101.53
  13  41.888
  14  3.59003e-06
  15  3.19104e-05
  16  4.30995
  17  16.1552
  18  7.5549e-06
  19  5.03656e-07
  20  2.50411e-06
  21  6.87894
  22  17.6378
  23  11.0309
  24  47.8313
  25  6.23891e-05
  26  24.8361
  27  4.65464e-05
  28  0.262687
  29  0.254326
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.590e-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.082e+00  2.543e-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.128e+00  2.627e-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: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992889/likelihoodResults_618019201_618278401_4FGL_J1254.5+2210_daily_bin1461.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) = 5423.86111699
delta logL = -0.0018404491675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5423.85927623
delta logL = 3.09990355163e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0695       1.0000          .0000       10.000    
     3 'Normalizat'    1.1280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0822       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.

 FCN=   5423.859     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10238E-03    2.6710        .11579E-01** at limit **
   2  Index         1.9820        5.0931        .50000        .51648E-04
   3  Normalizat    1.1280        .52617E-02    .27155E-03    .68492E-04
   4  Prefactor     1.0822        .52456E-02    .27444E-03    .31649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102385
  Index      = 1.98196
  Normalizat = 1.12803
  Prefactor  = 1.08224
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.859     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10238E-03    53.426        .11868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9820        7.3923        .50000       -.64802    
   3  Normalizat    1.1280        .24006E-01    .10862E-04   -.88857    
   4  Prefactor     1.0822        .23932E-01    .10978E-04   -.90036    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.6851e-08
Minuit parameter uncertainties:
  1  0.0225961
  2  336.995
  3  0.0240062
  4  0.0239319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992889': 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) = 5423.85927543
delta logL = 1.11373628897e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.024e-04  2.260e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.982e+00  3.370e+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.082e+00  2.393e-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.128e+00  2.401e-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/992889/cmap_HighResolution_618019201_618278401_4FGL_J1254.5+2210_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-06 09:35:42.364928', job_id='992889', GAL2='1.08', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630946142.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1461' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 992889: <4FGL_J1254.5+2210_daily_bin1461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1461 193.637 22.1808 618019201 618278401 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

