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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1469
RA = 193.637, Dec = 22.1808
tmin = 620092801, tmax = 620352001
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='992901', job_status='RUN', time_executed='2021-09-06 09:20:56.728954', time_epoch_executed='1630945256.73' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992901/ft1_4FGL_J1254.5+2210_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992901/ft2_4FGL_J1254.5+2210_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992901/ft1_4FGL_J1254.5+2210_daily_bin1469.fits outfile=/scratch/kocevski/992901/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1469.fits ra=193.637 dec=22.1808 rad=12.0 tmin=620092801.0 tmax=620352001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.43
user 3.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992901/ft1_filtered_4FGL_J1254.5+2210_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/992901/ft2_4FGL_J1254.5+2210_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/992901/ltcube_620092801_620352001_4FGL_J1254.5+2210_daily_bin1469.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/992901/ft2_4FGL_J1254.5+2210_daily_bin1469.fits
.....................!
real 11.73
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992901/ft1_filtered_4FGL_J1254.5+2210_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/992901/ft2_4FGL_J1254.5+2210_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/992901/ltcube_620092801_620352001_4FGL_J1254.5+2210_daily_bin1469.fits outfile=/scratch/kocevski/992901/expmap_620092801_620352001_4FGL_J1254.5+2210_daily_bin1469.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/992901/ltcube_620092801_620352001_4FGL_J1254.5+2210_daily_bin1469.fits
.....................!
real 190.30
user 185.52
sys 4.35

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/992901/ft1_filtered_4FGL_J1254.5+2210_daily_bin1469.fits scfile=/scratch/kocevski/992901/ft2_4FGL_J1254.5+2210_daily_bin1469.fits outfile=/scratch/kocevski/992901/cmap_620092801_620352001_4FGL_J1254.5+2210_daily_bin1469.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.53
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4988       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6095       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13695       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6081       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7654       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2909       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2050       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3786       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9056       1.0000         .10000E-03   10000.    
    20 'norm      '    6.4459       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6279       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.127       1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.341       1.0000         .10000E-03   10000.    
    25 'norm      '    4.3964       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.2675       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2906       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91403       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=   6269.392     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3719 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0275       -.19680E-06** at limit **
   2  Prefactor     3.4988        2.8124        .74756E-06   -.86228E-04
   3  norm          2.0961        2.3791        .14242E-07   -.16411E-04
   4  Prefactor     2.6157        2.1360       -.25759E-07   -.25964E-04
   5  Prefactor     1.6110        1.9840        .97926E-07   -.32564E-04
   6  Prefactor     .10000E-03    1.4359        .55633E-08** at limit **
   7  norm          .13696        .16204        .30710E-07    .16447E-03
   8  norm          3.6083        2.7743       -.67375E-07   -.44343E-04
   9  Prefactor     6.7655        11.127       -.29411E-06   -.94762E-04
  10  Prefactor     22.155        13.480        .66813E-06    .99286E-04
  11  Prefactor     1.1684        247.03        .81341E-05    .18070E-05
  12  Prefactor     .10000E-03    18.961       -.17643E-07** at limit **
  13  Prefactor     74.048        83.802       -.58313E-05   -.24889E-03
  14  Prefactor     .10000E-03    1.8552        .14608E-08** at limit **
  15  Prefactor     3.3149        30.859       -.13252E-05    .75178E-05
  16  norm          7.2070        5.7039        .29969E-06    .60415E-04
  17  Prefactor     4.4646        11.102        .28142E-05    .59939E-04
  18  Prefactor     8.3658        40.839       -.11082E-05   -.14227E-04
  19  norm          1.9066        4.1599        .68393E-06   -.30399E-04
  20  norm          6.4466        5.3748        .30498E-07   -.30079E-04
  21  norm          2.6279        6.5662        .17606E-06   -.33506E-04
  22  norm          .10000E-03    7.7050       -.34769E-07** at limit **
  23  norm          23.128        8.3305       -.83375E-06   -.35956E-04
  24  Prefactor     42.342        39.848       -.10316E-06   -.13356E-04
  25  norm          4.3967        7.0237        .57825E-05   -.11633E-03
  26  Prefactor     .10000E-03    5.8149       -.12655E-06** at limit **
  27  Prefactor     5.2699        26.425       -.20773E-05   -.40005E-04
  28  Normalizat    1.2904        .19552       -.12090E-05   -.15828E-04
  29  Prefactor     .91416        .19471        .68530E-06   -.10087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.49877
  norm       = 2.09612
  Prefactor  = 2.61569
  Prefactor  = 1.611
  Prefactor  = 0.0001
  norm       = 0.136962
  norm       = 3.6083
  Prefactor  = 6.76546
  Prefactor  = 22.1548
  Prefactor  = 1.16843
  Prefactor  = 0.0001
  Prefactor  = 74.0483
  Prefactor  = 0.0001
  Prefactor  = 3.31489
  norm       = 7.207
  Prefactor  = 4.46465
  Prefactor  = 8.36579
  norm       = 1.90655
  norm       = 6.44657
  norm       = 2.62791
  norm       = 0.0001
  norm       = 23.1279
  Prefactor  = 42.3415
  norm       = 4.3967
  Prefactor  = 0.0001
  Prefactor  = 5.26987
  Normalizat = 1.29038
  Prefactor  = 0.914165
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.392     FROM HESSE     STATUS=OK           569 CALLS     4288 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0762        .21961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4988        2.8056        .57387E-03   -1.5334    
   3  norm          2.0961        2.3691        .12238E-03   -1.5418    
   4  Prefactor     2.6157        2.1336        .98093E-04   -1.5384    
   5  Prefactor     1.6110        1.9547        .11547E-03   -1.5454    
   6  Prefactor     .10000E-03    1.4381        .92655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .13696        .14671        .33259E-03   -1.5634    
   8  norm          3.6083        2.7759        .11246E-03   -1.5328    
   9  Prefactor     6.7655        10.620        .15426E-03   -1.5188    
  10  Prefactor     22.155        13.453        .85091E-04   -1.4766    
  11  Prefactor     1.1684        230.44        .39833E-03   -1.5492    
  12  Prefactor     .10000E-03    18.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     74.048        85.455        .23307E-03   -1.3985    
  14  Prefactor     .10000E-03    1.8579        .10532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3149        29.586        .22319E-03   -1.5344    
  16  norm          7.2070        5.6643        .13636E-03   -1.5171    
  17  Prefactor     4.4646        11.044        .19044E-03   -1.5285    
  18  Prefactor     8.3658        40.334        .13850E-03   -1.5129    
  19  norm          1.9066        4.1432        .22563E-03   -1.5432    
  20  norm          6.4466        5.4840        .12322E-03   -1.5200    
  21  norm          2.6279        6.6807        .24506E-03   -1.5384    
  22  norm          .10000E-03    7.7114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.128        8.3449        .83292E-04   -1.4746    
  24  Prefactor     42.342        39.845        .61607E-04   -1.4406    
  25  norm          4.3967        7.0747        .96038E-03   -1.5289    
  26  Prefactor     .10000E-03    5.8292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.2699        26.572        .17513E-03   -1.5249    
  28  Normalizat    1.2904        .23366        .24323E-03   -.83854    
  29  Prefactor     .91416        .23179        .29562E-03   -.95648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57924e-10
Minuit parameter uncertainties:
  1  1.46669e-05
  2  2.80575
  3  2.3692
  4  2.13367
  5  1.9548
  6  6.31856e-08
  7  0.146714
  8  2.77602
  9  10.6225
  10  13.4546
  11  32.9461
  12  2.76242e-06
  13  85.5974
  14  3.77365e-07
  15  19.8194
  16  5.66469
  17  11.0494
  18  36.7785
  19  4.14381
  20  5.48443
  21  6.68261
  22  3.29842e-06
  23  8.3453
  24  39.8699
  25  7.07604
  26  4.57974e-06
  27  23.6834
  28  0.233848
  29  0.232044
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.290e+00  2.338e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992901/likelihoodResults_620092801_620352001_4FGL_J1254.5+2210_daily_bin1469.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) = 6269.39421804
delta logL = -0.00245916790664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6269.39175832
delta logL = 5.60004082217e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0666       1.0000          .0000       10.000    
     3 'Normalizat'    1.2904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91416       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=   6269.392     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10204E-03    32.314        .10759E-02** at limit **
   2  Index         1.9946        5.5706        .50000        .83769E-04
   3  Normalizat    1.2904        .19074E-01    .24323E-03    .80582E-04
   4  Prefactor     .91417        .19990E-01    .29561E-03    .19344E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6269.392     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      368 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    32.314        .20038E-03** at limit **
   2  Index         1.9936        5.5706        .37868E-03    .83769E-04
   3  Normalizat    1.2904        .19074E-01    .26784E-05    .80582E-04
   4  Prefactor     .91416        .19990E-01    .21540E-05    .19344E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6269.392     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      423 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.396        .21518E-02** at limit **
   2  Index         1.5515        5.3877        .50000       -.17735E-07
   3  Normalizat    1.2904        .19363E-01    .97291E-05   -.24539E-04
   4  Prefactor     .91417        .20293E-01    .11825E-04   -.25767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.55145
  Normalizat = 1.29038
  Prefactor  = 0.914166
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    179.02        .43035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5515        8.1406        .50000       -.76109    
   3  Normalizat    1.2904        .43974E-01    .19458E-05   -.83854    
   4  Prefactor     .91417        .46078E-01    .23649E-05   -.95648    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.12734e-10
Minuit parameter uncertainties:
  1  0.000102915
  2  670.486
  3  0.0439757
  4  0.0460802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992901': 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) = 6269.39175232
delta logL = 6.55272924632e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.029e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.551e+00  6.705e+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:  9.142e-01  4.608e-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:  1.290e+00  4.398e-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/992901/cmap_HighResolution_620092801_620352001_4FGL_J1254.5+2210_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-03', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-09-06 09:34:51.821775', job_id='992901', GAL2='0.91', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630946091.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1469' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:34:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 992901: <4FGL_J1254.5+2210_daily_bin1469> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1469> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:38 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:39 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:20:39 2021
Terminated at Mon Sep  6 09:34:52 2021
Results reported at Mon Sep  6 09:34:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1469 193.637 22.1808 620092801 620352001 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

