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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin530
RA = 193.637, Dec = 22.1808
tmin = 376704001, tmax = 376963201
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='987949', job_status='RUN', time_executed='2021-09-06 09:05:31.767685', time_epoch_executed='1630944331.77' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987949

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987949/ft1_4FGL_J1254.5+2210_daily_bin530.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987949/ft2_4FGL_J1254.5+2210_daily_bin530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987949/ft1_4FGL_J1254.5+2210_daily_bin530.fits outfile=/scratch/kocevski/987949/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin530.fits ra=193.637 dec=22.1808 rad=12.0 tmin=376704001.0 tmax=376963201.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.41
user 3.17
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987949/ft1_filtered_4FGL_J1254.5+2210_daily_bin530.fits" evtable="EVENTS" scfile=/scratch/kocevski/987949/ft2_4FGL_J1254.5+2210_daily_bin530.fits sctable="SC_DATA" outfile=/scratch/kocevski/987949/ltcube_376704001_376963201_4FGL_J1254.5+2210_daily_bin530.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/987949/ft2_4FGL_J1254.5+2210_daily_bin530.fits
.....................!
real 11.98
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987949/ft1_filtered_4FGL_J1254.5+2210_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/987949/ft2_4FGL_J1254.5+2210_daily_bin530.fits sctable="SC_DATA" expcube=/scratch/kocevski/987949/ltcube_376704001_376963201_4FGL_J1254.5+2210_daily_bin530.fits outfile=/scratch/kocevski/987949/expmap_376704001_376963201_4FGL_J1254.5+2210_daily_bin530.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/987949/ltcube_376704001_376963201_4FGL_J1254.5+2210_daily_bin530.fits
.....................!
real 191.06
user 186.00
sys 4.47

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/987949/ft1_filtered_4FGL_J1254.5+2210_daily_bin530.fits scfile=/scratch/kocevski/987949/ft2_4FGL_J1254.5+2210_daily_bin530.fits outfile=/scratch/kocevski/987949/cmap_376704001_376963201_4FGL_J1254.5+2210_daily_bin530.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987949/ft1_filtered_4FGL_J1254.5+2210_daily_bin530.fits scfile=/scratch/kocevski/987949/ft2_4FGL_J1254.5+2210_daily_bin530.fits outfile=/scratch/kocevski/987949/cmap_HighResolution_376704001_376963201_4FGL_J1254.5+2210_daily_bin530.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6486       1.0000         .10000E-03   10000.    
     3 'norm      '    12.022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17509E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6498       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7263       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13677E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85231E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .82713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.920       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.7537       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6452       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    38.627       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    24.201       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.3712       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1065       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98470       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=   8394.192     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3184 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6255       -.12254E-07** at limit **
   2  Prefactor     8.6482        3.3124       -.20109E-06   -.50637E-03
   3  norm          12.019        3.7287        .14628E-08   -.52935E-04
   4  Prefactor     .10000E-03    1.3996        .28908E-06** at limit **
   5  Prefactor     4.6495        1.9924        .12972E-07    .68572E-04
   6  Prefactor     .10000E-03    2.0833       -.83495E-08** at limit **
   7  norm          2.7262        .39294        .42406E-08    .43601E-03
   8  norm          4.1968        3.6479        .36383E-08    .59480E-04
   9  Prefactor     .10002E-03    23.607       -.10448E-04** at limit **
  10  Prefactor     .10000E-03    2.4662       -.24033E-07** at limit **
  11  Prefactor     .10000E-03    13.822       -.16658E-05** at limit **
  12  Prefactor     .10003E-03    36.820       -.96288E-05** at limit **
  13  Prefactor     .10002E-03    66.421        .78321E-05** at limit **
  14  Prefactor     2.5410        2.8418       -.29412E-07   -.88757E-04
  15  Prefactor     .10006E-03    11.352        .43067E-05** at limit **
  16  norm          .82819        2.3720        .95232E-07    .63542E-03
  17  Prefactor     13.926        14.322        .41347E-06    .80378E-04
  18  Prefactor     .10000E-03    6.6144       -.11214E-06** at limit **
  19  norm          .10000E-03    1.2058       -.23700E-07** at limit **
  20  norm          9.7532        6.3227       -.25604E-07    .19313E-02
  21  norm          7.6455        9.7344       -.32838E-06    .77569E-03
  22  norm          .10000E-03    5.4257       -.50545E-07** at limit **
  23  norm          38.627        10.992        .17895E-07    .56125E-04
  24  Prefactor     .10000E-03    10.336        .79973E-06** at limit **
  25  norm          24.200        13.026       -.47106E-08    .33162E-04
  26  Prefactor     .10000E-03    5.3070        .29999E-06** at limit **
  27  Prefactor     8.3668        20.694        .33724E-06    .37166E-04
  28  Normalizat    1.1066        .17929        .12888E-07    .13759E-03
  29  Prefactor     .98461        .17215        .11572E-06    .16421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.64822
  norm       = 12.0186
  Prefactor  = 0.0001
  Prefactor  = 4.64946
  Prefactor  = 0.0001
  norm       = 2.72623
  norm       = 4.19676
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100033
  Prefactor  = 0.00010002
  Prefactor  = 2.54105
  Prefactor  = 0.000100057
  norm       = 0.828195
  Prefactor  = 13.9261
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.75324
  norm       = 7.64548
  norm       = 0.0001
  norm       = 38.6271
  Prefactor  = 0.0001
  norm       = 24.1997
  Prefactor  = 0.0001
  Prefactor  = 8.36681
  Normalizat = 1.10662
  Prefactor  = 0.984612
 **********
 **   18 **HESSE 
 **********

 FCN=   8394.192     FROM HESSE     STATUS=OK           559 CALLS     3743 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6595        .11388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6482        3.3129        .99806E-04   -1.5120    
   3  norm          12.019        3.5964        .92063E-04   -1.5014    
   4  Prefactor     .10000E-03    4.6982        .20217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6495        1.9914        .81579E-04   -1.5277    
   6  Prefactor     .10000E-03    2.0892        .12908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7262        .39423        .20701E-04   -1.5378    
   8  norm          4.1968        3.6461        .15736E-03   -1.5298    
   9  Prefactor     .10002E-03    27.411        .42033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4696        .14051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    39.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    68.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5410        2.8442        .15926E-03   -1.5389    
  15  Prefactor     .10006E-03    57.902        .46799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .82819        2.1607        .22883E-02   -1.5526    
  17  Prefactor     13.926        14.031        .10735E-03   -1.4961    
  18  Prefactor     .10000E-03    6.6173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2123        .98230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.7532        6.4469        .64155E-03   -1.5083    
  21  norm          7.6455        9.8895        .72517E-03   -1.5155    
  22  norm          .10000E-03    5.4277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          38.627        11.005        .64490E-04   -1.4464    
  24  Prefactor     .10000E-03    10.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          24.200        13.035        .81427E-04   -1.4724    
  26  Prefactor     .10000E-03    5.3182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.3668        20.708        .13856E-03   -1.5129    
  28  Normalizat    1.1066        .21526        .28179E-03   -.89539    
  29  Prefactor     .98461        .20614        .29965E-03   -.93244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93259e-09
Minuit parameter uncertainties:
  1  6.86004e-06
  2  3.31301
  3  3.59648
  4  9.38523e-06
  5  1.99138
  6  8.15458e-07
  7  0.394232
  8  3.6463
  9  0.00129837
  10  1.54123e-06
  11  0.000218218
  12  0.0022905
  13  0.0023647
  14  2.8444
  15  0.00363021
  16  2.16095
  17  14.0339
  18  6.2589e-06
  19  1.25022e-06
  20  6.44737
  21  9.89162
  22  4.99042e-06
  23  11.0054
  24  9.62248e-05
  25  13.0366
  26  2.49844e-05
  27  20.726
  28  0.215432
  29  0.206301
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  2.541e+00  2.844e+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:  9.846e-01  2.063e-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.107e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.54
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 9.96e-09 +/- 1.11e-08
Energy Flux (Fixed Index): 5.60e-06 +/- 6.27e-06

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

Saving results to:
/scratch/kocevski/987949/likelihoodResults_376704001_376963201_4FGL_J1254.5+2210_daily_bin530.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) = 8393.6437989
delta logL = 0.548099031028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8393.62037193
delta logL = 0.571526003308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4565       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3202       1.0000          .0000       10.000    
     3 'Normalizat'    1.1130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98102       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=   8393.620     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      252 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4570        6.9791        .54382E-02   -.24811E-03
   2  Index         1.3202        .97419        .32266       -.26020E-04
   3  Normalizat    1.1130        .16984        .63537E-01    .18524E-04
   4  Prefactor     .98098        .17134        .67840E-01    .40327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45697
  Index      = 1.32023
  Normalizat = 1.11303
  Prefactor  = 0.980982
 **********
 **   18 **HESSE 
 **********

 FCN=   8393.620     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4570        3.8044        .17687E-03   -1.5336    
   2  Index         1.3202        .63599        .13704E-01   -.82708    
   3  Normalizat    1.1130        .20152        .28104E-03   -.89334    
   4  Prefactor     .98098        .20434        .30007E-03   -.93366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31926e-10
Minuit parameter uncertainties:
  1  3.80462
  2  0.639793
  3  0.201655
  4  0.2045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987949': 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) = 8393.6203719
delta logL = 0.571526030897

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.457e+00  3.805e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.320e+00  6.398e-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:  9.810e-01  2.045e-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.113e+00  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 193.637 22.181
Photon Index (Free Index): 1.32 +/- 0.64
Photon Flux (Free Index): 4.42e-09 +/- 5.58e-09
Energy Flux (Free Index): 2.54e-05 +/- 4.43e-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/987949/cmap_HighResolution_376704001_376963201_4FGL_J1254.5+2210_daily_bin530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-03', comment='SUCCESS', photon_flux='9.96e-09', energy_flux2='2.54e-05', photon_flux_error='1.11e-08', dlogl='5.72e-01', energy_flux='5.60e-06', photon_flux2='4.42e-09', job_status='DONE', time_completed='2021-09-06 09:21:02.133436', photon_index_error2='0.64', photon_index2='1.32', ts='2.54', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.92e-08', energy_flux_error2='4.43e-05', EG='1.11', time_epoch_completed='1630945262.13', return_code='0', job_id='987949', GAL2='0.98', EG2='1.11', return_code2='0', energy_flux_error='6.27e-06', photon_flux_error2='5.58e-09', ts2='3.69', photon_index='2.09' WHERE bin_id='530' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:21:02 PDT 2021


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

Job <4FGL_J1254.5+2210_daily_bin530> 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) <bullet0208>, 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:02 2021
Results reported at Mon Sep  6 09:21:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin530 193.637 22.1808 376704001 376963201 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 :                                   926.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

