/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 107 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin73
RA = 193.637, Dec = 22.1808
tmin = 258249601, tmax = 258508801
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='985064', job_status='RUN', time_executed='2021-09-06 08:57:33.169597', time_epoch_executed='1630943853.17' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985064

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985064/ft1_4FGL_J1254.5+2210_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985064/ft2_4FGL_J1254.5+2210_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985064/ft1_4FGL_J1254.5+2210_daily_bin73.fits outfile=/scratch/kocevski/985064/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin73.fits ra=193.637 dec=22.1808 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.15
user 0.98
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985064/ft1_filtered_4FGL_J1254.5+2210_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/985064/ft2_4FGL_J1254.5+2210_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/985064/ltcube_258249601_258508801_4FGL_J1254.5+2210_daily_bin73.fits outfile=/scratch/kocevski/985064/expmap_258249601_258508801_4FGL_J1254.5+2210_daily_bin73.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/985064/ltcube_258249601_258508801_4FGL_J1254.5+2210_daily_bin73.fits
.....................!
real 189.83
user 184.91
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/985064/ft1_filtered_4FGL_J1254.5+2210_daily_bin73.fits scfile=/scratch/kocevski/985064/ft2_4FGL_J1254.5+2210_daily_bin73.fits outfile=/scratch/kocevski/985064/cmap_258249601_258508801_4FGL_J1254.5+2210_daily_bin73.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985064/ft1_filtered_4FGL_J1254.5+2210_daily_bin73.fits scfile=/scratch/kocevski/985064/ft2_4FGL_J1254.5+2210_daily_bin73.fits outfile=/scratch/kocevski/985064/cmap_HighResolution_258249601_258508801_4FGL_J1254.5+2210_daily_bin73.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.52
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26839E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.0058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .19731       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.922       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4751       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3355       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.902       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.148       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0009       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    29.037       1.0000         .10000E-03   10000.    
    23 'norm      '    15.404       1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.822       1.0000         .10000E-03   10000.    
    25 'norm      '    12.454       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'    1.3098       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95322       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=   3792.668     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3654 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0143       -.75729E-07** at limit **
   2  Prefactor     .10000E-03    2.4766        .16631E-07** at limit **
   3  norm          7.0036        4.3811        .26073E-06    .22243E-03
   4  Prefactor     .10000E-03    1.8528        .49031E-07** at limit **
   5  Prefactor     .10001E-03    2.1063        .58285E-06** at limit **
   6  Prefactor     .10000E-03    2.8423       -.47461E-08** at limit **
   7  norm          .19732        .18241        .81197E-08   -.95192E-04
   8  norm          .10000E-03    1.4326       -.51269E-08** at limit **
   9  Prefactor     .10000E-03    5.4151        .21739E-06** at limit **
  10  Prefactor     .10000E-03    5.9377        .33825E-06** at limit **
  11  Prefactor     12.921        25.300       -.70367E-07   -.32861E-04
  12  Prefactor     .10000E-03    46.870       -.13619E-06** at limit **
  13  Prefactor     .10000E-03    23.438        .20445E-06** at limit **
  14  Prefactor     6.5868        11.174        .31597E-05   -.40620E-03
  15  Prefactor     3.4749        11.031        .50995E-06   -.27553E-04
  16  norm          5.3350        5.3461       -.21109E-06    .20867E-03
  17  Prefactor     15.902        15.443       -.10456E-08   -.15187E-04
  18  Prefactor     12.140        40.005       -.32973E-05   -.12969E-03
  19  norm          .10000E-03    2.0568       -.66304E-07** at limit **
  20  norm          4.0022        4.8723        .28894E-06   -.20888E-04
  21  norm          .10000E-03    5.1007       -.21786E-06** at limit **
  22  norm          29.035        28.771       -.46659E-06   -.72826E-04
  23  norm          15.402        11.128       -.55855E-08   -.18209E-04
  24  Prefactor     38.835        50.172        .42871E-05    .24227E-03
  25  norm          12.453        13.261        .94432E-07   -.16359E-04
  26  Prefactor     .10000E-03    7.0659       -.77781E-06** at limit **
  27  Prefactor     .10000E-03    13.612       -.23696E-07** at limit **
  28  Normalizat    1.3102        .23927        .42713E-06   -.13611E-03
  29  Prefactor     .95277        .24498       -.18655E-05   -.29336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 7.00356
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.197318
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.58682
  Prefactor  = 3.4749
  norm       = 5.33503
  Prefactor  = 15.9018
  Prefactor  = 12.1401
  norm       = 0.0001
  norm       = 4.00222
  norm       = 0.0001
  norm       = 29.0351
  norm       = 15.4024
  Prefactor  = 38.8346
  norm       = 12.4528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31015
  Prefactor  = 0.952767
 **********
 **   18 **HESSE 
 **********

 FCN=   3792.668     FROM HESSE     STATUS=OK           549 CALLS     4203 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.618        .16905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5177        .94569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.0036        4.3427        .98041E-04   -1.5179    
   4  Prefactor     .10000E-03    1.8792        .81707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    8.0907        .16535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8512        .10139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .19732        .17944        .24499E-04   -1.5619    
   8  norm          .10000E-03    1.4335        .71984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4251        .14003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9565        .14670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.921        25.313        .11143E-03   -1.4989    
  12  Prefactor     .10000E-03    46.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5868        12.000        .78179E-03   -1.5195    
  15  Prefactor     3.4749        11.012        .21692E-03   -1.5335    
  16  norm          5.3350        5.3947        .67581E-03   -1.5246    
  17  Prefactor     15.902        15.432        .10044E-03   -1.4910    
  18  Prefactor     12.140        41.211        .11493E-03   -1.5011    
  19  norm          .10000E-03    2.0672        .86254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0022        4.8557        .13886E-03   -1.5308    
  21  norm          .10000E-03    5.1160        .13560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          29.035        28.804        .74350E-04   -1.4630    
  23  norm          15.402        11.130        .10205E-03   -1.4923    
  24  Prefactor     38.835        52.508        .64328E-04   -1.4461    
  25  norm          12.453        13.251        .11351E-03   -1.5002    
  26  Prefactor     .10000E-03    7.1354        .16062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3102        .27471        .23960E-03   -.83264    
  29  Prefactor     .95277        .27981        .28379E-03   -.94321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37149e-09
Minuit parameter uncertainties:
  1  0.00050893
  2  3.71236e-06
  3  4.34289
  4  6.07603e-06
  5  0.000519724
  6  1.28514e-06
  7  0.179436
  8  6.49808e-07
  9  2.53955e-05
  10  3.21834e-05
  11  25.3341
  12  2.30478e-05
  13  4.43082e-05
  14  12.0042
  15  11.0186
  16  5.39522
  17  15.4358
  18  41.3081
  19  3.27309e-06
  20  4.85617
  21  2.42119e-05
  22  28.8174
  23  11.1317
  24  52.5709
  25  13.2538
  26  8.99306e-05
  27  2.19038e-06
  28  0.275018
  29  0.280233
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  6.587e+00  1.200e+01  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:  9.528e-01  2.802e-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.310e+00  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985064/likelihoodResults_258249601_258508801_4FGL_J1254.5+2210_daily_bin73.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) = 3792.5847513
delta logL = 0.0827826374357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3792.58260913
delta logL = 0.0849248040518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2179       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5344       1.0000          .0000       10.000    
     3 'Normalizat'    1.2900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96354       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=   3792.583     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      278 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1997        210.76        .49053E-02    .28938E-03
   2  Index         2.5382        6.2634        .12774        .74120E-04
   3  Normalizat    1.2899        .77182E-01    .54544E-01   -.34459E-04
   4  Prefactor     .96371        .72183E-01    .45810E-01   -.20058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.19966
  Index      = 2.53816
  Normalizat = 1.28995
  Prefactor  = 0.963714
 **********
 **   18 **HESSE 
 **********

 FCN=   3792.583     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1997        14.396        .17501E-03   -1.5298    
   2  Index         2.5382        1.5738        .67299E-02   -.51481    
   3  Normalizat    1.2899        .27254        .24118E-03   -.83867    
   4  Prefactor     .96371        .27707        .28233E-03   -.93949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4096e-08
Minuit parameter uncertainties:
  1  14.408
  2  1.61025
  3  0.272847
  4  0.277481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985064': 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) = 3792.58260198
delta logL = 0.084931952892

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.200e+00  1.441e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.538e+00  1.610e+00  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:  9.637e-01  2.775e-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.290e+00  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
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/985064/cmap_HighResolution_258249601_258508801_4FGL_J1254.5+2210_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-06 09:07:30.595391', job_id='985064', GAL2='0.96', fit_tolerance='1e-08', EG2='1.29', EG='1.31', time_epoch_completed='1630944450.6', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='8.49e-02', ts2='0.53', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='73' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:07:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 985064: <4FGL_J1254.5+2210_daily_bin73> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin73> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:34 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:55:35 2021
Terminated at Mon Sep  6 09:07:31 2021
Results reported at Mon Sep  6 09:07:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin73 193.637 22.1808 258249601 258508801 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 :                                   597.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

