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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1005
RA = 193.637, Dec = 22.1808
tmin = 499824001, tmax = 500083201
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='991137', job_status='RUN', time_executed='2021-09-06 09:18:36.000269', time_epoch_executed='1630945116.0' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991137/ft1_4FGL_J1254.5+2210_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991137/ft2_4FGL_J1254.5+2210_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991137/ft1_4FGL_J1254.5+2210_daily_bin1005.fits outfile=/scratch/kocevski/991137/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1005.fits ra=193.637 dec=22.1808 rad=12.0 tmin=499824001.0 tmax=500083201.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.32
user 4.93
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991137/ft1_filtered_4FGL_J1254.5+2210_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/991137/ft2_4FGL_J1254.5+2210_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/991137/ltcube_499824001_500083201_4FGL_J1254.5+2210_daily_bin1005.fits outfile=/scratch/kocevski/991137/expmap_499824001_500083201_4FGL_J1254.5+2210_daily_bin1005.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/991137/ltcube_499824001_500083201_4FGL_J1254.5+2210_daily_bin1005.fits
.....................!
real 190.12
user 185.42
sys 4.26

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/991137/ft1_filtered_4FGL_J1254.5+2210_daily_bin1005.fits scfile=/scratch/kocevski/991137/ft2_4FGL_J1254.5+2210_daily_bin1005.fits outfile=/scratch/kocevski/991137/cmap_499824001_500083201_4FGL_J1254.5+2210_daily_bin1005.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/991137/ft1_filtered_4FGL_J1254.5+2210_daily_bin1005.fits scfile=/scratch/kocevski/991137/ft2_4FGL_J1254.5+2210_daily_bin1005.fits outfile=/scratch/kocevski/991137/cmap_HighResolution_499824001_500083201_4FGL_J1254.5+2210_daily_bin1005.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9131       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6136       1.0000         .10000E-03   10000.    
     3 'norm      '    9.1375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4908       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6045       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16729       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    83.944       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8111       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.496       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.4303       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1312       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.0480       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.097       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .67405       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3211       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=   4701.388     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3651 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9127        4.0550       -.40554E-08   -.42425E-04
   2  Prefactor     1.6139        3.6349        .29634E-06   -.21555E-03
   3  norm          9.1375        4.6652        .23907E-07   -.27385E-05
   4  Prefactor     4.4908        2.9625        .91363E-08    .20753E-04
   5  Prefactor     5.6044        2.8491        .30120E-07   -.11367E-04
   6  Prefactor     .10000E-03    2.2366        .25290E-07** at limit **
   7  norm          .16728        .15002        .14941E-08   -.10713E-04
   8  norm          .10000E-03    3.6905        .98066E-07** at limit **
   9  Prefactor     12.597        10.615        .16053E-07   -.10288E-03
  10  Prefactor     .10000E-03    3.5809       -.34343E-08** at limit **
  11  Prefactor     .10002E-03    26.233        .10633E-04** at limit **
  12  Prefactor     83.947        87.740        .14641E-05    .33180E-04
  13  Prefactor     .10000E-03    46.888       -.58234E-05** at limit **
  14  Prefactor     3.8108        7.2976        .31791E-05   -.14583E-02
  15  Prefactor     .10000E-03    5.8152       -.11980E-05** at limit **
  16  norm          18.496        8.4452       -.29742E-07    .23344E-04
  17  Prefactor     .10001E-03    18.640       -.67978E-05** at limit **
  18  Prefactor     .10000E-03    22.426       -.17784E-05** at limit **
  19  norm          4.4308        5.1073       -.12309E-06   -.11491E-03
  20  norm          3.1327        5.0261       -.93170E-07    .75273E-04
  21  norm          .10000E-03    8.9708       -.24695E-05** at limit **
  22  norm          .10000E-03    9.8538        .37966E-06** at limit **
  23  norm          7.0510        8.4021        .11395E-05   -.10935E-02
  24  Prefactor     .10000E-03    23.480        .69770E-06** at limit **
  25  norm          .10000E-03    11.739        .30148E-05** at limit **
  26  Prefactor     .10000E-03    6.1557        .16825E-05** at limit **
  27  Prefactor     26.098        23.524        .45874E-06    .28304E-04
  28  Normalizat    .67393        .21158       -.92848E-06   -.11471E-04
  29  Prefactor     1.3211        .21267       -.42050E-06   -.10260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91272
  Prefactor  = 1.61392
  norm       = 9.13753
  Prefactor  = 4.49075
  Prefactor  = 5.60438
  Prefactor  = 0.0001
  norm       = 0.167279
  norm       = 0.0001
  Prefactor  = 12.5972
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 83.9467
  Prefactor  = 0.000100005
  Prefactor  = 3.81078
  Prefactor  = 0.0001
  norm       = 18.4957
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 4.4308
  norm       = 3.13268
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.05099
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 26.0981
  Normalizat = 0.673932
  Prefactor  = 1.32111
 **********
 **   18 **HESSE 
 **********

 FCN=   4701.388     FROM HESSE     STATUS=OK           553 CALLS     4204 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9127        4.0254        .97406E-04   -1.5182    
   2  Prefactor     1.6139        3.6034        .17977E-03   -1.5454    
   3  norm          9.1375        4.6725        .98519E-04   -1.5103    
   4  Prefactor     4.4908        2.9697        .89604E-04   -1.5284    
   5  Prefactor     5.6044        2.8497        .79194E-04   -1.5234    
   6  Prefactor     .10000E-03    2.2393        .10014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .16728        .15552        .24348E-03   -1.5626    
   8  norm          .10000E-03    3.7521        .12858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.597        10.619        .11286E-03   -1.4998    
  10  Prefactor     .10000E-03    3.5835        .12672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    27.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     83.947        87.788        .43843E-04   -1.3873    
  13  Prefactor     .10000E-03    47.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8108        9.1314        .10338E-02   -1.5318    
  15  Prefactor     .10000E-03    5.8544        .16166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.496        8.4423        .93129E-04   -1.4848    
  17  Prefactor     .10001E-03    19.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.4308        5.1019        .15859E-03   -1.5287    
  20  norm          3.1327        4.9596        .18268E-03   -1.5354    
  21  norm          .10000E-03    9.0467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.8593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.0510        8.7633        .75553E-03   -1.5177    
  24  Prefactor     .10000E-03    23.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.1942        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     26.098        23.523        .78418E-04   -1.4686    
  28  Normalizat    .67393        .25008        .31105E-03   -1.0493    
  29  Prefactor     1.3211        .25295        .23742E-03   -.82681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23233e-09
Minuit parameter uncertainties:
  1  4.02552
  2  3.60388
  3  4.67268
  4  2.96979
  5  2.84972
  6  1.05963e-06
  7  0.155521
  8  4.96276e-06
  9  10.621
  10  1.58696e-07
  11  0.00131248
  12  87.9239
  13  0.000932639
  14  9.13474
  15  6.35457e-05
  16  8.44283
  17  0.000630992
  18  0.000192974
  19  5.10244
  20  4.96029
  21  0.000127373
  22  2.78708e-05
  23  8.76491
  24  8.2637e-05
  25  0.000230406
  26  9.90196e-05
  27  23.5309
  28  0.250503
  29  0.253187
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.811e+00  9.135e+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.321e+00  2.532e-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:  6.739e-01  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991137/likelihoodResults_499824001_500083201_4FGL_J1254.5+2210_daily_bin1005.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4701.36756823
delta logL = 0.0208946049743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4701.36527508
delta logL = 0.0231877495034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2606       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3498       1.0000          .0000       10.000    
     3 'Normalizat'    .66562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3255       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=   4701.365     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      277 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2488        9.9463        .11214E-02   -.95298E-04
   2  Index         2.3500        1.4196        .10367E-01   -.14775E-04
   3  Normalizat    .66646        .24544        .31270E-03   -.30903E-05
   4  Prefactor     1.3246        .25299        .23715E-03   -.19444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24882
  Index      = 2.35001
  Normalizat = 0.666465
  Prefactor  = 1.32462
 **********
 **   18 **HESSE 
 **********

 FCN=   4701.365     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2488        8.4458        .44855E-04   -1.5347    
   2  Index         2.3500        1.2107        .41469E-03   -.55860    
   3  Normalizat    .66646        .24486        .12508E-04   -1.0523    
   4  Prefactor     1.3246        .25234        .47431E-04   -.82578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81334e-11
Minuit parameter uncertainties:
  1  8.44889
  2  1.22781
  3  0.245264
  4  0.252573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991137': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4701.36526727
delta logL = 0.0231955625532

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.249e+00  8.449e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.350e+00  1.228e+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.325e+00  2.526e-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:  6.665e-01  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/991137/cmap_HighResolution_499824001_500083201_4FGL_J1254.5+2210_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-06 09:29:50.374996', job_id='991137', GAL2='1.32', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630945790.38', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.32e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1005' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:29:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 991137: <4FGL_J1254.5+2210_daily_bin1005> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1005 193.637 22.1808 499824001 500083201 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

