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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1473
RA = 334.813, Dec = 18.1026
tmin = 621129601, tmax = 621388801
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='254059', job_status='RUN', time_executed='2021-09-28 08:54:40.608527', time_epoch_executed='1632844480.61' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254059/ft1_4FGL_J2219.2+1806_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254059/ft2_4FGL_J2219.2+1806_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254059/ft1_4FGL_J2219.2+1806_daily_bin1473.fits outfile=/scratch/kocevski/254059/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1473.fits ra=334.813 dec=18.1026 rad=12.0 tmin=621129601.0 tmax=621388801.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.09
user 2.86
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/254059/ft2_4FGL_J2219.2+1806_daily_bin1473.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/254059/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1473.fits evtable="EVENTS" outfile="/scratch/kocevski/254059/ft1_filtered_4FGL_J2219.2+1806_daily_bin1473.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254059/ft1_filtered_4FGL_J2219.2+1806_daily_bin1473.fits" evtable="EVENTS" scfile=/scratch/kocevski/254059/ft2_4FGL_J2219.2+1806_daily_bin1473.fits sctable="SC_DATA" outfile=/scratch/kocevski/254059/ltcube_621129601_621388801_4FGL_J2219.2+1806_daily_bin1473.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/254059/ft2_4FGL_J2219.2+1806_daily_bin1473.fits
.....................!
real 12.25
user 11.94
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254059/ft1_filtered_4FGL_J2219.2+1806_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/254059/ft2_4FGL_J2219.2+1806_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/254059/ltcube_621129601_621388801_4FGL_J2219.2+1806_daily_bin1473.fits outfile=/scratch/kocevski/254059/expmap_621129601_621388801_4FGL_J2219.2+1806_daily_bin1473.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/254059/ltcube_621129601_621388801_4FGL_J2219.2+1806_daily_bin1473.fits
.....................!
real 192.56
user 187.56
sys 4.67

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/254059/ft1_filtered_4FGL_J2219.2+1806_daily_bin1473.fits scfile=/scratch/kocevski/254059/ft2_4FGL_J2219.2+1806_daily_bin1473.fits outfile=/scratch/kocevski/254059/cmap_621129601_621388801_4FGL_J2219.2+1806_daily_bin1473.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254059/ft1_filtered_4FGL_J2219.2+1806_daily_bin1473.fits scfile=/scratch/kocevski/254059/ft2_4FGL_J2219.2+1806_daily_bin1473.fits outfile=/scratch/kocevski/254059/cmap_HighResolution_621129601_621388801_4FGL_J2219.2+1806_daily_bin1473.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.090       1.0000         .10000E-03   10000.    
     3 'norm      '    .10812E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.373       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1884       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    195.84       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2148       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71178       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.314       1.0000         .10000E-03   10000.    
    17 'norm      '    .42686       1.0000         .10000E-03   10000.    
    18 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5124       1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.778       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21570       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19173       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .53925       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2094       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=   6128.950     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2993 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1487        .65084E-07** at limit **
   2  Prefactor     61.961        133.97        .24141E-06   -.40265E-05
   3  norm          .10000E-03    3.0961       -.57236E-06** at limit **
   4  Prefactor     .10000E-03    43.281       -.35705E-07** at limit **
   5  norm          .10000E-03    1.7820        .15243E-07** at limit **
   6  Prefactor     .10000E-03    37.336       -.15904E-05** at limit **
   7  Prefactor     16.315        58.652        .13522E-05   -.68636E-05
   8  norm          .10000E-03    .48372        .64939E-07** at limit **
   9  Prefactor     7.0119        289.69       -.91986E-05   -.12748E-04
  10  Prefactor     .10000E-03    14.080        .11383E-05** at limit **
  11  norm          .10000E-03    4.7753        .12144E-06** at limit **
  12  Prefactor     .10000E-03    10.322       -.10996E-06** at limit **
  13  Prefactor     195.90        127.04       -.25382E-06    .13831E-05
  14  Prefactor     1.3053        50.510        .12547E-04    .29685E-04
  15  Prefactor     .71190        .37114        .41679E-07    .85794E-03
  16  Prefactor     16.318        20.239       -.60819E-07    .45667E-04
  17  norm          .42578        1.0388        .15321E-05    .18425E-03
  18  norm          .10000E-03    .90591       -.86768E-07** at limit **
  19  Prefactor     3.4593        129.09        .57147E-05   -.54047E-05
  20  Prefactor     68.768        23.078        .51631E-06    .16896E-04
  21  Prefactor     .10000E-03    16.598       -.22249E-06** at limit **
  22  Prefactor     .21595        .21183       -.13159E-06    .16336E-02
  23  Prefactor     .20570        6.2618        .14854E-06    .92324E-04
  24  Normalizat    .53947        .34560       -.19747E-04   -.85501E-04
  25  Prefactor     1.2092        .15566        .45034E-05   -.47538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 61.9613
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.315
  norm       = 0.0001
  Prefactor  = 7.01193
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 195.901
  Prefactor  = 1.30531
  Prefactor  = 0.7119
  Prefactor  = 16.3178
  norm       = 0.425779
  norm       = 0.0001
  Prefactor  = 3.4593
  Prefactor  = 68.7678
  Prefactor  = 0.0001
  Prefactor  = 0.215948
  Prefactor  = 0.205696
  Normalizat = 0.539475
  Prefactor  = 1.20921
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.950     FROM HESSE     STATUS=OK           429 CALLS     3422 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1504        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.961        134.40        .25462E-03   -1.4132    
   3  norm          .10000E-03    3.2115        .26750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7882        .10206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.315        58.801        .98982E-04   -1.4900    
   8  norm          .10000E-03    .49964        .10629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0119        295.99        .14961E-03   -1.5178    
  10  Prefactor     .10000E-03    14.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.8685        .16697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     195.90        125.70        .14434E-03   -1.2899    
  14  Prefactor     1.3053        51.447        .40994E-03   -1.5479    
  15  Prefactor     .71190        .37149        .32399E-04   -1.5539    
  16  Prefactor     16.318        20.282        .99160E-04   -1.4900    
  17  norm          .42578        1.0426        .11860E-03   -1.5577    
  18  norm          .10000E-03    .91749        .72686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4593        127.70        .21572E-03   -1.5336    
  20  Prefactor     68.768        22.915        .48400E-04   -1.4048    
  21  Prefactor     .10000E-03    16.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .21595        .19988        .31422E-04   -1.5615    
  23  Prefactor     .20570        48.755        .37752E-02   -1.5617    
  24  Normalizat    .53947        .34830        .50753E-03   -1.1062    
  25  Prefactor     1.2092        .16080        .17213E-03   -.86049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57682e-10
Minuit parameter uncertainties:
  1  3.61416e-06
  2  135.069
  3  3.80953e-05
  4  2.78029e-05
  5  4.37976e-06
  6  0.000283326
  7  59.0109
  8  4.1262e-06
  9  91.6017
  10  1.94151e-05
  11  5.20581e-06
  12  2.49229e-05
  13  125.875
  14  16.4041
  15  0.371494
  16  20.291
  17  1.04268
  18  7.53977e-07
  19  42.133
  20  22.9177
  21  1.12157e-05
  22  0.199877
  23  6.33729
  24  0.349725
  25  0.160864
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  5.206e-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:  1.209e+00  1.609e-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:  5.395e-01  3.497e-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: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254059/likelihoodResults_621129601_621388801_4FGL_J2219.2+1806_daily_bin1473.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6128.95116251
delta logL = -0.000978444733846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6128.95018408
delta logL = -1.21099219541e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1708       1.0000          .0000       5.0000    
     3 'Normalizat'    .53946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2092       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=   6128.950     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      231 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    314.35        .16728E-02** at limit **
   2  alpha         2.0814        3.3453        .50000        .15234E-07
   3  Normalizat    .53947        .57315E-01    .50753E-03    .20608E-05
   4  Prefactor     1.2092        .28422E-01    .17213E-03    .96431E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08145
  Normalizat = 0.539472
  Prefactor  = 1.20921
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.950     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      260 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1014.1        .33455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0814        3.6566        .50000       -.16821    
   3  Normalizat    .53947        .16699        .20301E-04   -1.1062    
   4  Prefactor     1.2092        .82868E-01    .68851E-05   -.86048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.25418e-10
Minuit parameter uncertainties:
  1  0.000130208
  2  2227.49
  3  0.167144
  4  0.0828768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254059': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6128.95018392
delta logL = 1.41638338391e-07

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  1.302e-04  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.081e+00  2.227e+03  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.209e+00  8.288e-02  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:  5.395e-01  1.671e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/254059/cmap_HighResolution_621129601_621388801_4FGL_J2219.2+1806_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-28 09:05:32.871287', job_id='254059', GAL2='1.21', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1632845132.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1473' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:05:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 254059: <4FGL_J2219.2+1806_daily_bin1473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1473 334.813 18.1026 621129601 621388801 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 :                                   647.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

