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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin775
RA = 193.637, Dec = 22.1808
tmin = 440208001, tmax = 440467201
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='988300', job_status='RUN', time_executed='2021-09-06 09:06:04.471802', time_epoch_executed='1630944364.47' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988300/ft1_4FGL_J1254.5+2210_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988300/ft2_4FGL_J1254.5+2210_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988300/ft1_4FGL_J1254.5+2210_daily_bin775.fits outfile=/scratch/kocevski/988300/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin775.fits ra=193.637 dec=22.1808 rad=12.0 tmin=440208001.0 tmax=440467201.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.42
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988300/ft1_filtered_4FGL_J1254.5+2210_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/988300/ft2_4FGL_J1254.5+2210_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/988300/ltcube_440208001_440467201_4FGL_J1254.5+2210_daily_bin775.fits outfile=/scratch/kocevski/988300/expmap_440208001_440467201_4FGL_J1254.5+2210_daily_bin775.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/988300/ltcube_440208001_440467201_4FGL_J1254.5+2210_daily_bin775.fits
.....................!
real 191.41
user 185.93
sys 4.74

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/988300/ft1_filtered_4FGL_J1254.5+2210_daily_bin775.fits scfile=/scratch/kocevski/988300/ft2_4FGL_J1254.5+2210_daily_bin775.fits outfile=/scratch/kocevski/988300/cmap_440208001_440467201_4FGL_J1254.5+2210_daily_bin775.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.637 yref=22.1808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/988300/ft1_filtered_4FGL_J1254.5+2210_daily_bin775.fits scfile=/scratch/kocevski/988300/ft2_4FGL_J1254.5+2210_daily_bin775.fits outfile=/scratch/kocevski/988300/cmap_HighResolution_440208001_440467201_4FGL_J1254.5+2210_daily_bin775.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4307       1.0000         .10000E-03   10000.    
     3 'norm      '    .11844E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5800       1.0000         .10000E-03   10000.    
     8 'norm      '    13.323       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.673       1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.653       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.898       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7246       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.373       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9597       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11626E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    28.329       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6014       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.037       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.885       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1281       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87806       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=   7660.730     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3771 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26405        .69310        .35347E-06   -.19543E-02
   2  Prefactor     2.4308        3.3551        .27907E-06    .41804E-04
   3  norm          .10003E-03    1.4650       -.99714E-06** at limit **
   4  Prefactor     .10000E-03    1.3097        .17281E-06** at limit **
   5  Prefactor     7.4114        2.9554        .13861E-06    .58138E-03
   6  Prefactor     .10000E-03    5.2679        .14629E-05** at limit **
   7  norm          1.5800        .32408       -.43482E-07   -.13255E-02
   8  norm          13.323        5.3295       -.29684E-07   -.16749E-03
   9  Prefactor     .10000E-03    3.1065        .25146E-06** at limit **
  10  Prefactor     17.672        10.804        .14681E-07    .67557E-04
  11  Prefactor     58.883        27.640       -.12045E-05   -.13959E-03
  12  Prefactor     44.650        62.120       -.32513E-05   -.58757E-04
  13  Prefactor     .10000E-03    17.349        .54257E-05** at limit **
  14  Prefactor     .10002E-03    3.4989        .19410E-05** at limit **
  15  Prefactor     18.896        14.462       -.28649E-06   -.75833E-04
  16  norm          7.7244        6.1268        .93154E-06   -.58918E-04
  17  Prefactor     16.373        13.708        .27877E-06   -.64037E-04
  18  Prefactor     6.9540        48.408       -.10769E-04   -.11120E-03
  19  norm          .10000E-03    1.6405        .13791E-07** at limit **
  20  norm          .10020E-03    1.8820        .28842E-06** at limit **
  21  norm          .10000E-03    3.3984       -.29840E-06** at limit **
  22  norm          28.328        20.999       -.90621E-06   -.10342E-03
  23  norm          1.6012        4.5934        .30191E-06   -.81286E-04
  24  Prefactor     21.038        18.669        .60905E-07    .22678E-05
  25  norm          .10000E-03    2.0400        .49356E-09** at limit **
  26  Prefactor     13.879        16.577       -.14418E-05   -.82770E-04
  27  Prefactor     .10000E-03    13.315       -.58056E-05** at limit **
  28  Normalizat    1.1283        .17737        .64806E-06   -.31107E-03
  29  Prefactor     .87788        .16823       -.67444E-06   -.17370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.264051
  Prefactor  = 2.43081
  norm       = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 7.41141
  Prefactor  = 0.0001
  norm       = 1.57999
  norm       = 13.3231
  Prefactor  = 0.0001
  Prefactor  = 17.6721
  Prefactor  = 58.8833
  Prefactor  = 44.6495
  Prefactor  = 0.000100001
  Prefactor  = 0.000100016
  Prefactor  = 18.8955
  norm       = 7.72436
  Prefactor  = 16.3726
  Prefactor  = 6.95396
  norm       = 0.0001
  norm       = 0.000100197
  norm       = 0.0001
  norm       = 28.3277
  norm       = 1.60119
  Prefactor  = 21.0376
  norm       = 0.0001
  Prefactor  = 13.8791
  Prefactor  = 0.000100001
  Normalizat = 1.12827
  Prefactor  = 0.877882
 **********
 **   18 **HESSE 
 **********

 FCN=   7660.730     FROM HESSE     STATUS=OK           569 CALLS     4340 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26405        1.5436        .53818E-01   -1.5605    
   2  Prefactor     2.4308        3.5446        .17696E-03   -1.5396    
   3  norm          .10003E-03    6.4978        .19185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4164        .18765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4114        2.9191        .88257E-04   -1.5163    
   6  Prefactor     .10000E-03    5.4532        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5800        .32505        .21405E-04   -1.5457    
   8  norm          13.323        5.3223        .10974E-03   -1.4978    
   9  Prefactor     .10000E-03    3.1105        .15067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.672        10.801        .95271E-04   -1.4867    
  11  Prefactor     58.883        27.634        .52282E-04   -1.4172    
  12  Prefactor     44.650        62.099        .59998E-04   -1.4371    
  13  Prefactor     .10000E-03    17.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    8.2519        .30210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.896        14.443        .92133E-04   -1.4838    
  16  norm          7.7244        6.0869        .14428E-03   -1.5152    
  17  Prefactor     16.373        13.728        .49491E-03   -1.4898    
  18  Prefactor     6.9540        47.705        .15207E-03   -1.5180    
  19  norm          .10000E-03    1.6627        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10020E-03    49.805        .22240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4201        .15736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          28.328        20.924        .75271E-04   -1.4643    
  23  norm          1.6012        4.5671        .29791E-03   -1.5455    
  24  Prefactor     21.038        18.674        .87327E-04   -1.4790    
  25  norm          .10000E-03    2.0424        .12203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.879        16.575        .10749E-03   -1.4963    
  27  Prefactor     .10000E-03    13.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1283        .21107        .26122E-03   -.88849    
  29  Prefactor     .87788        .19836        .29221E-03   -.96918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09592e-08
Minuit parameter uncertainties:
  1  1.27665
  2  3.54494
  3  0.000824247
  4  3.80212e-05
  5  2.9192
  6  3.35845e-05
  7  0.325051
  8  5.32254
  9  9.35305e-06
  10  10.8018
  11  27.6403
  12  62.1886
  13  0.000310006
  14  0.000727188
  15  14.4458
  16  6.08737
  17  13.7305
  18  36.4691
  19  2.40763e-07
  20  0.00627456
  21  1.77513e-06
  22  20.9291
  23  4.56805
  24  18.6795
  25  7.84667e-08
  26  16.58
  27  0.000258912
  28  0.211226
  29  0.198524
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.272e-04  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.779e-01  1.985e-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.128e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/988300/likelihoodResults_440208001_440467201_4FGL_J1254.5+2210_daily_bin775.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): 102
logL (Free Index) = 7660.73031227
delta logL = -0.000575172474782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7660.72973725
delta logL = -1.46441379911e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0966       1.0000          .0000       10.000    
     3 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87783       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=   7660.730     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      235 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14563        .56075E-01** at limit **
   2  Index         2.1032        5.7626        .50000       -.54292E-05
   3  Normalizat    1.1283        .93377E-03    .59066E-01    .91376E-04
   4  Prefactor     .87788        .93847E-03    .66061E-01    .94401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10315
  Normalizat = 1.12827
  Prefactor  = 0.877882
 **********
 **   18 **HESSE 
 **********

 FCN=   7660.730     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      270 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.627        .30055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1032        6.4685        .50000       -.61796    
   3  Normalizat    1.1283        .62836E-02    .26122E-03   -.88849    
   4  Prefactor     .87788        .63120E-02    .29221E-03   -.96918    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.95763e-09
Minuit parameter uncertainties:
  1  0.000120804
  2  61.5294
  3  0.00628357
  4  0.00631198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988300': 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): 102
logL (Free Index) = 7660.72973708
delta logL = 2.42953319685e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.208e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.103e+00  6.153e+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.779e-01  6.312e-03  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.128e+00  6.284e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/988300/cmap_HighResolution_440208001_440467201_4FGL_J1254.5+2210_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-06 09:21:29.124789', job_id='988300', GAL2='0.88', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630945289.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='775' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:21:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 988300: <4FGL_J1254.5+2210_daily_bin775> in cluster <slac> Done

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

Your job looked like:

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

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

