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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin766
RA = 334.813, Dec = 18.1026
tmin = 437875201, tmax = 438134401
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='250833', job_status='RUN', time_executed='2021-09-28 08:40:28.996714', time_epoch_executed='1632843629.0' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250833/ft1_4FGL_J2219.2+1806_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250833/ft2_4FGL_J2219.2+1806_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250833/ft1_4FGL_J2219.2+1806_daily_bin766.fits outfile=/scratch/kocevski/250833/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin766.fits ra=334.813 dec=18.1026 rad=12.0 tmin=437875201.0 tmax=438134401.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.81
user 5.47
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250833/ft1_filtered_4FGL_J2219.2+1806_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/250833/ft2_4FGL_J2219.2+1806_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/250833/ltcube_437875201_438134401_4FGL_J2219.2+1806_daily_bin766.fits outfile=/scratch/kocevski/250833/expmap_437875201_438134401_4FGL_J2219.2+1806_daily_bin766.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/250833/ltcube_437875201_438134401_4FGL_J2219.2+1806_daily_bin766.fits
.....................!
real 192.65
user 187.19
sys 5.07

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/250833/ft1_filtered_4FGL_J2219.2+1806_daily_bin766.fits scfile=/scratch/kocevski/250833/ft2_4FGL_J2219.2+1806_daily_bin766.fits outfile=/scratch/kocevski/250833/cmap_437875201_438134401_4FGL_J2219.2+1806_daily_bin766.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250833/ft1_filtered_4FGL_J2219.2+1806_daily_bin766.fits scfile=/scratch/kocevski/250833/ft2_4FGL_J2219.2+1806_daily_bin766.fits outfile=/scratch/kocevski/250833/cmap_HighResolution_437875201_438134401_4FGL_J2219.2+1806_daily_bin766.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89737       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7780       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    164.80       1.0000         .10000E-03   10000.    
     8 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.718       1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.818       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2640       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .77286       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6238       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11778E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3084       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17362E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6258       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72577       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=   4567.806     FROM MIGRAD    STATUS=CONVERGED   1044 CALLS     3377 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.794        28.972        .72181E-04    .69144E-04
   2  Prefactor     .12560E-03    198.78        .50000    ** at limit **
   3  norm          2.7968        7.1621        .23662E-03   -.14342E-03
   4  Prefactor     .10000E-03    71.847        .18142E-02** at limit **
   5  norm          3.4048        4.0745        .14469E-03   -.10528E-04
   6  Prefactor     .10001E-03    136.08        .18142E-02** at limit **
   7  Prefactor     164.88        138.96        .15710E-03   -.10288E-03
   8  norm          .10000E-03    1.7539        .13226E-02** at limit **
   9  Prefactor     .10000E-03    30.807        .18142E-02** at limit **
  10  Prefactor     12.733        36.595        .11232E-03    .95851E-04
  11  norm          .10000E-03    8.2989        .18142E-02** at limit **
  12  Prefactor     13.818        26.890        .10775E-03   -.18992E-04
  13  Prefactor     .10000E-03    150.96        .18142E-02** at limit **
  14  Prefactor     .10000E-03    8.2194        .18142E-02** at limit **
  15  Prefactor     3.2640        .63106        .21663E-04    .84974E-03
  16  Prefactor     .10000E-03    8.9307        .18142E-02** at limit **
  17  norm          .77218        1.6453        .12909E-02   -.56895E-03
  18  norm          2.6233        2.7066        .10971E-03    .17150E-03
  19  Prefactor     .10000E-03    54.095        .18142E-02** at limit **
  20  Prefactor     .10000E-03    20.702        .18142E-02** at limit **
  21  Prefactor     .10000E-03    45.593        .18142E-02** at limit **
  22  Prefactor     3.3082        .48347        .16962E-04    .30386E-02
  23  Prefactor     .10001E-03    92.644        .36285E-03** at limit **
  24  Normalizat    1.6258        .46246        .38802E-03   -.11672E-03
  25  Prefactor     .72582        .20725        .25559E-03   -.11921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7945
  Prefactor  = 0.000125601
  norm       = 2.79683
  Prefactor  = 0.000100001
  norm       = 3.4048
  Prefactor  = 0.000100011
  Prefactor  = 164.88
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7331
  norm       = 0.0001
  Prefactor  = 13.8177
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.26403
  Prefactor  = 0.0001
  norm       = 0.772182
  norm       = 2.62327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.30822
  Prefactor  = 0.000100009
  Normalizat = 1.62579
  Prefactor  = 0.725824
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.806     FROM HESSE     STATUS=OK           411 CALLS     3788 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.794        28.958        .28872E-05   -1.4598    
   2  Prefactor     .12560E-03    198.68        .50000       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7968        7.1547        .94648E-05   -1.5373    
   4  Prefactor     .10000E-03    71.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4048        4.0744        .57878E-05   -1.5339    
   6  Prefactor     .10001E-03    136.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     164.88        138.96        .31419E-04   -1.3133    
   8  norm          .10000E-03    1.7557        .26452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.733        36.591        .44929E-05   -1.4994    
  11  norm          .10000E-03    8.3030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.818        26.890        .43100E-05   -1.4964    
  13  Prefactor     .10000E-03    150.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2640        .63105        .43326E-05   -1.5347    
  16  Prefactor     .10000E-03    8.9326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .77218        1.6440        .51636E-04   -1.5532    
  18  norm          2.6233        2.7066        .43883E-05   -1.5384    
  19  Prefactor     .10000E-03    54.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    45.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3082        .48347        .33925E-05   -1.5344    
  23  Prefactor     .10001E-03    92.650        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6258        .46283        .77603E-04   -.74302    
  25  Prefactor     .72582        .20746        .10224E-04   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23369e-09
Minuit parameter uncertainties:
  1  28.9714
  2  0.143116
  3  7.15689
  4  0.000472667
  5  4.07476
  6  0.00243339
  7  139.236
  8  4.89155e-05
  9  5.8303e-05
  10  36.6556
  11  6.32522e-05
  12  26.9132
  13  0.000581788
  14  1.41351e-05
  15  0.63105
  16  1.94282e-05
  17  1.64411
  18  2.70669
  19  4.52717e-05
  20  0.000144439
  21  0.000369933
  22  0.483468
  23  0.00184734
  24  0.464062
  25  0.207684
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  6.325e-05  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.258e-01  2.077e-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.626e+00  4.641e-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.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250833/likelihoodResults_437875201_438134401_4FGL_J2219.2+1806_daily_bin766.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) = 4567.80662533
delta logL = -0.000573615870053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4567.80605172
delta logL = -3.47245077137e-09

Fit tolerance = 1e-08

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

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

 FCN=   4567.806     FROM MIGRAD    STATUS=FAILED        76 CALLS      220 TOTAL
                     EDM=   .11E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.092         .0000    ** at limit **
   2  alpha         2.7061        1.6119         .0000       -.84402E-05
   3  Normalizat    1.6258        5.2663         .0000       -.38721E-04
   4  Prefactor     .72582        9.6015         .0000       -.56585E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4567.806     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      412 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.092        .55285E-03** at limit **
   2  alpha         2.7061        1.6119        .18534E-06   -.84402E-05
   3  Normalizat    1.6258        5.2663        .13178E-05   -.38721E-04
   4  Prefactor     .72582        9.6015        .13219E-05   -.56585E-04
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4567.806     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      458 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    880.96        .54361E-01** at limit **
   2  alpha         2.7061        3.2468        .16629       -.84434E-05
   3  Normalizat    1.6258        .32648        .38804E-03   -.38732E-04
   4  Prefactor     .72582        .95574E-01    .25556E-03   -.56540E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.70609
  Normalizat = 1.6258
  Prefactor  = 0.725821
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.806     FROM HESSE     STATUS=OK            25 CALLS      483 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.9670        .29991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7061        3.5963        .66518E-02    .82530E-01
   3  Normalizat    1.6258        .43057        .15522E-04   -.74302    
   4  Prefactor     .72582        .20068        .10223E-04   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66732e-11
Minuit parameter uncertainties:
  1  3.93943e-07
  2  2.49353
  3  0.431556
  4  0.200876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250833': 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) = 4567.80605068
delta logL = 1.03247566585e-06

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  3.939e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.706e+00  2.494e+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:  7.258e-01  2.009e-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.626e+00  4.316e-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/250833/cmap_HighResolution_437875201_438134401_4FGL_J2219.2+1806_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-05', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-28 08:50:51.820271', job_id='250833', GAL2='0.73', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1632844251.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='766' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 250833: <4FGL_J2219.2+1806_daily_bin766> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin766> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 08:40:14 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:40:15 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:40:15 2021
Terminated at Tue Sep 28 08:50:52 2021
Results reported at Tue Sep 28 08:50:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin766 334.813 18.1026 437875201 438134401 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 :                                   620.00 sec.
    Max Memory :                                 1144 MB
    Average Memory :                             370.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            638 sec.

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

