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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin95
RA = 193.637, Dec = 22.1808
tmin = 263952001, tmax = 264211201
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='985098', job_status='RUN', time_executed='2021-09-06 08:55:49.733258', time_epoch_executed='1630943749.73' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985098/ft1_4FGL_J1254.5+2210_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985098/ft2_4FGL_J1254.5+2210_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985098/ft1_4FGL_J1254.5+2210_daily_bin95.fits outfile=/scratch/kocevski/985098/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin95.fits ra=193.637 dec=22.1808 rad=12.0 tmin=263952001.0 tmax=264211201.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.70
user 1.51
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985098/ft1_filtered_4FGL_J1254.5+2210_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/985098/ft2_4FGL_J1254.5+2210_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/985098/ltcube_263952001_264211201_4FGL_J1254.5+2210_daily_bin95.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/985098/ft2_4FGL_J1254.5+2210_daily_bin95.fits
.....................!
real 12.98
user 12.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985098/ft1_filtered_4FGL_J1254.5+2210_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/985098/ft2_4FGL_J1254.5+2210_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/985098/ltcube_263952001_264211201_4FGL_J1254.5+2210_daily_bin95.fits outfile=/scratch/kocevski/985098/expmap_263952001_264211201_4FGL_J1254.5+2210_daily_bin95.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/985098/ltcube_263952001_264211201_4FGL_J1254.5+2210_daily_bin95.fits
.....................!
real 190.70
user 185.39
sys 4.71

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25477       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28051E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .28414       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2236       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4130       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .72910       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4363       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.463       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.750       1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7609       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3472       1.0000         .10000E-03   10000.    
    16 'norm      '    5.5028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11762E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.593       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4188       1.0000         .10000E-03   10000.    
    21 'norm      '    15.932       1.0000         .10000E-03   10000.    
    22 'norm      '    11.180       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1985       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.3614       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9265       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0579       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83935       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=   6534.945     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     4793 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26010        1.7232        .34264E-06   -.47861E-03
   2  Prefactor     .10001E-03    1.5282        .71224E-07** at limit **
   3  norm          .28385        2.3491        .93163E-07   -.34990E-04
   4  Prefactor     6.2239        2.7816        .30808E-08   -.71056E-05
   5  Prefactor     3.4132        1.7921        .17902E-07   -.10867E-04
   6  Prefactor     .10000E-03    1.2372       -.14066E-07** at limit **
   7  norm          .72911        .25633        .16305E-07   -.46100E-03
   8  norm          1.4370        2.2284        .21723E-07   -.79138E-05
   9  Prefactor     12.462        9.9247        .10192E-07   -.38086E-04
  10  Prefactor     23.523        11.152        .55657E-07   -.31546E-05
  11  Prefactor     31.744        23.911       -.63183E-08   -.33512E-04
  12  Prefactor     63.843        65.068        .22084E-06    .24882E-04
  13  Prefactor     6.0069        109.76       -.13991E-04    .58836E-04
  14  Prefactor     2.7609        2.8629        .21315E-08   -.32832E-05
  15  Prefactor     1.3267        31.254        .95283E-05    .96537E-04
  16  norm          5.5003        5.2837        .10573E-06    .32030E-04
  17  Prefactor     2.9011        10.536       -.50049E-06   -.19944E-03
  18  Prefactor     .10000E-03    121.19        .55113E-06** at limit **
  19  norm          12.592        4.2082        .74177E-08   -.16956E-03
  20  norm          3.4159        6.0674        .13500E-06   -.25775E-04
  21  norm          15.935        10.253       -.37606E-07    .13542E-06
  22  norm          11.180        12.318       -.32637E-08   -.88750E-06
  23  norm          4.1978        5.5680        .31734E-06   -.12064E-03
  24  Prefactor     8.3609        21.780        .98118E-07   -.12097E-05
  25  norm          3.9255        6.8162        .54186E-06   -.11165E-03
  26  Prefactor     .10000E-03    10.756       -.10310E-06** at limit **
  27  Prefactor     .10000E-03    26.731       -.22460E-06** at limit **
  28  Normalizat    1.0579        .18088       -.48300E-06   -.16449E-03
  29  Prefactor     .83941        .17597       -.56532E-07   -.15982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.260104
  Prefactor  = 0.000100008
  norm       = 0.283853
  Prefactor  = 6.22394
  Prefactor  = 3.41316
  Prefactor  = 0.0001
  norm       = 0.729113
  norm       = 1.43699
  Prefactor  = 12.4618
  Prefactor  = 23.5228
  Prefactor  = 31.7437
  Prefactor  = 63.8431
  Prefactor  = 6.0069
  Prefactor  = 2.76089
  Prefactor  = 1.32668
  norm       = 5.50035
  Prefactor  = 2.90112
  Prefactor  = 0.0001
  norm       = 12.5922
  norm       = 3.41588
  norm       = 15.9346
  norm       = 11.1798
  norm       = 4.1978
  Prefactor  = 8.3609
  norm       = 3.92552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05792
  Prefactor  = 0.839414
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.945     FROM HESSE     STATUS=OK           573 CALLS     5366 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26010        7.4855        .18639E-02   -1.5606    
   2  Prefactor     .10001E-03    16.842        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .28385        2.2779        .22385E-03   -1.5601    
   4  Prefactor     6.2239        2.7655        .80903E-04   -1.5209    
   5  Prefactor     3.4132        1.7934        .75555E-04   -1.5338    
   6  Prefactor     .10000E-03    1.2386        .87806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .72911        .25539        .23038E-04   -1.5537    
   8  norm          1.4370        2.1958        .14607E-03   -1.5468    
   9  Prefactor     12.462        9.9204        .11347E-03   -1.5002    
  10  Prefactor     23.523        11.160        .82587E-04   -1.4738    
  11  Prefactor     31.744        23.902        .71111E-04   -1.4581    
  12  Prefactor     63.843        65.070        .50226E-04   -1.4108    
  13  Prefactor     6.0069        112.59        .16520E-03   -1.5218    
  14  Prefactor     2.7609        2.8701        .13581E-03   -1.5376    
  15  Prefactor     1.3267        32.022        .37718E-03   -1.5478    
  16  norm          5.5003        5.2453        .16725E-03   -1.5239    
  17  Prefactor     2.9011        10.600        .11945E-02   -1.5367    
  18  Prefactor     .10000E-03    123.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.592        4.2134        .92761E-04   -1.4998    
  20  norm          3.4159        6.0586        .19370E-03   -1.5338    
  21  norm          15.935        10.258        .10034E-03   -1.4909    
  22  norm          11.180        12.316        .11982E-03   -1.5039    
  23  norm          4.1978        5.5484        .95408E-03   -1.5298    
  24  Prefactor     8.3609        21.796        .13864E-03   -1.5130    
  25  norm          3.9255        6.8134        .10180E-02   -1.5312    
  26  Prefactor     .10000E-03    10.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    27.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0579        .20844        .24421E-03   -.91115    
  29  Prefactor     .83941        .20214        .27494E-03   -.98291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14992e-09
Minuit parameter uncertainties:
  1  2.79056
  2  0.000748932
  3  1.60802
  4  2.76551
  5  1.7934
  6  2.95194e-08
  7  0.255388
  8  2.19588
  9  9.92173
  10  11.161
  11  23.9095
  12  65.143
  13  52.1259
  14  2.87023
  15  13.0431
  16  5.24579
  17  10.6066
  18  0.000374119
  19  4.21346
  20  6.0597
  21  10.2588
  22  12.3189
  23  5.54907
  24  21.8168
  25  6.8147
  26  2.83941e-06
  27  1.17329e-05
  28  0.208598
  29  0.202321
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  2.761e+00  2.870e+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:  8.394e-01  2.023e-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.058e+00  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.14
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.08e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 6.08e-06 +/- 6.32e-06

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) = 6533.37485461
delta logL = 1.56964935834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6533.37136101
delta logL = 1.5731429581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0015       1.0000         .10000E-03   10000.    
     2 'Index     '    .98177       1.0000          .0000       10.000    
     3 'Normalizat'    1.0617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83926       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=   6533.371     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0007        3.0207        .58573E-02   -.27649E-03
   2  Index         .98147        .44532        .27990       -.39077E-04
   3  Normalizat    1.0618        .17004        .39835E-01   -.24288E-04
   4  Prefactor     .83916        .17339        .44226E-01    .34265E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.00071
  Index      = 0.981467
  Normalizat = 1.06178
  Prefactor  = 0.839165
 **********
 **   18 **HESSE 
 **********

 FCN=   6533.371     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0007        3.8888        .13754E-03   -1.5362    
   2  Index         .98147        .59569        .11847E-01   -.93350    
   3  Normalizat    1.0618        .19432        .24376E-03   -.90989    
   4  Prefactor     .83916        .19811        .27491E-03   -.98300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2859e-11
Minuit parameter uncertainties:
  1  3.88917
  2  0.599747
  3  0.194455
  4  0.198283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985098': 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) = 6533.37136069
delta logL = 1.5731432792

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.001e+00  3.889e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  9.815e-01  5.997e-01  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.392e-01  1.983e-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.062e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.28
Ra Dec: 193.637 22.181
Photon Index (Free Index): 0.98 +/- 0.60
Photon Flux (Free Index): 3.81e-09 +/- 4.18e-09
Energy Flux (Free Index): 5.76e-05 +/- 8.20e-05

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/985098/cmap_HighResolution_263952001_264211201_4FGL_J1254.5+2210_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-08', energy_flux2='5.76e-05', photon_flux_error='1.12e-08', dlogl='1.57e+00', energy_flux='6.08e-06', photon_flux2='3.81e-09', job_status='DONE', time_completed='2021-09-06 09:09:12.032699', photon_index_error2='0.60', photon_index2='0.98', ts='4.14', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='8.20e-05', EG='1.06', time_epoch_completed='1630944552.03', return_code='0', job_id='985098', GAL2='0.84', EG2='1.06', return_code2='0', energy_flux_error='6.32e-06', photon_flux_error2='4.18e-09', ts2='7.28', photon_index='2.09' WHERE bin_id='95' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 985098: <4FGL_J1254.5+2210_daily_bin95> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin95> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:37 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:38 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:38 2021
Terminated at Mon Sep  6 09:09:12 2021
Results reported at Mon Sep  6 09:09:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin95 193.637 22.1808 263952001 264211201 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 :                                   797.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

