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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1282
RA = 193.637, Dec = 22.1808
tmin = 571622401, tmax = 571881601
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='991593', job_status='RUN', time_executed='2021-09-06 09:19:01.955869', time_epoch_executed='1630945141.96' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991593/ft1_4FGL_J1254.5+2210_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991593/ft2_4FGL_J1254.5+2210_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991593/ft1_4FGL_J1254.5+2210_daily_bin1282.fits outfile=/scratch/kocevski/991593/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1282.fits ra=193.637 dec=22.1808 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.73
user 2.49
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991593/ft1_filtered_4FGL_J1254.5+2210_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/991593/ft2_4FGL_J1254.5+2210_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/991593/ltcube_571622401_571881601_4FGL_J1254.5+2210_daily_bin1282.fits outfile=/scratch/kocevski/991593/expmap_571622401_571881601_4FGL_J1254.5+2210_daily_bin1282.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/991593/ltcube_571622401_571881601_4FGL_J1254.5+2210_daily_bin1282.fits
.....................!
real 190.67
user 185.69
sys 4.57

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/991593/ft1_filtered_4FGL_J1254.5+2210_daily_bin1282.fits scfile=/scratch/kocevski/991593/ft2_4FGL_J1254.5+2210_daily_bin1282.fits outfile=/scratch/kocevski/991593/cmap_571622401_571881601_4FGL_J1254.5+2210_daily_bin1282.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991593/ft1_filtered_4FGL_J1254.5+2210_daily_bin1282.fits scfile=/scratch/kocevski/991593/ft2_4FGL_J1254.5+2210_daily_bin1282.fits outfile=/scratch/kocevski/991593/cmap_HighResolution_571622401_571881601_4FGL_J1254.5+2210_daily_bin1282.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.010       1.0000         .10000E-03   10000.    
     3 'norm      '    .90855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .18171       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2144       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.355       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.900       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13354E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4290       1.0000         .10000E-03   10000.    
    16 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9000       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.770       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .93191       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4358       1.0000         .10000E-03   10000.    
    23 'norm      '    16.049       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.201       1.0000         .10000E-03   10000.    
    25 'norm      '    17.364       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99813       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0189       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=   4102.547     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3762 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3609       -.19965E-07** at limit **
   2  Prefactor     17.010        9.1066        .25456E-06   -.66965E-04
   3  norm          .91515        38.787       -.48850E-05   -.92724E-04
   4  Prefactor     3.9223        8.6149        .20804E-05    .91789E-04
   5  Prefactor     .10000E-03    4.5274        .16544E-06** at limit **
   6  Prefactor     .10000E-03    13.557       -.10771E-06** at limit **
   7  norm          .18169        .46002        .44489E-07   -.22555E-04
   8  norm          4.2147        5.1152       -.36254E-08   -.18502E-04
   9  Prefactor     28.368        28.663        .39409E-07    .37421E-04
  10  Prefactor     36.563        25.542        .39522E-06    .95115E-05
  11  Prefactor     70.867        73.724        .80014E-07   -.19899E-03
  12  Prefactor     .10000E-03    92.215        .57756E-06** at limit **
  13  Prefactor     .10000E-03    35.163       -.21768E-07** at limit **
  14  Prefactor     .10000E-03    4.3772       -.34629E-07** at limit **
  15  Prefactor     5.4322        17.387        .30557E-06   -.99500E-05
  16  norm          .10000E-03    12.738        .31483E-05** at limit **
  17  Prefactor     4.9017        21.780        .48027E-06   -.61387E-05
  18  Prefactor     48.816        53.712       -.99750E-06    .23331E-03
  19  norm          .10000E-03    4.0580       -.19569E-06** at limit **
  20  norm          .93194        4.7561        .18843E-05   -.45939E-04
  21  norm          .10000E-03    9.2935       -.77232E-06** at limit **
  22  norm          2.4338        32.029        .10977E-04   -.10391E-03
  23  norm          16.048        12.222       -.39129E-06   -.10417E-03
  24  Prefactor     18.212        29.234        .14888E-06    .63951E-04
  25  norm          17.365        16.151        .22642E-06   -.64907E-04
  26  Prefactor     .10000E-03    5.0043       -.13338E-07** at limit **
  27  Prefactor     .10000E-03    5.2235        .17545E-08** at limit **
  28  Normalizat    .99799        .25068       -.12500E-05   -.79222E-04
  29  Prefactor     1.0191        .23107        .35019E-06   -.11257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.0098
  norm       = 0.915145
  Prefactor  = 3.92229
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.181688
  norm       = 4.21465
  Prefactor  = 28.3676
  Prefactor  = 36.5634
  Prefactor  = 70.8667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43222
  norm       = 0.0001
  Prefactor  = 4.90169
  Prefactor  = 48.8158
  norm       = 0.0001
  norm       = 0.931941
  norm       = 0.000100001
  norm       = 2.43383
  norm       = 16.0476
  Prefactor  = 18.2118
  norm       = 17.3649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.997986
  Prefactor  = 1.01907
 **********
 **   18 **HESSE 
 **********

 FCN=   4102.547     FROM HESSE     STATUS=OK           557 CALLS     4319 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3693        .11457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.010        9.0678        .48555E-03   -1.4883    
   3  norm          .91515        41.069        .37175E-03   -1.5517    
   4  Prefactor     3.9223        8.8039        .13231E-03   -1.5312    
   5  Prefactor     .10000E-03    4.5922        .13257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .18169        .48683        .62314E-03   -1.5623    
   8  norm          4.2147        5.1023        .15409E-03   -1.5297    
   9  Prefactor     28.368        28.831        .75236E-04   -1.4642    
  10  Prefactor     36.563        25.534        .66279E-04   -1.4498    
  11  Prefactor     70.867        74.504        .47675E-04   -1.4022    
  12  Prefactor     .10000E-03    92.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3972        .13094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4322        17.220        .17246E-03   -1.5242    
  16  norm          .10000E-03    12.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9017        21.339        .18171E-03   -1.5265    
  18  Prefactor     48.816        53.285        .57420E-04   -1.4309    
  19  norm          .10000E-03    4.2149        .25188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .93194        4.4874        .24910E-03   -1.5515    
  21  norm          .10000E-03    9.4574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4338        32.194        .13109E-02   -1.5396    
  23  norm          16.048        12.229        .99976E-04   -1.4907    
  24  Prefactor     18.212        29.280        .93879E-04   -1.4854    
  25  norm          17.365        16.167        .96116E-04   -1.4874    
  26  Prefactor     .10000E-03    5.0111        .14001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.2287        .14304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99799        .28267        .27170E-03   -.93098    
  29  Prefactor     1.0191        .26256        .26463E-03   -.92097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92806e-09
Minuit parameter uncertainties:
  1  2.36333e-06
  2  9.06857
  3  12.2695
  4  8.80682
  5  1.40654e-05
  6  0.000180489
  7  0.486837
  8  5.10283
  9  28.8454
  10  25.5415
  11  74.6025
  12  2.07211e-05
  13  5.76967e-05
  14  3.80154e-05
  15  17.236
  16  9.28278e-05
  17  20.4669
  18  53.3373
  19  2.45072e-05
  20  4.09027
  21  0.000178508
  22  17.715
  23  12.2307
  24  29.3032
  25  16.1711
  26  4.02532e-05
  27  3.97709e-05
  28  0.283097
  29  0.262895
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.802e-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.019e+00  2.629e-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:  9.980e-01  2.831e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991593/likelihoodResults_571622401_571881601_4FGL_J1254.5+2210_daily_bin1282.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) = 4102.54760103
delta logL = -0.00107885528269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4102.54652218
delta logL = -7.63338903198e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0869       1.0000          .0000       10.000    
     3 'Normalizat'    .99799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0191       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=   4102.547     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    259.10        .90712E-02** at limit **
   2  Index         2.0846        5.7398        .50000        .39282E-05
   3  Normalizat    .99798        .47961E-01    .46142E-01   -.30626E-03
   4  Prefactor     1.0191        .47371E-01    .42234E-01   -.82840E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08465
  Normalizat = 0.99798
  Prefactor  = 1.01907
 **********
 **   18 **HESSE 
 **********

 FCN=   4102.547     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      231 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    584.41        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0846        7.1797        .50000       -.62250    
   3  Normalizat    .99798        .83274E-01    .27171E-03   -.93098    
   4  Prefactor     1.0191        .82282E-01    .26462E-03   -.92096    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06777e-08
Minuit parameter uncertainties:
  1  0.000502143
  2  47.3272
  3  0.0832844
  4  0.0822921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991593': 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) = 4102.54652217
delta logL = 4.27007762482e-09

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.021e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.085e+00  4.733e+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.019e+00  8.229e-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:  9.980e-01  8.328e-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/991593/cmap_HighResolution_571622401_571881601_4FGL_J1254.5+2210_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-06 09:29:24.599540', job_id='991593', GAL2='1.02', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630945764.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.27e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1282' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:29:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 991593: <4FGL_J1254.5+2210_daily_bin1282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1282 193.637 22.1808 571622401 571881601 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 :                                   619.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             310.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

