/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 8 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 = 7394
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2+1806_daily_bin447
RA = 334.813, Dec = 18.1026
tmin = 355190401, tmax = 355449601
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='248120', job_status='RUN', time_executed='2021-09-28 08:30:33.451601', time_epoch_executed='1632843033.45' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248120

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248120/ft1_4FGL_J2219.2+1806_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248120/ft1_4FGL_J2219.2+1806_daily_bin447.fits outfile=/scratch/kocevski/248120/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin447.fits ra=334.813 dec=18.1026 rad=12.0 tmin=355190401.0 tmax=355449601.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.34
user 3.12
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.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/248120/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/248120/ltcube_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.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/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/248120/ltcube_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.fits outfile=/scratch/kocevski/248120/expmap_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.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/248120/ltcube_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.fits
.....................!
real 190.86
user 185.40
sys 5.14

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2+1806 @ 334.813 18.1026

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.fits scfile=/scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits outfile=/scratch/kocevski/248120/cmap_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.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=334.813 yref=18.1026 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.53
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.fits scfile=/scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits outfile=/scratch/kocevski/248120/cmap_HighResolution_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.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=334.813 yref=18.1026 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248120/Model_4FGL_J2219.2+1806_daily_bin447.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/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.fits.....................!
real 80.00
user 78.64
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.fits', '/scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits', expMap='/scratch/kocevski/248120/expmap_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.fits', expCube='/scratch/kocevski/248120/ltcube_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248120/Model_4FGL_J2219.2+1806_daily_bin447.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2+1806'

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  3.275e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/248120/ft1_filtered_4FGL_J2219.2+1806_daily_bin447.fits
Spacecraft file(s): /scratch/kocevski/248120/ft2_4FGL_J2219.2+1806_daily_bin447.fits
Exposure map: /scratch/kocevski/248120/expmap_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.fits
Exposure cube: /scratch/kocevski/248120/ltcube_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248120/Model_4FGL_J2219.2+1806_daily_bin447.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) = 8684.95403095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    153.12       1.0000         .10000E-03   10000.    
     3 'norm      '    8.6674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.522       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0971       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1642       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8345       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40677       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1282       1.0000         .10000E-03   10000.    
    18 'norm      '    .36741       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0752       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .77483E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9220       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93352       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91917       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8684.945     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2885 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.798       -.66920E-07** at limit **
   2  Prefactor     153.12        94.120        .31405E-07    .69009E-05
   3  norm          8.6676        2.9068        .11131E-07    .82211E-04
   4  Prefactor     .10000E-03    30.140        .19581E-05** at limit **
   5  norm          .10000E-03    .88104        .45281E-07** at limit **
   6  Prefactor     .10000E-03    22.324       -.38479E-05** at limit **
   7  Prefactor     10.518        27.715       -.31364E-05   -.58940E-04
   8  norm          1.0973        .89116        .65351E-08   -.42740E-04
   9  Prefactor     5.1595        27.140       -.32799E-05   -.49856E-04
  10  Prefactor     .10000E-03    5.8704       -.26350E-07** at limit **
  11  norm          .10000E-03    1.1161        .63985E-08** at limit **
  12  Prefactor     17.071        14.432        .56678E-07    .86539E-06
  13  Prefactor     .10000E-03    47.561       -.66512E-06** at limit **
  14  Prefactor     6.8336        9.3988        .77906E-06   -.61100E-03
  15  Prefactor     .40681        .18539       -.15203E-09   -.25180E-03
  16  Prefactor     .10000E-03    2.4508        .34574E-07** at limit **
  17  norm          1.1282        .91692       -.18465E-08   -.47503E-04
  18  norm          .36741        .65168        .85326E-08   -.16322E-04
  19  Prefactor     .10000E-03    20.699        .24126E-05** at limit **
  20  Prefactor     7.0752        7.8437        .51009E-06   -.69439E-03
  21  Prefactor     .10000E-03    6.9314       -.38860E-07** at limit **
  22  Prefactor     .77450E-01    .85871E-01   -.10365E-08   -.14027E-02
  23  Prefactor     8.9217        11.030       -.10025E-06   -.18247E-04
  24  Normalizat    .93360        .19992        .16109E-06    .10603E-04
  25  Prefactor     .91914        .97782E-01   -.36125E-07    .46036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 153.117
  norm       = 8.66761
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.5176
  norm       = 1.09729
  Prefactor  = 5.15953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0708
  Prefactor  = 0.0001
  Prefactor  = 6.83364
  Prefactor  = 0.406808
  Prefactor  = 0.0001
  norm       = 1.12815
  norm       = 0.36741
  Prefactor  = 0.0001
  Prefactor  = 7.07521
  Prefactor  = 0.0001
  Prefactor  = 0.0774504
  Prefactor  = 8.92174
  Normalizat = 0.933596
  Prefactor  = 0.919144
 **********
 **   18 **HESSE 
 **********

 FCN=   8684.945     FROM HESSE     STATUS=OK           431 CALLS     3316 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     153.12        94.165        .32576E-04   -1.3227    
   3  norm          8.6676        2.9063        .87021E-04   -1.5119    
   4  Prefactor     .10000E-03    30.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .89968        .85396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.518        27.971        .12352E-03   -1.5059    
   8  norm          1.0973        .89172        .75393E-04   -1.5498    
   9  Prefactor     5.1595        27.902        .17691E-03   -1.5254    
  10  Prefactor     .10000E-03    5.8821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1183        .96137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.071        14.415        .96932E-04   -1.4881    
  13  Prefactor     .10000E-03    47.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8336        11.412        .76736E-03   -1.5185    
  15  Prefactor     .40681        .18295        .24973E-04   -1.5580    
  16  Prefactor     .10000E-03    2.4566        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1282        .92069        .77878E-04   -1.5496    
  18  norm          .36741        .65186        .42868E-04   -1.5587    
  19  Prefactor     .10000E-03    20.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0752        8.9872        .75406E-03   -1.5176    
  21  Prefactor     .10000E-03    6.9513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .77450E-01    .77257E-01    .27701E-03   -1.5652    
  23  Prefactor     8.9217        11.025        .13419E-03   -1.5110    
  24  Normalizat    .93360        .23752        .34898E-03   -.95289    
  25  Prefactor     .91914        .11596        .17746E-03   -.95475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37523e-09
Minuit parameter uncertainties:
  1  8.40174e-06
  2  94.2571
  3  2.90637
  4  0.000149657
  5  2.51967e-07
  6  0.000245742
  7  28.006
  8  0.891728
  9  24.0141
  10  1.886e-06
  11  1.17944e-07
  12  14.418
  13  7.01473e-05
  14  11.4154
  15  0.182948
  16  5.85266e-07
  17  0.9207
  18  0.651868
  19  0.000147447
  20  8.98893
  21  2.47299e-06
  22  0.0772575
  23  11.0275
  24  0.237789
  25  0.115996
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  1.179e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.191e-01  1.160e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  9.336e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.813 18.103
Photon Flux Upper Limit: 3.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248120/likelihoodResults_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.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) = 8684.94952799
delta logL = -0.00421002277835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8684.75523452
delta logL = 0.190083443229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64128E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .88580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93435       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8684.755     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      444 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64154E-01    .11294        .37060E-04    .29388E-03
   2  alpha         5.0000        3.4757        .11304    ** at limit **
   3  Normalizat    .88516        .23946        .35754E-03    .50875E-06
   4  Prefactor     .93484        .11811        .17613E-03   -.11100E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0641536
  alpha      = 5
  Normalizat = 0.885162
  Prefactor  = 0.93484
 **********
 **   18 **HESSE 
 **********

 FCN=   8684.755     FROM HESSE     STATUS=OK            23 CALLS      467 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64154E-01    .11203        .14824E-05   -1.5657    
   2  alpha         5.0000        3.4763        .22607E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88516        .23955        .14302E-04   -.96983    
   4  Prefactor     .93484        .11819        .35226E-04   -.94934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77807e-08
Minuit parameter uncertainties:
  1  0.112034
  2  0.000607295
  3  0.239836
  4  0.118222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248120': 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) = 8684.7552236
delta logL = 0.190094366813

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  6.415e-02  1.120e-01  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  5.000e+00  6.073e-04  0.000e+00  5.000e+00 ( 1.000e+00)
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.348e-01  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  8.852e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.813 18.103

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/248120/cmap_HighResolution_355190401_355449601_4FGL_J2219.2+1806_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-05', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2021-09-28 08:43:55.229525', job_id='248120', GAL2='0.93', fit_tolerance='1e-08', EG2='0.89', EG='0.93', time_epoch_completed='1632843835.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.90e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='447' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:43:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 248120: <4FGL_J2219.2+1806_daily_bin447> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin447> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 08:30:16 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:30:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:30:18 2021
Terminated at Tue Sep 28 08:43:56 2021
Results reported at Tue Sep 28 08:43:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin447 334.813 18.1026 355190401 355449601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2+1806 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

