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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1307
RA = 193.637, Dec = 22.1808
tmin = 578102401, tmax = 578361601
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='991634', job_status='RUN', time_executed='2021-09-06 09:19:41.473262', time_epoch_executed='1630945181.47' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991634/ft1_4FGL_J1254.5+2210_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991634/ft2_4FGL_J1254.5+2210_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991634/ft1_4FGL_J1254.5+2210_daily_bin1307.fits outfile=/scratch/kocevski/991634/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1307.fits ra=193.637 dec=22.1808 rad=12.0 tmin=578102401.0 tmax=578361601.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 5.01
user 4.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991634/ft1_filtered_4FGL_J1254.5+2210_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/991634/ft2_4FGL_J1254.5+2210_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/991634/ltcube_578102401_578361601_4FGL_J1254.5+2210_daily_bin1307.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/991634/ft2_4FGL_J1254.5+2210_daily_bin1307.fits
.....................!
real 11.47
user 11.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991634/ft1_filtered_4FGL_J1254.5+2210_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/991634/ft2_4FGL_J1254.5+2210_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/991634/ltcube_578102401_578361601_4FGL_J1254.5+2210_daily_bin1307.fits outfile=/scratch/kocevski/991634/expmap_578102401_578361601_4FGL_J1254.5+2210_daily_bin1307.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/991634/ltcube_578102401_578361601_4FGL_J1254.5+2210_daily_bin1307.fits
.....................!
real 191.09
user 186.12
sys 4.60

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/991634/ft1_filtered_4FGL_J1254.5+2210_daily_bin1307.fits scfile=/scratch/kocevski/991634/ft2_4FGL_J1254.5+2210_daily_bin1307.fits outfile=/scratch/kocevski/991634/cmap_578102401_578361601_4FGL_J1254.5+2210_daily_bin1307.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991634/ft1_filtered_4FGL_J1254.5+2210_daily_bin1307.fits scfile=/scratch/kocevski/991634/ft2_4FGL_J1254.5+2210_daily_bin1307.fits outfile=/scratch/kocevski/991634/cmap_HighResolution_578102401_578361601_4FGL_J1254.5+2210_daily_bin1307.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11925E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1138       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1160       1.0000         .10000E-03   10000.    
     7 'norm      '    .28535       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1619       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0787       1.0000         .10000E-03   10000.    
    16 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.914       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.874       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6274       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2293       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.105       1.0000         .10000E-03   10000.    
    23 'norm      '    14.838       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2979       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89034       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0267       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=   5128.962     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3691 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.6853       -.95580E-06** at limit **
   2  Prefactor     7.1231        5.2396        .53388E-06    .52799E-03
   3  norm          5.1075        3.8219       -.17448E-05   -.39071E-04
   4  Prefactor     2.5140        2.4219        .16957E-06   -.44804E-04
   5  Prefactor     6.5878        4.1964        .18638E-05   -.81107E-04
   6  Prefactor     9.1170        11.360        .25481E-06   -.67884E-04
   7  norm          .28536        .30137       -.70554E-07   -.13136E-02
   8  norm          5.1045        6.9637        .32517E-06   -.27347E-03
   9  Prefactor     2.1648        12.043       -.12895E-05   -.23388E-03
  10  Prefactor     25.119        16.048       -.10074E-07   -.81319E-05
  11  Prefactor     .10000E-03    12.230        .31772E-05** at limit **
  12  Prefactor     .10000E-03    58.465       -.61975E-05** at limit **
  13  Prefactor     .10000E-03    20.069       -.17851E-05** at limit **
  14  Prefactor     .10000E-03    2.3985        .11202E-06** at limit **
  15  Prefactor     7.0803        11.986       -.23479E-06   -.54461E-04
  16  norm          .10000E-03    2.6184       -.22439E-06** at limit **
  17  Prefactor     12.915        16.363       -.22533E-06   -.25722E-04
  18  Prefactor     45.876        32.786        .17849E-05    .13608E-04
  19  norm          1.6276        3.8196        .20319E-05   -.54324E-03
  20  norm          3.2290        3.7234       -.85287E-06   -.25803E-03
  21  norm          .10000E-03    3.6748        .62007E-07** at limit **
  22  norm          14.104        14.081        .28599E-07    .17756E-04
  23  norm          14.824        10.264        .55745E-06    .16152E-03
  24  Prefactor     .10000E-03    38.758        .66603E-05** at limit **
  25  norm          1.3157        33.724       -.53012E-05   -.32222E-03
  26  Prefactor     .10000E-03    19.837       -.12512E-05** at limit **
  27  Prefactor     .10000E-03    8.2563        .13196E-05** at limit **
  28  Normalizat    .89055        .21807       -.11359E-05    .17901E-03
  29  Prefactor     1.0265        .20498        .40501E-06    .10450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 7.12306
  norm       = 5.10745
  Prefactor  = 2.51403
  Prefactor  = 6.58783
  Prefactor  = 9.11703
  norm       = 0.285364
  norm       = 5.10454
  Prefactor  = 2.16482
  Prefactor  = 25.1195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.08033
  norm       = 0.0001
  Prefactor  = 12.9145
  Prefactor  = 45.876
  norm       = 1.62756
  norm       = 3.22897
  norm       = 0.0001
  norm       = 14.1043
  norm       = 14.8242
  Prefactor  = 0.0001
  norm       = 1.31574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.890553
  Prefactor  = 1.02646
 **********
 **   18 **HESSE 
 **********

 FCN=   5128.962     FROM HESSE     STATUS=OK           565 CALLS     4256 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9.6085        .20753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.1231        4.8642        .12324E-03   -1.5174    
   3  norm          5.1075        3.7922        .11177E-03   -1.5256    
   4  Prefactor     2.5140        2.4253        .10266E-03   -1.5391    
   5  Prefactor     6.5878        4.0834        .10175E-03   -1.5195    
   6  Prefactor     9.1170        11.266        .13274E-03   -1.5104    
   7  norm          .28536        .28750        .37264E-03   -1.5601    
   8  norm          5.1045        6.9136        .17795E-03   -1.5256    
   9  Prefactor     2.1648        12.354        .28014E-03   -1.5414    
  10  Prefactor     25.119        16.029        .79926E-04   -1.4705    
  11  Prefactor     .10000E-03    12.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    58.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4020        .10830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0803        11.971        .15078E-03   -1.5176    
  16  norm          .10000E-03    2.6331        .11303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.915        16.352        .11146E-03   -1.4989    
  18  Prefactor     45.876        32.695        .59197E-04   -1.4352    
  19  norm          1.6276        3.6722        .19763E-03   -1.5453    
  20  norm          3.2290        3.7284        .14019E-03   -1.5349    
  21  norm          .10000E-03    3.6871        .13368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.104        14.080        .10665E-03   -1.4957    
  23  norm          14.824        9.9376        .10398E-03   -1.4938    
  24  Prefactor     .10000E-03    38.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3157        34.698        .38808E-03   -1.5479    
  26  Prefactor     .10000E-03    19.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.2528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .89055        .24544        .27728E-03   -.96793    
  29  Prefactor     1.0265        .23356        .26048E-03   -.91853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92846e-09
Minuit parameter uncertainties:
  1  0.000650037
  2  4.86452
  3  3.79242
  4  2.42544
  5  4.08357
  6  11.2686
  7  0.287499
  8  6.9147
  9  10.3462
  10  16.0317
  11  7.95647e-06
  12  4.13055e-06
  13  5.52969e-06
  14  2.98674e-06
  15  11.9752
  16  4.6215e-06
  17  16.3572
  18  32.7079
  19  3.6727
  20  3.72872
  21  2.2315e-05
  22  14.0837
  23  9.9387
  24  3.45709e-06
  25  13.5216
  26  2.78335e-05
  27  4.41875e-06
  28  0.245753
  29  0.233787
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.987e-06  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.026e+00  2.338e-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.906e-01  2.458e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991634/likelihoodResults_578102401_578361601_4FGL_J1254.5+2210_daily_bin1307.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) = 5128.96372006
delta logL = -0.00194860149531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5128.96177128
delta logL = 1.72796717379e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0739       1.0000          .0000       10.000    
     3 'Normalizat'    .89059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0264       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5128.962     FROM MIGRAD    STATUS=FAILED        84 CALLS      231 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10121E-03    47.669        .10932E-02** at limit **
   2  Index         2.0138        8.8124        .50000        .43902E-04
   3  Normalizat    .89055        .22306E-01    .27728E-03   -.12423E-04
   4  Prefactor     1.0265        .22460E-01    .26048E-03    .18331E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5128.962     FROM SIMPLEX   STATUS=PROGRESS     124 CALLS      355 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    47.669        .17586E-03** at limit **
   2  Index         2.0127        8.8124        .40796E-03    .43902E-04
   3  Normalizat    .89054        .22306E-01    .43801E-05   -.12423E-04
   4  Prefactor     1.0264        .22460E-01    .35550E-05    .18331E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5128.962     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      406 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.041        .21864E-02** at limit **
   2  Index         1.6354        9.1537        .50000        .21714E-07
   3  Normalizat    .89055        .22719E-01    .11091E-04   -.11583E-03
   4  Prefactor     1.0265        .22876E-01    .10419E-04   -.13923E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.63543
  Normalizat = 0.890552
  Prefactor  = 1.02646
 **********
 **   18 **HESSE 
 **********

 FCN=   5128.962     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      435 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    240.73        .43728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6354        5.3929        .50000       -.73814    
   3  Normalizat    .89055        .52202E-01    .22183E-05   -.96793    
   4  Prefactor     1.0265        .52572E-01    .20838E-05   -.91853    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78527e-08
Minuit parameter uncertainties:
  1  0.000717593
  2  907.213
  3  0.0522053
  4  0.0525745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991634': 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) = 5128.96176851
delta logL = 2.94903202303e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.176e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.635e+00  9.072e+02  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.026e+00  5.257e-02  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.906e-01  5.221e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/991634/cmap_HighResolution_578102401_578361601_4FGL_J1254.5+2210_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-03', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2021-09-06 09:31:24.150099', job_id='991634', GAL2='1.03', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630945884.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.95e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1307' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:31:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 991634: <4FGL_J1254.5+2210_daily_bin1307> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1307> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:16:04 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:16:04 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:16:04 2021
Terminated at Mon Sep  6 09:31:25 2021
Results reported at Mon Sep  6 09:31:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1307 193.637 22.1808 578102401 578361601 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

