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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1327
RA = 193.637, Dec = 22.1808
tmin = 583286401, tmax = 583545601
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='992698', job_status='RUN', time_executed='2021-09-06 09:22:23.887974', time_epoch_executed='1630945343.89' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992698

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992698/ft1_4FGL_J1254.5+2210_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992698/ft2_4FGL_J1254.5+2210_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992698/ft1_4FGL_J1254.5+2210_daily_bin1327.fits outfile=/scratch/kocevski/992698/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1327.fits ra=193.637 dec=22.1808 rad=12.0 tmin=583286401.0 tmax=583545601.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 3.55
user 3.25
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992698/ft1_filtered_4FGL_J1254.5+2210_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/992698/ft2_4FGL_J1254.5+2210_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/992698/ltcube_583286401_583545601_4FGL_J1254.5+2210_daily_bin1327.fits outfile=/scratch/kocevski/992698/expmap_583286401_583545601_4FGL_J1254.5+2210_daily_bin1327.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/992698/ltcube_583286401_583545601_4FGL_J1254.5+2210_daily_bin1327.fits
.....................!
real 191.29
user 184.40
sys 6.50

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/992698/ft1_filtered_4FGL_J1254.5+2210_daily_bin1327.fits scfile=/scratch/kocevski/992698/ft2_4FGL_J1254.5+2210_daily_bin1327.fits outfile=/scratch/kocevski/992698/cmap_583286401_583545601_4FGL_J1254.5+2210_daily_bin1327.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.58
user 0.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992698/ft1_filtered_4FGL_J1254.5+2210_daily_bin1327.fits scfile=/scratch/kocevski/992698/ft2_4FGL_J1254.5+2210_daily_bin1327.fits outfile=/scratch/kocevski/992698/cmap_HighResolution_583286401_583545601_4FGL_J1254.5+2210_daily_bin1327.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.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.2868       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16913       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    29.997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1705       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.297       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7609       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.596       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9966       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7427       1.0000         .10000E-03   10000.    
    19 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.687       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.849       1.0000         .10000E-03   10000.    
    24 'Prefactor '    70.746       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0812       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1145       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=   6497.239     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3684 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95571       -.30488E-07** at limit **
   2  Prefactor     4.2871        3.5240        .52362E-07   -.13961E-03
   3  norm          5.6888        3.7489        .12157E-07   -.42686E-03
   4  Prefactor     1.9959        2.1202        .49300E-07   -.21499E-03
   5  Prefactor     .18747        1.4325        .52886E-06   -.75805E-03
   6  Prefactor     .10000E-03    2.4286       -.10635E-06** at limit **
   7  norm          .10000E-03    .95708E-01   -.17839E-07** at limit **
   8  norm          29.992        7.5519       -.38848E-06   -.98122E-03
   9  Prefactor     .10000E-03    3.5019        .47719E-07** at limit **
  10  Prefactor     4.1640        8.8422       -.42565E-06   -.26293E-03
  11  Prefactor     19.104        25.326       -.18377E-06   -.31405E-04
  12  Prefactor     .10000E-03    38.950       -.26553E-05** at limit **
  13  Prefactor     14.277        44.466       -.55102E-05   -.12827E-03
  14  Prefactor     1.7634        6.8567        .22296E-05    .19675E-04
  15  Prefactor     13.598        16.170        .75670E-07   -.40768E-05
  16  norm          2.9960        4.2816        .16505E-06   -.50856E-04
  17  Prefactor     5.2569        11.617        .48064E-05   -.25893E-03
  18  Prefactor     8.7428        22.448        .47496E-07    .20703E-05
  19  norm          .10000E-03    1.9291        .40069E-07** at limit **
  20  norm          22.688        5.9360        .17475E-06    .27336E-03
  21  norm          .10000E-03    3.7140        .42969E-07** at limit **
  22  norm          .10000E-03    21.489        .38254E-06** at limit **
  23  norm          18.851        7.8257        .29736E-06    .21390E-03
  24  Prefactor     70.746        51.016       -.29391E-07    .10347E-05
  25  norm          .10000E-03    2.0978        .56775E-07** at limit **
  26  Prefactor     .10000E-03    35.736        .23491E-05** at limit **
  27  Prefactor     .10000E-03    21.672        .54303E-06** at limit **
  28  Normalizat    1.0809        .19116       -.78768E-06   -.14300E-03
  29  Prefactor     1.1147        .19326        .10140E-06   -.14878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.28712
  norm       = 5.6888
  Prefactor  = 1.99589
  Prefactor  = 0.187473
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 29.9922
  Prefactor  = 0.0001
  Prefactor  = 4.16402
  Prefactor  = 19.1042
  Prefactor  = 0.000100002
  Prefactor  = 14.2775
  Prefactor  = 1.76339
  Prefactor  = 13.5983
  norm       = 2.99602
  Prefactor  = 5.25685
  Prefactor  = 8.74283
  norm       = 0.0001
  norm       = 22.6881
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.8514
  Prefactor  = 70.746
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.08093
  Prefactor  = 1.11472
 **********
 **   18 **HESSE 
 **********

 FCN=   6497.239     FROM HESSE     STATUS=OK           555 CALLS     4239 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .96087        .76884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2871        3.5209        .13152E-03   -1.5294    
   3  norm          5.6888        3.7872        .11402E-03   -1.5231    
   4  Prefactor     1.9959        2.1215        .11129E-03   -1.5425    
   5  Prefactor     .18747        9.8388        .16834E-02   -1.5621    
   6  Prefactor     .10000E-03    2.4331        .12263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .13092        .48282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          29.992        7.6609        .73153E-04   -1.4612    
   9  Prefactor     .10000E-03    3.5031        .14730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1640        8.8786        .19736E-03   -1.5300    
  11  Prefactor     19.104        25.339        .91631E-04   -1.4834    
  12  Prefactor     .10000E-03    39.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.277        45.966        .10593E-03   -1.4952    
  14  Prefactor     1.7634        6.8523        .31575E-03   -1.5442    
  15  Prefactor     13.598        16.299        .10863E-03   -1.4970    
  16  norm          2.9960        4.2568        .18601E-03   -1.5362    
  17  Prefactor     5.2569        12.074        .87658E-03   -1.5249    
  18  Prefactor     8.7428        22.369        .13556E-03   -1.5117    
  19  norm          .10000E-03    1.9964        .21857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.688        5.9469        .84095E-04   -1.4755    
  21  norm          .10000E-03    3.7194        .15153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    21.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.851        7.8485        .92252E-04   -1.4839    
  24  Prefactor     70.746        51.032        .47727E-04   -1.4024    
  25  norm          .10000E-03    2.0997        .11399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    36.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0809        .22543        .27072E-03   -.90366    
  29  Prefactor     1.1147        .22796        .27963E-03   -.88998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19014e-09
Minuit parameter uncertainties:
  1  3.69797e-07
  2  3.52107
  3  3.78735
  4  2.12153
  5  2.71601
  6  4.01351e-06
  7  1.05954e-06
  8  7.66111
  9  4.72414e-06
  10  8.88137
  11  25.3533
  12  0.000510095
  13  46.0799
  14  6.85534
  15  16.304
  16  4.25719
  17  12.0792
  18  22.3904
  19  2.70675e-06
  20  5.94701
  21  1.20712e-05
  22  7.31718e-06
  23  7.84892
  24  51.0632
  25  1.46032e-06
  26  0.00033579
  27  5.12784e-05
  28  0.225635
  29  0.228159
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.763e+00  6.855e+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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.115e+00  2.282e-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.081e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992698/likelihoodResults_583286401_583545601_4FGL_J1254.5+2210_daily_bin1327.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) = 6497.08121313
delta logL = 0.157424177577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6497.0180132
delta logL = 0.220624108646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41678       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3527       1.0000          .0000       10.000    
     3 'Normalizat'    1.0511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1322       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=   6497.018     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      243 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41692        12.152        .10926E-01    .12192E-02
   2  Index         3.3530        2.8522        .12165        .17062E-03
   3  Normalizat    1.0513        .36241E-01    .61978E-01    .18603E-04
   4  Prefactor     1.1321        .38089E-01    .62801E-01    .11852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.416916
  Index      = 3.35302
  Normalizat = 1.05133
  Prefactor  = 1.13209
 **********
 **   18 **HESSE 
 **********

 FCN=   6497.018     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41692        46.300        .76546E-04   -1.5579    
   2  Index         3.3530        6.2432        .71203E-02   -.33566    
   3  Normalizat    1.0513        .18090        .27413E-03   -.91330    
   4  Prefactor     1.1321        .18943        .27776E-03   -.88447    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88049e-08
Minuit parameter uncertainties:
  1  8.79302
  2  8.65243
  3  0.181002
  4  0.189539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992698': 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) = 6497.01801168
delta logL = 0.220625630086

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.169e-01  8.793e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.353e+00  8.652e+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:  1.132e+00  1.895e-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.051e+00  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 193.637 22.181

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/992698/cmap_HighResolution_583286401_583545601_4FGL_J1254.5+2210_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-06 09:36:57.517401', job_id='992698', GAL2='1.13', fit_tolerance='1e-08', EG2='1.05', EG='1.08', time_epoch_completed='1630946217.52', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.21e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1327' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 992698: <4FGL_J1254.5+2210_daily_bin1327> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1327 193.637 22.1808 583286401 583545601 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 :                                   839.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

