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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin847
RA = 193.637, Dec = 22.1808
tmin = 458870401, tmax = 459129601
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='989588', job_status='RUN', time_executed='2021-09-06 09:10:40.998679', time_epoch_executed='1630944641.0' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='847'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989588/ft1_4FGL_J1254.5+2210_daily_bin847.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989588/ft2_4FGL_J1254.5+2210_daily_bin847.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989588/ft1_4FGL_J1254.5+2210_daily_bin847.fits outfile=/scratch/kocevski/989588/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin847.fits ra=193.637 dec=22.1808 rad=12.0 tmin=458870401.0 tmax=459129601.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.57
user 3.36
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/989588/ft1_filtered_4FGL_J1254.5+2210_daily_bin847.fits" evtable="EVENTS" scfile=/scratch/kocevski/989588/ft2_4FGL_J1254.5+2210_daily_bin847.fits sctable="SC_DATA" outfile=/scratch/kocevski/989588/ltcube_458870401_459129601_4FGL_J1254.5+2210_daily_bin847.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/989588/ft2_4FGL_J1254.5+2210_daily_bin847.fits
.....................!
real 11.91
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989588/ft1_filtered_4FGL_J1254.5+2210_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/989588/ft2_4FGL_J1254.5+2210_daily_bin847.fits sctable="SC_DATA" expcube=/scratch/kocevski/989588/ltcube_458870401_459129601_4FGL_J1254.5+2210_daily_bin847.fits outfile=/scratch/kocevski/989588/expmap_458870401_459129601_4FGL_J1254.5+2210_daily_bin847.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/989588/ltcube_458870401_459129601_4FGL_J1254.5+2210_daily_bin847.fits
.....................!
real 191.86
user 187.23
sys 4.09

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/989588/ft1_filtered_4FGL_J1254.5+2210_daily_bin847.fits scfile=/scratch/kocevski/989588/ft2_4FGL_J1254.5+2210_daily_bin847.fits outfile=/scratch/kocevski/989588/cmap_458870401_459129601_4FGL_J1254.5+2210_daily_bin847.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989588/ft1_filtered_4FGL_J1254.5+2210_daily_bin847.fits scfile=/scratch/kocevski/989588/ft2_4FGL_J1254.5+2210_daily_bin847.fits outfile=/scratch/kocevski/989588/cmap_HighResolution_458870401_459129601_4FGL_J1254.5+2210_daily_bin847.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.64
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75329E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59133       1.0000         .10000E-03   10000.    
     3 'norm      '    9.7288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8042       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .59118       1.0000         .10000E-03   10000.    
     8 'norm      '    45.305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14092E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.202       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96828E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5182       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.184       1.0000         .10000E-03   10000.    
    19 'norm      '    .11953E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.1654       1.0000         .10000E-03   10000.    
    22 'norm      '    14.619       1.0000         .10000E-03   10000.    
    23 'norm      '    17.441       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.059       1.0000         .10000E-03   10000.    
    25 'norm      '    14.011       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.3331       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.074       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78755       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97533       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=   6255.190     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3234 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87447E-01    2.0531        .58739E-01    .26907E-03
   2  Prefactor     .58499        5.1440        .11638E-01    .16790E-02
   3  norm          9.7285        3.9787        .32119E-02   -.65175E-04
   4  Prefactor     .10000E-03    1.4811        .90712E-02** at limit **
   5  Prefactor     5.8040        3.0086        .41676E-02    .18060E-03
   6  Prefactor     .10000E-03    3.6176        .90712E-02** at limit **
   7  norm          .59112        .33106        .69293E-02    .10572E-02
   8  norm          45.305        9.2481        .14891E-02   -.84489E-03
   9  Prefactor     38.736        17.643        .16099E-02    .12079E-03
  10  Prefactor     .10000E-03    2.7681        .90712E-02** at limit **
  11  Prefactor     .10000E-03    131.57        .90712E-02** at limit **
  12  Prefactor     .10000E-03    52.214        .90712E-02** at limit **
  13  Prefactor     .10000E-03    20.517        .90712E-02** at limit **
  14  Prefactor     23.208        10.907        .20790E-02   -.25592E-04
  15  Prefactor     .10004E-03    6.6956        .10392    ** at limit **
  16  norm          .10746E-01    2.3183        .63790E-01   -.32411E-03
  17  Prefactor     3.5026        13.323        .53882E-02    .71776E-03
  18  Prefactor     17.175        17.519        .24155E-02   -.16565E-03
  19  norm          .10000E-03    2.9988        .90712E-02** at limit **
  20  norm          .10000E-03    1.4926        .90712E-02** at limit **
  21  norm          6.1649        4.9144        .40420E-02   -.85908E-04
  22  norm          14.624        14.305        .26189E-02   -.46912E-03
  23  norm          17.442        8.9486        .23976E-02    .28322E-03
  24  Prefactor     43.060        28.416        .15273E-02   -.14210E-03
  25  norm          14.011        10.229        .26752E-02    .12759E-03
  26  Prefactor     8.3332        14.371        .34719E-02   -.10710E-03
  27  Prefactor     19.072        24.415        .22927E-02   -.14421E-03
  28  Normalizat    .78771        .19390        .66202E-01    .24425E-04
  29  Prefactor     .97520        .18259        .45958E-01    .13109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0874471
  Prefactor  = 0.584987
  norm       = 9.7285
  Prefactor  = 0.0001
  Prefactor  = 5.80403
  Prefactor  = 0.0001
  norm       = 0.591122
  norm       = 45.3052
  Prefactor  = 38.7358
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2084
  Prefactor  = 0.000100036
  norm       = 0.0107462
  Prefactor  = 3.50255
  Prefactor  = 17.1754
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.16492
  norm       = 14.6238
  norm       = 17.4423
  Prefactor  = 43.0605
  norm       = 14.0109
  Prefactor  = 8.33322
  Prefactor  = 19.0718
  Normalizat = 0.787706
  Prefactor  = 0.975199
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.190     FROM HESSE     STATUS=OK           569 CALLS     3803 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87447E-01    32.126        .18797E-02   -1.5649    
   2  Prefactor     .58499        6.8382        .29130E-02   -1.5555    
   3  norm          9.7285        3.9565        .95254E-04   -1.5084    
   4  Prefactor     .10000E-03    1.5254        .18678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8040        3.0089        .92059E-04   -1.5226    
   6  Prefactor     .10000E-03    3.6343        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .59112        .32373        .31129E-04   -1.5554    
   8  norm          45.305        9.2357        .59566E-04   -1.4361    
   9  Prefactor     38.736        17.605        .32198E-03   -1.4462    
  10  Prefactor     .10000E-03    2.7695        .12850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    133.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.208        10.917        .83158E-04   -1.4744    
  15  Prefactor     .10004E-03    31.228        .37976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10746E-01    3.7557        .42219E-01   -1.5687    
  17  Prefactor     3.5026        12.935        .21553E-03   -1.5334    
  18  Prefactor     17.175        17.574        .96619E-04   -1.4879    
  19  norm          .10000E-03    3.1271        .26722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5007        .94150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.1649        4.9056        .15206E-03   -1.5211    
  22  norm          14.624        14.303        .10476E-03   -1.4943    
  23  norm          17.442        8.9642        .95904E-04   -1.4872    
  24  Prefactor     43.060        28.422        .61094E-04   -1.4395    
  25  norm          14.011        10.233        .10701E-03   -1.4959    
  26  Prefactor     8.3332        14.355        .13888E-03   -1.5131    
  27  Prefactor     19.072        24.424        .91708E-04   -1.4834    
  28  Normalizat    .78771        .22413        .29290E-03   -1.0053    
  29  Prefactor     .97520        .21181        .26552E-03   -.93561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03217e-09
Minuit parameter uncertainties:
  1  3.35211
  2  4.00035
  3  3.95658
  4  1.50665e-07
  5  3.00895
  6  2.37763e-06
  7  0.323735
  8  9.23597
  9  17.6071
  10  1.0512e-06
  11  0.00149516
  12  5.52414e-05
  13  0.000131757
  14  10.9176
  15  0.00212241
  16  0.399945
  17  12.9449
  18  17.5791
  19  2.97626e-07
  20  5.05919e-07
  21  4.90593
  22  14.3066
  23  8.96491
  24  28.4307
  25  10.2338
  26  14.361
  27  24.4366
  28  0.224388
  29  0.211986
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  2.321e+01  1.092e+01  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.752e-01  2.120e-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:  7.877e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.66
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 9.10e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 5.11e-05 +/- 2.41e-05

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) = 6255.01207186
delta logL = 0.177499747745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6254.98863168
delta logL = 0.200939926572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.699       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3697       1.0000          .0000       10.000    
     3 'Normalizat'    .74418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0018       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=   6254.989     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.698        13.944        .95200E-04    .87056E-04
   2  Index         2.3697        .50021        .37797E-02    .38515E-04
   3  Normalizat    .74419        .22459        .30041E-03   -.13616E-03
   4  Prefactor     1.0018        .21632        .26232E-03   -.32406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6985
  Index      = 2.36974
  Normalizat = 0.744194
  Prefactor  = 1.00181
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.989     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.698        12.633        .38080E-05   -1.4866    
   2  Index         2.3697        .45240        .15119E-03   -.55395    
   3  Normalizat    .74419        .22247        .12017E-04   -1.0217    
   4  Prefactor     1.0018        .21516        .52463E-04   -.92669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13868e-10
Minuit parameter uncertainties:
  1  12.6353
  2  0.453256
  3  0.222741
  4  0.215342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989588': 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) = 6254.98863167
delta logL = 0.200939937563

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.770e+01  1.264e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.370e+00  4.533e-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:  1.002e+00  2.153e-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:  7.442e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.93
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.37 +/- 0.45
Photon Flux (Free Index): 1.25e-07 +/- 7.38e-08
Energy Flux (Free Index): 4.25e-05 +/- 2.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/989588/cmap_HighResolution_458870401_459129601_4FGL_J1254.5+2210_daily_bin847.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.10e-08', energy_flux2='4.25e-05', photon_flux_error='4.28e-08', dlogl='2.01e-01', energy_flux='5.11e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-06 09:21:53.313144', photon_index_error2='0.45', photon_index2='2.37', ts='10.66', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='0.79', time_epoch_completed='1630945313.31', return_code='0', job_id='989588', GAL2='1.00', EG2='0.74', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='7.38e-08', ts2='10.93', photon_index='2.09' WHERE bin_id='847' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:21:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 989588: <4FGL_J1254.5+2210_daily_bin847> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin847> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:10:22 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:10:24 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:10:24 2021
Terminated at Mon Sep  6 09:21:53 2021
Results reported at Mon Sep  6 09:21:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin847 193.637 22.1808 458870401 459129601 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 :                                   669.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             360.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            691 sec.

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

