/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 33 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 = 7440
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1179
RA = 193.637, Dec = 22.1808
tmin = 544924801, tmax = 545184001
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='991422', job_status='RUN', time_executed='2021-09-06 09:17:09.909087', time_epoch_executed='1630945029.91' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991422

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991422/ft1_4FGL_J1254.5+2210_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991422/ft2_4FGL_J1254.5+2210_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991422/ft1_4FGL_J1254.5+2210_daily_bin1179.fits outfile=/scratch/kocevski/991422/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1179.fits ra=193.637 dec=22.1808 rad=12.0 tmin=544924801.0 tmax=545184001.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 4.19
user 3.90
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991422/ft1_filtered_4FGL_J1254.5+2210_daily_bin1179.fits" evtable="EVENTS" scfile=/scratch/kocevski/991422/ft2_4FGL_J1254.5+2210_daily_bin1179.fits sctable="SC_DATA" outfile=/scratch/kocevski/991422/ltcube_544924801_545184001_4FGL_J1254.5+2210_daily_bin1179.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/991422/ft2_4FGL_J1254.5+2210_daily_bin1179.fits
.....................!
real 11.82
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991422/ft1_filtered_4FGL_J1254.5+2210_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/991422/ft2_4FGL_J1254.5+2210_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/991422/ltcube_544924801_545184001_4FGL_J1254.5+2210_daily_bin1179.fits outfile=/scratch/kocevski/991422/expmap_544924801_545184001_4FGL_J1254.5+2210_daily_bin1179.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/991422/ltcube_544924801_545184001_4FGL_J1254.5+2210_daily_bin1179.fits
.....................!
real 191.53
user 185.78
sys 5.15

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/991422/ft1_filtered_4FGL_J1254.5+2210_daily_bin1179.fits scfile=/scratch/kocevski/991422/ft2_4FGL_J1254.5+2210_daily_bin1179.fits outfile=/scratch/kocevski/991422/cmap_544924801_545184001_4FGL_J1254.5+2210_daily_bin1179.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991422/ft1_filtered_4FGL_J1254.5+2210_daily_bin1179.fits scfile=/scratch/kocevski/991422/ft2_4FGL_J1254.5+2210_daily_bin1179.fits outfile=/scratch/kocevski/991422/cmap_HighResolution_544924801_545184001_4FGL_J1254.5+2210_daily_bin1179.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9845       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12112       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10892E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3403       1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.032       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.994       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   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.4924       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75235       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=   5954.154     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     4461 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0736       -.31405E-06** at limit **
   2  Prefactor     .10000E-03    1.0453        .14563E-06** at limit **
   3  norm          .10000E-03    2.7192       -.19902E-07** at limit **
   4  Prefactor     5.9845        4.2311        .47046E-06    .69225E-05
   5  Prefactor     4.7808        3.7523       -.56314E-07   -.77373E-04
   6  Prefactor     .10000E-03    2.3727       -.14623E-06** at limit **
   7  norm          .12114        .26169        .76982E-07   -.33999E-03
   8  norm          .10000E-03    1.7814       -.11443E-06** at limit **
   9  Prefactor     13.299        9.5866        .40748E-07    .47275E-04
  10  Prefactor     .10000E-03    5.8115        .31210E-05** at limit **
  11  Prefactor     .10000E-03    10.476       -.49616E-05** at limit **
  12  Prefactor     .10000E-03    31.779       -.46480E-05** at limit **
  13  Prefactor     18.838        22.491       -.13494E-06    .32252E-05
  14  Prefactor     .10000E-03    2.5990        .52691E-07** at limit **
  15  Prefactor     .10000E-03    3.0785       -.61113E-09** at limit **
  16  norm          .10000E-03    3.6492        .96870E-07** at limit **
  17  Prefactor     .10000E-03    5.6875       -.28413E-05** at limit **
  18  Prefactor     .10000E-03    133.49       -.35788E-05** at limit **
  19  norm          .10002E-03    3.8006        .15745E-05** at limit **
  20  norm          .10000E-03    7.4035       -.21639E-05** at limit **
  21  norm          2.3384        2.7464        .33867E-06   -.10901E-02
  22  norm          .10000E-03    38.607        .41551E-05** at limit **
  23  norm          10.031        6.9796       -.30526E-07   -.18347E-03
  24  Prefactor     28.996        22.462       -.70439E-07   -.19707E-05
  25  norm          .10000E-03    2.9586        .28555E-06** at limit **
  26  Prefactor     .10000E-03    14.837        .19070E-05** at limit **
  27  Prefactor     .10000E-03    9.7430        .15766E-05** at limit **
  28  Normalizat    1.4923        .19689       -.59139E-06   -.16493E-03
  29  Prefactor     .75236        .18314       -.12568E-07   -.14947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.98446
  Prefactor  = 4.7808
  Prefactor  = 0.0001
  norm       = 0.121143
  norm       = 0.0001
  Prefactor  = 13.2987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100015
  norm       = 0.0001
  norm       = 2.33835
  norm       = 0.0001
  norm       = 10.0311
  Prefactor  = 28.9955
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.49232
  Prefactor  = 0.752363
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.154     FROM HESSE     STATUS=OK           541 CALLS     5002 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1135        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0528        .77031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.7229        .12412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9845        4.2263        .12801E-03   -1.5219    
   5  Prefactor     4.7808        3.7527        .12617E-03   -1.5271    
   6  Prefactor     .10000E-03    2.3754        .11607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .12114        .26138        .53788E-04   -1.5638    
   8  norm          .10000E-03    1.7842        .10057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.299        9.5872        .10984E-03   -1.4978    
  10  Prefactor     .10000E-03    5.8421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.838        22.491        .92282E-04   -1.4840    
  14  Prefactor     .10000E-03    2.6040        .12147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0889        .13220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6703        .14396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7230        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    134.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10002E-03    9.2080        .27745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.5444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3384        7.6131        .13401E-02   -1.5402    
  22  norm          .10000E-03    38.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.031        6.9774        .12651E-03   -1.5074    
  24  Prefactor     28.996        22.467        .74404E-04   -1.4630    
  25  norm          .10000E-03    2.9640        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.7578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4923        .23564        .23079E-03   -.77994    
  29  Prefactor     .75236        .22017        .29310E-03   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54597e-09
Minuit parameter uncertainties:
  1  8.17129e-07
  2  8.86452e-07
  3  6.07439e-06
  4  4.22647
  5  3.75292
  6  4.60664e-07
  7  0.261384
  8  3.51831e-07
  9  9.5883
  10  1.50364e-05
  11  2.89582e-05
  12  5.70767e-05
  13  22.5007
  14  1.3146e-06
  15  2.68826e-06
  16  2.7959e-06
  17  4.40438e-06
  18  6.76627e-05
  19  0.000754622
  20  7.27254e-06
  21  7.61622
  22  8.53683e-06
  23  6.97797
  24  22.4734
  25  2.02463e-06
  26  1.93565e-05
  27  1.21232e-05
  28  0.235812
  29  0.220427
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.315e-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:  7.524e-01  2.204e-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.492e+00  2.358e-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: 5.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991422/likelihoodResults_544924801_545184001_4FGL_J1254.5+2210_daily_bin1179.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) = 5954.15540834
delta logL = -0.00180088528396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5954.1536076
delta logL = -1.44678779179e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0682       1.0000          .0000       10.000    
     3 'Normalizat'    1.4923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75241       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=   5954.154     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10107E-03    31.354        .12362E-02** at limit **
   2  Index         2.0184        5.8813        .50000        .54917E-04
   3  Normalizat    1.4923        .16581E-01    .23079E-03    .74875E-05
   4  Prefactor     .75236        .15620E-01    .29310E-03    .26764E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101071
  Index      = 2.01836
  Normalizat = 1.49232
  Prefactor  = 0.752363
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.154     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10107E-03    129.30        .24724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0184        5.9212        .50000       -.63892    
   3  Normalizat    1.4923        .35172E-01    .92316E-05   -.77994    
   4  Prefactor     .75236        .33130E-01    .11724E-04   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.70381e-08
Minuit parameter uncertainties:
  1  0.0235855
  2  326.203
  3  0.0351721
  4  0.0331311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991422': 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) = 5954.15360658
delta logL = 8.73542376212e-07

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.011e-04  2.359e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.018e+00  3.262e+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:  7.524e-01  3.313e-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.492e+00  3.517e-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/991422/cmap_HighResolution_544924801_545184001_4FGL_J1254.5+2210_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-06 09:32:00.883043', job_id='991422', GAL2='0.75', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630945920.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1179' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:32:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 991422: <4FGL_J1254.5+2210_daily_bin1179> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1179 193.637 22.1808 544924801 545184001 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 :                                   819.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

