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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1314
RA = 334.813, Dec = 18.1026
tmin = 579916801, tmax = 580176001
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='253819', job_status='RUN', time_executed='2021-09-28 08:50:51.438142', time_epoch_executed='1632844251.44' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253819/ft1_4FGL_J2219.2+1806_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253819/ft2_4FGL_J2219.2+1806_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253819/ft1_4FGL_J2219.2+1806_daily_bin1314.fits outfile=/scratch/kocevski/253819/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1314.fits ra=334.813 dec=18.1026 rad=12.0 tmin=579916801.0 tmax=580176001.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.42
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253819/ft1_filtered_4FGL_J2219.2+1806_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/253819/ft2_4FGL_J2219.2+1806_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/253819/ltcube_579916801_580176001_4FGL_J2219.2+1806_daily_bin1314.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/253819/ft2_4FGL_J2219.2+1806_daily_bin1314.fits
.....................!
real 11.77
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253819/ft1_filtered_4FGL_J2219.2+1806_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/253819/ft2_4FGL_J2219.2+1806_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/253819/ltcube_579916801_580176001_4FGL_J2219.2+1806_daily_bin1314.fits outfile=/scratch/kocevski/253819/expmap_579916801_580176001_4FGL_J2219.2+1806_daily_bin1314.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/253819/ltcube_579916801_580176001_4FGL_J2219.2+1806_daily_bin1314.fits
.....................!
real 189.61
user 185.32
sys 3.98

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/253819/ft1_filtered_4FGL_J2219.2+1806_daily_bin1314.fits scfile=/scratch/kocevski/253819/ft2_4FGL_J2219.2+1806_daily_bin1314.fits outfile=/scratch/kocevski/253819/cmap_579916801_580176001_4FGL_J2219.2+1806_daily_bin1314.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/253819/ft1_filtered_4FGL_J2219.2+1806_daily_bin1314.fits scfile=/scratch/kocevski/253819/ft2_4FGL_J2219.2+1806_daily_bin1314.fits outfile=/scratch/kocevski/253819/cmap_HighResolution_579916801_580176001_4FGL_J2219.2+1806_daily_bin1314.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    286.95       1.0000         .10000E-03   10000.    
     3 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10914E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.878       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.298       1.0000         .10000E-03   10000.    
     8 'norm      '    .80094E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23763E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2980       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48056       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1817       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0126       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.481       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2483       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4849       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0964       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85617       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=   10339.76     FROM MIGRAD    STATUS=CONVERGED   1052 CALLS     3487 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2393        .14835E-02** at limit **
   2  Prefactor     286.90        162.34        .11980E-03    .87117E-04
   3  norm          .10000E-03    1.2231        .21609E-03** at limit **
   4  Prefactor     .10001E-03    231.58        .18142E-02** at limit **
   5  norm          .10000E-03    5.8115        .17595E-02** at limit **
   6  Prefactor     33.882        29.040        .68847E-04    .38409E-03
   7  Prefactor     16.296        27.940        .99210E-04    .38274E-04
   8  norm          .79947E-01    .85674        .11972E-02    .26118E-02
   9  Prefactor     .10004E-03    15.811        .12759    ** at limit **
  10  Prefactor     .10000E-03    2.5049        .15715E-02** at limit **
  11  norm          3.9671        3.6612        .18061E-03    .14830E-03
  12  Prefactor     .10000E-03    11.852        .18142E-02** at limit **
  13  Prefactor     .10000E-03    30.098        .18142E-02** at limit **
  14  Prefactor     9.3024        11.228        .13143E-03    .63663E-04
  15  Prefactor     .48055        .18130        .25073E-04    .30742E-03
  16  Prefactor     2.1816        4.7003        .13935E-02    .17279E-03
  17  norm          6.0128        1.4441        .58015E-04    .70938E-04
  18  norm          2.5539        1.6958        .10247E-03    .53474E-04
  19  Prefactor     .10000E-03    12.659        .18142E-02** at limit **
  20  Prefactor     30.484        12.818        .72571E-04    .19425E-04
  21  Prefactor     .10000E-03    9.2273        .18142E-02** at limit **
  22  Prefactor     1.2483        .20121        .17155E-04    .51822E-03
  23  Prefactor     5.4852        5.3398        .17156E-03    .20012E-04
  24  Normalizat    1.0959        .25178        .35199E-03    .73228E-03
  25  Prefactor     .85638        .11866        .19517E-03    .43799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 286.9
  norm       = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.000100001
  Prefactor  = 33.882
  Prefactor  = 16.2962
  norm       = 0.0799473
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  norm       = 3.9671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.30236
  Prefactor  = 0.480548
  Prefactor  = 2.18157
  norm       = 6.01279
  norm       = 2.55389
  Prefactor  = 0.0001
  Prefactor  = 30.4836
  Prefactor  = 0.0001
  Prefactor  = 1.24832
  Prefactor  = 5.48519
  Normalizat = 1.09595
  Prefactor  = 0.856383
 **********
 **   18 **HESSE 
 **********

 FCN=   10339.76     FROM HESSE     STATUS=OK           415 CALLS     3902 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2395        .29670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     286.90        162.33        .23960E-04   -1.2304    
   3  norm          .10000E-03    1.2231        .43218E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    231.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.9262        .35190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.882        29.034        .13769E-04   -1.4543    
   7  Prefactor     16.296        27.942        .39684E-05   -1.4900    
   8  norm          .79947E-01    .85632        .47886E-04   -1.5651    
   9  Prefactor     .10004E-03    15.650        .12875       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5049        .31430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9671        3.6609        .72245E-05   -1.5310    
  12  Prefactor     .10000E-03    11.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3024        11.227        .52573E-05   -1.5098    
  15  Prefactor     .48055        .18124        .10029E-05   -1.5569    
  16  Prefactor     2.1816        4.6979        .55740E-04   -1.5413    
  17  norm          6.0128        1.4440        .23206E-05   -1.5217    
  18  norm          2.5539        1.6957        .40990E-05   -1.5388    
  19  Prefactor     .10000E-03    12.659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.484        12.816        .29029E-05   -1.4603    
  21  Prefactor     .10000E-03    9.2279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2483        .20120        .68622E-06   -1.5485    
  23  Prefactor     5.4852        5.3396        .68626E-05   -1.5240    
  24  Normalizat    1.0959        .25197        .70398E-04   -.89882    
  25  Prefactor     .85638        .11876        .39035E-04   -.97682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46541e-09
Minuit parameter uncertainties:
  1  1.2038e-06
  2  162.589
  3  4.3817e-06
  4  0.00263015
  5  0.000173768
  6  29.0458
  7  27.9647
  8  0.522981
  9  0.00152064
  10  7.8911e-07
  11  3.66115
  12  1.95679e-06
  13  1.43749e-05
  14  11.2295
  15  0.181242
  16  4.69867
  17  1.44404
  18  1.69575
  19  5.00286e-06
  20  12.8176
  21  1.15761e-06
  22  0.201204
  23  5.3401
  24  0.252244
  25  0.118796
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.564e-01  1.188e-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.096e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.48e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 9.74e-06

TS (Fixed Index): 2.12
Ra Dec: 334.813 18.103
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253819/likelihoodResults_579916801_580176001_4FGL_J2219.2+1806_daily_bin1314.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) = 10339.5501546
delta logL = 0.206233439214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10339.5493895
delta logL = 0.206998470745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9689       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7496       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10339.55     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9871        5.1427        .50616E-02    .17132E-03
   2  alpha         1.7509        .70484        .43781       -.27793E-04
   3  Normalizat    1.1059        .19522        .79198E-01    .13135E-03
   4  Prefactor     .85374        .97353E-01    .44413E-01    .21585E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.98709
  alpha      = 1.75087
  Normalizat = 1.10588
  Prefactor  = 0.853739
 **********
 **   18 **HESSE 
 **********

 FCN=   10339.55     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9871        3.8873        .18276E-03   -1.5309    
   2  alpha         1.7509        .64750        .21268E-01   -.30433    
   3  Normalizat    1.1059        .23256        .35058E-03   -.89563    
   4  Prefactor     .85374        .11615        .19543E-03   -.97777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97721e-11
Minuit parameter uncertainties:
  1  3.88754
  2  0.655725
  3  0.232773
  4  0.116183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253819': 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) = 10339.5493789
delta logL = 0.207009135087

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.537e-01  1.162e-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.106e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 334.813 18.103
Photon Index (Free Index): 1.75 +/- 0.66
Photon Flux (Free Index): 1.64e-08 +/- 2.02e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/253819/cmap_HighResolution_579916801_580176001_4FGL_J2219.2+1806_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-05', comment='SUCCESS', photon_flux='2.48e-08', energy_flux2='1.51e-05', photon_flux_error='2.29e-08', dlogl='2.07e-01', energy_flux='1.06e-05', photon_flux2='1.64e-08', job_status='DONE', time_completed='2021-09-28 09:06:53.771371', photon_index_error2='0.66', photon_index2='1.75', ts='2.12', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='1.69e-05', EG='1.10', time_epoch_completed='1632845213.77', return_code='0', job_id='253819', GAL2='0.85', EG2='1.11', return_code2='0', energy_flux_error='9.74e-06', photon_flux_error2='2.02e-08', ts2='2.53', photon_index='2.18' WHERE bin_id='1314' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:06:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 253819: <4FGL_J2219.2+1806_daily_bin1314> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1314 334.813 18.1026 579916801 580176001 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.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

