/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 120 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin392
RA = 193.637, Dec = 22.1808
tmin = 340934401, tmax = 341193601
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='986816', job_status='RUN', time_executed='2021-09-06 09:03:17.122851', time_epoch_executed='1630944197.12' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986816/ft1_4FGL_J1254.5+2210_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986816/ft2_4FGL_J1254.5+2210_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986816/ft1_4FGL_J1254.5+2210_daily_bin392.fits outfile=/scratch/kocevski/986816/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin392.fits ra=193.637 dec=22.1808 rad=12.0 tmin=340934401.0 tmax=341193601.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.36
user 3.15
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986816/ft1_filtered_4FGL_J1254.5+2210_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/986816/ft2_4FGL_J1254.5+2210_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/986816/ltcube_340934401_341193601_4FGL_J1254.5+2210_daily_bin392.fits outfile=/scratch/kocevski/986816/expmap_340934401_341193601_4FGL_J1254.5+2210_daily_bin392.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/986816/ltcube_340934401_341193601_4FGL_J1254.5+2210_daily_bin392.fits
.....................!
real 190.57
user 185.28
sys 4.91

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/986816/ft1_filtered_4FGL_J1254.5+2210_daily_bin392.fits scfile=/scratch/kocevski/986816/ft2_4FGL_J1254.5+2210_daily_bin392.fits outfile=/scratch/kocevski/986816/cmap_340934401_341193601_4FGL_J1254.5+2210_daily_bin392.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986816/ft1_filtered_4FGL_J1254.5+2210_daily_bin392.fits scfile=/scratch/kocevski/986816/ft2_4FGL_J1254.5+2210_daily_bin392.fits outfile=/scratch/kocevski/986816/cmap_HighResolution_340934401_341193601_4FGL_J1254.5+2210_daily_bin392.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.59
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11417E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0322       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .67402       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.623       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.038       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23300E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.6980       1.0000         .10000E-03   10000.    
    20 'norm      '    .11977E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    22.314       1.0000         .10000E-03   10000.    
    22 'norm      '    10.709       1.0000         .10000E-03   10000.    
    23 'norm      '    15.486       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.300       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87410       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1826       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.

 FCN=   6276.111     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3219 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.368        4.4965        .27383E-02   -.75386E-03
   2  Prefactor     .10000E-03    2.6477        .37715E-01** at limit **
   3  norm          4.0323        2.8531        .50204E-02    .21493E-04
   4  Prefactor     8.8444        3.1830        .33695E-02   -.66855E-04
   5  Prefactor     .10000E-03    1.4107        .32852E-01** at limit **
   6  Prefactor     .10000E-03    3.7051        .90712E-02** at limit **
   7  norm          .67406        .26273        .53994E-02    .45794E-03
   8  norm          .10000E-03    2.5323        .90712E-02** at limit **
   9  Prefactor     17.619        11.258        .23852E-02    .61394E-03
  10  Prefactor     11.040        9.3104        .30147E-02   -.85850E-04
  11  Prefactor     .10000E-03    15.694        .90712E-02** at limit **
  12  Prefactor     .10000E-03    33.084        .90712E-02** at limit **
  13  Prefactor     .10000E-03    282.03        .10043E-01** at limit **
  14  Prefactor     10.464        8.0294        .30968E-02    .14811E-02
  15  Prefactor     .10000E-03    14.617        .90712E-02** at limit **
  16  norm          .10000E-03    3.7060        .90712E-02** at limit **
  17  Prefactor     .10000E-03    7.7209        .90712E-02** at limit **
  18  Prefactor     .10000E-03    8.8273        .90712E-02** at limit **
  19  norm          5.6985        3.2861        .42069E-02   -.95368E-04
  20  norm          .10000E-03    2.9272        .64071E-01** at limit **
  21  norm          22.312        9.7161        .21199E-02    .17536E-03
  22  norm          10.710        13.793        .30609E-02    .87882E-04
  23  norm          15.488        7.6120        .25444E-02    .98803E-03
  24  Prefactor     14.308        33.259        .26479E-02    .63822E-04
  25  norm          .10000E-03    2.5536        .90712E-02** at limit **
  26  Prefactor     12.065        17.501        .28836E-02    .94418E-03
  27  Prefactor     .10000E-03    15.238        .90712E-02** at limit **
  28  Normalizat    .87396        .18600        .44570E-01    .75256E-04
  29  Prefactor     1.1825        .19025        .58232E-01    .80214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3677
  Prefactor  = 0.0001
  norm       = 4.03232
  Prefactor  = 8.84441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.674057
  norm       = 0.0001
  Prefactor  = 17.6194
  Prefactor  = 11.04
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.4643
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.69846
  norm       = 0.0001
  norm       = 22.3124
  norm       = 10.7097
  norm       = 15.4882
  Prefactor  = 14.308
  norm       = 0.0001
  Prefactor  = 12.0652
  Prefactor  = 0.000100001
  Normalizat = 0.873959
  Prefactor  = 1.18247
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.111     FROM HESSE     STATUS=OK           551 CALLS     3770 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.368        4.2935        .89211E-04   -1.4977    
   2  Prefactor     .10000E-03    5.2936        .23777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0323        2.8456        .10568E-03   -1.5306    
   4  Prefactor     8.8444        3.1724        .79209E-04   -1.5113    
   5  Prefactor     .10000E-03    2.4296        .17791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8178        .29771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .67406        .26122        .24006E-04   -1.5544    
   8  norm          .10000E-03    2.6186        .24610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.619        11.255        .95408E-04   -1.4868    
  10  Prefactor     11.040        9.2474        .12059E-03   -1.5043    
  11  Prefactor     .10000E-03    15.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    288.51        .20087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.464        8.0263        .61937E-03   -1.5061    
  15  Prefactor     .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8443        .29754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.6985        3.2877        .10553E-03   -1.5230    
  20  norm          .10000E-03    8.8507        .22720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          22.312        8.4667        .84795E-04   -1.4763    
  22  norm          10.710        13.788        .12243E-03   -1.5053    
  23  norm          15.488        7.6077        .50888E-03   -1.4921    
  24  Prefactor     14.308        33.281        .10592E-03   -1.4951    
  25  norm          .10000E-03    2.5583        .12359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.065        17.510        .11534E-03   -1.5013    
  27  Prefactor     .10000E-03    15.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87396        .21543        .27626E-03   -.97381    
  29  Prefactor     1.1825        .22264        .25750E-03   -.86872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77407e-09
Minuit parameter uncertainties:
  1  4.29365
  2  1.69365e-06
  3  2.84568
  4  3.17246
  5  5.25394e-07
  6  5.88986e-05
  7  0.261217
  8  3.99066e-07
  9  11.2564
  10  9.24864
  11  0.000106353
  12  9.20706e-06
  13  0.00157583
  14  8.02713
  15  9.46896e-05
  16  6.36722e-05
  17  3.35123e-07
  18  7.54398e-05
  19  3.28785
  20  7.46218e-05
  21  8.46714
  22  13.7924
  23  7.6082
  24  33.3244
  25  6.54946e-07
  26  17.5171
  27  0.000200638
  28  0.215641
  29  0.222815
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.046e+01  8.027e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.182e+00  2.228e-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.740e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.14
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.10e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.77e-05

TS (Fixed Index): 3.14
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/986816/likelihoodResults_340934401_341193601_4FGL_J1254.5+2210_daily_bin392.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6275.99229763
delta logL = 0.119199050321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6275.98364769
delta logL = 0.127848990811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.121       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7728       1.0000          .0000       10.000    
     3 'Normalizat'    .88781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1774       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=   6275.984     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      279 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.122        10.088        .11506E-03   -.81371E-03
   2  Index         1.7726        .65975        .95995E-02   -.20579E-03
   3  Normalizat    .88786        .20797        .27433E-03    .12296E-03
   4  Prefactor     1.1774        .22117        .25803E-03    .15088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1216
  Index      = 1.77263
  Normalizat = 0.887864
  Prefactor  = 1.17737
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.984     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.122        10.124        .23012E-04   -1.5012    
   2  Index         1.7726        .66179        .38398E-03   -.70164    
   3  Normalizat    .88786        .20809        .10973E-04   -.96888    
   4  Prefactor     1.1774        .22136        .51607E-04   -.87030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2202e-09
Minuit parameter uncertainties:
  1  10.1255
  2  0.665146
  3  0.208281
  4  0.221533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986816': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6275.98364763
delta logL = 0.127849047928

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.212e+01  1.013e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.773e+00  6.651e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.177e+00  2.215e-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.879e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 193.637 22.181
Photon Index (Free Index): 1.77 +/- 0.67
Photon Flux (Free Index): 2.66e-08 +/- 3.82e-08
Energy Flux (Free Index): 3.47e-05 +/- 4.17e-05

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/986816/cmap_HighResolution_340934401_341193601_4FGL_J1254.5+2210_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', comment='SUCCESS', photon_flux='4.10e-08', energy_flux2='3.47e-05', photon_flux_error='3.15e-08', dlogl='1.28e-01', energy_flux='2.31e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-09-06 09:16:23.329945', photon_index_error2='0.67', photon_index2='1.77', ts='3.14', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='4.17e-05', EG='0.87', time_epoch_completed='1630944983.33', return_code='0', job_id='986816', GAL2='1.18', EG2='0.89', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.82e-08', ts2='3.37', photon_index='2.09' WHERE bin_id='392' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:16:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 986816: <4FGL_J1254.5+2210_daily_bin392> in cluster <slac> Done

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

Your job looked like:

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

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

