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


Performing analysis on: 4FGL_J0217.4+7352_daily_bin1215
RA = 34.3533, Dec = 73.8804
tmin = 554256001, tmax = 554515201
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='278051', job_status='RUN', time_executed='2021-08-15 16:03:16.667362', time_epoch_executed='1629068596.67' WHERE source_name='4FGL J0217.4+7352' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278051

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278051/ft1_4FGL_J0217.4+7352_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278051/ft1_4FGL_J0217.4+7352_daily_bin1215.fits outfile=/scratch/kocevski/278051/ft1_filteredMKT_4FGL_J0217.4+7352_daily_bin1215.fits ra=34.3533 dec=73.8804 rad=12.0 tmin=554256001.0 tmax=554515201.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 12.55
user 3.85
sys 8.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.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/278051/ft1_filteredMKT_4FGL_J0217.4+7352_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.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 8.81
user 0.33
sys 8.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/278051/ltcube_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.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/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits
.....................!
real 22.29
user 12.09
sys 9.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/278051/ltcube_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.fits outfile=/scratch/kocevski/278051/expmap_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.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/278051/ltcube_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.fits
.....................!
real 201.84
user 185.13
sys 16.02

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 193 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0217.4+7352 @ 34.3533 73.8804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.fits scfile=/scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits outfile=/scratch/kocevski/278051/cmap_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.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.3533 yref=73.8804 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 8.60
user 0.37
sys 8.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.fits scfile=/scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits outfile=/scratch/kocevski/278051/cmap_HighResolution_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.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.3533 yref=73.8804 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 8.60
user 0.39
sys 8.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/278051/Model_4FGL_J0217.4+7352_daily_bin1215.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.fits............................!
real 31.41
user 19.34
sys 11.82

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.fits', '/scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits', expMap='/scratch/kocevski/278051/expmap_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.fits', expCube='/scratch/kocevski/278051/ltcube_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/278051/Model_4FGL_J0217.4+7352_daily_bin1215.xml', optimizer='MINUIT')

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

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  1.785e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        Index:  2.940e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/278051/ft1_filtered_4FGL_J0217.4+7352_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/278051/ft2_4FGL_J0217.4+7352_daily_bin1215.fits
Exposure map: /scratch/kocevski/278051/expmap_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.fits
Exposure cube: /scratch/kocevski/278051/ltcube_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/278051/Model_4FGL_J0217.4+7352_daily_bin1215.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) = 539.857737282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17243E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.013       1.0000         .10000E-03   10000.    
     8 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11739E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6908.7       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25392E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    17 'Prefactor '    .66605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   518.3235     FROM MIGRAD    STATUS=CONVERGED     67 CALLS     1367 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.426        .24789E-05** at limit **
   2  Prefactor     .10001E-03    36.075        .78716E-05** at limit **
   3  Prefactor     .10137E-03    106.20       -.20646E-04** at limit **
   4  Prefactor     .10000E-03    1.3421       -.48464E-06** at limit **
   5  norm          .10000E-03    20.982       -.46054E-05** at limit **
   6  Prefactor     .10000E-03    10.959       -.64028E-05** at limit **
   7  Prefactor     71.012        1.0444       -.26168E-07    .70087E-03
   8  norm          .10000E-03    20.966       -.46213E-05** at limit **
   9  norm          .10000E-03    20.746        .72272E-05** at limit **
  10  Prefactor    10000.0        9.6071        .45693E-05   -.16260E-02
  11  Prefactor    10000.0        2.6003        .23476E-05** at limit **
  12  Prefactor     45.628        1.8258        .16778E-06   -.26422E-02
  13  Prefactor     6908.7        1.0112       -.23900E-08    .18150E-02
  14  Prefactor     .18328E-03    1.0654       -.13279E-05** at limit **
  15  Prefactor     .10033E-03    23.005       -.30500E-05** at limit **
  16  Normalizat    .10000E-01    1.1207       -.24990E-04** at limit **
  17  Prefactor     .66600        .12301        .43110E-05   -.50754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.000101369
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.0116
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 45.6282
  Prefactor  = 6908.75
  Prefactor  = 0.000183275
  Prefactor  = 0.000100332
  Normalizat = 0.01
  Prefactor  = 0.666004
 **********
 **   18 **HESSE 
 **********

 FCN=   518.3235     FROM HESSE     STATUS=OK           245 CALLS     1612 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.225        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    36.102        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10137E-03    107.81        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    65.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.943        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     71.012        285.32        .11909E-02   -1.4021    
   8  norm          .10000E-03    65.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        1716.8        .95937E-02    1.5696    
  11  Prefactor    10000.0        614.60        .10724E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.628        288.21        .14840E-02   -1.4356    
  13  Prefactor     6908.7        7950.5        .21639E-03    .39169    
  14  Prefactor     .18328E-03    1236.9        .10729E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10033E-03    62.339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .10000E-01    1.0465        .32256       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .66600        .12905        .24834E-01   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18057e-06
Minuit parameter uncertainties:
  1  0.000127082
  2  0.0014409
  3  0.024338
  4  1.59628e-06
  5  3.52872e-05
  6  6.07469e-05
  7  287.101
  8  5.73734e-05
  9  0.000127465
  10  5.07149
  11  0.327576
  12  231.006
  13  6083.62
  14  0.655923
  15  0.00910146
  16  2.39995e-06
  17  0.129109
Done.

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

Extracting fit parameters...

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  1.000e-04  6.075e-05  1.000e-04  1.000e+04 ( 1.000e-11)
215        Index:  2.940e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  6.660e-01  1.291e-01  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.000e-02  2.400e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.353 73.880
Photon Flux Upper Limit: 1.22e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278051/likelihoodResults_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.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) = 518.323971953
delta logL = -0.000427801160981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 518.323544991
delta logL = -8.39467588776e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9165       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66587       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+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=   518.3235     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      269 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    349.29        .75385E-02** at limit **
   2  Index         2.0425        6.0184        .50000        .96068E-07
   3  Normalizat    .10000E-01    .41423E-01    .13618E-01** at limit **
   4  Prefactor     .66600        .23214E-01    .10977E-03   -.54093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.04245
  Normalizat = 0.01
  Prefactor  = 0.666001
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2010.3        .10081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0425        5.6294        .50000       -.63293    
   3  Normalizat    .10000E-01    .30645        .27237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66600        .63404E-01    .21955E-04   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2523e-09
Minuit parameter uncertainties:
  1  0.00324265
  2  1949.3
  3  2.37152e-06
  4  0.0634108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278051': 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) = 518.32354202
delta logL = 2.13161035845e-06

Extracting fit parameters...

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  1.000e-04  3.243e-03  1.000e-04  1.000e+04 ( 1.000e-11)
215        Index:  2.042e+00  1.949e+03  0.000e+00  1.000e+01 (-1.000e+00)
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  6.660e-01  6.341e-02  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.000e-02  2.372e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.353 73.880

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/278051/cmap_HighResolution_554256001_554515201_4FGL_J0217.4+7352_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.74e-02', job_status='DONE', photon_flux_upper_limit='1.22e-06', time_completed='2021-08-15 16:11:25.823356', job_id='278051', GAL2='0.67', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629069085.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1215' AND source_name='4FGL J0217.4+7352' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 278051: <4FGL_J0217.4+7352_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0217.4+7352_daily_bin1215> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 16:00:23 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:00:27 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:00:27 2021
Terminated at Sun Aug 15 16:11:27 2021
Results reported at Sun Aug 15 16:11:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.4+7352_daily_bin1215 34.3533 73.8804 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.4+7352 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   610.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             226.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            664 sec.

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

