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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin429
RA = 193.637, Dec = 22.1808
tmin = 350524801, tmax = 350784001
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='986867', job_status='RUN', time_executed='2021-09-06 09:01:18.537581', time_epoch_executed='1630944078.54' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986867/ft1_4FGL_J1254.5+2210_daily_bin429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986867/ft2_4FGL_J1254.5+2210_daily_bin429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986867/ft1_4FGL_J1254.5+2210_daily_bin429.fits outfile=/scratch/kocevski/986867/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin429.fits ra=193.637 dec=22.1808 rad=12.0 tmin=350524801.0 tmax=350784001.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.43
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986867/ft1_filtered_4FGL_J1254.5+2210_daily_bin429.fits" evtable="EVENTS" scfile=/scratch/kocevski/986867/ft2_4FGL_J1254.5+2210_daily_bin429.fits sctable="SC_DATA" outfile=/scratch/kocevski/986867/ltcube_350524801_350784001_4FGL_J1254.5+2210_daily_bin429.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/986867/ft2_4FGL_J1254.5+2210_daily_bin429.fits
.....................!
real 12.05
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986867/ft1_filtered_4FGL_J1254.5+2210_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/986867/ft2_4FGL_J1254.5+2210_daily_bin429.fits sctable="SC_DATA" expcube=/scratch/kocevski/986867/ltcube_350524801_350784001_4FGL_J1254.5+2210_daily_bin429.fits outfile=/scratch/kocevski/986867/expmap_350524801_350784001_4FGL_J1254.5+2210_daily_bin429.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/986867/ltcube_350524801_350784001_4FGL_J1254.5+2210_daily_bin429.fits
.....................!
real 190.80
user 185.81
sys 4.53

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/986867/ft1_filtered_4FGL_J1254.5+2210_daily_bin429.fits scfile=/scratch/kocevski/986867/ft2_4FGL_J1254.5+2210_daily_bin429.fits outfile=/scratch/kocevski/986867/cmap_350524801_350784001_4FGL_J1254.5+2210_daily_bin429.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986867/ft1_filtered_4FGL_J1254.5+2210_daily_bin429.fits scfile=/scratch/kocevski/986867/ft2_4FGL_J1254.5+2210_daily_bin429.fits outfile=/scratch/kocevski/986867/cmap_HighResolution_350524801_350784001_4FGL_J1254.5+2210_daily_bin429.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/986867/ft1_filtered_4FGL_J1254.5+2210_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/986867/ft2_4FGL_J1254.5+2210_daily_bin429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/986867/Model_4FGL_J1254.5+2210_daily_bin429.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/986867/ft1_filtered_4FGL_J1254.5+2210_daily_bin429.fits.....................!
real 49.13
user 47.84
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11421E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15460E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6670       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .37507       1.0000         .10000E-03   10000.    
     8 'norm      '    7.0180       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.758       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.659       1.0000         .10000E-03   10000.    
    16 'norm      '    .10401E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28388       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1836       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7520       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6579       1.0000         .10000E-03   10000.    
    22 'norm      '    26.863       1.0000         .10000E-03   10000.    
    23 'norm      '    7.3608       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.606       1.0000         .10000E-03   10000.    
    25 'norm      '    3.0778       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.6859       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.050       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3177       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .56505       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=   5555.227     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3249 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3899        .79306E-07** at limit **
   2  Prefactor     .10000E-03    1.4513        .55041E-08** at limit **
   3  norm          7.1149        3.4146       -.77197E-08    .25884E-04
   4  Prefactor     .10000E-03    1.5527        .73533E-08** at limit **
   5  Prefactor     3.6664        2.4203        .26196E-07   -.56231E-04
   6  Prefactor     .10000E-03    2.3966        .12577E-07** at limit **
   7  norm          .37495        .24575        .16718E-07   -.15275E-03
   8  norm          7.0180        4.6959        .23068E-07   -.26942E-04
   9  Prefactor     4.6481        7.4077       -.20364E-06   -.44715E-04
  10  Prefactor     13.755        10.945        .39435E-07    .27318E-05
  11  Prefactor     .10001E-03    33.731       -.59240E-05** at limit **
  12  Prefactor     .10001E-03    36.650        .58868E-05** at limit **
  13  Prefactor     .10000E-03    24.334        .49348E-06** at limit **
  14  Prefactor     4.7972        7.0894        .13431E-06   -.79931E-04
  15  Prefactor     15.684        13.380       -.32406E-06   -.10273E-03
  16  norm          .10000E-03    2.7395       -.19504E-06** at limit **
  17  Prefactor     .21365        9.5936       -.66916E-07    .10323E-03
  18  Prefactor     .10000E-03    8.7299       -.62337E-07** at limit **
  19  norm          3.1836        2.8549       -.24024E-08    .14860E-04
  20  norm          5.7497        5.4331        .12669E-05   -.12072E-02
  21  norm          2.6607        7.9603       -.15998E-05   -.74234E-04
  22  norm          26.861        19.605       -.10563E-06   -.31345E-04
  23  norm          7.3592        6.3287       -.46259E-07   -.20106E-04
  24  Prefactor     35.608        24.367       -.11142E-07   -.68912E-05
  25  norm          3.0771        8.7784        .39125E-06   -.10006E-03
  26  Prefactor     6.6838        12.151        .17140E-05   -.30526E-03
  27  Prefactor     12.048        16.588       -.30532E-06   -.90456E-05
  28  Normalizat    1.3178        .18344       -.32072E-06    .58996E-04
  29  Prefactor     .56501        .17618       -.16821E-06    .24065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.1149
  Prefactor  = 0.0001
  Prefactor  = 3.66639
  Prefactor  = 0.0001
  norm       = 0.374951
  norm       = 7.018
  Prefactor  = 4.64814
  Prefactor  = 13.7553
  Prefactor  = 0.000100011
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 4.79723
  Prefactor  = 15.6841
  norm       = 0.0001
  Prefactor  = 0.213648
  Prefactor  = 0.0001
  norm       = 3.18362
  norm       = 5.74973
  norm       = 2.66071
  norm       = 26.861
  norm       = 7.35918
  Prefactor  = 35.6077
  norm       = 3.07712
  Prefactor  = 6.68383
  Prefactor  = 12.048
  Normalizat = 1.31784
  Prefactor  = 0.565007
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.227     FROM HESSE     STATUS=OK           567 CALLS     3816 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2965        .17016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4775        .87501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1149        3.1424        .84459E-04   -1.5174    
   4  Prefactor     .10000E-03    12.047        .16411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6664        2.4105        .88077E-04   -1.5325    
   6  Prefactor     .10000E-03    2.4065        .11262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .37495        .24143        .28145E-04   -1.5586    
   8  norm          7.0180        4.6945        .12660E-03   -1.5178    
   9  Prefactor     4.6481        7.3981        .18658E-03   -1.5277    
  10  Prefactor     13.755        10.939        .10799E-03   -1.4966    
  11  Prefactor     .10001E-03    36.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    39.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7972        7.0949        .18365E-03   -1.5270    
  15  Prefactor     15.684        13.649        .10121E-03   -1.4916    
  16  norm          .10000E-03    7.2870        .23876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21365        213.77        .41416E-02   -1.5616    
  18  Prefactor     .10000E-03    8.7346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1836        2.8596        .11527E-03   -1.5351    
  20  norm          5.7497        5.9458        .57637E-03   -1.5228    
  21  norm          2.6607        8.3698        .24216E-03   -1.5382    
  22  norm          26.861        19.609        .77294E-04   -1.4671    
  23  norm          7.3592        6.2680        .14783E-03   -1.5165    
  24  Prefactor     35.608        24.369        .67161E-04   -1.4514    
  25  norm          3.0771        8.7259        .23120E-03   -1.5357    
  26  Prefactor     6.6838        12.513        .77593E-03   -1.5191    
  27  Prefactor     12.048        16.593        .11540E-03   -1.5014    
  28  Normalizat    1.3178        .21489        .21286E-03   -.83035    
  29  Prefactor     .56501        .20371        .31368E-03   -1.0908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90012e-09
Minuit parameter uncertainties:
  1  1.78235e-06
  2  2.02149e-07
  3  3.14245
  4  1.51334e-05
  5  2.41056
  6  5.17334e-07
  7  0.241427
  8  4.69477
  9  7.39958
  10  10.9406
  11  0.00127713
  12  0.0013998
  13  0.000108876
  14  7.09612
  15  13.6513
  16  2.78237e-05
  17  13.5619
  18  8.13798e-06
  19  2.85971
  20  5.9464
  21  8.37349
  22  19.6134
  23  6.26851
  24  24.3754
  25  8.72948
  26  12.518
  27  16.5991
  28  0.215036
  29  0.203977
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.797e+00  7.096e+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:  5.650e-01  2.040e-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.318e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/986867/likelihoodResults_350524801_350784001_4FGL_J1254.5+2210_daily_bin429.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) = 5555.07436166
delta logL = 0.152797450464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5555.07203261
delta logL = 0.155126505177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0049       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5313       1.0000          .0000       10.000    
     3 'Normalizat'    1.3060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57043       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5555.072     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      294 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0049        7.6871        .73568E-03   -.49179E-03
   2  Index         2.5312        1.1072        .68859E-02    .21823E-04
   3  Normalizat    1.3060        .20187        .21366E-03    .10642E-06
   4  Prefactor     .57045        .20190        .31220E-03    .99776E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.00492
  Index      = 2.53123
  Normalizat = 1.30603
  Prefactor  = 0.57045
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.072     FROM HESSE     STATUS=OK            27 CALLS      321 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0049        5.7026        .29427E-04   -1.5361    
   2  Index         2.5312        .82513        .27543E-03   -.51640    
   3  Normalizat    1.3060        .20174        .85462E-05   -.83387    
   4  Prefactor     .57045        .20158        .62440E-04   -1.0885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86622e-10
Minuit parameter uncertainties:
  1  5.7036
  2  0.830167
  3  0.201862
  4  0.201836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986867': 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) = 5555.0720326
delta logL = 0.155126514005

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.005e+00  5.704e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.531e+00  8.302e-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:  5.704e-01  2.018e-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.306e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/986867/cmap_HighResolution_350524801_350784001_4FGL_J1254.5+2210_daily_bin429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2021-09-06 09:13:27.639409', job_id='986867', GAL2='0.57', fit_tolerance='1e-08', EG2='1.31', EG='1.32', time_epoch_completed='1630944807.64', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='1.55e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='429' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:13:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 986867: <4FGL_J1254.5+2210_daily_bin429> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin429> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 09:01:06 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:01:08 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:01:08 2021
Terminated at Mon Sep  6 09:13:28 2021
Results reported at Mon Sep  6 09:13:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin429 193.637 22.1808 350524801 350784001 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 :                                   725.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

