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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1283
RA = 193.637, Dec = 22.1808
tmin = 571881601, tmax = 572140801
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='991594', job_status='RUN', time_executed='2021-09-06 09:19:53.783310', time_epoch_executed='1630945193.78' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991594/ft1_4FGL_J1254.5+2210_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991594/ft2_4FGL_J1254.5+2210_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991594/ft1_4FGL_J1254.5+2210_daily_bin1283.fits outfile=/scratch/kocevski/991594/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1283.fits ra=193.637 dec=22.1808 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.56
user 2.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991594/ft2_4FGL_J1254.5+2210_daily_bin1283.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/991594/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/991594/ft1_filtered_4FGL_J1254.5+2210_daily_bin1283.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/991594/ft1_filtered_4FGL_J1254.5+2210_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/991594/ft2_4FGL_J1254.5+2210_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/991594/ltcube_571881601_572140801_4FGL_J1254.5+2210_daily_bin1283.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/991594/ft2_4FGL_J1254.5+2210_daily_bin1283.fits
.....................!
real 12.00
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991594/ft1_filtered_4FGL_J1254.5+2210_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/991594/ft2_4FGL_J1254.5+2210_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/991594/ltcube_571881601_572140801_4FGL_J1254.5+2210_daily_bin1283.fits outfile=/scratch/kocevski/991594/expmap_571881601_572140801_4FGL_J1254.5+2210_daily_bin1283.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/991594/ltcube_571881601_572140801_4FGL_J1254.5+2210_daily_bin1283.fits
.....................!
real 190.59
user 185.38
sys 4.84

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/991594/ft1_filtered_4FGL_J1254.5+2210_daily_bin1283.fits scfile=/scratch/kocevski/991594/ft2_4FGL_J1254.5+2210_daily_bin1283.fits outfile=/scratch/kocevski/991594/cmap_571881601_572140801_4FGL_J1254.5+2210_daily_bin1283.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991594/ft1_filtered_4FGL_J1254.5+2210_daily_bin1283.fits scfile=/scratch/kocevski/991594/ft2_4FGL_J1254.5+2210_daily_bin1283.fits outfile=/scratch/kocevski/991594/cmap_HighResolution_571881601_572140801_4FGL_J1254.5+2210_daily_bin1283.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21074       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.3427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4381       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2015       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12118E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5896       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8572       1.0000         .10000E-03   10000.    
    11 'Prefactor '    90.150       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10698E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    107.48       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6190       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.460       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .78421       1.0000         .10000E-03   10000.    
    21 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.933       1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.4152       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.069       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97435       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0394       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=   4539.598     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3198 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21189        3.1356       -.55032E-07   -.12424E-04
   2  Prefactor     .10000E-03    2.7197       -.46912E-08** at limit **
   3  norm          7.3435        6.2980       -.87659E-07    .58397E-05
   4  Prefactor     3.4374        3.8858        .33157E-07   -.20158E-04
   5  Prefactor     3.7321        4.1361       -.77285E-06   -.27405E-05
   6  Prefactor     2.1955        4.2520        .44247E-06   -.90218E-03
   7  norm          .10000E-03    .18447       -.39020E-07** at limit **
   8  norm          .10000E-03    7.2426       -.10105E-05** at limit **
   9  Prefactor     5.5870        14.818       -.64232E-06   -.25018E-03
  10  Prefactor     3.8507        17.254        .93021E-05    .53216E-04
  11  Prefactor     90.152        49.053        .80304E-06    .18625E-04
  12  Prefactor     .10000E-03    205.70        .10437E-05** at limit **
  13  Prefactor     107.48        63.626        .42532E-05    .29213E-04
  14  Prefactor     .10000E-03    2.2613        .23657E-07** at limit **
  15  Prefactor     .10000E-03    10.999       -.27113E-06** at limit **
  16  norm          .10000E-03    3.7050        .12049E-06** at limit **
  17  Prefactor     9.6203        14.230       -.28130E-05   -.31798E-04
  18  Prefactor     17.437        38.713       -.10785E-04   -.58930E-04
  19  norm          .10000E-03    1.6263        .20760E-07** at limit **
  20  norm          .78333        7.4237        .20306E-05   -.25980E-04
  21  norm          .10000E-03    5.1150       -.83070E-07** at limit **
  22  norm          13.936        15.364       -.79652E-06   -.12419E-04
  23  norm          .10000E-03    8.1427        .40266E-06** at limit **
  24  Prefactor     .10000E-03    16.300        .28213E-06** at limit **
  25  norm          8.4320        11.085        .27064E-06   -.27619E-04
  26  Prefactor     25.069        20.762        .47970E-07   -.11274E-04
  27  Prefactor     .10000E-03    7.9293       -.33481E-06** at limit **
  28  Normalizat    .97407        .22189        .38879E-06    .28214E-04
  29  Prefactor     1.0397        .20576       -.16250E-06    .51176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.21189
  Prefactor  = 0.0001
  norm       = 7.34348
  Prefactor  = 3.43745
  Prefactor  = 3.73207
  Prefactor  = 2.19545
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 5.587
  Prefactor  = 3.85075
  Prefactor  = 90.1521
  Prefactor  = 0.0001
  Prefactor  = 107.484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.62033
  Prefactor  = 17.4371
  norm       = 0.0001
  norm       = 0.783332
  norm       = 0.0001
  norm       = 13.9356
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.43196
  Prefactor  = 25.0688
  Prefactor  = 0.0001
  Normalizat = 0.974071
  Prefactor  = 1.0397
 **********
 **   18 **HESSE 
 **********

 FCN=   4539.598     FROM HESSE     STATUS=OK           559 CALLS     3757 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21189        21.879        .22846E-02   -1.5616    
   2  Prefactor     .10000E-03    2.7498        .10834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3435        6.3320        .14554E-03   -1.5166    
   4  Prefactor     3.4374        3.9005        .13164E-03   -1.5337    
   5  Prefactor     3.7321        4.1107        .13392E-03   -1.5322    
   6  Prefactor     2.1955        10.605        .13865E-02   -1.5412    
   7  norm          .10000E-03    .31551        .55286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    25.249        .33990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5870        15.066        .84962E-03   -1.5235    
  10  Prefactor     3.8507        17.112        .20547E-03   -1.5315    
  11  Prefactor     90.152        48.978        .42321E-04   -1.3806    
  12  Prefactor     .10000E-03    206.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     107.48        63.485        .38793E-04   -1.3631    
  14  Prefactor     .10000E-03    2.2627        .98946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7221        .12654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6203        14.219        .12921E-03   -1.5088    
  18  Prefactor     17.437        38.423        .95851E-04   -1.4873    
  19  norm          .10000E-03    1.6332        .83898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .78333        7.4701        .33278E-03   -1.5531    
  21  norm          .10000E-03    5.1110        .14836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.936        15.361        .10730E-03   -1.4961    
  23  norm          .10000E-03    8.2052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.4320        11.051        .13819E-03   -1.5127    
  26  Prefactor     25.069        20.800        .80006E-04   -1.4706    
  27  Prefactor     .10000E-03    7.9344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97407        .25265        .26351E-03   -.93904    
  29  Prefactor     1.0397        .23666        .24884E-03   -.91418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75744e-08
Minuit parameter uncertainties:
  1  4.30685
  2  4.95037e-07
  3  6.33254
  4  3.90075
  5  4.11101
  6  9.65307
  7  1.46931e-06
  8  0.00027473
  9  15.0766
  10  16.2425
  11  49.0002
  12  0.000317997
  13  63.5256
  14  2.56597e-08
  15  4.74167e-05
  16  3.66547e-05
  17  14.2239
  18  38.4774
  19  4.29292e-08
  20  4.83848
  21  4.35032e-06
  22  15.365
  23  7.9881e-06
  24  4.14746e-06
  25  11.0535
  26  20.806
  27  2.70082e-06
  28  0.252963
  29  0.236896
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.566e-08  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.040e+00  2.369e-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.741e-01  2.530e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991594/likelihoodResults_571881601_572140801_4FGL_J1254.5+2210_daily_bin1283.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) = 4539.60041721
delta logL = -0.00203492591845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4539.59838195
delta logL = 3.31444425683e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0693       1.0000          .0000       10.000    
     3 'Normalizat'    .97409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0397       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=   4539.598     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      245 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.777        .10059E-01** at limit **
   2  Index         1.5411        8.6112        .50000        .96634E-07
   3  Normalizat    .97407        .11496E-01    .26351E-03   -.12801E-03
   4  Prefactor     1.0397        .11236E-01    .24884E-03   -.11827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54108
  Normalizat = 0.97407
  Prefactor  = 1.0397
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    150.66        .11263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5411        9.1988        .50000       -.76396    
   3  Normalizat    .97407        .40243E-01    .10540E-04   -.93904    
   4  Prefactor     1.0397        .39330E-01    .49768E-04   -.91418    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.92303e-10
Minuit parameter uncertainties:
  1  0.000241882
  2  807.686
  3  0.0402441
  4  0.0393313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991594': 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) = 4539.59837725
delta logL = 5.03165756527e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.419e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.541e+00  8.077e+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.040e+00  3.933e-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.741e-01  4.024e-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/991594/cmap_HighResolution_571881601_572140801_4FGL_J1254.5+2210_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-09-06 09:30:10.288551', job_id='991594', GAL2='1.04', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630945810.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1283' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:30:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 991594: <4FGL_J1254.5+2210_daily_bin1283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1283 193.637 22.1808 571881601 572140801 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 :                                   615.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

