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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1009
RA = 193.637, Dec = 22.1808
tmin = 500860801, tmax = 501120001
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='991143', job_status='RUN', time_executed='2021-09-06 09:18:06.046843', time_epoch_executed='1630945086.05' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991143

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991143/ft1_4FGL_J1254.5+2210_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991143/ft2_4FGL_J1254.5+2210_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991143/ft1_4FGL_J1254.5+2210_daily_bin1009.fits outfile=/scratch/kocevski/991143/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1009.fits ra=193.637 dec=22.1808 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.66
user 4.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991143/ft1_filtered_4FGL_J1254.5+2210_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/991143/ft2_4FGL_J1254.5+2210_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/991143/ltcube_500860801_501120001_4FGL_J1254.5+2210_daily_bin1009.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/991143/ft2_4FGL_J1254.5+2210_daily_bin1009.fits
.....................!
real 12.62
user 12.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991143/ft1_filtered_4FGL_J1254.5+2210_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/991143/ft2_4FGL_J1254.5+2210_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/991143/ltcube_500860801_501120001_4FGL_J1254.5+2210_daily_bin1009.fits outfile=/scratch/kocevski/991143/expmap_500860801_501120001_4FGL_J1254.5+2210_daily_bin1009.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/991143/ltcube_500860801_501120001_4FGL_J1254.5+2210_daily_bin1009.fits
.....................!
real 192.08
user 187.00
sys 4.61

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/991143/ft1_filtered_4FGL_J1254.5+2210_daily_bin1009.fits scfile=/scratch/kocevski/991143/ft2_4FGL_J1254.5+2210_daily_bin1009.fits outfile=/scratch/kocevski/991143/cmap_500860801_501120001_4FGL_J1254.5+2210_daily_bin1009.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.637 yref=22.1808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991143/ft1_filtered_4FGL_J1254.5+2210_daily_bin1009.fits scfile=/scratch/kocevski/991143/ft2_4FGL_J1254.5+2210_daily_bin1009.fits outfile=/scratch/kocevski/991143/cmap_HighResolution_500860801_501120001_4FGL_J1254.5+2210_daily_bin1009.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0964       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.279       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.750       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8785       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.1161       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5101       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.5754       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.8044       1.0000         .10000E-03   10000.    
    23 'norm      '    24.180       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.745       1.0000         .10000E-03   10000.    
    25 'norm      '    .15006E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73526       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4243       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=   5313.082     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3697 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0971        2.8415        .10293E-06    .26947E-04
   2  Prefactor     .10000E-03    1.8090       -.87861E-08** at limit **
   3  norm          12.276        4.7145       -.64566E-07   -.25529E-03
   4  Prefactor     .10000E-03    2.4382        .83586E-07** at limit **
   5  Prefactor     .10000E-03    2.2039        .26643E-06** at limit **
   6  Prefactor     .10000E-03    4.2874       -.44202E-07** at limit **
   7  norm          .10000E-03    .13942        .20646E-07** at limit **
   8  norm          10.750        5.8074        .32683E-07   -.10759E-03
   9  Prefactor     .10000E-03    6.8829       -.50243E-06** at limit **
  10  Prefactor     5.8787        11.994        .17490E-05    .28292E-04
  11  Prefactor     .10000E-03    31.590        .19591E-07** at limit **
  12  Prefactor     .10000E-03    53.129        .29099E-05** at limit **
  13  Prefactor     .10000E-03    40.115       -.31486E-05** at limit **
  14  Prefactor     .10000E-03    8.7347        .10946E-05** at limit **
  15  Prefactor     .10000E-03    5.3187        .21988E-06** at limit **
  16  norm          7.1158        5.7244        .87040E-06    .12023E-03
  17  Prefactor     3.5100        10.815        .46332E-05    .16790E-03
  18  Prefactor     .10000E-03    10.129       -.51104E-06** at limit **
  19  norm          4.5774        5.1645        .44426E-07   -.19028E-03
  20  norm          .10000E-03    1.5682        .87382E-07** at limit **
  21  norm          .10000E-03    2.1556        .40833E-08** at limit **
  22  norm          2.8011        33.590        .81240E-06    .41535E-05
  23  norm          24.167        10.421       -.24814E-06    .71889E-04
  24  Prefactor     28.744        37.224        .44412E-06    .15927E-05
  25  norm          .10001E-03    15.575       -.62145E-05** at limit **
  26  Prefactor     .10000E-03    14.996        .32059E-06** at limit **
  27  Prefactor     .10000E-03    10.414       -.99217E-06** at limit **
  28  Normalizat    .73521        .19491       -.15017E-05   -.14347E-03
  29  Prefactor     1.4243        .20267       -.41917E-06   -.15846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09711
  Prefactor  = 0.0001
  norm       = 12.276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7505
  Prefactor  = 0.0001
  Prefactor  = 5.87869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.11578
  Prefactor  = 3.51001
  Prefactor  = 0.0001
  norm       = 4.57737
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.80112
  norm       = 24.1672
  Prefactor  = 28.7442
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.735205
  Prefactor  = 1.42434
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.082     FROM HESSE     STATUS=OK           551 CALLS     4248 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0971        2.8331        .11378E-03   -1.5356    
   2  Prefactor     .10000E-03    1.8397        .95631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.276        4.6120        .92418E-04   -1.5007    
   4  Prefactor     .10000E-03    2.4896        .22080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7486        .20000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3125        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .27397        .52507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.750        5.7867        .12220E-03   -1.5052    
   9  Prefactor     .10000E-03    6.8964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8787        12.014        .82816E-03   -1.5223    
  11  Prefactor     .10000E-03    31.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3292        .16419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.1158        5.8599        .75187E-03   -1.5174    
  17  Prefactor     3.5100        11.702        .10789E-02   -1.5333    
  18  Prefactor     .10000E-03    10.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.5774        5.1598        .16615E-03   -1.5280    
  20  norm          .10000E-03    1.5875        .89111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1600        .10451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.8011        33.409        .24292E-03   -1.5373    
  23  norm          24.167        9.8376        .81461E-04   -1.4724    
  24  Prefactor     28.744        37.288        .74726E-04   -1.4635    
  25  norm          .10001E-03    26.730        .38284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73521        .22639        .29718E-03   -1.0252    
  29  Prefactor     1.4243        .23805        .23739E-03   -.79681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8907e-10
Minuit parameter uncertainties:
  1  2.83324
  2  2.52549e-06
  3  4.61209
  4  1.04275e-05
  5  1.99129e-05
  6  2.2363e-06
  7  1.36891e-06
  8  5.78697
  9  1.9392e-06
  10  12.0187
  11  4.5964e-05
  12  0.00010035
  13  5.73322e-05
  14  3.62682e-05
  15  6.79795e-06
  16  5.86033
  17  11.7096
  18  4.28734e-06
  19  5.16034
  20  1.24589e-06
  21  3.11731e-07
  22  19.3609
  23  9.83823
  24  37.3185
  25  0.00111185
  26  1.60752e-05
  27  3.84482e-06
  28  0.226681
  29  0.238232
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.627e-05  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.424e+00  2.382e-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:  7.352e-01  2.267e-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: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991143/likelihoodResults_500860801_501120001_4FGL_J1254.5+2210_daily_bin1009.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) = 5313.08218598
delta logL = -0.000538052194315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5313.08164957
delta logL = -1.63821368915e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13668E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1311       1.0000          .0000       10.000    
     3 'Normalizat'    .73533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4242       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=   5313.082     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      219 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.035        .90712E-02** at limit **
   2  Index         2.1824        7.1274        .50000       -.48835E-04
   3  Normalizat    .73521        .13809E-01    .67164E-01    .50403E-04
   4  Prefactor     1.4243        .14878E-01    .53696E-01    .48043E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.18243
  Normalizat = 0.735206
  Prefactor  = 1.42434
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.082     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1285.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1824        8.1925        .50000       -.59863    
   3  Normalizat    .73521        .64931E-01    .29718E-03   -1.0252    
   4  Prefactor     1.4243        .70052E-01    .23739E-03   -.79681    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.07272e-07
Minuit parameter uncertainties:
  1  0.0050606
  2  46.1516
  3  0.0649382
  4  0.0700568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991143': 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) = 5313.08164691
delta logL = 1.01879322756e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.061e-03  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.182e+00  4.615e+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:  1.424e+00  7.006e-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:  7.352e-01  6.494e-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/991143/cmap_HighResolution_500860801_501120001_4FGL_J1254.5+2210_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-06 09:30:22.982123', job_id='991143', GAL2='1.42', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630945822.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='1.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1009' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:30:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 991143: <4FGL_J1254.5+2210_daily_bin1009> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1009 193.637 22.1808 500860801 501120001 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 :                                   731.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

