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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin75
RA = 193.637, Dec = 22.1808
tmin = 258768001, tmax = 259027201
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='985067', job_status='RUN', time_executed='2021-09-06 08:59:47.147521', time_epoch_executed='1630943987.15' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985067

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985067/ft1_4FGL_J1254.5+2210_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985067/ft2_4FGL_J1254.5+2210_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985067/ft1_4FGL_J1254.5+2210_daily_bin75.fits outfile=/scratch/kocevski/985067/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin75.fits ra=193.637 dec=22.1808 rad=12.0 tmin=258768001.0 tmax=259027201.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.11
user 0.95
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985067/ft2_4FGL_J1254.5+2210_daily_bin75.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/985067/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/985067/ft1_filtered_4FGL_J1254.5+2210_daily_bin75.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.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985067/ft1_filtered_4FGL_J1254.5+2210_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/985067/ft2_4FGL_J1254.5+2210_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/985067/ltcube_258768001_259027201_4FGL_J1254.5+2210_daily_bin75.fits outfile=/scratch/kocevski/985067/expmap_258768001_259027201_4FGL_J1254.5+2210_daily_bin75.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/985067/ltcube_258768001_259027201_4FGL_J1254.5+2210_daily_bin75.fits
.....................!
real 190.94
user 185.80
sys 4.04

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0486       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .36099       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6787       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39013       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9923       1.0000         .10000E-03   10000.    
    20 'norm      '    .11684E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    10.764       1.0000         .10000E-03   10000.    
    22 'norm      '    36.030       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.236       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9525       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2264       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88838       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=   3848.214     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3724 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0488        3.4456        .35670E-07    .12973E-03
   2  Prefactor     .10000E-03    1.9825        .14551E-07** at limit **
   3  norm          5.1702        4.2404        .54010E-07    .39035E-04
   4  Prefactor     .10000E-03    1.3856       -.10318E-07** at limit **
   5  Prefactor     2.9347        2.6615        .36360E-07    .20592E-03
   6  Prefactor     .10004E-03    12.390       -.35447E-05** at limit **
   7  norm          .36099        .31933        .37830E-07    .11378E-02
   8  norm          .10000E-03    5.5412        .83571E-07** at limit **
   9  Prefactor     5.6786        8.5365        .19130E-05    .29969E-03
  10  Prefactor     .10000E-03    4.3339        .21926E-06** at limit **
  11  Prefactor     37.031        34.043       -.57222E-06   -.60145E-04
  12  Prefactor     .10002E-03    56.471       -.29095E-05** at limit **
  13  Prefactor     .10001E-03    17.383        .14735E-05** at limit **
  14  Prefactor     .10000E-03    3.1566       -.46901E-08** at limit **
  15  Prefactor     .37239        11.584        .58885E-06   -.78394E-04
  16  norm          .10000E-03    2.1368        .16853E-07** at limit **
  17  Prefactor     .10000E-03    4.7952       -.10602E-06** at limit **
  18  Prefactor     .10000E-03    51.957        .12722E-05** at limit **
  19  norm          1.9919        5.8088        .12929E-05    .16160E-03
  20  norm          .10001E-03    3.7030       -.11331E-06** at limit **
  21  norm          10.763        9.4563       -.29284E-07    .13875E-04
  22  norm          36.032        26.053       -.40687E-07    .41234E-04
  23  norm          .10000E-03    4.1206       -.11400E-06** at limit **
  24  Prefactor     .10001E-03    38.735        .16864E-05** at limit **
  25  norm          17.236        11.479        .46442E-07   -.80819E-05
  26  Prefactor     7.9524        18.771        .16369E-06   -.13995E-04
  27  Prefactor     .10000E-03    12.973       -.10584E-06** at limit **
  28  Normalizat    1.2264        .23369       -.69429E-06    .63383E-04
  29  Prefactor     .88837        .22990       -.95642E-07    .37632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04875
  Prefactor  = 0.0001
  norm       = 5.17025
  Prefactor  = 0.0001
  Prefactor  = 2.93468
  Prefactor  = 0.00010004
  norm       = 0.360986
  norm       = 0.0001
  Prefactor  = 5.67856
  Prefactor  = 0.0001
  Prefactor  = 37.0307
  Prefactor  = 0.000100021
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.37239
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.99191
  norm       = 0.000100007
  norm       = 10.763
  norm       = 36.0317
  norm       = 0.0001
  Prefactor  = 0.000100007
  norm       = 17.2357
  Prefactor  = 7.95235
  Prefactor  = 0.0001
  Normalizat = 1.2264
  Prefactor  = 0.888375
 **********
 **   18 **HESSE 
 **********

 FCN=   3848.214     FROM HESSE     STATUS=OK           551 CALLS     4275 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0488        3.4444        .92262E-04   -1.5259    
   2  Prefactor     .10000E-03    2.0209        .85236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1702        4.2257        .11071E-03   -1.5253    
   4  Prefactor     .10000E-03    1.3879        .71132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9347        2.6564        .91905E-04   -1.5365    
   6  Prefactor     .10004E-03    20.356        .28808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .36099        .31111        .30995E-03   -1.5588    
   8  norm          .10000E-03    5.7999        .28487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6786        8.9747        .84282E-03   -1.5231    
  10  Prefactor     .10000E-03    4.3538        .12634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.031        34.095        .65860E-04   -1.4490    
  12  Prefactor     .10002E-03    59.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    18.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1616        .10763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .37239        70.138        .40191E-02   -1.5586    
  16  norm          .10000E-03    2.1489        .88549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8044        .13270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    52.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9919        5.9099        .24335E-03   -1.5426    
  20  norm          .10001E-03    44.481        .20543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.763        8.5150        .12212E-03   -1.5052    
  22  norm          36.032        26.053        .66766E-04   -1.4507    
  23  norm          .10000E-03    4.1333        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    39.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.236        11.496        .96471E-04   -1.4877    
  26  Prefactor     7.9524        18.772        .14218E-03   -1.5144    
  27  Prefactor     .10000E-03    12.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2264        .27291        .23427E-03   -.85791    
  29  Prefactor     .88837        .26918        .27826E-03   -.96549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30634e-09
Minuit parameter uncertainties:
  1  3.44458
  2  3.55615e-07
  3  4.22597
  4  6.06042e-07
  5  2.6565
  6  0.00180372
  7  0.31111
  8  4.53635e-05
  9  8.97683
  10  4.55333e-05
  11  34.1132
  12  0.00222164
  13  0.000630091
  14  1.40938e-07
  15  10.2321
  16  1.04066e-06
  17  2.29586e-05
  18  0.000870056
  19  5.91165
  20  0.00114004
  21  8.51597
  22  26.0613
  23  2.43865e-05
  24  0.00103272
  25  11.4977
  26  18.7859
  27  3.87434e-05
  28  0.273232
  29  0.269579
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.409e-07  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:  8.884e-01  2.696e-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.226e+00  2.732e-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: 6.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985067/likelihoodResults_258768001_259027201_4FGL_J1254.5+2210_daily_bin75.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) = 3848.21550752
delta logL = -0.00147347060101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3848.21403394
delta logL = 1.07881987788e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0665       1.0000          .0000       10.000    
     3 'Normalizat'    1.2265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88830       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3848.214     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10143E-03    45.632        .10983E-02** at limit **
   2  Index         2.0084        5.8566        .50000        .48488E-04
   3  Normalizat    1.2264        .20995E-01    .23427E-03    .10385E-04
   4  Prefactor     .88838        .21719E-01    .27826E-03    .34034E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3848.214     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      363 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    45.632        .26521E-03** at limit **
   2  Index         2.0073        5.8566        .37270E-03    .48488E-04
   3  Normalizat    1.2264        .20995E-01    .51500E-05    .10385E-04
   4  Prefactor     .88837        .21719E-01    .45187E-05    .34034E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3848.214     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      415 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.698        .21966E-02** at limit **
   2  Index         1.5904        8.2941        .50000        .15502E-06
   3  Normalizat    1.2264        .21246E-01    .93707E-05   -.79830E-04
   4  Prefactor     .88837        .21978E-01    .11130E-04   -.12318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.59045
  Normalizat = 1.2264
  Prefactor  = 0.888373
 **********
 **   18 **HESSE 
 **********

 FCN=   3848.214     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      444 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    250.93        .43933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5904        7.8277        .50000       -.75037    
   3  Normalizat    1.2264        .48052E-01    .18741E-05   -.85791    
   4  Prefactor     .88837        .49704E-01    .22261E-05   -.96549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73979e-09
Minuit parameter uncertainties:
  1  8.89781e-05
  2  722.789
  3  0.0480539
  4  0.0497066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985067': 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) = 3848.21403059
delta logL = 3.45765965903e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.898e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.590e+00  7.228e+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:  8.884e-01  4.971e-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:  1.226e+00  4.805e-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/985067/cmap_HighResolution_258768001_259027201_4FGL_J1254.5+2210_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-06 09:10:00.022248', job_id='985067', GAL2='0.89', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630944600.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='75' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 985067: <4FGL_J1254.5+2210_daily_bin75> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin75> 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) <bullet0114>, 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:10:00 2021
Results reported at Mon Sep  6 09:10:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin75 193.637 22.1808 258768001 259027201 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            866 sec.

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

