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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1542
RA = 193.637, Dec = 22.1808
tmin = 639014401, tmax = 639273601
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='993005', job_status='RUN', time_executed='2021-09-06 09:21:07.191894', time_epoch_executed='1630945267.19' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993005/ft1_4FGL_J1254.5+2210_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993005/ft2_4FGL_J1254.5+2210_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993005/ft1_4FGL_J1254.5+2210_daily_bin1542.fits outfile=/scratch/kocevski/993005/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1542.fits ra=193.637 dec=22.1808 rad=12.0 tmin=639014401.0 tmax=639273601.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.39
user 5.07
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993005/ft1_filtered_4FGL_J1254.5+2210_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/993005/ft2_4FGL_J1254.5+2210_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/993005/ltcube_639014401_639273601_4FGL_J1254.5+2210_daily_bin1542.fits outfile=/scratch/kocevski/993005/expmap_639014401_639273601_4FGL_J1254.5+2210_daily_bin1542.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/993005/ltcube_639014401_639273601_4FGL_J1254.5+2210_daily_bin1542.fits
.....................!
real 189.58
user 184.99
sys 4.17

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/993005/ft1_filtered_4FGL_J1254.5+2210_daily_bin1542.fits scfile=/scratch/kocevski/993005/ft2_4FGL_J1254.5+2210_daily_bin1542.fits outfile=/scratch/kocevski/993005/cmap_639014401_639273601_4FGL_J1254.5+2210_daily_bin1542.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993005/ft1_filtered_4FGL_J1254.5+2210_daily_bin1542.fits scfile=/scratch/kocevski/993005/ft2_4FGL_J1254.5+2210_daily_bin1542.fits outfile=/scratch/kocevski/993005/cmap_HighResolution_639014401_639273601_4FGL_J1254.5+2210_daily_bin1542.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.55
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.018       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .72716       1.0000         .10000E-03   10000.    
    16 'norm      '    .24190E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7865       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3902       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.244       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.331       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .46228E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.881       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85386       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1995       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=   5301.499     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3709 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4360        .12201E-05** at limit **
   2  Prefactor     .10000E-03    .90063       -.14878E-08** at limit **
   3  norm          4.5459        3.2315       -.25589E-06    .70660E-03
   4  Prefactor     1.9124        1.7940        .59034E-07    .91638E-04
   5  Prefactor     2.0826        1.7163        .20091E-07    .20595E-03
   6  Prefactor     .10000E-03    2.3109        .14006E-06** at limit **
   7  norm          .10000E-03    .77533E-01    .53514E-08** at limit **
   8  norm          4.3282        3.0985       -.44006E-07   -.89311E-04
   9  Prefactor     .10000E-03    5.6680        .13796E-06** at limit **
  10  Prefactor     .10000E-03    5.8392       -.23991E-06** at limit **
  11  Prefactor     21.022        24.274       -.14957E-06   -.26179E-04
  12  Prefactor     .10000E-03    27.900       -.10863E-05** at limit **
  13  Prefactor     .10000E-03    27.553       -.91092E-06** at limit **
  14  Prefactor     .10000E-03    1.7637       -.41202E-07** at limit **
  15  Prefactor     .71788        10.452        .39984E-06    .43464E-05
  16  norm          .10002E-03    20.123       -.11034E-04** at limit **
  17  Prefactor     1.7883        16.773       -.63278E-06    .31600E-04
  18  Prefactor     7.3686        22.806       -.31495E-05   -.31185E-04
  19  norm          .10000E-03    1.1832       -.49736E-07** at limit **
  20  norm          15.242        5.3915       -.37960E-06   -.60399E-03
  21  norm          .10000E-03    4.6771        .25996E-06** at limit **
  22  norm          10.333        16.134       -.87261E-07    .60298E-05
  23  norm          .10000E-03    2.0028       -.72750E-07** at limit **
  24  Prefactor     .10006E-03    173.24        .13222E-04** at limit **
  25  norm          .10000E-03    3.7913       -.10989E-06** at limit **
  26  Prefactor     12.883        19.349       -.28111E-06    .14385E-06
  27  Prefactor     .10000E-03    13.923       -.32313E-06** at limit **
  28  Normalizat    .85395        .17343        .13507E-05    .17177E-03
  29  Prefactor     1.1993        .18677       -.67446E-06   -.54929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 4.54587
  Prefactor  = 1.91241
  Prefactor  = 2.08264
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.32821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0222
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.717884
  norm       = 0.000100016
  Prefactor  = 1.7883
  Prefactor  = 7.36859
  norm       = 0.0001
  norm       = 15.242
  norm       = 0.0001
  norm       = 10.3326
  norm       = 0.0001
  Prefactor  = 0.000100063
  norm       = 0.0001
  Prefactor  = 12.8827
  Prefactor  = 0.0001
  Normalizat = 0.853948
  Prefactor  = 1.19928
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.499     FROM HESSE     STATUS=OK           555 CALLS     4264 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3281        .16530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .90640        .67453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5459        3.2305        .52188E-03   -1.5282    
   4  Prefactor     1.9124        1.8038        .89830E-04   -1.5431    
   5  Prefactor     2.0826        1.7160        .82925E-04   -1.5419    
   6  Prefactor     .10000E-03    2.3255        .10810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .13049        .39268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3282        3.0994        .10527E-03   -1.5292    
   9  Prefactor     .10000E-03    5.6812        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9073        .17184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.022        24.256        .87367E-04   -1.4791    
  12  Prefactor     .10000E-03    27.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7660        .94434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .71788        40.186        .43901E-02   -1.5539    
  16  norm          .10002E-03    21.620        .23292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7883        16.567        .31301E-03   -1.5441    
  18  Prefactor     7.3686        22.151        .14754E-03   -1.5165    
  19  norm          .10000E-03    1.1928        .77342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.242        5.3844        .94753E-04   -1.4927    
  21  norm          .10000E-03    4.6987        .15368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.333        16.129        .12466E-03   -1.5065    
  23  norm          .10000E-03    2.0141        .10063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10006E-03    180.33        .42391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.8302        .13845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.883        19.362        .11161E-03   -1.4990    
  27  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .85395        .20247        .25004E-03   -.98098    
  29  Prefactor     1.1993        .21950        .23345E-03   -.86354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5489e-09
Minuit parameter uncertainties:
  1  0.000197347
  2  1.3434e-06
  3  3.23066
  4  1.80383
  5  1.71602
  6  1.41648e-05
  7  6.81154e-07
  8  3.09955
  9  3.48356e-05
  10  3.25644e-05
  11  24.2677
  12  0.000341624
  13  0.000320714
  14  3.61343e-06
  15  10.7491
  16  0.00118029
  17  10.8898
  18  22.1757
  19  3.43508e-06
  20  5.3846
  21  5.42211e-05
  22  16.1354
  23  6.8864e-06
  24  0.00676515
  25  1.47178e-05
  26  19.3714
  27  6.97274e-05
  28  0.202645
  29  0.219663
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.613e-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.199e+00  2.197e-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:  8.539e-01  2.026e-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: 3.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993005/likelihoodResults_639014401_639273601_4FGL_J1254.5+2210_daily_bin1542.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) = 5301.50139607
delta logL = -0.00260543334571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5301.49879004
delta logL = 5.99705344939e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0661       1.0000          .0000       10.000    
     3 'Normalizat'    .85395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1993       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=   5301.499     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      241 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10323E-03    2.0068        .96565E-02** at limit **
   2  Index         1.9667        7.0049        .50000        .86619E-04
   3  Normalizat    .85394        .44058E-02    .25004E-03   -.61745E-04
   4  Prefactor     1.1993        .48107E-02    .23345E-03   -.21427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103225
  Index      = 1.96673
  Normalizat = 0.853944
  Prefactor  = 1.19928
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.499     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10323E-03    40.369        .99838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9667        6.6234        .50000       -.65184    
   3  Normalizat    .85394        .20175E-01    .10002E-04   -.98098    
   4  Prefactor     1.1993        .22028E-01    .93382E-05   -.86353    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.11065e-08
Minuit parameter uncertainties:
  1  0.0228359
  2  271.96
  3  0.0201749
  4  0.022028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993005': 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) = 5301.49878848
delta logL = 2.15483123611e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.032e-04  2.284e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.967e+00  2.720e+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.199e+00  2.203e-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:  8.539e-01  2.017e-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/993005/cmap_HighResolution_639014401_639273601_4FGL_J1254.5+2210_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2021-09-06 09:33:45.733990', job_id='993005', GAL2='1.20', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630946025.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1542' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:33:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 993005: <4FGL_J1254.5+2210_daily_bin1542> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1542> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:47 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:48 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:48 2021
Terminated at Mon Sep  6 09:33:46 2021
Results reported at Mon Sep  6 09:33:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1542 193.637 22.1808 639014401 639273601 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 :                                   751.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

