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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1625
RA = 334.813, Dec = 18.1026
tmin = 660528001, tmax = 660787201
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='107335', job_status='RUN', time_executed='2021-12-10 00:43:09.542583', time_epoch_executed='1639125789.54' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107335

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107335/ft1_4FGL_J2219.2+1806_daily_bin1625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107335/ft2_4FGL_J2219.2+1806_daily_bin1625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107335/ft1_4FGL_J2219.2+1806_daily_bin1625.fits outfile=/scratch/kocevski/107335/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1625.fits ra=334.813 dec=18.1026 rad=12.0 tmin=660528001.0 tmax=660787201.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.83
user 2.63
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107335/ft1_filtered_4FGL_J2219.2+1806_daily_bin1625.fits" evtable="EVENTS" scfile=/scratch/kocevski/107335/ft2_4FGL_J2219.2+1806_daily_bin1625.fits sctable="SC_DATA" outfile=/scratch/kocevski/107335/ltcube_660528001_660787201_4FGL_J2219.2+1806_daily_bin1625.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/107335/ft2_4FGL_J2219.2+1806_daily_bin1625.fits
.....................!
real 9.60
user 9.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107335/ft1_filtered_4FGL_J2219.2+1806_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107335/ft2_4FGL_J2219.2+1806_daily_bin1625.fits sctable="SC_DATA" expcube=/scratch/kocevski/107335/ltcube_660528001_660787201_4FGL_J2219.2+1806_daily_bin1625.fits outfile=/scratch/kocevski/107335/expmap_660528001_660787201_4FGL_J2219.2+1806_daily_bin1625.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/107335/ltcube_660528001_660787201_4FGL_J2219.2+1806_daily_bin1625.fits
.....................!
real 149.46
user 145.46
sys 3.75

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/107335/ft1_filtered_4FGL_J2219.2+1806_daily_bin1625.fits scfile=/scratch/kocevski/107335/ft2_4FGL_J2219.2+1806_daily_bin1625.fits outfile=/scratch/kocevski/107335/cmap_660528001_660787201_4FGL_J2219.2+1806_daily_bin1625.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107335/ft1_filtered_4FGL_J2219.2+1806_daily_bin1625.fits scfile=/scratch/kocevski/107335/ft2_4FGL_J2219.2+1806_daily_bin1625.fits outfile=/scratch/kocevski/107335/cmap_HighResolution_660528001_660787201_4FGL_J2219.2+1806_daily_bin1625.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.47
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    94.974       1.0000         .10000E-03   10000.    
     5 'norm      '    .10439E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .27348       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11924E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.606       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23338       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9469       1.0000         .10000E-03   10000.    
    17 'norm      '    4.6825       1.0000         .10000E-03   10000.    
    18 'norm      '    .64940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.290       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12310E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .65751       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2299       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86796       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=   8052.160     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2983 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3623        .74563E-07** at limit **
   2  Prefactor     .10000E-03    38.002        .75341E-05** at limit **
   3  norm          .10000E-03    1.0749        .40711E-07** at limit **
   4  Prefactor     94.963        77.824       -.85806E-05   -.12480E-04
   5  norm          .10000E-03    1.2445        .65868E-06** at limit **
   6  Prefactor     .10000E-03    27.953       -.16005E-04** at limit **
   7  Prefactor     .10000E-03    11.492       -.16719E-05** at limit **
   8  norm          .27308        .65553       -.31369E-06   -.18157E-02
   9  Prefactor     .10000E-03    9.0854       -.19511E-05** at limit **
  10  Prefactor     .10000E-03    9.6899        .33421E-05** at limit **
  11  norm          .10000E-03    3.4411       -.84364E-08** at limit **
  12  Prefactor     .10000E-03    3.8455        .71816E-07** at limit **
  13  Prefactor     .10000E-03    24.244        .10269E-04** at limit **
  14  Prefactor     14.608        10.710       -.71340E-06   -.76998E-03
  15  Prefactor     .23342        .16787       -.30628E-07   -.16761E-02
  16  Prefactor     7.9479        7.4328       -.17299E-07    .78583E-06
  17  norm          4.6825        1.3814       -.26104E-07   -.62529E-04
  18  norm          .64880        1.2995       -.27982E-06   -.15832E-02
  19  Prefactor     .10000E-03    6.9943        .16114E-06** at limit **
  20  Prefactor     29.293        13.486        .67360E-07    .36531E-04
  21  Prefactor     .10003E-03    12.593       -.76599E-06** at limit **
  22  Prefactor     .65742        .16390        .33262E-07    .54078E-03
  23  Prefactor     .10000E-03    3.8026        .53061E-07** at limit **
  24  Normalizat    1.2300        .21728        .57231E-06    .76590E-04
  25  Prefactor     .86776        .10707        .34457E-06    .12964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 94.9625
  norm       = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.273081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.6083
  Prefactor  = 0.233425
  Prefactor  = 7.94794
  norm       = 4.68249
  norm       = 0.648799
  Prefactor  = 0.0001
  Prefactor  = 29.2931
  Prefactor  = 0.000100035
  Prefactor  = 0.657422
  Prefactor  = 0.0001
  Normalizat = 1.23002
  Prefactor  = 0.867759
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.160     FROM HESSE     STATUS=OK           439 CALLS     3422 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1527        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     94.963        75.986        .20621E-03   -1.3756    
   5  norm          .10000E-03    2.5300        .18872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .27308        .69248        .10745E-02   -1.5603    
   9  Prefactor     .10000E-03    9.0807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.1526        .31786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8510        .17183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.608        10.893        .52401E-03   -1.4943    
  15  Prefactor     .23342        .16166        .29542E-03   -1.5611    
  16  Prefactor     7.9479        7.4269        .14223E-03   -1.5144    
  17  norm          4.6825        1.3810        .55426E-04   -1.5275    
  18  norm          .64880        1.0043        .13946E-02   -1.5547    
  19  Prefactor     .10000E-03    6.9972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.293        13.284        .74029E-04   -1.4625    
  21  Prefactor     .10003E-03    137.85        .60681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .65742        .16099        .17067E-04   -1.5546    
  23  Prefactor     .10000E-03    3.8107        .17088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2300        .26146        .31631E-03   -.85680    
  25  Prefactor     .86776        .12994        .18954E-03   -.97277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18205e-09
Minuit parameter uncertainties:
  1  4.40547e-06
  2  0.000354688
  3  2.84589e-06
  4  76.0635
  5  9.57176e-05
  6  0.000723585
  7  4.33665e-05
  8  0.692501
  9  4.36165e-05
  10  8.79692e-05
  11  4.69909e-05
  12  1.86725e-06
  13  0.00038931
  14  10.8945
  15  0.161661
  16  7.42772
  17  1.38096
  18  1.00436
  19  5.39061e-06
  20  13.2852
  21  0.00440005
  22  0.160987
  23  3.18561e-06
  24  0.261743
  25  0.129984
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  4.699e-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:  8.678e-01  1.300e-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.230e+00  2.617e-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: 7.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107335/likelihoodResults_660528001_660787201_4FGL_J2219.2+1806_daily_bin1625.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) = 8052.1604702
delta logL = -0.000518543873113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8052.15995622
delta logL = -4.56692578155e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19143E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2732       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86745       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=   8052.086     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      287 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61132        56.724        .90712E-02    .20067E-02
   2  alpha         3.3053        3.0738        .41368        .62121E-04
   3  Normalizat    1.2050        .42617E-01    .72124E-01    .13385E-04
   4  Prefactor     .87437        .22053E-01    .44589E-01    .40421E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.611324
  alpha      = 3.30531
  Normalizat = 1.20498
  Prefactor  = 0.874372
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.086     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61132        9.9734        .17559E-03   -1.5552    
   2  alpha         3.3053        4.1374        .38814E-01    .32797    
   3  Normalizat    1.2050        .25728        .31916E-03   -.86449    
   4  Prefactor     .87437        .12994        .18889E-03   -.97042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99051e-10
Minuit parameter uncertainties:
  1  4.93898
  2  4.12417
  3  0.257554
  4  0.129987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107335': 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) = 8052.08558499
delta logL = 0.0743666687504

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  6.113e-01  4.939e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  3.305e+00  4.124e+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:  8.744e-01  1.300e-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.205e+00  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.813 18.103

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-12-10 00:53:31.513039', job_id='107335', GAL2='0.87', fit_tolerance='1e-08', EG2='1.20', EG='1.23', time_epoch_completed='1639126411.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.44e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1625' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 10 00:53:31 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 107335: <4FGL_J2219.2+1806_daily_bin1625> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1625> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 10 00:40:25 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 10 00:40:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 10 00:40:27 2021
Terminated at Fri Dec 10 00:53:32 2021
Results reported at Fri Dec 10 00:53:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1625 334.813 18.1026 660528001 660787201 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 :                                   623.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            787 sec.

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

