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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1539
RA = 193.637, Dec = 22.1808
tmin = 638236801, tmax = 638496001
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='993000', job_status='RUN', time_executed='2021-09-06 09:23:26.419677', time_epoch_executed='1630945406.42' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993000

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993000/ft1_4FGL_J1254.5+2210_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993000/ft2_4FGL_J1254.5+2210_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993000/ft1_4FGL_J1254.5+2210_daily_bin1539.fits outfile=/scratch/kocevski/993000/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1539.fits ra=193.637 dec=22.1808 rad=12.0 tmin=638236801.0 tmax=638496001.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.59
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993000/ft2_4FGL_J1254.5+2210_daily_bin1539.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/993000/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1539.fits evtable="EVENTS" outfile="/scratch/kocevski/993000/ft1_filtered_4FGL_J1254.5+2210_daily_bin1539.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993000/ft1_filtered_4FGL_J1254.5+2210_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/993000/ft2_4FGL_J1254.5+2210_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/993000/ltcube_638236801_638496001_4FGL_J1254.5+2210_daily_bin1539.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/993000/ft2_4FGL_J1254.5+2210_daily_bin1539.fits
.....................!
real 11.78
user 11.46
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993000/ft1_filtered_4FGL_J1254.5+2210_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/993000/ft2_4FGL_J1254.5+2210_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/993000/ltcube_638236801_638496001_4FGL_J1254.5+2210_daily_bin1539.fits outfile=/scratch/kocevski/993000/expmap_638236801_638496001_4FGL_J1254.5+2210_daily_bin1539.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/993000/ltcube_638236801_638496001_4FGL_J1254.5+2210_daily_bin1539.fits
.....................!
real 190.47
user 185.64
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/993000/ft1_filtered_4FGL_J1254.5+2210_daily_bin1539.fits scfile=/scratch/kocevski/993000/ft2_4FGL_J1254.5+2210_daily_bin1539.fits outfile=/scratch/kocevski/993000/cmap_638236801_638496001_4FGL_J1254.5+2210_daily_bin1539.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993000/ft1_filtered_4FGL_J1254.5+2210_daily_bin1539.fits scfile=/scratch/kocevski/993000/ft2_4FGL_J1254.5+2210_daily_bin1539.fits outfile=/scratch/kocevski/993000/cmap_HighResolution_638236801_638496001_4FGL_J1254.5+2210_daily_bin1539.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4080       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2247       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0923       1.0000         .10000E-03   10000.    
     7 'norm      '    .20223       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2036       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5061       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3298       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5700       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .92252       1.0000         .10000E-03   10000.    
    20 'norm      '    24.173       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6934       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.5881       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11042E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    45.151       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99407       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86358       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=   5812.412     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3711 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7885       -.24201E-09** at limit **
   2  Prefactor     2.4072        3.1731        .22752E-06   -.12411E-03
   3  norm          3.4197        2.3811       -.71035E-09   -.15100E-03
   4  Prefactor     2.2246        1.6098       -.21980E-07   -.13188E-03
   5  Prefactor     3.9440        2.1404       -.45844E-07   -.55353E-03
   6  Prefactor     3.0926        5.5743       -.11017E-07   -.31372E-03
   7  norm          .20223        .16089        .79420E-08   -.19179E-03
   8  norm          2.2036        3.9634        .50627E-07   -.33234E-03
   9  Prefactor     .10000E-03    9.0352       -.16717E-06** at limit **
  10  Prefactor     .54528        8.8363        .25582E-05   -.62257E-03
  11  Prefactor     52.777        29.806       -.26164E-05   -.66552E-03
  12  Prefactor     .10000E-03    43.483       -.15481E-05** at limit **
  13  Prefactor     .10001E-03    23.386       -.34770E-05** at limit **
  14  Prefactor     8.5081        6.9414        .35213E-07   -.30115E-04
  15  Prefactor     4.3298        6.0463        .20375E-05   -.10026E-02
  16  norm          .10000E-03    1.6292        .15955E-07** at limit **
  17  Prefactor     1.5694        24.900       -.31890E-06   -.12149E-03
  18  Prefactor     .10000E-03    25.698        .21087E-05** at limit **
  19  norm          .92170        2.4052        .44230E-06   -.18364E-03
  20  norm          24.177        7.7634        .23069E-07    .17456E-03
  21  norm          7.6900        11.659        .31552E-06    .77015E-04
  22  norm          .10000E-03    5.3502       -.83139E-09** at limit **
  23  norm          7.5895        5.4989        .17753E-06    .15644E-03
  24  Prefactor     .10001E-03    25.933        .39211E-05** at limit **
  25  norm          .10000E-03    3.3598        .22786E-07** at limit **
  26  Prefactor     .10000E-03    14.082        .57049E-06** at limit **
  27  Prefactor     45.154        26.272        .11296E-05    .30335E-03
  28  Normalizat    .99393        .17830       -.55606E-06   -.20563E-03
  29  Prefactor     .86361        .17873        .76331E-08   -.18192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.40723
  norm       = 3.41975
  Prefactor  = 2.22456
  Prefactor  = 3.944
  Prefactor  = 3.09261
  norm       = 0.20223
  norm       = 2.20355
  Prefactor  = 0.0001
  Prefactor  = 0.545285
  Prefactor  = 52.7768
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 8.5081
  Prefactor  = 4.32982
  norm       = 0.0001
  Prefactor  = 1.56937
  Prefactor  = 0.000100002
  norm       = 0.921701
  norm       = 24.1768
  norm       = 7.68998
  norm       = 0.0001
  norm       = 7.58949
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1544
  Normalizat = 0.993927
  Prefactor  = 0.863613
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.412     FROM HESSE     STATUS=OK           559 CALLS     4270 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8463        .19864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4072        3.1561        .14854E-03   -1.5398    
   3  norm          3.4197        2.3820        .93488E-04   -1.5338    
   4  Prefactor     2.2246        1.6180        .78577E-04   -1.5410    
   5  Prefactor     3.9440        2.1339        .77587E-04   -1.5311    
   6  Prefactor     3.0926        5.5290        .21934E-03   -1.5356    
   7  norm          .20223        .16086        .26169E-04   -1.5618    
   8  norm          2.2036        3.9065        .18396E-03   -1.5411    
   9  Prefactor     .10000E-03    9.1090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .54528        31.546        .39817E-02   -1.5560    
  11  Prefactor     52.777        31.121        .55203E-04   -1.4254    
  12  Prefactor     .10000E-03    43.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    24.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5081        6.9367        .13745E-03   -1.5125    
  15  Prefactor     4.3298        6.9956        .96794E-03   -1.5292    
  16  norm          .10000E-03    1.6380        .94996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5694        25.008        .33929E-03   -1.5457    
  18  Prefactor     .10000E-03    26.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .92170        2.2082        .18549E-02   -1.5516    
  20  norm          24.177        7.8302        .81474E-04   -1.4724    
  21  norm          7.6900        11.726        .14457E-03   -1.5153    
  22  norm          .10000E-03    5.3521        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.5895        5.5005        .14558E-03   -1.5157    
  24  Prefactor     .10001E-03    26.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.3767        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     45.154        26.386        .59667E-04   -1.4363    
  28  Normalizat    .99393        .20468        .24017E-03   -.93234    
  29  Prefactor     .86361        .20613        .26579E-03   -.97424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34876e-08
Minuit parameter uncertainties:
  1  1.23406e-07
  2  3.15632
  3  2.38208
  4  1.61803
  5  2.13391
  6  5.52995
  7  0.160865
  8  3.90695
  9  5.08883e-05
  10  8.29878
  11  31.1309
  12  0.000472126
  13  0.000750166
  14  6.93739
  15  6.99693
  16  4.11474e-07
  17  12.5353
  18  0.000458265
  19  2.20841
  20  7.83052
  21  11.7291
  22  1.37747e-06
  23  5.50091
  24  0.000901031
  25  2.4188e-06
  26  5.85779e-05
  27  26.3933
  28  0.204837
  29  0.206311
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  8.508e+00  6.937e+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:  8.636e-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:  9.939e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.67
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.34e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/993000/likelihoodResults_638236801_638496001_4FGL_J1254.5+2210_daily_bin1539.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) = 5812.23199696
delta logL = 0.180250808028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5812.22633423
delta logL = 0.185913533763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5586       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7222       1.0000          .0000       10.000    
     3 'Normalizat'    .94023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89628       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=   5812.226     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      249 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5491        55.171        .47136E-02    .23027E-03
   2  Index         2.7227        2.9609        .92735E-01    .18235E-03
   3  Normalizat    .94022        .86346E-01    .45414E-01    .11254E-04
   4  Prefactor     .89633        .65846E-01    .44958E-01    .84864E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5491
  Index      = 2.72267
  Normalizat = 0.940219
  Prefactor  = 0.896329
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.226     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .56E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5491        7598.8        .97431E-04   -1.5281    
   2  Index         2.7227        8.5140        .47280E-02   -.47290    
   3  Normalizat    .94022        5.0147        .24616E-03   -.95061    
   4  Prefactor     .89633        2.2703        .26150E-03   -.96270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6273e-05
Minuit parameter uncertainties:
  1  352.673
  2  45.4275
  3  3.56108
  4  2.62404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993000': 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) = 5812.2263319
delta logL = 0.185915865456

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.549e+00  3.527e+02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.723e+00  4.543e+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:  8.963e-01  2.624e+00  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:  9.402e-01  3.561e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.72 +/- 45.43
Photon Flux (Free Index): 7.09e-08 +/- 1.97e-06
Energy Flux (Free Index): 1.68e-05 +/- 1.10e-04

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/993000/cmap_HighResolution_638236801_638496001_4FGL_J1254.5+2210_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', comment='SUCCESS', photon_flux='3.34e-08', energy_flux2='1.68e-05', photon_flux_error='2.72e-08', dlogl='1.86e-01', energy_flux='1.87e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-06 09:36:56.744546', photon_index_error2='45.43', photon_index2='2.72', ts='3.67', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='9.82e-08', energy_flux_error2='1.10e-04', EG='0.99', time_epoch_completed='1630946216.74', return_code='0', job_id='993000', GAL2='0.90', EG2='0.94', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.97e-06', ts2='4.07', photon_index='2.09' WHERE bin_id='1539' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:56 PDT 2021


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

Job <4FGL_J1254.5+2210_daily_bin1539> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:46 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:48 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:20:48 2021
Terminated at Mon Sep  6 09:36:57 2021
Results reported at Mon Sep  6 09:36:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1539 193.637 22.1808 638236801 638496001 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 :                                   773.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

