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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1330
RA = 334.813, Dec = 18.1026
tmin = 584064001, tmax = 584323201
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='253843', job_status='RUN', time_executed='2021-09-28 08:53:09.108693', time_epoch_executed='1632844389.11' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253843

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253843/ft1_4FGL_J2219.2+1806_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253843/ft2_4FGL_J2219.2+1806_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253843/ft1_4FGL_J2219.2+1806_daily_bin1330.fits outfile=/scratch/kocevski/253843/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1330.fits ra=334.813 dec=18.1026 rad=12.0 tmin=584064001.0 tmax=584323201.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 4.49
user 4.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253843/ft1_filtered_4FGL_J2219.2+1806_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/253843/ft2_4FGL_J2219.2+1806_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/253843/ltcube_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.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/253843/ft2_4FGL_J2219.2+1806_daily_bin1330.fits
.....................!
real 12.45
user 11.96
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253843/ft1_filtered_4FGL_J2219.2+1806_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/253843/ft2_4FGL_J2219.2+1806_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/253843/ltcube_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.fits outfile=/scratch/kocevski/253843/expmap_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.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/253843/ltcube_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.fits
.....................!
real 191.36
user 185.65
sys 5.21

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/253843/ft1_filtered_4FGL_J2219.2+1806_daily_bin1330.fits scfile=/scratch/kocevski/253843/ft2_4FGL_J2219.2+1806_daily_bin1330.fits outfile=/scratch/kocevski/253843/cmap_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253843/ft1_filtered_4FGL_J2219.2+1806_daily_bin1330.fits scfile=/scratch/kocevski/253843/ft2_4FGL_J2219.2+1806_daily_bin1330.fits outfile=/scratch/kocevski/253843/cmap_HighResolution_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253843/ft1_filtered_4FGL_J2219.2+1806_daily_bin1330.fits', '/scratch/kocevski/253843/ft2_4FGL_J2219.2+1806_daily_bin1330.fits', expMap='/scratch/kocevski/253843/expmap_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.fits', expCube='/scratch/kocevski/253843/ltcube_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253843/Model_4FGL_J2219.2+1806_daily_bin1330.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/253843/ft1_filtered_4FGL_J2219.2+1806_daily_bin1330.fits
Spacecraft file(s): /scratch/kocevski/253843/ft2_4FGL_J2219.2+1806_daily_bin1330.fits
Exposure map: /scratch/kocevski/253843/expmap_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.fits
Exposure cube: /scratch/kocevski/253843/ltcube_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253843/Model_4FGL_J2219.2+1806_daily_bin1330.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) = 9806.40082952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.9048       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11358E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.462       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52955E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    8.7572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    108.86       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.341       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1805       1.0000         .10000E-03   10000.    
    17 'norm      '    6.1886       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.032       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7963       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0537       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60101       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1235       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=   9806.368     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2560 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.485        11.558       -.37196E-06    .36339E-04
   2  Prefactor     .10000E-03    43.066       -.18914E-05** at limit **
   3  norm          4.9049        2.7484       -.76776E-07    .47519E-03
   4  Prefactor     .10000E-03    26.742        .32980E-05** at limit **
   5  norm          .10000E-03    1.0583        .69887E-08** at limit **
   6  Prefactor     .10000E-03    20.291        .49296E-06** at limit **
   7  Prefactor     .10001E-03    181.40       -.48920E-05** at limit **
   8  norm          .10000E-03    .40325        .28469E-07** at limit **
   9  Prefactor     33.440        33.533       -.13903E-05   -.27373E-04
  10  Prefactor     .10000E-03    124.63        .57707E-04** at limit **
  11  norm          8.7569        5.0487       -.47451E-07    .21593E-03
  12  Prefactor     .10000E-03    5.3569        .94858E-07** at limit **
  13  Prefactor     108.86        105.75       -.92708E-06   -.12373E-04
  14  Prefactor     11.343        11.851       -.15415E-06    .10497E-03
  15  Prefactor     .55250        .18995       -.19082E-07    .19947E-02
  16  Prefactor     3.1804        3.9100        .25122E-07    .22778E-04
  17  norm          6.1886        1.6579       -.19497E-07    .61438E-04
  18  norm          .10000E-03    .49093        .28663E-07** at limit **
  19  Prefactor     .10000E-03    24.294       -.25548E-05** at limit **
  20  Prefactor     35.033        14.808        .12419E-06    .93346E-04
  21  Prefactor     .10000E-03    6.8102        .30922E-08** at limit **
  22  Prefactor     1.7963        .23430        .10896E-07    .86642E-02
  23  Prefactor     3.0494        12.578       -.73746E-05    .10330E-03
  24  Normalizat    .60090        .25257        .32156E-05    .51838E-03
  25  Prefactor     1.1236        .11860        .17538E-06    .10012E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4845
  Prefactor  = 0.0001
  norm       = 4.90487
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 33.4396
  Prefactor  = 0.000100002
  norm       = 8.7569
  Prefactor  = 0.0001
  Prefactor  = 108.857
  Prefactor  = 11.3426
  Prefactor  = 0.552499
  Prefactor  = 3.18043
  norm       = 6.18861
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0331
  Prefactor  = 0.0001
  Prefactor  = 1.79633
  Prefactor  = 3.04944
  Normalizat = 0.600901
  Prefactor  = 1.1236
 **********
 **   18 **HESSE 
 **********

 FCN=   9806.368     FROM HESSE     STATUS=OK           435 CALLS     2995 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.485        11.532        .10907E-03   -1.4973    
   2  Prefactor     .10000E-03    43.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9049        2.7394        .11409E-03   -1.5265    
   4  Prefactor     .10000E-03    26.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0833        .99445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    182.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .42119        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.440        33.546        .69272E-04   -1.4551    
  10  Prefactor     .10000E-03    8.9715        .94182E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.7569        5.0438        .13545E-03   -1.5116    
  12  Prefactor     .10000E-03    5.3735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     108.86        105.73        .38548E-04   -1.3617    
  14  Prefactor     11.343        11.833        .11896E-03   -1.5034    
  15  Prefactor     .55250        .18836        .23877E-04   -1.5559    
  16  Prefactor     3.1804        3.9068        .10570E-02   -1.5351    
  17  norm          6.1886        1.6570        .63262E-04   -1.5210    
  18  norm          .10000E-03    .49377        .67713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.033        14.776        .67707E-04   -1.4523    
  21  Prefactor     .10000E-03    6.8142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7963        .23421        .16304E-04   -1.5440    
  23  Prefactor     3.0494        12.603        .11608E-02   -1.5359    
  24  Normalizat    .60090        .26509        .48916E-03   -1.0795    
  25  Prefactor     1.1236        .12726        .18669E-03   -.88716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10124e-09
Minuit parameter uncertainties:
  1  11.5334
  2  0.000186513
  3  2.73942
  4  0.00024529
  5  1.00873e-06
  6  4.78683e-05
  7  0.00324326
  8  3.65047e-07
  9  33.5652
  10  0.000297888
  11  5.04409
  12  1.18259e-05
  13  105.918
  14  11.8352
  15  0.188358
  16  3.90707
  17  1.65699
  18  1.17626e-06
  19  0.000123434
  20  14.7777
  21  1.64942e-06
  22  0.234213
  23  12.4032
  24  0.265656
  25  0.127293
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  8.757e+00  5.044e+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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.124e+00  1.273e-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:  6.009e-01  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.09
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.34e-05

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) = 9806.24706342
delta logL = 0.121140648622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9806.24534669
delta logL = 0.122857378972

Fit tolerance = 1e-08

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

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

 FCN=   9806.245     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8978        163.54        .33598E-02    .52069E-04
   2  alpha         1.9356        2.8443        .42561       -.22261E-05
   3  Normalizat    .61458        .38710        .10916        .78567E-04
   4  Prefactor     1.1201        .16540        .36872E-01    .28922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.8978
  alpha      = 1.93562
  Normalizat = 0.614581
  Prefactor  = 1.12013
 **********
 **   18 **HESSE 
 **********

 FCN=   9806.245     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8978        5.3072        .13439E-03   -1.5111    
   2  alpha         1.9356        .48401        .15578E-01   -.22772    
   3  Normalizat    .61458        .24586        .48397E-03   -1.0737    
   4  Prefactor     1.1201        .12564        .18695E-03   -.88826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13601e-12
Minuit parameter uncertainties:
  1  5.30751
  2  0.487249
  3  0.246296
  4  0.125673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253843': 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) = 9806.24534035
delta logL = 0.122863724238

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  8.898e+00  5.308e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  1.936e+00  4.872e-01  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:  1.120e+00  1.257e-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:  6.146e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.30
Ra Dec: 334.813 18.103
Photon Index (Free Index): 1.94 +/- 0.49
Photon Flux (Free Index): 4.30e-08 +/- 3.42e-08
Energy Flux (Free Index): 2.71e-05 +/- 1.90e-05

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/253843/cmap_HighResolution_584064001_584323201_4FGL_J2219.2+1806_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='2.71e-05', photon_flux_error='3.15e-08', dlogl='1.23e-01', energy_flux='2.33e-05', photon_flux2='4.30e-08', job_status='DONE', time_completed='2021-09-28 09:05:40.456339', photon_index_error2='0.49', photon_index2='1.94', ts='10.09', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.60', time_epoch_completed='1632845140.46', return_code='0', job_id='253843', GAL2='1.12', EG2='0.61', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.42e-08', ts2='10.30', photon_index='2.18' WHERE bin_id='1330' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:05:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 253843: <4FGL_J2219.2+1806_daily_bin1330> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1330> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:50:37 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:50:39 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:50:39 2021
Terminated at Tue Sep 28 09:05:41 2021
Results reported at Tue Sep 28 09:05:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1330 334.813 18.1026 584064001 584323201 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 :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

