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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1481
RA = 334.813, Dec = 18.1026
tmin = 623203201, tmax = 623462401
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='254072', job_status='RUN', time_executed='2021-09-28 08:54:13.198980', time_epoch_executed='1632844453.2' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254072/ft1_4FGL_J2219.2+1806_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254072/ft2_4FGL_J2219.2+1806_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254072/ft1_4FGL_J2219.2+1806_daily_bin1481.fits outfile=/scratch/kocevski/254072/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1481.fits ra=334.813 dec=18.1026 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.92
user 2.70
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254072/ft1_filtered_4FGL_J2219.2+1806_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/254072/ft2_4FGL_J2219.2+1806_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/254072/ltcube_623203201_623462401_4FGL_J2219.2+1806_daily_bin1481.fits outfile=/scratch/kocevski/254072/expmap_623203201_623462401_4FGL_J2219.2+1806_daily_bin1481.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/254072/ltcube_623203201_623462401_4FGL_J2219.2+1806_daily_bin1481.fits
.....................!
real 190.54
user 185.21
sys 5.00

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/254072/ft1_filtered_4FGL_J2219.2+1806_daily_bin1481.fits scfile=/scratch/kocevski/254072/ft2_4FGL_J2219.2+1806_daily_bin1481.fits outfile=/scratch/kocevski/254072/cmap_623203201_623462401_4FGL_J2219.2+1806_daily_bin1481.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/254072/ft1_filtered_4FGL_J2219.2+1806_daily_bin1481.fits scfile=/scratch/kocevski/254072/ft2_4FGL_J2219.2+1806_daily_bin1481.fits outfile=/scratch/kocevski/254072/cmap_HighResolution_623203201_623462401_4FGL_J2219.2+1806_daily_bin1481.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4043       1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.289       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.776       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.107       1.0000         .10000E-03   10000.    
    13 'Prefactor '    126.21       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2774       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .72401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.104       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.006       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30005       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.802       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60911E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2141       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=   2112.448     FROM MIGRAD    STATUS=CONVERGED   1014 CALLS     3801 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3997        13.190        .21926E-03    .37124E-04
   2  Prefactor     58.202        266.21        .26274E-03    .73559E-06
   3  norm          .10000E-03    1.9617        .62368E-03** at limit **
   4  Prefactor     .10000E-03    98.693        .18142E-02** at limit **
   5  norm          3.1723        4.6501        .11442E-03    .14059E-04
   6  Prefactor     .10000E-03    32.546        .18142E-02** at limit **
   7  Prefactor     .10000E-03    36.665        .18142E-02** at limit **
   8  norm          .10000E-03    2.0612        .97183E-03** at limit **
   9  Prefactor     29.807        105.20        .73424E-04    .10529E-04
  10  Prefactor     .10000E-03    16.966        .18142E-02** at limit **
  11  norm          .10000E-03    6.7957        .11692E-02** at limit **
  12  Prefactor     17.087        47.383        .96835E-04    .19195E-04
  13  Prefactor     126.21        129.35        .35833E-04    .26651E-05
  14  Prefactor     5.2756        42.185        .17496E-03    .12833E-04
  15  Prefactor     .72433        .70485        .33079E-04    .24281E-03
  16  Prefactor     .10000E-03    19.632        .18142E-02** at limit **
  17  norm          .10000E-03    2.1349        .65159E-03** at limit **
  18  norm          .10000E-03    3.2086        .80273E-03** at limit **
  19  Prefactor     .10000E-03    45.620        .18142E-02** at limit **
  20  Prefactor     56.081        64.164        .53555E-04   -.16982E-05
  21  Prefactor     32.997        72.467        .69748E-04    .12225E-05
  22  Prefactor     .29993        .43014        .36635E-03    .57415E-03
  23  Prefactor     41.817        74.828        .62001E-04    .16668E-04
  24  Normalizat    .60481E-01    1.7996        .11237E-01    .23287E-04
  25  Prefactor     1.2143        .28393        .14729E-03   -.45541E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39972
  Prefactor  = 58.2021
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.8069
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0873
  Prefactor  = 126.206
  Prefactor  = 5.27559
  Prefactor  = 0.724332
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.081
  Prefactor  = 32.9965
  Prefactor  = 0.299934
  Prefactor  = 41.8173
  Normalizat = 0.0604809
  Prefactor  = 1.21428
 **********
 **   18 **HESSE 
 **********

 FCN=   2112.448     FROM HESSE     STATUS=OK           405 CALLS     4206 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3997        13.137        .87706E-05   -1.5339    
   2  Prefactor     58.202        266.19        .10510E-04   -1.4181    
   3  norm          .10000E-03    1.9618        .12474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    98.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1723        4.6421        .45769E-05   -1.5352    
   6  Prefactor     .10000E-03    32.548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0629        .19437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.807        103.73        .29370E-05   -1.4616    
  10  Prefactor     .10000E-03    16.967        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.7959        .23383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.087        47.217        .38734E-05   -1.4881    
  13  Prefactor     126.21        129.23        .71666E-05   -1.3456    
  14  Prefactor     5.2756        40.285        .69985E-05   -1.5249    
  15  Prefactor     .72433        .70374        .13232E-05   -1.5538    
  16  Prefactor     .10000E-03    19.632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1350        .13032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.2086        .16055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     56.081        63.869        .21422E-05   -1.4209    
  21  Prefactor     32.997        72.484        .27899E-05   -1.4558    
  22  Prefactor     .29993        .43004        .73270E-04   -1.5598    
  23  Prefactor     41.817        74.803        .12400E-04   -1.4414    
  24  Normalizat    .60481E-01    1.2503        .44947E-03   -1.4285    
  25  Prefactor     1.2143        .24035        .58914E-05   -.85893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35277e-10
Minuit parameter uncertainties:
  1  13.148
  2  250.806
  3  1.39695e-06
  4  0.000144016
  5  4.64265
  6  9.69816e-05
  7  1.6978e-05
  8  4.10256e-07
  9  104.366
  10  1.00771e-05
  11  7.99317e-07
  12  47.3208
  13  129.52
  14  29.1837
  15  0.703746
  16  8.37269e-06
  17  2.22859e-07
  18  3.18313e-06
  19  0.000146567
  20  63.9472
  21  72.6786
  22  0.43004
  23  74.9717
  24  0.515001
  25  0.240565
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.214e+00  2.406e-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.048e-02  5.150e-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: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254072/likelihoodResults_623203201_623462401_4FGL_J2219.2+1806_daily_bin1481.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) = 2112.44873192
delta logL = -0.000696190250892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2112.44803619
delta logL = -4.62372554466e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1895       1.0000          .0000       5.0000    
     3 'Normalizat'    .60024E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2145       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2112.374     FROM MIGRAD    STATUS=FAILED       156 CALLS      309 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12953        35.641        .95180E-02    .14416E-02
   2  alpha         4.9737        4.4073        .50000       -.31218E-04
   3  Normalizat    .10000E-01    1.6029        .11236E-01** at limit **
   4  Prefactor     1.2263        .13973        .14729E-03   -.15166E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2112.374     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      432 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12953        35.641        .17140E-04    .14416E-02
   2  alpha         4.9737        4.4073        .25859E-03   -.31218E-04
   3  Normalizat    .10000E-01    1.6029        .64885E-02** at limit **
   4  Prefactor     1.2263        .13973        .21157E-07   -.15166E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2112.374     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      468 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12953        .36856        .42036E-04   -.19581E-03
   2  alpha         4.9737        4.9868        .50000       -.32598E-04
   3  Normalizat    .10000E-01    6.4638        .22473E-02** at limit **
   4  Prefactor     1.2263        .10993        .29457E-04   -.17946E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.129532
  alpha      = 4.97366
  Normalizat = 0.01
  Prefactor  = 1.22626
 **********
 **   18 **HESSE 
 **********

 FCN=   2112.374     FROM HESSE     STATUS=OK            29 CALLS      497 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12953        .36782        .16814E-05   -1.5636    
   2  alpha         4.9737        4.9868        .50000        20.275    
   3  Normalizat    .10000E-01    6.4639        .44946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2263        .10990        .58914E-05   -.85527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70564e-09
Minuit parameter uncertainties:
  1  0.367823
  2  1.08244
  3  2.1683e-05
  4  0.109916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254072': 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) = 2112.3739775
delta logL = 0.0740582292074

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.295e-01  3.678e-01  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  4.974e+00  1.082e+00  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.226e+00  1.099e-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.000e-02  2.168e-05  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/254072/cmap_HighResolution_623203201_623462401_4FGL_J2219.2+1806_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-05', job_status='DONE', photon_flux_upper_limit='1.88e-07', time_completed='2021-09-28 09:01:48.233774', job_id='254072', GAL2='1.23', fit_tolerance='1e-08', EG2='0.01', EG='0.06', time_epoch_completed='1632844908.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='7.41e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1481' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 254072: <4FGL_J2219.2+1806_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1481> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:50:58 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:51:00 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:51:00 2021
Terminated at Tue Sep 28 09:01:49 2021
Results reported at Tue Sep 28 09:01:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1481 334.813 18.1026 623203201 623462401 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 :                                   451.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            651 sec.

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

