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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin826
RA = 34.4621, Dec = 1.7346
tmin = 453427201, tmax = 453686401
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='288588', job_status='RUN', time_executed='2021-08-15 16:39:06.036883', time_epoch_executed='1629070746.04' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='826'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288588/ft1_4FGL_J0217.8+0144_daily_bin826.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288588/ft2_4FGL_J0217.8+0144_daily_bin826.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288588/ft1_4FGL_J0217.8+0144_daily_bin826.fits outfile=/scratch/kocevski/288588/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin826.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=453427201.0 tmax=453686401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.64
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288588/ft2_4FGL_J0217.8+0144_daily_bin826.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/288588/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin826.fits evtable="EVENTS" outfile="/scratch/kocevski/288588/ft1_filtered_4FGL_J0217.8+0144_daily_bin826.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288588/ft1_filtered_4FGL_J0217.8+0144_daily_bin826.fits" evtable="EVENTS" scfile=/scratch/kocevski/288588/ft2_4FGL_J0217.8+0144_daily_bin826.fits sctable="SC_DATA" outfile=/scratch/kocevski/288588/ltcube_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.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/288588/ft2_4FGL_J0217.8+0144_daily_bin826.fits
.....................!
real 13.51
user 13.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288588/ft1_filtered_4FGL_J0217.8+0144_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/288588/ft2_4FGL_J0217.8+0144_daily_bin826.fits sctable="SC_DATA" expcube=/scratch/kocevski/288588/ltcube_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.fits outfile=/scratch/kocevski/288588/expmap_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.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/288588/ltcube_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.fits
.....................!
real 190.43
user 185.72
sys 4.03

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/288588/ft1_filtered_4FGL_J0217.8+0144_daily_bin826.fits scfile=/scratch/kocevski/288588/ft2_4FGL_J0217.8+0144_daily_bin826.fits outfile=/scratch/kocevski/288588/cmap_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.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 0.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288588/ft1_filtered_4FGL_J0217.8+0144_daily_bin826.fits scfile=/scratch/kocevski/288588/ft2_4FGL_J0217.8+0144_daily_bin826.fits outfile=/scratch/kocevski/288588/cmap_HighResolution_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.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 0.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/288588/ft1_filtered_4FGL_J0217.8+0144_daily_bin826.fits', '/scratch/kocevski/288588/ft2_4FGL_J0217.8+0144_daily_bin826.fits', expMap='/scratch/kocevski/288588/expmap_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.fits', expCube='/scratch/kocevski/288588/ltcube_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/288588/Model_4FGL_J0217.8+0144_daily_bin826.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/288588/ft1_filtered_4FGL_J0217.8+0144_daily_bin826.fits
Spacecraft file(s): /scratch/kocevski/288588/ft2_4FGL_J0217.8+0144_daily_bin826.fits
Exposure map: /scratch/kocevski/288588/expmap_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.fits
Exposure cube: /scratch/kocevski/288588/ltcube_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/288588/Model_4FGL_J0217.8+0144_daily_bin826.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) = 5394.00910838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9872       1.0000         .10000E-03   10000.    
     3 'norm      '    15.757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27727       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2407       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.908       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.979       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.681       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.894       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.3958       1.0000         .10000E-03   10000.    
    20 'norm      '    10.444       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96854       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0484       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=   5393.932     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2407 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.547        116.24        .80462E-07    .23069E-06
   2  Prefactor     2.9873        3.1207       -.65421E-07    .76748E-05
   3  norm          15.753        14.549        .93854E-07    .18771E-05
   4  Prefactor     .32383        6.6618       -.29094E-06    .46997E-04
   5  norm          .10000E-03    2.5000        .14917E-06** at limit **
   6  Prefactor     2.2399        2.5399        .75470E-06    .80689E-04
   7  norm          .10000E-03    .33393       -.23407E-06** at limit **
   8  Prefactor     16.908        32.530        .59431E-06    .32466E-05
   9  Prefactor     3.8244        14.548        .44190E-05    .14781E-04
  10  Prefactor     11.173        226.31       -.19507E-04   -.77722E-05
  11  Prefactor     .10000E-03    8.5547       -.22066E-06** at limit **
  12  Prefactor     39.640        28.414        .35807E-06   -.48504E-05
  13  Prefactor     .10000E-03    5.8751        .91071E-06** at limit **
  14  Prefactor     39.680        21.379       -.10517E-07    .85468E-05
  15  norm          .10000E-03    9.7905        .49369E-06** at limit **
  16  Prefactor     2.6604        14.119        .57145E-06    .74129E-05
  17  Prefactor     19.894        40.563        .17668E-06    .46904E-06
  18  Prefactor     .10000E-03    2.6627       -.16296E-06** at limit **
  19  norm          4.3959        6.1595        .10671E-05    .19521E-04
  20  norm          10.444        6.5142        .70331E-07   -.17254E-04
  21  Normalizat    .96846        .20295        .19686E-05   -.21186E-04
  22  Prefactor     1.0483        .15104       -.16700E-05    .11922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.5472
  Prefactor  = 2.98734
  norm       = 15.7534
  Prefactor  = 0.323826
  norm       = 0.0001
  Prefactor  = 2.23989
  norm       = 0.0001
  Prefactor  = 16.9079
  Prefactor  = 3.82443
  Prefactor  = 11.173
  Prefactor  = 0.0001
  Prefactor  = 39.6397
  Prefactor  = 0.0001
  Prefactor  = 39.6803
  norm       = 0.0001
  Prefactor  = 2.66042
  Prefactor  = 19.8937
  Prefactor  = 0.0001
  norm       = 4.39593
  norm       = 10.4445
  Normalizat = 0.968459
  Prefactor  = 1.04834
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.932     FROM HESSE     STATUS=OK           352 CALLS     2759 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.547        116.32        .41773E-04   -1.3781    
   2  Prefactor     2.9873        3.1262        .12890E-03   -1.5362    
   3  norm          15.753        14.532        .10090E-03   -1.4914    
   4  Prefactor     .32383        31.291        .35742E-02   -1.5594    
   5  norm          .10000E-03    2.5176        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2399        2.5211        .11404E-03   -1.5409    
   7  norm          .10000E-03    .41185        .81794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.908        32.357        .97404E-04   -1.4885    
   9  Prefactor     3.8244        14.479        .20631E-03   -1.5317    
  10  Prefactor     11.173        227.82        .12091E-03   -1.5039    
  11  Prefactor     .10000E-03    8.5886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.640        28.380        .63665E-04   -1.4448    
  13  Prefactor     .10000E-03    5.8982        .17382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.680        21.389        .63631E-04   -1.4447    
  15  norm          .10000E-03    9.8485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6604        14.119        .25004E-03   -1.5382    
  17  Prefactor     19.894        40.543        .89799E-04   -1.4816    
  18  Prefactor     .10000E-03    2.6828        .11701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.3959        6.1402        .96046E-03   -1.5289    
  20  norm          10.444        6.5203        .12398E-03   -1.5061    
  21  Normalizat    .96846        .22233        .28930E-03   -.94095    
  22  Prefactor     1.0483        .16596        .20683E-03   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48064e-10
Minuit parameter uncertainties:
  1  116.608
  2  3.12638
  3  14.5357
  4  6.36889
  5  3.07656e-06
  6  2.52117
  7  2.50639e-06
  8  32.3901
  9  14.4924
  10  101.349
  11  5.25723e-06
  12  28.3897
  13  6.6386e-06
  14  21.3934
  15  8.91765e-07
  16  12.2618
  17  40.5994
  18  5.61007e-07
  19  6.14108
  20  6.52078
  21  0.222546
  22  0.166044
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  2.506e-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:  1.048e+00  1.660e-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.685e-01  2.225e-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: 6.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288588/likelihoodResults_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.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) = 5393.94366207
delta logL = -0.0113619177473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5393.93230212
delta logL = -1.96788460016e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1687       1.0000          .0000       5.0000    
     3 'Normalizat'    .96844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0485       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.

 FCN=   5393.932     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      223 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .95355        .20288E-01** at limit **
   2  alpha         2.4266        3.7131        .41618        .70822E-06
   3  Normalizat    .96846        .95005E-02    .65408E-01   -.25204E-03
   4  Prefactor     1.0483        .70716E-02    .39998E-01   -.28152E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4266
  Normalizat = 0.968458
  Prefactor  = 1.04834
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.932     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      254 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    52.665        .78457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4266        3.0019        .50000       -.29363E-01
   3  Normalizat    .96846        .69603E-01    .28930E-03   -.94095    
   4  Prefactor     1.0483        .51874E-01    .20683E-03   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.05632e-08
Minuit parameter uncertainties:
  1  5.99883e-05
  2  660.49
  3  0.0696095
  4  0.0518765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288588': 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) = 5393.93229395
delta logL = 6.20429545961e-06

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  5.999e-05  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.427e+00  6.605e+02  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:  1.048e+00  5.188e-02  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.685e-01  6.961e-02  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/288588/cmap_HighResolution_453427201_453686401_4FGL_J0217.8+0144_daily_bin826.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-08-15 16:49:17.120131', job_id='288588', GAL2='1.05', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1629071357.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='6.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='826' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:49:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 288588: <4FGL_J0217.8+0144_daily_bin826> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin826> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 16:35:39 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:36:17 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:36:17 2021
Terminated at Sun Aug 15 16:49:17 2021
Results reported at Sun Aug 15 16:49:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin826 34.4621 1.7346 453427201 453686401 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 :                                   601.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            818 sec.

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

