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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin650
RA = 193.637, Dec = 22.1808
tmin = 407808001, tmax = 408067201
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='988119', job_status='RUN', time_executed='2021-09-06 09:08:01.650883', time_epoch_executed='1630944481.65' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988119

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988119/ft1_4FGL_J1254.5+2210_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988119/ft2_4FGL_J1254.5+2210_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988119/ft1_4FGL_J1254.5+2210_daily_bin650.fits outfile=/scratch/kocevski/988119/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin650.fits ra=193.637 dec=22.1808 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.50
user 3.89
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/988119/ft1_filtered_4FGL_J1254.5+2210_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/988119/ft2_4FGL_J1254.5+2210_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/988119/ltcube_407808001_408067201_4FGL_J1254.5+2210_daily_bin650.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/988119/ft2_4FGL_J1254.5+2210_daily_bin650.fits
.....................!
real 15.84
user 15.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988119/ft1_filtered_4FGL_J1254.5+2210_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/988119/ft2_4FGL_J1254.5+2210_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/988119/ltcube_407808001_408067201_4FGL_J1254.5+2210_daily_bin650.fits outfile=/scratch/kocevski/988119/expmap_407808001_408067201_4FGL_J1254.5+2210_daily_bin650.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/988119/ltcube_407808001_408067201_4FGL_J1254.5+2210_daily_bin650.fits
.....................!
real 190.51
user 185.85
sys 3.80

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/988119/ft1_filtered_4FGL_J1254.5+2210_daily_bin650.fits scfile=/scratch/kocevski/988119/ft2_4FGL_J1254.5+2210_daily_bin650.fits outfile=/scratch/kocevski/988119/cmap_407808001_408067201_4FGL_J1254.5+2210_daily_bin650.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/988119/ft1_filtered_4FGL_J1254.5+2210_daily_bin650.fits scfile=/scratch/kocevski/988119/ft2_4FGL_J1254.5+2210_daily_bin650.fits outfile=/scratch/kocevski/988119/cmap_HighResolution_407808001_408067201_4FGL_J1254.5+2210_daily_bin650.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77862       1.0000         .10000E-03   10000.    
     3 'norm      '    8.6391       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7529       1.0000         .10000E-03   10000.    
     8 'norm      '    .41719       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8084       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90531E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.778       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.183       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .13674E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.216       1.0000         .10000E-03   10000.    
    19 'norm      '    7.0984       1.0000         .10000E-03   10000.    
    20 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    17.702       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6853       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8113       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.822       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85926       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3418       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=   7370.996     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     3074 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2599        .12188E-06** at limit **
   2  Prefactor     .77718        2.5929        .54523E-06   -.98551E-04
   3  norm          8.6406        3.7469       -.48177E-05   -.72716E-03
   4  Prefactor     1.1026        1.4059        .20280E-06   -.29059E-03
   5  Prefactor     .10000E-03    .88901       -.88315E-08** at limit **
   6  Prefactor     .10000E-03    3.8750       -.33797E-06** at limit **
   7  norm          3.7528        .48933        .10611E-06   -.32344E-03
   8  norm          .44013        9.8482       -.20136E-04    .19866E-03
   9  Prefactor     8.8069        1.0164        .19536E-06   -.16877E-04
  10  Prefactor     .10020E-03    558.78        .13369E-04** at limit **
  11  Prefactor     16.768        1.3224        .30475E-06   -.98452E-03
  12  Prefactor     44.181        1.0251        .86958E-07   -.10674E-02
  13  Prefactor     .10000E-03    19.029       -.14245E-04** at limit **
  14  Prefactor     .10000E-03    4.7458        .53080E-06** at limit **
  15  Prefactor     .10000E-03    3.5729       -.26830E-06** at limit **
  16  norm          .10000E-03    3.3038        .13164E-06** at limit **
  17  Prefactor     .10000E-03    7.6558       -.26942E-05** at limit **
  18  Prefactor     32.176        3.3198        .26721E-06   -.10215E-02
  19  norm          7.0985        1.2851        .96713E-06   -.47471E-03
  20  norm          .10000E-03    1.5768        .15834E-06** at limit **
  21  norm          .10000E-03    2.3082        .12297E-06** at limit **
  22  norm          .10000E-03    34.910       -.92105E-06** at limit **
  23  norm          17.701        1.0931        .28825E-06   -.16029E-02
  24  Prefactor     9.6846        1.0128        .17646E-06   -.28904E-03
  25  norm          1.8111        1.1976       -.51600E-06   -.39352E-03
  26  Prefactor     .10000E-03    17.589        .13662E-04** at limit **
  27  Prefactor     26.829        1.3422       -.60089E-06    .45666E-02
  28  Normalizat    .85920        .21657       -.37540E-05   -.32753E-03
  29  Prefactor     1.3420        .21631        .90746E-06   -.36756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.777185
  norm       = 8.6406
  Prefactor  = 1.10259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.75281
  norm       = 0.440126
  Prefactor  = 8.80694
  Prefactor  = 0.000100203
  Prefactor  = 16.7678
  Prefactor  = 44.1806
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1765
  norm       = 7.09846
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 17.7014
  Prefactor  = 9.68458
  norm       = 1.81114
  Prefactor  = 0.000100001
  Prefactor  = 26.8286
  Normalizat = 0.8592
  Prefactor  = 1.34196
 **********
 **   18 **HESSE 
 **********

 FCN=   7370.996     FROM HESSE     STATUS=OK           625 CALLS     3699 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2490        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .77718        2.6042        .12360E-01   -1.5532    
   3  norm          8.6406        3.8444        .34095E-02   -1.5120    
   4  Prefactor     1.1026        1.4335        .11303E-01   -1.5498    
   5  Prefactor     .10000E-03    .87818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7528        .49076        .46183E-02   -1.5321    
   8  norm          .44013        2.4664        .72000E-01   -1.5575    
   9  Prefactor     8.8069        10.983        .33764E-02   -1.5114    
  10  Prefactor     .10020E-03    8.3708        .94660E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.768        25.213        .24445E-02   -1.4889    
  12  Prefactor     44.181        89.822        .15079E-02   -1.4378    
  13  Prefactor     .10000E-03    19.015        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.176        37.475        .17649E-02   -1.4573    
  19  norm          7.0985        4.0301        .37641E-02   -1.5175    
  20  norm          .10000E-03    1.5685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    33.817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          17.701        7.0831        .23799E-02   -1.4866    
  24  Prefactor     9.6846        12.917        .32191E-02   -1.5085    
  25  norm          1.8111        5.0219        .77606E-02   -1.5439    
  26  Prefactor     .10000E-03    17.549        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     26.829        25.659        .19338E-02   -1.4672    
  28  Normalizat    .85920        .19135        .72113E-01   -.97909    
  29  Prefactor     1.3420        .18390        .59639E-01   -.82068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50094e-07
Minuit parameter uncertainties:
  1  1.55921e-06
  2  2.60461
  3  3.84448
  4  1.43352
  5  9.30683e-07
  6  3.80932e-05
  7  0.49076
  8  2.08367
  9  10.986
  10  0.00260427
  11  25.2288
  12  90.0989
  13  0.000571008
  14  2.13805e-06
  15  6.38666e-05
  16  1.70481e-05
  17  4.51768e-05
  18  37.5023
  19  4.03025
  20  4.58053e-06
  21  3.65168e-06
  22  0.000771008
  23  7.0834
  24  12.9212
  25  5.0231
  26  0.000237178
  27  25.6694
  28  0.191497
  29  0.183992
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.138e-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.342e+00  1.840e-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.592e-01  1.915e-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: 6.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/988119/likelihoodResults_407808001_408067201_4FGL_J1254.5+2210_daily_bin650.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) = 7370.99700866
delta logL = -0.00100302906048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7370.99600565
delta logL = -1.66219251696e-08

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.0933       1.0000          .0000       10.000    
     3 'Normalizat'    .85922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3420       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=   7370.996     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8805        .90712E-02** at limit **
   2  Index         2.0975        5.3961        .50000       -.71463E-05
   3  Normalizat    .85920        .37067E-02    .72113E-01    .30226E-04
   4  Prefactor     1.3420        .37477E-02    .59639E-01    .10272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0975
  Normalizat = 0.859201
  Prefactor  = 1.34196
 **********
 **   18 **HESSE 
 **********

 FCN=   7370.996     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0975        8.9073        .50000       -.61934    
   3  Normalizat    .85920        .14173E-01    .31911E-03   -.97909    
   4  Prefactor     1.3420        .14348E-01    .26372E-03   -.82068    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52398e-07
Minuit parameter uncertainties:
  1  3.10282e-05
  2  220.546
  3  0.014173
  4  0.0143482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988119': 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) = 7370.99600562
delta logL = 1.5172190615e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.103e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.098e+00  2.205e+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.342e+00  1.435e-02  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  8.592e-01  1.417e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/988119/cmap_HighResolution_407808001_408067201_4FGL_J1254.5+2210_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-06 09:22:04.011621', job_id='988119', GAL2='1.34', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630945324.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='650' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:22:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 988119: <4FGL_J1254.5+2210_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin650 193.637 22.1808 407808001 408067201 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 :                                   837.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

