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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1352
RA = 334.813, Dec = 18.1026
tmin = 589766401, tmax = 590025601
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='253876', job_status='RUN', time_executed='2021-09-28 08:53:11.469848', time_epoch_executed='1632844391.47' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253876/ft1_4FGL_J2219.2+1806_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253876/ft2_4FGL_J2219.2+1806_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253876/ft1_4FGL_J2219.2+1806_daily_bin1352.fits outfile=/scratch/kocevski/253876/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1352.fits ra=334.813 dec=18.1026 rad=12.0 tmin=589766401.0 tmax=590025601.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 5.24
user 4.98
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253876/ft1_filtered_4FGL_J2219.2+1806_daily_bin1352.fits" evtable="EVENTS" scfile=/scratch/kocevski/253876/ft2_4FGL_J2219.2+1806_daily_bin1352.fits sctable="SC_DATA" outfile=/scratch/kocevski/253876/ltcube_589766401_590025601_4FGL_J2219.2+1806_daily_bin1352.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/253876/ft2_4FGL_J2219.2+1806_daily_bin1352.fits
.....................!
real 13.15
user 12.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253876/ft1_filtered_4FGL_J2219.2+1806_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/253876/ft2_4FGL_J2219.2+1806_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/253876/ltcube_589766401_590025601_4FGL_J2219.2+1806_daily_bin1352.fits outfile=/scratch/kocevski/253876/expmap_589766401_590025601_4FGL_J2219.2+1806_daily_bin1352.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/253876/ltcube_589766401_590025601_4FGL_J2219.2+1806_daily_bin1352.fits
.....................!
real 192.57
user 186.77
sys 5.47

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/253876/ft1_filtered_4FGL_J2219.2+1806_daily_bin1352.fits scfile=/scratch/kocevski/253876/ft2_4FGL_J2219.2+1806_daily_bin1352.fits outfile=/scratch/kocevski/253876/cmap_589766401_590025601_4FGL_J2219.2+1806_daily_bin1352.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253876/ft1_filtered_4FGL_J2219.2+1806_daily_bin1352.fits scfile=/scratch/kocevski/253876/ft2_4FGL_J2219.2+1806_daily_bin1352.fits outfile=/scratch/kocevski/253876/cmap_HighResolution_589766401_590025601_4FGL_J2219.2+1806_daily_bin1352.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.814       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .14431E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.306       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11316E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.9398       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    345.05       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57677       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5569       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8660       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.819       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1454       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.979       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2665       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79990       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=   7422.293     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3061 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.814        14.651       -.28968E-06    .21252E-03
   2  Prefactor     .10001E-03    63.533        .67820E-05** at limit **
   3  norm          .10042E-03    1.3867       -.72954E-06** at limit **
   4  Prefactor     .10000E-03    42.835       -.37378E-05** at limit **
   5  norm          .10000E-03    1.9289        .23759E-06** at limit **
   6  Prefactor     .10000E-03    25.939        .20635E-05** at limit **
   7  Prefactor     .10001E-03    116.56       -.39229E-05** at limit **
   8  norm          .10000E-03    .35461        .12100E-06** at limit **
   9  Prefactor     15.258        32.026       -.35790E-05   -.18118E-03
  10  Prefactor     .10000E-03    13.317        .10622E-06** at limit **
  11  norm          7.9399        5.1494        .30834E-07    .45576E-04
  12  Prefactor     .10000E-03    5.3233        .45407E-07** at limit **
  13  Prefactor     344.99        168.55       -.31545E-05   -.13242E-03
  14  Prefactor     30.105        17.884       -.15232E-07   -.77470E-05
  15  Prefactor     .57685        .23645       -.79039E-07    .33272E-05
  16  Prefactor     4.5569        7.5234        .43828E-05   -.18748E-03
  17  norm          3.8658        1.9278        .78109E-07   -.14760E-05
  18  norm          .10000E-03    1.4349        .11667E-06** at limit **
  19  Prefactor     .10000E-03    29.391       -.87111E-06** at limit **
  20  Prefactor     58.819        21.002       -.64634E-07   -.60681E-04
  21  Prefactor     .10000E-03    11.397       -.29512E-07** at limit **
  22  Prefactor     1.1454        .24754       -.49459E-08    .12246E-04
  23  Prefactor     19.980        15.810        .24426E-07   -.53533E-05
  24  Normalizat    1.2662        .27315        .90706E-06    .57194E-04
  25  Prefactor     .79998        .12238       -.70455E-06    .23002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8135
  Prefactor  = 0.000100014
  norm       = 0.000100416
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 15.2583
  Prefactor  = 0.0001
  norm       = 7.93986
  Prefactor  = 0.0001
  Prefactor  = 344.993
  Prefactor  = 30.1049
  Prefactor  = 0.576855
  Prefactor  = 4.55692
  norm       = 3.86583
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.8194
  Prefactor  = 0.0001
  Prefactor  = 1.14542
  Prefactor  = 19.9801
  Normalizat = 1.26621
  Prefactor  = 0.799979
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.293     FROM HESSE     STATUS=OK           429 CALLS     3490 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.814        14.497        .85759E-04   -1.4774    
   2  Prefactor     .10001E-03    65.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10042E-03    20.848        .18360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.0486        .22961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    117.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .55277        .99254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.258        32.611        .10238E-03   -1.4927    
  10  Prefactor     .10000E-03    13.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.9399        5.1475        .14230E-03   -1.5144    
  12  Prefactor     .10000E-03    5.3318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     344.99        170.36        .10958E-03   -1.1971    
  14  Prefactor     30.105        17.944        .73025E-04   -1.4610    
  15  Prefactor     .57685        .23598        .24804E-04   -1.5556    
  16  Prefactor     4.5569        7.7242        .94289E-03   -1.5281    
  17  norm          3.8658        1.9253        .79838E-04   -1.5315    
  18  norm          .10000E-03    2.4235        .19486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     58.819        20.420        .52312E-04   -1.4173    
  21  Prefactor     .10000E-03    11.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1454        .24762        .18813E-04   -1.5494    
  23  Prefactor     19.980        15.801        .89608E-04   -1.4814    
  24  Normalizat    1.2662        .32311        .36204E-03   -.84581    
  25  Prefactor     .79998        .14538        .21239E-03   -.99729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98619e-08
Minuit parameter uncertainties:
  1  14.4995
  2  0.00191036
  3  0.00589319
  4  0.000864265
  5  1.62968e-05
  6  0.000369824
  7  0.00154301
  8  1.23401e-06
  9  32.6486
  10  5.10299e-05
  11  5.1478
  12  2.66697e-06
  13  170.607
  14  17.947
  15  0.235981
  16  7.72586
  17  1.92534
  18  2.41146e-06
  19  0.000170665
  20  20.4223
  21  7.99399e-06
  22  0.247616
  23  15.8045
  24  0.323624
  25  0.145451
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  7.940e+00  5.148e+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:  8.000e-01  1.455e-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:  1.266e+00  3.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.82
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.37e-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) = 7421.27846147
delta logL = 1.0141633653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7421.25300549
delta logL = 1.03961934579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3995       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4735       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79385       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=   7421.253     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      206 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3995        4.9036        .36860E-02    .36657E-02
   2  alpha         1.4735        .36820        .34109       -.33920E-04
   3  Normalizat    1.2902        .25174        .81123E-01   -.33123E-04
   4  Prefactor     .79386        .12102        .43637E-01    .26629E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.39949
  alpha      = 1.47345
  Normalizat = 1.29018
  Prefactor  = 0.79386
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.253     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3995        5.6036        .14744E-03   -1.5164    
   2  alpha         1.4735        .46446        .13633E-01   -.42313    
   3  Normalizat    1.2902        .29911        .35912E-03   -.83860    
   4  Prefactor     .79386        .14405        .21311E-03   -.99955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60527e-09
Minuit parameter uncertainties:
  1  5.60399
  2  0.467735
  3  0.299507
  4  0.144119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253876': 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) = 7421.25300548
delta logL = 1.03961935947

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  7.399e+00  5.604e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  1.473e+00  4.677e-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:  7.939e-01  1.441e-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:  1.290e+00  2.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.89
Ra Dec: 334.813 18.103
Photon Index (Free Index): 1.47 +/- 0.47
Photon Flux (Free Index): 2.59e-08 +/- 2.21e-08
Energy Flux (Free Index): 4.68e-05 +/- 4.47e-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/253876/cmap_HighResolution_589766401_590025601_4FGL_J2219.2+1806_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='4.68e-05', photon_flux_error='3.22e-08', dlogl='1.04e+00', energy_flux='2.11e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2021-09-28 09:04:34.666684', photon_index_error2='0.47', photon_index2='1.47', ts='7.82', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='4.47e-05', EG='1.27', time_epoch_completed='1632845074.67', return_code='0', job_id='253876', GAL2='0.79', EG2='1.29', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='2.21e-08', ts2='9.89', photon_index='2.18' WHERE bin_id='1352' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:04:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 253876: <4FGL_J2219.2+1806_daily_bin1352> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1352 334.813 18.1026 589766401 590025601 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 :                                   678.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            837 sec.

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

