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


Performing analysis on: 4FGL_J0253.5+3216_daily_bin1605
RA = 43.3829, Dec = 32.2826
tmin = 655344001, tmax = 655603201
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='168232', job_status='RUN', time_executed='2021-12-07 13:42:02.710020', time_epoch_executed='1638913322.71' WHERE source_name='4FGL J0253.5+3216' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168232

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168232/ft1_4FGL_J0253.5+3216_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168232/ft1_4FGL_J0253.5+3216_daily_bin1605.fits outfile=/scratch/kocevski/168232/ft1_filteredMKT_4FGL_J0253.5+3216_daily_bin1605.fits ra=43.3829 dec=32.2826 rad=12.0 tmin=655344001.0 tmax=655603201.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.19
user 2.01
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.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/168232/ft1_filteredMKT_4FGL_J0253.5+3216_daily_bin1605.fits evtable="EVENTS" outfile="/scratch/kocevski/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.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.43
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/168232/ltcube_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.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/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits
.....................!
real 9.87
user 9.59
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/168232/ltcube_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.fits outfile=/scratch/kocevski/168232/expmap_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.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/168232/ltcube_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.fits
.....................!
real 152.49
user 149.11
sys 3.14

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0253.5+3216 @ 43.3829 32.2826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.fits scfile=/scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits outfile=/scratch/kocevski/168232/cmap_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.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=43.3829 yref=32.2826 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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.fits scfile=/scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits outfile=/scratch/kocevski/168232/cmap_HighResolution_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.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=43.3829 yref=32.2826 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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168232/Model_4FGL_J0253.5+3216_daily_bin1605.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/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.fits.....................!
real 59.00
user 57.92
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.fits', '/scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits', expMap='/scratch/kocevski/168232/expmap_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.fits', expCube='/scratch/kocevski/168232/ltcube_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/168232/Model_4FGL_J0253.5+3216_daily_bin1605.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.5+3216'

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  8.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/168232/ft1_filtered_4FGL_J0253.5+3216_daily_bin1605.fits
Spacecraft file(s): /scratch/kocevski/168232/ft2_4FGL_J0253.5+3216_daily_bin1605.fits
Exposure map: /scratch/kocevski/168232/expmap_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.fits
Exposure cube: /scratch/kocevski/168232/ltcube_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/168232/Model_4FGL_J0253.5+3216_daily_bin1605.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) = 4109.03205076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25454E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    33.620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74381E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10708E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.946       1.0000         .10000E-03   10000.    
     6 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20740E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13409E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14867E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.8216       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.344       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.581       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4720       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85936       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4108.860     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3009 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    591.27       -.15072E-04** at limit **
   2  norm          33.633        27.695       -.26059E-05   -.34256E-03
   3  Prefactor     .10000E-03    265.11        .61503E-04** at limit **
   4  norm          .10005E-03    7.5005       -.37327E-06** at limit **
   5  Prefactor     14.957        39.776       -.31078E-05   -.58507E-04
   6  norm          .10000E-03    1.5900        .37306E-06** at limit **
   7  norm          .10000E-03    274.70        .18164E-03** at limit **
   8  Prefactor     18.816        21.370        .16004E-05    .93674E-03
   9  Prefactor     .10000E-03    377.13       -.15118E-04** at limit **
  10  norm          16.642        19.058       -.13333E-06    .46735E-03
  11  Prefactor     .10002E-03    589.88       -.41806E-03** at limit **
  12  norm          5.8210        7.0346       -.42581E-06   -.24281E-03
  13  Prefactor     5.6840        47.771        .18355E-05   -.13771E-04
  14  Prefactor     .10000E-03    35.237        .10599E-05** at limit **
  15  norm          .10000E-03    19.737        .29043E-06** at limit **
  16  norm          .10000E-03    15.682       -.86002E-08** at limit **
  17  Prefactor     22.337        17.907        .41503E-07    .13501E-04
  18  Prefactor     .10000E-03    66.707        .18510E-04** at limit **
  19  norm          2.8591        1.0210       -.34625E-07   -.13360E-03
  20  Prefactor     .10000E-03    2.0550       -.55653E-08** at limit **
  21  norm          18.585        21.517        .56790E-07   -.49279E-05
  22  norm          1.4720        3.4140       -.51724E-06   -.69148E-03
  23  Prefactor     .10000E-03    101.98       -.41271E-04** at limit **
  24  Normalizat    .85933        .50962        .23662E-05    .20136E-03
  25  Prefactor     1.0053        .13223        .33070E-07    .47634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 33.6326
  Prefactor  = 0.000100003
  norm       = 0.000100052
  Prefactor  = 14.9574
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.816
  Prefactor  = 0.0001
  norm       = 16.6418
  Prefactor  = 0.000100022
  norm       = 5.82097
  Prefactor  = 5.68402
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.3373
  Prefactor  = 0.0001
  norm       = 2.85908
  Prefactor  = 0.0001
  norm       = 18.5847
  norm       = 1.47201
  Prefactor  = 0.0001
  Normalizat = 0.859328
  Prefactor  = 1.00533
 **********
 **   18 **HESSE 
 **********

 FCN=   4108.860     FROM HESSE     STATUS=OK           423 CALLS     3432 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    594.59        .21458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          33.633        27.603        .69110E-04   -1.4547    
   3  Prefactor     .10000E-03    268.24        .20945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10005E-03    42.256        .31093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.957        39.221        .10360E-03   -1.4934    
   6  norm          .10000E-03    3.5117        .14442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    274.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.816        21.074        .92312E-04   -1.4840    
   9  Prefactor     .10000E-03    377.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.642        19.017        .98189E-04   -1.4892    
  11  Prefactor     .10002E-03    590.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.8210        7.0043        .16645E-03   -1.5225    
  13  Prefactor     5.6840        47.440        .16844E-03   -1.5231    
  14  Prefactor     .10000E-03    35.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.337        17.898        .84737E-04   -1.4762    
  18  Prefactor     .10000E-03    66.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8591        1.0224        .35341E-04   -1.5370    
  20  Prefactor     .10000E-03    2.1323        .17833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.585        21.571        .92914E-04   -1.4845    
  22  norm          1.4720        3.3628        .15882E-03   -1.5465    
  23  Prefactor     .10000E-03    102.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85933        .54277        .58353E-03   -.97904    
  25  Prefactor     1.0053        .14663        .15747E-03   -.92552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96383e-09
Minuit parameter uncertainties:
  1  0.000436431
  2  27.613
  3  0.00177025
  4  0.00297212
  5  39.2882
  6  7.11981e-05
  7  1.08898e-05
  8  21.0825
  9  0.000136826
  10  19.0242
  11  0.00719913
  12  7.00533
  13  32.8771
  14  1.15254e-06
  15  4.94989e-06
  16  1.59511e-06
  17  17.9026
  18  1.58731e-05
  19  1.02244
  20  1.79956e-06
  21  21.5797
  22  3.36327
  23  1.09151e-05
  24  0.546259
  25  0.146686
Done.

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

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.153e-06  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.005e+00  1.467e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  8.593e-01  5.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 43.383 32.283
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168232/likelihoodResults_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.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) = 4108.85973035
delta logL = -0.000135124104418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4108.85959587
delta logL = -6.46116859571e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10876E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3723       1.0000          .0000       10.000    
     3 'Normalizat'    .85932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+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=   4108.860     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    134.88        .18142E-02** at limit **
   2  Index         2.3086        5.2863        .50000        .11264E-04
   3  Normalizat    .85932        .25038E-01    .58353E-03    .18703E-05
   4  Prefactor     1.0053        .73254E-02    .15747E-03   -.80139E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101676
  Index      = 2.30859
  Normalizat = 0.859321
  Prefactor  = 1.00533
 **********
 **   18 **HESSE 
 **********

 FCN=   4108.860     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10168E-03    579.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3086        8.8454        .50000       -.56840    
   3  Normalizat    .85932        .53156E-01    .23341E-04   -.97905    
   4  Prefactor     1.0053        .15553E-01    .62987E-05   -.92552    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22538e-08
Minuit parameter uncertainties:
  1  0.0629377
  2  441.15
  3  0.0531593
  4  0.015553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168232': 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) = 4108.85959555
delta logL = -3.29260728904e-07

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  1.017e-04  6.294e-02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.309e+00  4.411e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.005e+00  1.555e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  8.593e-01  5.316e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 43.383 32.283

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/168232/cmap_HighResolution_655344001_655603201_4FGL_J0253.5+3216_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.19e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-12-07 13:49:54.664851', job_id='168232', GAL2='1.01', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1638913794.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-3.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1605' AND source_name='4FGL J0253.5+3216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:49:54 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 168232: <4FGL_J0253.5+3216_daily_bin1605> in cluster <slac> Done

Job <4FGL_J0253.5+3216_daily_bin1605> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:40:18 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:41:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:41:52 2021
Terminated at Tue Dec  7 13:49:55 2021
Results reported at Tue Dec  7 13:49:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.5+3216_daily_bin1605 43.3829 32.2826 655344001 655603201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0253.5+3216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   471.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             385.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   482 sec.
    Turnaround time :                            577 sec.

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

