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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin526
RA = 193.637, Dec = 22.1808
tmin = 375667201, tmax = 375926401
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='987943', job_status='RUN', time_executed='2021-09-06 09:05:32.883778', time_epoch_executed='1630944332.88' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987943/ft1_4FGL_J1254.5+2210_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987943/ft2_4FGL_J1254.5+2210_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987943/ft1_4FGL_J1254.5+2210_daily_bin526.fits outfile=/scratch/kocevski/987943/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin526.fits ra=193.637 dec=22.1808 rad=12.0 tmin=375667201.0 tmax=375926401.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.79
user 4.54
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987943/ft1_filtered_4FGL_J1254.5+2210_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/987943/ft2_4FGL_J1254.5+2210_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/987943/ltcube_375667201_375926401_4FGL_J1254.5+2210_daily_bin526.fits outfile=/scratch/kocevski/987943/expmap_375667201_375926401_4FGL_J1254.5+2210_daily_bin526.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/987943/ltcube_375667201_375926401_4FGL_J1254.5+2210_daily_bin526.fits
.....................!
real 190.29
user 185.51
sys 4.39

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/987943/ft1_filtered_4FGL_J1254.5+2210_daily_bin526.fits scfile=/scratch/kocevski/987943/ft2_4FGL_J1254.5+2210_daily_bin526.fits outfile=/scratch/kocevski/987943/cmap_375667201_375926401_4FGL_J1254.5+2210_daily_bin526.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7180       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2772       1.0000         .10000E-03   10000.    
     3 'norm      '    4.7829       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2875       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7949       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0240       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.889       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.210       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .46955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.351       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0454       1.0000         .10000E-03   10000.    
    19 'norm      '    .80683E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    10.331       1.0000         .10000E-03   10000.    
    21 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.055       1.0000         .10000E-03   10000.    
    23 'norm      '    150.56       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.5221       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.6644       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.215       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71169       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=   8543.739     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3230 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7194        4.2525       -.27941E-06   -.68428E-03
   2  Prefactor     3.2778        3.4348        .46577E-06    .25620E-03
   3  norm          4.7833        3.1532       -.71139E-08   -.31540E-04
   4  Prefactor     2.2876        2.2115        .63815E-08   -.59926E-04
   5  Prefactor     3.2597        2.4803       -.87262E-08   -.10865E-03
   6  Prefactor     4.7956        5.2863        .29092E-06    .16432E-03
   7  norm          2.0242        .38903        .14114E-07   -.40039E-03
   8  norm          .10000E-03    2.0643        .24941E-07** at limit **
   9  Prefactor     11.891        8.8514        .28773E-07   -.31588E-04
  10  Prefactor     10.214        10.968        .14521E-05   -.11199E-03
  11  Prefactor     .10000E-03    7.6609        .48957E-07** at limit **
  12  Prefactor     .10001E-03    47.101        .37568E-05** at limit **
  13  Prefactor     .10001E-03    30.971       -.29105E-05** at limit **
  14  Prefactor     5.0451        5.8448        .31407E-06    .32153E-04
  15  Prefactor     .10000E-03    16.029       -.21342E-05** at limit **
  16  norm          .47367        3.1762        .15943E-05   -.10868E-02
  17  Prefactor     26.354        15.301        .25448E-06    .16074E-03
  18  Prefactor     9.0541        23.582        .82171E-07   -.49259E-04
  19  norm          .36530E-01    1.6876        .35788E-06   -.40456E-03
  20  norm          10.333        4.3335       -.13792E-06   -.66440E-03
  21  norm          .10000E-03    3.3671       -.41888E-07** at limit **
  22  norm          11.050        13.565       -.28278E-09   -.45430E-04
  23  norm          150.56        17.429       -.41435E-06   -.27450E-03
  24  Prefactor     .10001E-03    17.003        .28583E-05** at limit **
  25  norm          7.5251        10.704        .30722E-05   -.12229E-03
  26  Prefactor     6.6673        12.434        .26733E-05   -.80910E-04
  27  Prefactor     18.218        16.497       -.60662E-07    .22702E-04
  28  Normalizat    1.3244        .19575       -.10146E-05   -.20608E-03
  29  Prefactor     .71190        .17812       -.24818E-06   -.18247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.71941
  Prefactor  = 3.27782
  norm       = 4.78333
  Prefactor  = 2.28756
  Prefactor  = 3.25967
  Prefactor  = 4.79559
  norm       = 2.0242
  norm       = 0.0001
  Prefactor  = 11.8906
  Prefactor  = 10.2137
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100006
  Prefactor  = 5.04507
  Prefactor  = 0.000100003
  norm       = 0.473673
  Prefactor  = 26.3538
  Prefactor  = 9.05411
  norm       = 0.0365304
  norm       = 10.3327
  norm       = 0.0001
  norm       = 11.0504
  norm       = 150.557
  Prefactor  = 0.000100007
  norm       = 7.52507
  Prefactor  = 6.66733
  Prefactor  = 18.2178
  Normalizat = 1.32444
  Prefactor  = 0.7119
 **********
 **   18 **HESSE 
 **********

 FCN=   8543.739     FROM HESSE     STATUS=OK           571 CALLS     3801 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7194        4.2918        .14606E-03   -1.5230    
   2  Prefactor     3.2778        3.4300        .15596E-03   -1.5346    
   3  norm          4.7833        3.1656        .12164E-03   -1.5271    
   4  Prefactor     2.2876        2.2147        .12343E-03   -1.5405    
   5  Prefactor     3.2597        2.4684        .11755E-03   -1.5347    
   6  Prefactor     4.7956        5.2854        .18373E-03   -1.5270    
   7  norm          2.0242        .39086        .23574E-04   -1.5423    
   8  norm          .10000E-03    2.0800        .12957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.891        8.8523        .11618E-03   -1.5018    
  10  Prefactor     10.214        11.014        .62698E-03   -1.5069    
  11  Prefactor     .10000E-03    7.6670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    48.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    31.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0451        5.8378        .17900E-03   -1.5259    
  15  Prefactor     .10000E-03    16.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .47367        12.174        .27280E-02   -1.5570    
  17  Prefactor     26.354        15.387        .78039E-04   -1.4681    
  18  Prefactor     9.0541        23.997        .13326E-03   -1.5106    
  19  norm          .36530E-01    2.9724        .41544E-01   -1.5670    
  20  norm          10.333        4.3291        .11746E-03   -1.5065    
  21  norm          .10000E-03    3.3744        .16527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.050        13.565        .12049E-03   -1.5043    
  23  norm          150.56        17.483        .32848E-04   -1.3248    
  24  Prefactor     .10001E-03    17.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.5251        10.887        .73112E-03   -1.5159    
  26  Prefactor     6.6673        12.543        .77720E-03   -1.5191    
  27  Prefactor     18.218        16.502        .93845E-04   -1.4854    
  28  Normalizat    1.3244        .23331        .28101E-03   -.82840    
  29  Prefactor     .71190        .20939        .35812E-03   -1.0306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66254e-09
Minuit parameter uncertainties:
  1  4.29205
  2  3.43017
  3  3.16567
  4  2.21477
  5  2.46845
  6  5.28595
  7  0.390858
  8  1.46795e-06
  9  8.85331
  10  11.0161
  11  8.84438e-06
  12  0.00145387
  13  0.000886937
  14  5.83846
  15  0.000457493
  16  4.80326
  17  15.3897
  18  24.0228
  19  0.65817
  20  4.32925
  21  7.95578e-07
  22  13.569
  23  17.4838
  24  0.000689116
  25  10.8898
  26  12.5478
  27  16.5064
  28  0.233492
  29  0.209624
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  5.045e+00  5.838e+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:  7.119e-01  2.096e-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.324e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/987943/likelihoodResults_375667201_375926401_4FGL_J1254.5+2210_daily_bin526.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) = 8543.73106812
delta logL = 0.00835565130546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8543.72644941
delta logL = 0.012974356534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4017       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2493       1.0000          .0000       10.000    
     3 'Normalizat'    1.3192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71497       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=   8543.726     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      260 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4010        7.9852        .19196E-03   -.16855E-03
   2  Index         2.2493        1.1655        .10356E-01   -.31929E-04
   3  Normalizat    1.3191        .21935        .28150E-03   -.30260E-03
   4  Prefactor     .71505        .20997        .35741E-03   -.31045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.40103
  Index      = 2.24927
  Normalizat = 1.31906
  Prefactor  = 0.715045
 **********
 **   18 **HESSE 
 **********

 FCN=   8543.726     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4010        6.9207        .76783E-05   -1.5288    
   2  Index         2.2493        1.0129        .41425E-03   -.58254    
   3  Normalizat    1.3191        .21846        .56300E-04   -.82999    
   4  Prefactor     .71505        .20951        .14297E-04   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29599e-10
Minuit parameter uncertainties:
  1  6.92194
  2  1.02306
  3  0.21861
  4  0.209746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987943': 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) = 8543.7264493
delta logL = 0.0129744651567

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.401e+00  6.922e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.249e+00  1.023e+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:  7.150e-01  2.097e-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.319e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.25 +/- 1.02
Photon Flux (Free Index): 2.40e-08 +/- 3.70e-08
Energy Flux (Free Index): 9.85e-06 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/987943/cmap_HighResolution_375667201_375926401_4FGL_J1254.5+2210_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='9.85e-06', photon_flux_error='2.29e-08', dlogl='1.30e-02', energy_flux='1.11e-05', photon_flux2='2.40e-08', job_status='DONE', time_completed='2021-09-06 09:21:42.768846', photon_index_error2='1.02', photon_index2='2.25', ts='1.17', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='7.80e-08', energy_flux_error2='1.31e-05', EG='1.32', time_epoch_completed='1630945302.77', return_code='0', job_id='987943', GAL2='0.72', EG2='1.32', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.70e-08', ts2='1.19', photon_index='2.09' WHERE bin_id='526' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:21:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 987943: <4FGL_J1254.5+2210_daily_bin526> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin526> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 09:05:19 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:05:21 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:05:21 2021
Terminated at Mon Sep  6 09:21:43 2021
Results reported at Mon Sep  6 09:21:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin526 193.637 22.1808 375667201 375926401 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 :                                   965.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

