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


Performing analysis on: 4FGL_J0253.5+3216_monthly_bin118
RA = 43.3829, Dec = 32.2826
tmin = 542851201, tmax = 545443201
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='166718', job_status='RUN', time_executed='2021-10-11 03:00:50.991115', time_epoch_executed='1633946450.99' WHERE source_name='4FGL J0253.5+3216' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166718

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166718/ft1_4FGL_J0253.5+3216_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166718/ft1_4FGL_J0253.5+3216_monthly_bin118.fits outfile=/scratch/kocevski/166718/ft1_filteredMKT_4FGL_J0253.5+3216_monthly_bin118.fits ra=43.3829 dec=32.2826 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.91
user 18.16
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.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/166718/ft1_filteredMKT_4FGL_J0253.5+3216_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/166718/ft1_filtered_4FGL_J0253.5+3216_monthly_bin118.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.59
user 0.43
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166718/ft1_filtered_4FGL_J0253.5+3216_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/166718/ltcube_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.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/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.fits
.....................!
real 55.93
user 55.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166718/ft1_filtered_4FGL_J0253.5+3216_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/166718/ltcube_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.fits outfile=/scratch/kocevski/166718/expmap_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.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/166718/ltcube_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.fits
.....................!
real 191.07
user 186.04
sys 4.49

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/166718/ft1_filtered_4FGL_J0253.5+3216_monthly_bin118.fits scfile=/scratch/kocevski/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.fits outfile=/scratch/kocevski/166718/cmap_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.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.60
user 0.45
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166718/ft1_filtered_4FGL_J0253.5+3216_monthly_bin118.fits scfile=/scratch/kocevski/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.fits outfile=/scratch/kocevski/166718/cmap_HighResolution_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.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.60
user 0.45
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166718/ft1_filtered_4FGL_J0253.5+3216_monthly_bin118.fits', '/scratch/kocevski/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.fits', expMap='/scratch/kocevski/166718/expmap_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.fits', expCube='/scratch/kocevski/166718/ltcube_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166718/Model_4FGL_J0253.5+3216_monthly_bin118.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/166718/ft1_filtered_4FGL_J0253.5+3216_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/166718/ft2_4FGL_J0253.5+3216_monthly_bin118.fits
Exposure map: /scratch/kocevski/166718/expmap_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.fits
Exposure cube: /scratch/kocevski/166718/ltcube_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166718/Model_4FGL_J0253.5+3216_monthly_bin118.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) = 2019.03185379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.502       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .67186E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    23.425       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29696E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.321       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    175.26       1.0000         .10000E-03   10000.    
    19 'norm      '    7.5183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.2384       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.2061       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88040       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=   2018.976     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2893 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.712        .28613E-06** at limit **
   2  norm          .10000E-03    8.6320        .36929E-06** at limit **
   3  Prefactor     .10000E-03    10.971        .20267E-06** at limit **
   4  norm          12.490        14.869        .17557E-05    .20777E-04
   5  Prefactor     .10000E-03    14.388       -.13116E-08** at limit **
   6  norm          .10000E-03    2.7806       -.49699E-06** at limit **
   7  norm          .10000E-03    1854.8       -.25124E-03** at limit **
   8  Prefactor     .10000E-03    21.887       -.67548E-06** at limit **
   9  Prefactor     .10000E-03    67.768       -.10419E-04** at limit **
  10  norm          23.423        21.218        .25325E-06   -.76030E-04
  11  Prefactor     .10000E-03    318.50        .13370E-03** at limit **
  12  norm          13.638        7.3842        .11841E-05   -.48770E-04
  13  Prefactor     .10000E-03    20.399        .98829E-06** at limit **
  14  Prefactor     .10000E-03    72.868        .13080E-04** at limit **
  15  norm          .10000E-03    17.859       -.26820E-06** at limit **
  16  norm          19.168        78.021        .95420E-04   -.67784E-05
  17  Prefactor     .10000E-03    12.531        .12212E-06** at limit **
  18  Prefactor     175.27        230.23        .75464E-05   -.35354E-05
  19  norm          7.5146        2.7522       -.98725E-07    .51717E-05
  20  Prefactor     .10000E-03    2.1204       -.90266E-07** at limit **
  21  norm          .10000E-03    13.497       -.10432E-06** at limit **
  22  norm          7.2397        6.3599        .90140E-06   -.15444E-03
  23  Prefactor     .10000E-03    148.80       -.10493E-04** at limit **
  24  Normalizat    2.2063        .59982       -.51031E-05   -.38926E-04
  25  Prefactor     .88019        .19858       -.46487E-05    .32247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4903
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.4234
  Prefactor  = 0.0001
  norm       = 13.6382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.168
  Prefactor  = 0.0001
  Prefactor  = 175.269
  norm       = 7.51457
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.23967
  Prefactor  = 0.0001
  Normalizat = 2.20633
  Prefactor  = 0.880185
 **********
 **   18 **HESSE 
 **********

 FCN=   2018.976     FROM HESSE     STATUS=OK           417 CALLS     3310 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.6629        .12895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.981        .14538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.490        13.096        .11329E-03   -1.5001    
   5  Prefactor     .10000E-03    14.398        .16649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.7362        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1857.6        .18707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    67.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.423        21.245        .82761E-04   -1.4740    
  11  Prefactor     .10000E-03    319.35        .21394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.638        7.3972        .86250E-04   -1.4969    
  13  Prefactor     .10000E-03    20.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    17.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.168        77.905        .91120E-04   -1.4832    
  17  Prefactor     .10000E-03    12.539        .15537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     175.27        232.51        .15242E-03   -1.3052    
  19  norm          7.5146        2.7803        .39437E-04   -1.5160    
  20  Prefactor     .10000E-03    2.1394        .63833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.499        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.2397        6.3698        .99343E-04   -1.5170    
  23  Prefactor     .10000E-03    148.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    2.2063        .67021        .41167E-03   -.59474    
  25  Prefactor     .88019        .22179        .20111E-03   -.96837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16631e-10
Minuit parameter uncertainties:
  1  3.52312e-06
  2  1.36131e-05
  3  7.7645e-06
  4  13.0988
  5  3.03877e-06
  6  0.000127392
  7  0.00612654
  8  2.89662e-05
  9  2.43905e-05
  10  21.2514
  11  0.000739136
  12  7.39773
  13  5.58659e-05
  14  0.000322273
  15  8.44687e-06
  16  77.4614
  17  7.73814e-06
  18  233.747
  19  2.78031
  20  1.62256e-05
  21  5.71112e-06
  22  6.37041
  23  6.25068e-05
  24  0.673173
  25  0.222012
Done.

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

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  3.223e-04  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:  8.802e-01  2.220e-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:  2.206e+00  6.732e-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: 2.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166718/likelihoodResults_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.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) = 2018.97569995
delta logL = -6.51761249628e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2018.97563523
delta logL = -4.52211452284e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12448E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3275       1.0000          .0000       10.000    
     3 'Normalizat'    2.2063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88018       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=   2018.976     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      271 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10195E-03    244.99        .18142E-02** at limit **
   2  Index         2.2577        6.0305        .50000        .64609E-05
   3  Normalizat    2.2063        .34517E-01    .41167E-03   -.62167E-04
   4  Prefactor     .88018        .11560E-01    .20111E-03   -.11588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101945
  Index      = 2.25766
  Normalizat = 2.20633
  Prefactor  = 0.880183
 **********
 **   18 **HESSE 
 **********

 FCN=   2018.976     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10195E-03    1036.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2577        5.1011        .50000       -.58053    
   3  Normalizat    2.2063        .72999E-01    .82334E-04   -.59474    
   4  Prefactor     .88018        .24449E-01    .40222E-04   -.96837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.90766e-09
Minuit parameter uncertainties:
  1  0.0914478
  2  499.319
  3  0.0730026
  4  0.0244489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166718': 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) = 2018.9756349
delta logL = -1.28723741e-07

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  1.019e-04  9.145e-02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.258e+00  4.993e+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:  8.802e-01  2.445e-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:  2.206e+00  7.300e-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/166718/cmap_HighResolution_542851201_545443201_4FGL_J0253.5+3216_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', job_status='DONE', photon_flux_upper_limit='2.30e-07', time_completed='2021-10-11 03:11:23.192369', job_id='166718', GAL2='0.88', fit_tolerance='1e-08', EG2='2.21', EG='2.21', time_epoch_completed='1633947083.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='118' AND source_name='4FGL J0253.5+3216' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 11 03:11:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 166718: <4FGL_J0253.5+3216_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0253.5+3216_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct 11 03:00:14 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 11 03:00:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 11 03:00:16 2021
Terminated at Mon Oct 11 03:11:23 2021
Results reported at Mon Oct 11 03:11:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.5+3216_monthly_bin118 43.3829 32.2826 542851201 545443201 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 :                                   596.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            669 sec.

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

