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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1131
RA = 334.813, Dec = 18.1026
tmin = 532483201, tmax = 532742401
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='252503', job_status='RUN', time_executed='2021-09-28 08:45:57.672746', time_epoch_executed='1632843957.67' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252503/ft1_4FGL_J2219.2+1806_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252503/ft2_4FGL_J2219.2+1806_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252503/ft1_4FGL_J2219.2+1806_daily_bin1131.fits outfile=/scratch/kocevski/252503/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1131.fits ra=334.813 dec=18.1026 rad=12.0 tmin=532483201.0 tmax=532742401.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.51
user 3.26
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252503/ft1_filtered_4FGL_J2219.2+1806_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/252503/ft2_4FGL_J2219.2+1806_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/252503/ltcube_532483201_532742401_4FGL_J2219.2+1806_daily_bin1131.fits outfile=/scratch/kocevski/252503/expmap_532483201_532742401_4FGL_J2219.2+1806_daily_bin1131.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/252503/ltcube_532483201_532742401_4FGL_J2219.2+1806_daily_bin1131.fits
.....................!
real 189.89
user 185.25
sys 4.29

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/252503/ft1_filtered_4FGL_J2219.2+1806_daily_bin1131.fits scfile=/scratch/kocevski/252503/ft2_4FGL_J2219.2+1806_daily_bin1131.fits outfile=/scratch/kocevski/252503/cmap_532483201_532742401_4FGL_J2219.2+1806_daily_bin1131.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/252503/ft1_filtered_4FGL_J2219.2+1806_daily_bin1131.fits scfile=/scratch/kocevski/252503/ft2_4FGL_J2219.2+1806_daily_bin1131.fits outfile=/scratch/kocevski/252503/cmap_HighResolution_532483201_532742401_4FGL_J2219.2+1806_daily_bin1131.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/252503/ft1_filtered_4FGL_J2219.2+1806_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/252503/ft2_4FGL_J2219.2+1806_daily_bin1131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/252503/Model_4FGL_J2219.2+1806_daily_bin1131.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/252503/ft1_filtered_4FGL_J2219.2+1806_daily_bin1131.fits.....................!
real 102.53
user 101.07
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8618       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .58149       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.776       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.547       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38533E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7864       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42853E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6566       1.0000         .10000E-03   10000.    
    18 'norm      '    .59730       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.917       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7754       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7044       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77601       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=   10299.98     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2976 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.787        .95034E-07** at limit **
   2  Prefactor     .10000E-03    34.463        .69917E-05** at limit **
   3  norm          4.8619        2.6815       -.43340E-07   -.31916E-03
   4  Prefactor     .10000E-03    43.907       -.54411E-05** at limit **
   5  norm          .58186        2.6250       -.21121E-05   -.26274E-03
   6  Prefactor     .10000E-03    7.7680        .30905E-07** at limit **
   7  Prefactor     .10000E-03    98.894        .10013E-04** at limit **
   8  norm          .10000E-03    .33526        .65776E-07** at limit **
   9  Prefactor     25.775        29.781        .17450E-06   -.74317E-05
  10  Prefactor     .10000E-03    4.5248        .81558E-07** at limit **
  11  norm          .10000E-03    1.7044        .49666E-07** at limit **
  12  Prefactor     25.547        17.492        .13614E-06   -.69759E-04
  13  Prefactor     39.069        79.753       -.14775E-05   -.32691E-04
  14  Prefactor     .10047E-03    42.158       -.13628E-04** at limit **
  15  Prefactor     2.7862        .37427       -.15170E-07   -.28684E-02
  16  Prefactor     .72673E-01    48.109        .16123E-04   -.65527E-03
  17  norm          2.6566        1.2423        .12385E-07   -.26854E-03
  18  norm          .59795        1.5165       -.29470E-06   -.26216E-03
  19  Prefactor     .10000E-03    13.473        .14027E-06** at limit **
  20  Prefactor     13.916        11.246       -.22807E-06   -.17978E-03
  21  Prefactor     .10000E-03    28.350       -.20094E-05** at limit **
  22  Prefactor     2.7754        .28155        .10699E-07   -.81230E-03
  23  Prefactor     .10000E-03    7.5910        .22711E-06** at limit **
  24  Normalizat    1.7047        .24134       -.11849E-05   -.62371E-03
  25  Prefactor     .77585        .11314       -.13685E-06   -.78279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.8619
  Prefactor  = 0.0001
  norm       = 0.581863
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 25.7753
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.547
  Prefactor  = 39.069
  Prefactor  = 0.00010047
  Prefactor  = 2.78616
  Prefactor  = 0.0726725
  norm       = 2.65664
  norm       = 0.597945
  Prefactor  = 0.0001
  Prefactor  = 13.9158
  Prefactor  = 0.0001
  Prefactor  = 2.77538
  Prefactor  = 0.0001
  Normalizat = 1.70469
  Prefactor  = 0.775851
 **********
 **   18 **HESSE 
 **********

 FCN=   10299.98     FROM HESSE     STATUS=OK           431 CALLS     3407 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8619        2.6793        .11670E-03   -1.5267    
   4  Prefactor     .10000E-03    43.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .58186        2.6093        .30987E-03   -1.5555    
   6  Prefactor     .10000E-03    7.7722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    99.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .34567        .11470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.775        29.777        .78904E-04   -1.4692    
  10  Prefactor     .10000E-03    4.5301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7100        .12938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.547        17.584        .79256E-04   -1.4697    
  13  Prefactor     39.069        79.792        .64119E-04   -1.4457    
  14  Prefactor     .10047E-03    52.919        .51771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7862        .37713        .20753E-04   -1.5374    
  16  Prefactor     .72673E-01    6.0517        .77669E-01   -1.5654    
  17  norm          2.6566        1.2391        .74527E-04   -1.5382    
  18  norm          .59795        1.4962        .18807E-03   -1.5553    
  19  Prefactor     .10000E-03    13.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.916        11.171        .10737E-03   -1.4962    
  21  Prefactor     .10000E-03    28.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7754        .28251        .16380E-04   -1.5375    
  23  Prefactor     .10000E-03    7.6605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.7047        .28252        .34967E-03   -.72178    
  25  Prefactor     .77585        .13412        .24200E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05752e-09
Minuit parameter uncertainties:
  1  6.15936e-05
  2  0.000203572
  3  2.67937
  4  8.04554e-05
  5  2.46432
  6  6.65096e-06
  7  0.000492108
  8  1.65586e-06
  9  29.7941
  10  5.38838e-06
  11  1.35494e-06
  12  17.5879
  13  80.011
  14  0.00998343
  15  0.377127
  16  1.32557
  17  1.23914
  18  1.49628
  19  8.79291e-06
  20  11.1723
  21  1.38621e-05
  22  0.282507
  23  2.28701e-05
  24  0.282784
  25  0.134172
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  1.355e-06  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:  7.759e-01  1.342e-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.705e+00  2.828e-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: 5.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/252503/likelihoodResults_532483201_532742401_4FGL_J2219.2+1806_daily_bin1131.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) = 10299.9833055
delta logL = -0.00275360678825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10299.9805519
delta logL = -1.18416210171e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10299.98     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      240 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    198.32        .12945E-02** at limit **
   2  alpha         2.3817        3.7740        .50000       -.76852E-08
   3  Normalizat    1.7047        .74607E-01    .34967E-03   -.15691E-03
   4  Prefactor     .77585        .36870E-01    .24200E-03   -.23724E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.38175
  Normalizat = 1.7047
  Prefactor  = 0.775851
 **********
 **   18 **HESSE 
 **********

 FCN=   10299.98     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1442        .25890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3817        3.1606        .50000       -.47318E-01
   3  Normalizat    1.7047        .26852        .13987E-04   -.72178    
   4  Prefactor     .77585        .13275        .96801E-05   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75179e-11
Minuit parameter uncertainties:
  1  4.18219e-06
  2  225.86
  3  0.268745
  4  0.132805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252503': 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) = 10299.9805514
delta logL = 4.68042344437e-07

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  4.182e-06  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.382e+00  2.259e+02  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.759e-01  1.328e-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.705e+00  2.687e-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/252503/cmap_HighResolution_532483201_532742401_4FGL_J2219.2+1806_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', job_status='DONE', photon_flux_upper_limit='5.31e-08', time_completed='2021-09-28 09:02:01.258867', job_id='252503', GAL2='0.78', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1632844921.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1131' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:02:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 252503: <4FGL_J2219.2+1806_daily_bin1131> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1131> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:45:47 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:45:48 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:45:48 2021
Terminated at Tue Sep 28 09:02:02 2021
Results reported at Tue Sep 28 09:02:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1131 334.813 18.1026 532483201 532742401 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 :                                   960.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

