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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin615
RA = 193.637, Dec = 22.1808
tmin = 398736001, tmax = 398995201
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='988069', job_status='RUN', time_executed='2021-09-06 09:09:18.273639', time_epoch_executed='1630944558.27' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988069

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988069/ft1_4FGL_J1254.5+2210_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988069/ft2_4FGL_J1254.5+2210_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988069/ft1_4FGL_J1254.5+2210_daily_bin615.fits outfile=/scratch/kocevski/988069/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin615.fits ra=193.637 dec=22.1808 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.03
user 5.76
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/988069/ft1_filtered_4FGL_J1254.5+2210_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/988069/ft2_4FGL_J1254.5+2210_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/988069/ltcube_398736001_398995201_4FGL_J1254.5+2210_daily_bin615.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/988069/ft2_4FGL_J1254.5+2210_daily_bin615.fits
.....................!
real 11.61
user 11.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988069/ft1_filtered_4FGL_J1254.5+2210_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/988069/ft2_4FGL_J1254.5+2210_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/988069/ltcube_398736001_398995201_4FGL_J1254.5+2210_daily_bin615.fits outfile=/scratch/kocevski/988069/expmap_398736001_398995201_4FGL_J1254.5+2210_daily_bin615.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/988069/ltcube_398736001_398995201_4FGL_J1254.5+2210_daily_bin615.fits
.....................!
real 189.59
user 185.49
sys 3.70

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/988069/ft1_filtered_4FGL_J1254.5+2210_daily_bin615.fits scfile=/scratch/kocevski/988069/ft2_4FGL_J1254.5+2210_daily_bin615.fits outfile=/scratch/kocevski/988069/cmap_398736001_398995201_4FGL_J1254.5+2210_daily_bin615.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.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11946E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5110       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5217       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1997       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13711E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4848       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.364       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4603       1.0000         .10000E-03   10000.    
    16 'norm      '    17.716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.3305       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.639       1.0000         .10000E-03   10000.    
    23 'norm      '    8.9530       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    26.789       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .62907E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96179       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=   5140.400     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     2593 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9461       -.63883E-06** at limit **
   2  Prefactor     6.5081        4.6390       -.88645E-06   -.31843E-03
   3  norm          5.5221        3.8642       -.28689E-06   -.55519E-03
   4  Prefactor     3.2000        2.7579        .11135E-06    .95420E-04
   5  Prefactor     1.1347        1.9517        .26627E-06    .11112E-04
   6  Prefactor     .10113E-03    24.168       -.72423E-05** at limit **
   7  norm          2.4847        .48808        .71096E-07    .31475E-02
   8  norm          5.2893        5.2618       -.62867E-05   -.13526E-02
   9  Prefactor     .10000E-03    6.1521        .17435E-05** at limit **
  10  Prefactor     .10000E-03    3.6635        .16966E-06** at limit **
  11  Prefactor     15.401        3.1959       -.31516E-06    .57633E-03
  12  Prefactor     .10113E-03    41.069       -.16448E-04** at limit **
  13  Prefactor     .10032E-03    90.315        .15095E-04** at limit **
  14  Prefactor     .10000E-03    2.4168       -.10054E-06** at limit **
  15  Prefactor     5.4607        1.0857        .54965E-06   -.16028E-03
  16  norm          17.716        1.8928       -.13211E-05   -.57627E-03
  17  Prefactor     10.558        1.0428        .17970E-06    .13819E-03
  18  Prefactor     .10112E-03    26.552        .13865E-04** at limit **
  19  norm          .10000E-03    1.3023       -.77297E-07** at limit **
  20  norm          8.3329        5.5941       -.67840E-05   -.28991E-02
  21  norm          .10000E-03    6.6484       -.12143E-05** at limit **
  22  norm          10.640        1.0056        .11786E-06   -.11329E-03
  23  norm          8.9501        1.2231        .61312E-06   -.52806E-03
  24  Prefactor     .10061E-03    24.905        .15519E-05** at limit **
  25  norm          26.797        1.2328        .44327E-06   -.12005E-02
  26  Prefactor     .10034E-03    453.96        .51939E-05** at limit **
  27  Prefactor     .10000E-03    15.466       -.11844E-05** at limit **
  28  Normalizat    .96165        .25796        .65275E-05   -.51352E-03
  29  Prefactor     1.1232        .25174       -.24907E-05   -.45402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.50809
  norm       = 5.52206
  Prefactor  = 3.20001
  Prefactor  = 1.13469
  Prefactor  = 0.000101131
  norm       = 2.48465
  norm       = 5.28929
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.4013
  Prefactor  = 0.00010113
  Prefactor  = 0.00010032
  Prefactor  = 0.0001
  Prefactor  = 5.4607
  norm       = 17.7156
  Prefactor  = 10.558
  Prefactor  = 0.00010112
  norm       = 0.0001
  norm       = 8.33289
  norm       = 0.000100001
  norm       = 10.64
  norm       = 8.95008
  Prefactor  = 0.00010061
  norm       = 26.7967
  Prefactor  = 0.000100335
  Prefactor  = 0.000100001
  Normalizat = 0.961651
  Prefactor  = 1.12318
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.400     FROM HESSE     STATUS=OK           637 CALLS     3230 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4745        .55617E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5081        4.9553        .39320E-02   -1.5198    
   3  norm          5.5221        3.8588        .42745E-02   -1.5238    
   4  Prefactor     3.2000        2.7507        .56628E-02   -1.5350    
   5  Prefactor     1.1347        2.3341        .29267E-01   -1.5495    
   6  Prefactor     .10113E-03    9.3908        .69265E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4847        .49354        .47230E-02   -1.5393    
   8  norm          5.2893        5.6640        .43685E-02   -1.5248    
   9  Prefactor     .10000E-03    6.1534        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.401        44.319        .25545E-02   -1.4923    
  12  Prefactor     .10113E-03    49.634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10032E-03    92.596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4607        16.901        .42989E-02   -1.5241    
  16  norm          17.716        8.5936        .23789E-02   -1.4866    
  17  Prefactor     10.558        14.994        .30829E-02   -1.5058    
  18  Prefactor     .10112E-03    38.681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.3329        6.1823        .34724E-02   -1.5131    
  21  norm          .10000E-03    6.6180        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.640        15.340        .30708E-02   -1.5055    
  23  norm          8.9501        10.406        .33488E-02   -1.5110    
  24  Prefactor     .10061E-03    29.941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          26.797        16.416        .19350E-02   -1.4672    
  26  Prefactor     .10034E-03    20.939        .11432       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96165        .23209        .67842E-01   -.94326    
  29  Prefactor     1.1232        .21521        .63178E-01   -.88729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00958e-07
Minuit parameter uncertainties:
  1  3.01723e-06
  2  4.95562
  3  3.859
  4  2.75078
  5  2.33426
  6  0.00651824
  7  0.493546
  8  5.66461
  9  0.000180687
  10  1.21334e-05
  11  44.4142
  12  0.0149912
  13  0.010908
  14  8.26443e-06
  15  16.9156
  16  8.59421
  17  14.9997
  18  0.0131707
  19  3.63671e-06
  20  6.18278
  21  0.00017078
  22  15.3459
  23  10.4078
  24  0.00855117
  25  16.4184
  26  0.00530086
  27  0.000250391
  28  0.232337
  29  0.215381
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.264e-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.123e+00  2.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  9.617e-01  2.323e-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: 5.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/988069/likelihoodResults_398736001_398995201_4FGL_J1254.5+2210_daily_bin615.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) = 5140.40236063
delta logL = -0.00187190327142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5140.40048836
delta logL = 3.65612322639e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0653       1.0000          .0000       10.000    
     3 'Normalizat'    .96172       1.0000         .10000E-01   10.000    
     4 '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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5140.400     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10215E-03    39.408        .11144E-02** at limit **
   2  Index         1.9916        8.2307        .50000        .68120E-04
   3  Normalizat    .96165        .21962E-01    .30011E-03    .13259E-04
   4  Prefactor     1.1232        .22028E-01    .27943E-03    .85318E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5140.400     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      375 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10215E-03    39.408        .31881E-03** at limit **
   2  Index         1.9916        8.2307        .34618E-03    .68120E-04
   3  Normalizat    .96165        .21962E-01    .24160E-05    .13259E-04
   4  Prefactor     1.1232        .22028E-01    .65493E-06    .85318E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5140.400     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      421 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.187        .22288E-02** at limit **
   2  Index         1.5499        5.9760        .50000        .21830E-06
   3  Normalizat    .96165        .22331E-01    .12004E-04   -.67221E-03
   4  Prefactor     1.1232        .22399E-01    .11177E-04   -.74638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54992
  Normalizat = 0.961653
  Prefactor  = 1.12318
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.400     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    223.52        .44575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5499        9.1651        .50000       -.76151    
   3  Normalizat    .96165        .50566E-01    .24009E-05   -.94326    
   4  Prefactor     1.1232        .50717E-01    .22354E-05   -.88729    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88391e-10
Minuit parameter uncertainties:
  1  0.000328006
  2  718.402
  3  0.0505689
  4  0.0507194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988069': 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) = 5140.40048332
delta logL = 5.40414202987e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.280e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.550e+00  7.184e+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.123e+00  5.072e-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:  9.617e-01  5.057e-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/988069/cmap_HighResolution_398736001_398995201_4FGL_J1254.5+2210_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-09-06 09:20:28.128299', job_id='988069', GAL2='1.12', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630945228.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='615' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:20:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 988069: <4FGL_J1254.5+2210_daily_bin615> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin615 193.637 22.1808 398736001 398995201 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 :                                   664.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            903 sec.

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

