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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin90
RA = 193.637, Dec = 22.1808
tmin = 262656001, tmax = 262915201
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='985089', job_status='RUN', time_executed='2021-09-06 08:59:31.177427', time_epoch_executed='1630943971.18' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985089/ft1_4FGL_J1254.5+2210_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985089/ft2_4FGL_J1254.5+2210_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985089/ft1_4FGL_J1254.5+2210_daily_bin90.fits outfile=/scratch/kocevski/985089/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin90.fits ra=193.637 dec=22.1808 rad=12.0 tmin=262656001.0 tmax=262915201.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 1.41
user 1.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985089/ft2_4FGL_J1254.5+2210_daily_bin90.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/985089/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/985089/ft1_filtered_4FGL_J1254.5+2210_daily_bin90.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.53
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985089/ft1_filtered_4FGL_J1254.5+2210_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/985089/ft2_4FGL_J1254.5+2210_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/985089/ltcube_262656001_262915201_4FGL_J1254.5+2210_daily_bin90.fits outfile=/scratch/kocevski/985089/expmap_262656001_262915201_4FGL_J1254.5+2210_daily_bin90.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/985089/ltcube_262656001_262915201_4FGL_J1254.5+2210_daily_bin90.fits
.....................!
real 192.15
user 186.36
sys 5.38

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/985089/ft1_filtered_4FGL_J1254.5+2210_daily_bin90.fits scfile=/scratch/kocevski/985089/ft2_4FGL_J1254.5+2210_daily_bin90.fits outfile=/scratch/kocevski/985089/cmap_262656001_262915201_4FGL_J1254.5+2210_daily_bin90.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.64
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985089/ft1_filtered_4FGL_J1254.5+2210_daily_bin90.fits scfile=/scratch/kocevski/985089/ft2_4FGL_J1254.5+2210_daily_bin90.fits outfile=/scratch/kocevski/985089/cmap_HighResolution_262656001_262915201_4FGL_J1254.5+2210_daily_bin90.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7555       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3703       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .44877       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12629E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11796E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26441E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .75859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.150       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.079       1.0000         .10000E-03   10000.    
    19 'norm      '    7.3162       1.0000         .10000E-03   10000.    
    20 'norm      '    14.278       1.0000         .10000E-03   10000.    
    21 'norm      '    .14556E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9028       1.0000         .10000E-03   10000.    
    23 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.9660       1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.009       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86302       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98976       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=   5096.037     FROM MIGRAD    STATUS=CONVERGED   1310 CALLS     4346 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1800        2.5296        .11820E-03    .39627E-04
   2  Prefactor     .10000E-03    3.8337        .19544E-02** at limit **
   3  norm          3.7904        3.5343        .11384E-03    .71905E-05
   4  Prefactor     1.7553        2.2127        .10709E-03   -.11826E-03
   5  Prefactor     2.3697        2.1469        .93851E-04   -.14766E-03
   6  Prefactor     .10000E-03    5.8396        .16702E-02** at limit **
   7  norm          .44867        .22691        .22903E-04    .12360E-03
   8  norm          .10000E-03    2.4099        .10733E-02** at limit **
   9  Prefactor     .10008E-03    161.26        .37791E-02** at limit **
  10  Prefactor     .10000E-03    2.7465        .11547E-02** at limit **
  11  Prefactor     22.933        25.492        .83672E-04    .79485E-04
  12  Prefactor     .10000E-03    16.855        .18142E-02** at limit **
  13  Prefactor     .10000E-03    17.931        .18142E-02** at limit **
  14  Prefactor     2.6963        5.6195        .23527E-03   -.20112E-03
  15  Prefactor     .10016E-03    35.831        .36739E-02** at limit **
  16  norm          .75235        8.2687        .33880E-03   -.26466E-03
  17  Prefactor     43.160        18.933        .61029E-04    .23624E-03
  18  Prefactor     43.074        44.790        .61079E-04   -.13789E-03
  19  norm          7.3141        4.9184        .12237E-03   -.21209E-03
  20  norm          14.293        7.4747        .98986E-04    .17156E-02
  21  norm          .10031E-03    16.460        .54703E-01** at limit **
  22  norm          2.9051        25.680        .23849E-03   -.39327E-04
  23  norm          .10000E-03    3.4524        .12912E-02** at limit **
  24  Prefactor     .10000E-03    24.233        .18142E-02** at limit **
  25  norm          7.9522        10.882        .14206E-03   -.29610E-04
  26  Prefactor     28.983        22.195        .74385E-04    .19166E-03
  27  Prefactor     .10000E-03    27.756        .18142E-02** at limit **
  28  Normalizat    .86320        .23726        .25688E-03    .21389E-03
  29  Prefactor     .98988        .22925        .25082E-03    .20931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18003
  Prefactor  = 0.0001
  norm       = 3.79044
  Prefactor  = 1.75533
  Prefactor  = 2.36966
  Prefactor  = 0.0001
  norm       = 0.448666
  norm       = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 0.0001
  Prefactor  = 22.9326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.69627
  Prefactor  = 0.000100156
  norm       = 0.752345
  Prefactor  = 43.1597
  Prefactor  = 43.0738
  norm       = 7.31409
  norm       = 14.2925
  norm       = 0.000100311
  norm       = 2.90512
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.95219
  Prefactor  = 28.9829
  Prefactor  = 0.000100001
  Normalizat = 0.863199
  Prefactor  = 0.989883
 **********
 **   18 **HESSE 
 **********

 FCN=   5096.037     FROM HESSE     STATUS=OK           533 CALLS     4879 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1800        2.5291        .47280E-05   -1.5413    
   2  Prefactor     .10000E-03    3.8450        .39089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7904        3.5347        .45535E-05   -1.5319    
   4  Prefactor     1.7553        2.2129        .42837E-05   -1.5443    
   5  Prefactor     2.3697        2.1468        .37540E-05   -1.5400    
   6  Prefactor     .10000E-03    5.8427        .33403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .44867        .22691        .91611E-06   -1.5574    
   8  norm          .10000E-03    2.4104        .21465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10008E-03    166.77        .15116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7466        .23095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.933        25.324        .33469E-05   -1.4750    
  12  Prefactor     .10000E-03    16.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6963        5.6191        .94108E-05   -1.5380    
  15  Prefactor     .10016E-03    36.075        .73479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .75235        8.2305        .13552E-04   -1.5534    
  17  Prefactor     43.160        18.925        .12206E-04   -1.4393    
  18  Prefactor     43.074        44.656        .12216E-04   -1.4394    
  19  norm          7.3141        4.9181        .48949E-05   -1.5167    
  20  norm          14.293        7.3401        .19797E-04   -1.4952    
  21  norm          .10031E-03    13.475        .61454E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9051        25.678        .95396E-05   -1.5367    
  23  norm          .10000E-03    3.4525        .25824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.9522        10.882        .56824E-05   -1.5144    
  26  Prefactor     28.983        22.194        .14877E-04   -1.4631    
  27  Prefactor     .10000E-03    27.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86320        .23744        .10275E-04   -.97766    
  29  Prefactor     .98988        .22942        .50164E-04   -.93068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19471e-09
Minuit parameter uncertainties:
  1  2.5292
  2  6.0097e-06
  3  3.53491
  4  2.213
  5  2.14688
  6  7.07428e-06
  7  0.226913
  8  2.84793e-06
  9  0.0073498
  10  1.13482e-06
  11  25.336
  12  0.000111188
  13  0.000170504
  14  5.62022
  15  0.00475289
  16  4.97735
  17  18.9279
  18  44.6909
  19  4.91833
  20  7.34057
  21  0.0040956
  22  17.2835
  23  6.12648e-07
  24  0.000132135
  25  10.8842
  26  22.2007
  27  0.00038468
  28  0.237723
  29  0.229646
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  2.696e+00  5.620e+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:  9.899e-01  2.296e-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.632e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/985089/likelihoodResults_262656001_262915201_4FGL_J1254.5+2210_daily_bin90.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) = 5096.02223598
delta logL = 0.0143904056295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5096.01625691
delta logL = 0.0203694673137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4590       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8841       1.0000          .0000       10.000    
     3 'Normalizat'    .86596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98739       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=   5096.016     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      273 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4520        7.5416        .10872E-02    .25276E-03
   2  Index         1.8818        .99920        .10127E-01    .10318E-03
   3  Normalizat    .86605        .21601        .25649E-03   -.39449E-05
   4  Prefactor     .98748        .22599        .25108E-03   -.40752E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45204
  Index      = 1.88182
  Normalizat = 0.866049
  Prefactor  = 0.987478
 **********
 **   18 **HESSE 
 **********

 FCN=   5096.016     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4520        7.3179        .21745E-03   -1.5336    
   2  Index         1.8818        .97062        .20255E-02   -.67339    
   3  Normalizat    .86605        .21616        .10259E-04   -.97664    
   4  Prefactor     .98748        .22615        .10043E-04   -.93148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18034e-13
Minuit parameter uncertainties:
  1  7.31983
  2  0.980883
  3  0.216372
  4  0.22637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985089': 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) = 5096.01625164
delta logL = 0.0203747429332

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  3.452e+00  7.320e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.882e+00  9.809e-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:  9.875e-01  2.264e-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.660e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 193.637 22.181

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2021-09-06 09:12:10.911174', job_id='985089', GAL2='0.99', fit_tolerance='1e-08', EG2='0.87', EG='0.86', time_epoch_completed='1630944730.91', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.04e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='90' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 985089: <4FGL_J1254.5+2210_daily_bin90> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin90> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:36 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:55:37 2021
Terminated at Mon Sep  6 09:12:11 2021
Results reported at Mon Sep  6 09:12:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin90 193.637 22.1808 262656001 262915201 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 :                                   759.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

