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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin590
RA = 193.637, Dec = 22.1808
tmin = 392256001, tmax = 392515201
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='988034', job_status='RUN', time_executed='2021-09-06 09:08:59.644942', time_epoch_executed='1630944539.64' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988034/ft1_4FGL_J1254.5+2210_daily_bin590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988034/ft2_4FGL_J1254.5+2210_daily_bin590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988034/ft1_4FGL_J1254.5+2210_daily_bin590.fits outfile=/scratch/kocevski/988034/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin590.fits ra=193.637 dec=22.1808 rad=12.0 tmin=392256001.0 tmax=392515201.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.32
user 3.05
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/988034/ft2_4FGL_J1254.5+2210_daily_bin590.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/988034/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin590.fits evtable="EVENTS" outfile="/scratch/kocevski/988034/ft1_filtered_4FGL_J1254.5+2210_daily_bin590.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.30
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988034/ft1_filtered_4FGL_J1254.5+2210_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/988034/ft2_4FGL_J1254.5+2210_daily_bin590.fits sctable="SC_DATA" expcube=/scratch/kocevski/988034/ltcube_392256001_392515201_4FGL_J1254.5+2210_daily_bin590.fits outfile=/scratch/kocevski/988034/expmap_392256001_392515201_4FGL_J1254.5+2210_daily_bin590.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/988034/ltcube_392256001_392515201_4FGL_J1254.5+2210_daily_bin590.fits
.....................!
real 191.28
user 185.03
sys 5.73

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/988034/ft1_filtered_4FGL_J1254.5+2210_daily_bin590.fits scfile=/scratch/kocevski/988034/ft2_4FGL_J1254.5+2210_daily_bin590.fits outfile=/scratch/kocevski/988034/cmap_392256001_392515201_4FGL_J1254.5+2210_daily_bin590.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/988034/ft1_filtered_4FGL_J1254.5+2210_daily_bin590.fits scfile=/scratch/kocevski/988034/ft2_4FGL_J1254.5+2210_daily_bin590.fits outfile=/scratch/kocevski/988034/cmap_HighResolution_392256001_392515201_4FGL_J1254.5+2210_daily_bin590.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.6584       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9352       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5056       1.0000         .10000E-03   10000.    
     8 'norm      '    10.016       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2602       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5919       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4140       1.0000         .10000E-03   10000.    
    16 'norm      '    13.541       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.012       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.2635       1.0000         .10000E-03   10000.    
    20 'norm      '    6.8321       1.0000         .10000E-03   10000.    
    21 'norm      '    .29522E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    12.231       1.0000         .10000E-03   10000.    
    23 'norm      '    19.415       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.771       1.0000         .10000E-03   10000.    
    25 'norm      '    9.3781       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.920       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83299       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1231       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6417.370     FROM MIGRAD    STATUS=CONVERGED     77 CALLS     2545 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .99694        .23888E-06** at limit **
   2  Prefactor     2.6584        2.5403        .56612E-08   -.50315E-04
   3  norm          7.0270        3.5465       -.27336E-05   -.10451E-02
   4  Prefactor     1.1783        2.0421        .29245E-05    .18967E-03
   5  Prefactor     .10000E-03    1.9490       -.44002E-06** at limit **
   6  Prefactor     7.9355        1.0108       -.11702E-06   -.16383E-03
   7  norm          1.5056        .33549        .92139E-07    .45402E-04
   8  norm          10.016        1.0210       -.15474E-06   -.34147E-03
   9  Prefactor     .10000E-03    6.5673       -.21917E-05** at limit **
  10  Prefactor     .10000E-03    9.3645       -.83953E-05** at limit **
  11  Prefactor     15.225        1.0133       -.98168E-07    .48762E-03
  12  Prefactor     .10010E-03    29.945       -.41768E-06** at limit **
  13  Prefactor     8.2686        2.1990        .16510E-05   -.44233E-02
  14  Prefactor     4.5919        1.0141        .90680E-07   -.11134E-03
  15  Prefactor     2.4157        1.0403       -.29709E-06    .21415E-03
  16  norm          13.540        1.0932        .13170E-06    .21431E-03
  17  Prefactor     16.012        1.0040        .57528E-08   -.14490E-04
  18  Prefactor     .10000E-03    14.370        .46773E-05** at limit **
  19  norm          9.2628        1.4530        .35067E-06   -.18784E-02
  20  norm          6.8374        3.6041        .11556E-05    .26169E-03
  21  norm          .10024E-03    10.030       -.28617E-05** at limit **
  22  norm          12.231        1.0012       -.85412E-08    .32804E-05
  23  norm          19.416        1.0096       -.56257E-07    .19730E-03
  24  Prefactor     18.771        1.0034       -.40428E-07    .23042E-03
  25  norm          9.3763        1.0049        .23987E-07   -.67381E-04
  26  Prefactor     10.920        1.0014        .84140E-08    .19371E-04
  27  Prefactor     .10000E-03    7.7278        .76894E-05** at limit **
  28  Normalizat    .83307        .20800       -.67806E-07    .15512E-04
  29  Prefactor     1.1230        .21754        .76097E-06    .67737E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.65841
  norm       = 7.02697
  Prefactor  = 1.17826
  Prefactor  = 0.0001
  Prefactor  = 7.93549
  norm       = 1.50558
  norm       = 10.0163
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 15.2247
  Prefactor  = 0.000100097
  Prefactor  = 8.26863
  Prefactor  = 4.59186
  Prefactor  = 2.41571
  norm       = 13.54
  Prefactor  = 16.0117
  Prefactor  = 0.000100003
  norm       = 9.26275
  norm       = 6.83737
  norm       = 0.000100241
  norm       = 12.2309
  norm       = 19.4162
  Prefactor  = 18.771
  norm       = 9.37635
  Prefactor  = 10.9199
  Prefactor  = 0.000100002
  Normalizat = 0.833067
  Prefactor  = 1.12298
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.370     FROM HESSE     STATUS=OK           635 CALLS     3180 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .98927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6584        2.5557        .62500E-02   -1.5382    
   3  norm          7.0270        3.6102        .37834E-02   -1.5178    
   4  Prefactor     1.1783        2.0808        .10539E-01   -1.5491    
   5  Prefactor     .10000E-03    1.2163        .33307E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9355        6.8421        .35585E-02   -1.5144    
   7  norm          1.5056        .33792        .47064E-02   -1.5463    
   8  norm          10.016        5.8750        .31653E-02   -1.5075    
   9  Prefactor     .10000E-03    6.5511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.225        25.085        .25661E-02   -1.4927    
  12  Prefactor     .10010E-03    37.442        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2686        41.625        .34873E-02   -1.5133    
  14  Prefactor     4.5919        5.8055        .46960E-02   -1.5279    
  15  Prefactor     2.4157        11.009        .65868E-02   -1.5397    
  16  norm          13.540        5.9107        .27213E-02   -1.4972    
  17  Prefactor     16.012        12.710        .25023E-02   -1.4907    
  18  Prefactor     .10000E-03    14.376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.2628        4.3457        .32919E-02   -1.5099    
  20  norm          6.8374        4.6432        .38375E-02   -1.5185    
  21  norm          .10024E-03    8.3068        .60857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.231        12.585        .28635E-02   -1.5008    
  23  norm          19.416        9.4209        .22724E-02   -1.4826    
  24  Prefactor     18.771        20.156        .23111E-02   -1.4841    
  25  norm          9.3763        8.9695        .32717E-02   -1.5095    
  26  Prefactor     10.920        12.214        .30310E-02   -1.5047    
  27  Prefactor     .10000E-03    7.7841        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .83307        .18598        .64503E-01   -.98854    
  29  Prefactor     1.1230        .18590        .59537E-01   -.88735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55967e-07
Minuit parameter uncertainties:
  1  2.42897e-06
  2  2.5558
  3  3.61027
  4  2.08088
  5  2.99347e-06
  6  6.84278
  7  0.337925
  8  5.87538
  9  5.70215e-05
  10  0.000379486
  11  25.1027
  12  0.00381723
  13  37.1451
  14  5.80625
  15  10.317
  16  5.91094
  17  12.7122
  18  0.000398336
  19  4.34586
  20  4.64346
  21  0.00282811
  22  12.5872
  23  9.42163
  24  20.1632
  25  8.97081
  26  12.2169
  27  0.000223467
  28  0.186121
  29  0.186006
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.592e+00  5.806e+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:  1.123e+00  1.860e-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:  8.331e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/988034/likelihoodResults_392256001_392515201_4FGL_J1254.5+2210_daily_bin590.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) = 6417.36547635
delta logL = 0.00424705814021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6417.36398231
delta logL = 0.00574108976707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2616       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1808       1.0000          .0000       10.000    
     3 'Normalizat'    .83064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1241       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=   6417.364     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      275 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2584        6.9083        .97587E-03    .22472E-03
   2  Index         2.1831        .95538        .97310E-02    .33337E-03
   3  Normalizat    .83062        .20641        .28571E-03   -.54912E-05
   4  Prefactor     1.1242        .21775        .26316E-03   -.56162E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25838
  Index      = 2.18314
  Normalizat = 0.830624
  Prefactor  = 1.1242
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.364     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2584        6.4108        .19517E-03   -1.5295    
   2  Index         2.1831        .88761        .19462E-02   -.59846    
   3  Normalizat    .83062        .20631        .11428E-04   -.98943    
   4  Prefactor     1.1242        .21779        .10526E-04   -.88697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00259e-12
Minuit parameter uncertainties:
  1  6.41186
  2  0.89459
  3  0.206505
  4  0.217959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988034': 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) = 6417.36397787
delta logL = 0.00574553841125

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.258e+00  6.412e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.183e+00  8.946e-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.124e+00  2.180e-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:  8.306e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.18 +/- 0.89
Photon Flux (Free Index): 2.02e-08 +/- 3.18e-08
Energy Flux (Free Index): 9.36e-06 +/- 1.34e-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/988034/cmap_HighResolution_392256001_392515201_4FGL_J1254.5+2210_daily_bin590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='9.36e-06', photon_flux_error='2.28e-08', dlogl='5.75e-03', energy_flux='1.01e-05', photon_flux2='2.02e-08', job_status='DONE', time_completed='2021-09-06 09:21:36.522809', photon_index_error2='0.89', photon_index2='2.18', ts='1.12', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='7.97e-08', energy_flux_error2='1.34e-05', EG='0.83', time_epoch_completed='1630945296.52', return_code='0', job_id='988034', GAL2='1.12', EG2='0.83', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.18e-08', ts2='1.12', photon_index='2.09' WHERE bin_id='590' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:21:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 988034: <4FGL_J1254.5+2210_daily_bin590> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin590> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 09:05:26 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:05:27 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:27 2021
Terminated at Mon Sep  6 09:21:37 2021
Results reported at Mon Sep  6 09:21:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin590 193.637 22.1808 392256001 392515201 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 :                                   747.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.42 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.

