/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 4 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin293
RA = 193.637, Dec = 22.1808
tmin = 315273601, tmax = 315532801
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='986694', job_status='RUN', time_executed='2021-09-06 09:01:07.917712', time_epoch_executed='1630944067.92' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986694/ft1_4FGL_J1254.5+2210_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986694/ft2_4FGL_J1254.5+2210_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986694/ft1_4FGL_J1254.5+2210_daily_bin293.fits outfile=/scratch/kocevski/986694/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin293.fits ra=193.637 dec=22.1808 rad=12.0 tmin=315273601.0 tmax=315532801.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 3.66
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986694/ft2_4FGL_J1254.5+2210_daily_bin293.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/986694/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin293.fits evtable="EVENTS" outfile="/scratch/kocevski/986694/ft1_filtered_4FGL_J1254.5+2210_daily_bin293.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986694/ft1_filtered_4FGL_J1254.5+2210_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/986694/ft2_4FGL_J1254.5+2210_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/986694/ltcube_315273601_315532801_4FGL_J1254.5+2210_daily_bin293.fits outfile=/scratch/kocevski/986694/expmap_315273601_315532801_4FGL_J1254.5+2210_daily_bin293.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/986694/ltcube_315273601_315532801_4FGL_J1254.5+2210_daily_bin293.fits
.....................!
real 190.39
user 184.89
sys 5.16

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/986694/ft1_filtered_4FGL_J1254.5+2210_daily_bin293.fits scfile=/scratch/kocevski/986694/ft2_4FGL_J1254.5+2210_daily_bin293.fits outfile=/scratch/kocevski/986694/cmap_315273601_315532801_4FGL_J1254.5+2210_daily_bin293.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986694/ft1_filtered_4FGL_J1254.5+2210_daily_bin293.fits scfile=/scratch/kocevski/986694/ft2_4FGL_J1254.5+2210_daily_bin293.fits outfile=/scratch/kocevski/986694/cmap_HighResolution_315273601_315532801_4FGL_J1254.5+2210_daily_bin293.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.637 yref=22.1808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69741E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3560       1.0000         .10000E-03   10000.    
     3 'norm      '    9.3627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4587       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3993       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9659       1.0000         .10000E-03   10000.    
     8 'norm      '    .10276E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3325       1.0000         .10000E-03   10000.    
    16 'norm      '    .91553       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.556       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11204E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .29132E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.989       1.0000         .10000E-03   10000.    
    25 'norm      '    10.931       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.7403       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.697       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89085       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=   6084.542     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     4287 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49055E-01    2.7965        .12752E-05   -.39873E-03
   2  Prefactor     4.3644        4.3888       -.19714E-06   -.56660E-03
   3  norm          9.3623        4.8572       -.14826E-07   -.73206E-04
   4  Prefactor     2.4586        2.7801        .46810E-07    .44237E-04
   5  Prefactor     .10000E-03    1.3186        .10577E-06** at limit **
   6  Prefactor     4.3988        5.1734       -.44980E-07   -.20068E-03
   7  norm          3.9659        .57660       -.21012E-07   -.39709E-02
   8  norm          .10000E-03    5.0240        .32679E-05** at limit **
   9  Prefactor     .10000E-03    9.8223       -.32089E-06** at limit **
  10  Prefactor     11.739        11.096       -.65787E-07   -.96169E-04
  11  Prefactor     72.275        39.165       -.28617E-06   -.18138E-03
  12  Prefactor     20.383        162.85       -.32749E-05    .16788E-06
  13  Prefactor     .10000E-03    61.957       -.11277E-06** at limit **
  14  Prefactor     .10000E-03    5.3331        .15930E-06** at limit **
  15  Prefactor     8.3268        14.538        .46573E-06    .73902E-04
  16  norm          .91669        15.808        .39051E-05    .14832E-03
  17  Prefactor     .10000E-03    11.341        .15870E-06** at limit **
  18  Prefactor     55.580        62.363       -.24736E-05    .91775E-04
  19  norm          .10000E-03    1.6364        .62069E-07** at limit **
  20  norm          .10000E-03    3.0626        .14024E-05** at limit **
  21  norm          .10000E-03    2.4551        .25340E-06** at limit **
  22  norm          .10008E-03    12.744       -.17039E-05** at limit **
  23  norm          .10003E-03    18.480       -.67998E-05** at limit **
  24  Prefactor     30.974        26.477        .88771E-07   -.26531E-04
  25  norm          10.925        10.566       -.72944E-06   -.10584E-04
  26  Prefactor     8.7385        16.416        .11367E-06    .19690E-04
  27  Prefactor     20.701        19.124       -.65531E-07   -.17094E-04
  28  Normalizat    1.2193        .21824        .10756E-05   -.20822E-03
  29  Prefactor     .89084        .20358       -.17592E-05   -.29144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0490553
  Prefactor  = 4.36441
  norm       = 9.3623
  Prefactor  = 2.45857
  Prefactor  = 0.0001
  Prefactor  = 4.39875
  norm       = 3.96594
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 11.7389
  Prefactor  = 72.275
  Prefactor  = 20.3827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.32678
  norm       = 0.916685
  Prefactor  = 0.0001
  Prefactor  = 55.5801
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.000100082
  norm       = 0.000100032
  Prefactor  = 30.9737
  norm       = 10.9248
  Prefactor  = 8.7385
  Prefactor  = 20.7008
  Normalizat = 1.21927
  Prefactor  = 0.890837
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.542     FROM HESSE     STATUS=OK           559 CALLS     4846 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49055E-01    6.1944        .37823E-01   -1.5664    
   2  Prefactor     4.3644        4.5796        .14723E-03   -1.5290    
   3  norm          9.3623        4.8737        .11423E-03   -1.5096    
   4  Prefactor     2.4586        2.7835        .12775E-03   -1.5394    
   5  Prefactor     .10000E-03    1.3466        .87392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3988        5.1164        .18472E-03   -1.5288    
   7  norm          3.9659        .57928        .21257E-04   -1.5310    
   8  norm          .10000E-03    8.7132        .29165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.739        11.099        .11692E-03   -1.5023    
  11  Prefactor     72.275        39.133        .47221E-04   -1.4006    
  12  Prefactor     20.383        178.19        .88498E-04   -1.4805    
  13  Prefactor     .10000E-03    62.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3795        .17595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3268        14.563        .13888E-03   -1.5131    
  16  norm          .91669        30.786        .35458E-02   -1.5516    
  17  Prefactor     .10000E-03    11.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     55.580        68.919        .53817E-04   -1.4216    
  19  norm          .10000E-03    1.6443        .97442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.3138        .13738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4631        .11952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10008E-03    95.509        .51571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10003E-03    25.422        .35638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     30.974        26.499        .71976E-04   -1.4594    
  25  norm          10.925        9.3468        .12118E-03   -1.5047    
  26  Prefactor     8.7385        16.414        .13558E-03   -1.5117    
  27  Prefactor     20.701        19.135        .88041E-04   -1.4798    
  28  Normalizat    1.2193        .26340        .27544E-03   -.86009    
  29  Prefactor     .89084        .24524        .30697E-03   -.96462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32048e-09
Minuit parameter uncertainties:
  1  1.10147
  2  4.57994
  3  4.87391
  4  2.78367
  5  7.63533e-06
  6  5.1169
  7  0.57928
  8  0.000320896
  9  0.000101003
  10  11.1013
  11  39.1466
  12  121.019
  13  4.53569e-05
  14  2.88894e-05
  15  14.5696
  16  10.63
  17  6.74935e-05
  18  69.0185
  19  6.80309e-06
  20  0.00018049
  21  2.81651e-05
  22  0.00559526
  23  0.00179777
  24  26.5092
  25  9.34809
  26  16.4228
  27  19.141
  28  0.263688
  29  0.245542
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.889e-05  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.908e-01  2.455e-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.219e+00  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/986694/likelihoodResults_315273601_315532801_4FGL_J1254.5+2210_daily_bin293.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) = 6084.54291495
delta logL = -0.000884735126419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6084.54203022
delta logL = -2.12457962334e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0812       1.0000          .0000       10.000    
     3 'Normalizat'    1.2193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89085       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=   6084.542     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.654        .90712E-02** at limit **
   2  Index         2.0734        8.9552        .50000        .11492E-04
   3  Normalizat    1.2193        .22331E-01    .62273E-01   -.12302E-04
   4  Prefactor     .89084        .21753E-01    .69385E-01    .23614E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0734
  Normalizat = 1.21927
  Prefactor  = 0.890839
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.542     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8546        .17641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0734        6.0251        .50000       -.62527    
   3  Normalizat    1.2193        .24359        .27544E-03   -.86009    
   4  Prefactor     .89084        .23708        .30697E-03   -.96462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43192e-10
Minuit parameter uncertainties:
  1  1.17678e-06
  2  4.22347
  3  0.24382
  4  0.237356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986694': 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) = 6084.54203017
delta logL = 4.56011548522e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.177e-06  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.073e+00  4.223e+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:  8.908e-01  2.374e-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.219e+00  2.438e-01  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/986694/cmap_HighResolution_315273601_315532801_4FGL_J1254.5+2210_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-09-06 09:15:08.831269', job_id='986694', GAL2='0.89', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630944908.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='293' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:15:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 986694: <4FGL_J1254.5+2210_daily_bin293> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin293> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 09:00:53 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:00:54 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:00:54 2021
Terminated at Mon Sep  6 09:15:09 2021
Results reported at Mon Sep  6 09:15:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin293 193.637 22.1808 315273601 315532801 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 :                                   834.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            856 sec.

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

