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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin653
RA = 34.4621, Dec = 1.7346
tmin = 408585601, tmax = 408844801
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='287257', job_status='RUN', time_executed='2021-08-15 16:38:58.462352', time_epoch_executed='1629070738.46' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287257/ft1_4FGL_J0217.8+0144_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287257/ft1_4FGL_J0217.8+0144_daily_bin653.fits outfile=/scratch/kocevski/287257/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin653.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=408585601.0 tmax=408844801.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 8.48
user 4.05
sys 4.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.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/287257/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.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 4.73
user 0.36
sys 4.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/287257/ltcube_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.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/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits
.....................!
real 19.00
user 13.95
sys 4.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/287257/ltcube_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.fits outfile=/scratch/kocevski/287257/expmap_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.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/287257/ltcube_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.fits
.....................!
real 198.35
user 186.93
sys 10.05

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

Setting source of interest to:
4FGL J0217.8+0144 @ 34.4621 1.7346

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.fits scfile=/scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits outfile=/scratch/kocevski/287257/cmap_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.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=34.4621 yref=1.7346 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 4.62
user 0.38
sys 4.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.fits scfile=/scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits outfile=/scratch/kocevski/287257/cmap_HighResolution_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.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=34.4621 yref=1.7346 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 4.61
user 0.41
sys 4.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287257/Model_4FGL_J0217.8+0144_daily_bin653.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/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.fits.....................!
real 41.73
user 34.74
sys 6.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.fits', '/scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits', expMap='/scratch/kocevski/287257/expmap_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.fits', expCube='/scratch/kocevski/287257/ltcube_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/287257/Model_4FGL_J0217.8+0144_daily_bin653.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.8+0144'

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/287257/ft1_filtered_4FGL_J0217.8+0144_daily_bin653.fits
Spacecraft file(s): /scratch/kocevski/287257/ft2_4FGL_J0217.8+0144_daily_bin653.fits
Exposure map: /scratch/kocevski/287257/expmap_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.fits
Exposure cube: /scratch/kocevski/287257/ltcube_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/287257/Model_4FGL_J0217.8+0144_daily_bin653.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) = 2445.34713132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.57       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    99.039       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.517       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11217E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    34.097       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.860       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.665       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91551       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2445.296     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2342 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.70        221.96        .18591E-04    .10851E-03
   2  Prefactor     .10000E-03    4.5331       -.27994E-07** at limit **
   3  norm          98.982        63.324       -.51471E-05   -.39250E-03
   4  Prefactor     16.522        18.959        .94516E-06    .62737E-06
   5  norm          .10000E-03    6.5536       -.66663E-07** at limit **
   6  Prefactor     .10000E-03    1.2883       -.43452E-07** at limit **
   7  norm          .10000E-03    .49329       -.16292E-07** at limit **
   8  Prefactor     .10000E-03    171.81       -.15629E-05** at limit **
   9  Prefactor     56.167        30.886       -.38161E-07   -.11053E-04
  10  Prefactor     .10000E-03    55.681       -.46000E-06** at limit **
  11  Prefactor     .10000E-03    5.9770        .17579E-07** at limit **
  12  Prefactor     2.5356        27.037        .16465E-04   -.21819E-03
  13  Prefactor     .10000E-03    4.4213       -.17256E-07** at limit **
  14  Prefactor     .10000E-03    9.2714       -.23544E-06** at limit **
  15  norm          34.092        22.866        .54618E-07    .35549E-04
  16  Prefactor     36.863        19.557        .27931E-06   -.38059E-04
  17  Prefactor     .10000E-03    24.105        .14144E-06** at limit **
  18  Prefactor     .10000E-03    3.2152        .33932E-08** at limit **
  19  norm          .10000E-03    8.3851        .13613E-06** at limit **
  20  norm          14.662        11.059       -.67401E-07   -.14798E-04
  21  Normalizat    .91487        .27307       -.41725E-05    .67761E-04
  22  Prefactor     .64549        .19663        .19610E-05   -.88728E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.7
  Prefactor  = 0.0001
  norm       = 98.9823
  Prefactor  = 16.5224
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 56.1666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.0916
  Prefactor  = 36.8629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.6624
  Normalizat = 0.914871
  Prefactor  = 0.645486
 **********
 **   18 **HESSE 
 **********

 FCN=   2445.296     FROM HESSE     STATUS=OK           334 CALLS     2676 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.70        228.40        .19126E-03   -1.3600    
   2  Prefactor     .10000E-03    4.5459        .10282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          98.982        65.750        .20197E-03   -1.3715    
   4  Prefactor     16.522        18.979        .98548E-04   -1.4895    
   5  norm          .10000E-03    6.5783        .12359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.2898        .54812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .50236        .33880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    176.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.167        30.895        .53523E-04   -1.4208    
  10  Prefactor     .10000E-03    55.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9822        .11807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5356        29.595        .12804E-02   -1.5389    
  13  Prefactor     .10000E-03    4.4218        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2862        .14708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          34.092        22.895        .68626E-04   -1.4540    
  16  Prefactor     36.863        19.609        .66012E-04   -1.4493    
  17  Prefactor     .10000E-03    24.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2248        .86590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.4029        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.662        11.083        .10459E-03   -1.4942    
  21  Normalizat    .91487        .30907        .25765E-03   -.95940    
  22  Prefactor     .64549        .22322        .21873E-03   -1.0570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76198e-09
Minuit parameter uncertainties:
  1  230.256
  2  7.54599e-06
  3  65.7982
  4  18.9862
  5  3.39695e-06
  6  4.33778e-07
  7  1.42206e-06
  8  0.000962877
  9  30.9038
  10  0.000110332
  11  7.45845e-06
  12  17.3356
  13  1.99272e-06
  14  1.63564e-05
  15  22.9006
  16  19.6127
  17  2.77452e-05
  18  1.55418e-06
  19  1.0518e-05
  20  11.0846
  21  0.309671
  22  0.223526
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  1.422e-06  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  6.455e-01  2.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  9.149e-01  3.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.462 1.735
Photon Flux Upper Limit: 9.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287257/likelihoodResults_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.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) = 2445.30517328
delta logL = -0.00872889389029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2445.29644486
delta logL = -4.76031800645e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1593       1.0000          .0000       5.0000    
     3 'Normalizat'    .91492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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=   2445.296     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      220 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .55098        .33881E-03** at limit **
   2  alpha         2.1553        3.8009        .16658        .19679E-05
   3  Normalizat    .91487        .29244        .25766E-03    .63184E-04
   4  Prefactor     .64549        .21285        .21873E-03    .99224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.15525
  Normalizat = 0.914867
  Prefactor  = 0.645489
 **********
 **   18 **HESSE 
 **********

 FCN=   2445.296     FROM HESSE     STATUS=OK            23 CALLS      243 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .50240        .67762E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1553        2.9299        .66632E-02   -.13834    
   3  Normalizat    .91487        .29266        .10306E-04   -.95940    
   4  Prefactor     .64549        .21302        .87490E-05   -1.0570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8788e-09
Minuit parameter uncertainties:
  1  5.71574e-05
  2  85.7397
  3  0.293172
  4  0.213285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287257': 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) = 2445.29644438
delta logL = 3.19960236084e-09

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  5.716e-05  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.155e+00  8.574e+01  0.000e+00  5.000e+00 ( 1.000e+00)
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  6.455e-01  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  9.149e-01  2.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.462 1.735

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/287257/cmap_HighResolution_408585601_408844801_4FGL_J0217.8+0144_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', job_status='DONE', photon_flux_upper_limit='9.76e-08', time_completed='2021-08-15 16:47:37.176423', job_id='287257', GAL2='0.65', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629071257.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='3.20e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='653' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:47:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 287257: <4FGL_J0217.8+0144_daily_bin653> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin653> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:31:08 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:33:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 16:33:50 2021
Terminated at Sun Aug 15 16:47:38 2021
Results reported at Sun Aug 15 16:47:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin653 34.4621 1.7346 408585601 408844801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.8+0144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   572.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             202.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            990 sec.

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

