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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1170
RA = 334.813, Dec = 18.1026
tmin = 542592001, tmax = 542851201
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='253597', job_status='RUN', time_executed='2021-09-28 08:52:14.972544', time_epoch_executed='1632844334.97' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253597/ft1_4FGL_J2219.2+1806_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253597/ft2_4FGL_J2219.2+1806_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253597/ft1_4FGL_J2219.2+1806_daily_bin1170.fits outfile=/scratch/kocevski/253597/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1170.fits ra=334.813 dec=18.1026 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.75
user 6.46
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253597/ft2_4FGL_J2219.2+1806_daily_bin1170.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/253597/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/253597/ft1_filtered_4FGL_J2219.2+1806_daily_bin1170.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253597/ft1_filtered_4FGL_J2219.2+1806_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/253597/ft2_4FGL_J2219.2+1806_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/253597/ltcube_542592001_542851201_4FGL_J2219.2+1806_daily_bin1170.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/253597/ft2_4FGL_J2219.2+1806_daily_bin1170.fits
.....................!
real 11.96
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253597/ft1_filtered_4FGL_J2219.2+1806_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/253597/ft2_4FGL_J2219.2+1806_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/253597/ltcube_542592001_542851201_4FGL_J2219.2+1806_daily_bin1170.fits outfile=/scratch/kocevski/253597/expmap_542592001_542851201_4FGL_J2219.2+1806_daily_bin1170.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/253597/ltcube_542592001_542851201_4FGL_J2219.2+1806_daily_bin1170.fits
.....................!
real 190.87
user 186.05
sys 4.46

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/253597/ft1_filtered_4FGL_J2219.2+1806_daily_bin1170.fits scfile=/scratch/kocevski/253597/ft2_4FGL_J2219.2+1806_daily_bin1170.fits outfile=/scratch/kocevski/253597/cmap_542592001_542851201_4FGL_J2219.2+1806_daily_bin1170.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/253597/ft1_filtered_4FGL_J2219.2+1806_daily_bin1170.fits scfile=/scratch/kocevski/253597/ft2_4FGL_J2219.2+1806_daily_bin1170.fits outfile=/scratch/kocevski/253597/cmap_HighResolution_542592001_542851201_4FGL_J2219.2+1806_daily_bin1170.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40941E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.171       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3445       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38309E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    68.806       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .61692E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.805       1.0000         .10000E-03   10000.    
    11 'norm      '    .17739E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.577       1.0000         .10000E-03   10000.    
    13 'Prefactor '    138.98       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.953       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5668       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1649       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3276       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.442       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18092E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .81353E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4940       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16480E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .46546       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4989.626     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     2225 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0099        9.1729       -.25018E-05   -.11715E-04
   2  Prefactor     .10000E-03    85.430        .43452E-04** at limit **
   3  norm          3.1844        3.7491        .36211E-05    .15522E-04
   4  Prefactor     69.242        133.48       -.13129E-04    .79663E-03
   5  norm          .44484        14.994        .65565E-05   -.83164E-05
   6  Prefactor     .10000E-03    20.959       -.26874E-04** at limit **
   7  Prefactor     68.778        53.882       -.72406E-06   -.33599E-01
   8  norm          .10000E-03    1.8819       -.89751E-05** at limit **
   9  Prefactor     .10000E-03    23.538       -.30144E-05** at limit **
  10  Prefactor     66.089        34.236        .16471E-04   -.36587E-03
  11  norm          .10000E-03    10.820       -.19053E-05** at limit **
  12  Prefactor     13.278        27.047        .90811E-05   -.22237E-03
  13  Prefactor     137.69        81.647       -.53577E-06    .31334E-01
  14  Prefactor     18.048        19.545        .96966E-05   -.74458E-05
  15  Prefactor     1.7032        .42045        .27997E-06    .10239E-03
  16  Prefactor     8.6614        9.3335        .11727E-04    .21330E-04
  17  norm          2.1572        1.9990       -.59224E-06   -.27836E-04
  18  norm          1.3275        2.4524        .85906E-06    .30150E-06
  19  Prefactor     22.129        48.104        .30672E-05    .21546E-02
  20  Prefactor     .10000E-03    92.271        .74124E-04** at limit **
  21  Prefactor     .10000E-03    19.147       -.35064E-04** at limit **
  22  Prefactor     1.4923        .32697        .92335E-07   -.27874E-04
  23  Prefactor     .10000E-03    8.6403       -.26248E-05** at limit **
  24  Normalizat    .47061        .37364       -.41300E-04   -.32012E-05
  25  Prefactor     1.1417        .17717        .62582E-05   -.22607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.00988
  Prefactor  = 0.0001
  norm       = 3.18441
  Prefactor  = 69.2417
  norm       = 0.444835
  Prefactor  = 0.0001
  Prefactor  = 68.7784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.0886
  norm       = 0.0001
  Prefactor  = 13.2777
  Prefactor  = 137.69
  Prefactor  = 18.0475
  Prefactor  = 1.70322
  Prefactor  = 8.66142
  norm       = 2.15719
  norm       = 1.32749
  Prefactor  = 22.129
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 1.49229
  Prefactor  = 0.0001
  Normalizat = 0.470612
  Prefactor  = 1.14169
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.626     FROM HESSE     STATUS=OK           495 CALLS     2720 TOTAL
                     EDM=   .26E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0099        9.2605        .59454E-02   -1.5361    
   2  Prefactor     .10000E-03    85.639        .10626E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1844        3.8274        .56711E-02   -1.5351    
   4  Prefactor     69.242        128.37        .15811E-02   -1.4042    
   5  norm          .44484        6.7120        .38489E-01   -1.5575    
   6  Prefactor     .10000E-03    20.945        .10642E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     68.778        61.383        .12098E-02   -1.4047    
   8  norm          .10000E-03    .79027        .21633E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.494        .10525E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     66.089        34.694        .12659E-02   -1.4080    
  11  norm          .10000E-03    10.437        .10167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.278        27.217        .27176E-02   -1.4979    
  13  Prefactor     137.69        166.13        .85420E-03   -1.3356    
  14  Prefactor     18.048        19.727        .23000E-02   -1.4858    
  15  Prefactor     1.7032        .41993        .45433E-02   -1.5447    
  16  Prefactor     8.6614        9.3309        .34239E-02   -1.5119    
  17  norm          2.1572        2.0277        .69980E-02   -1.5414    
  18  norm          1.3275        2.6003        .95342E-02   -1.5478    
  19  Prefactor     22.129        48.194        .21625E-02   -1.4767    
  20  Prefactor     .10000E-03    19.284        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.089        .10446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4923        .32835        .38804E-02   -1.5464    
  23  Prefactor     .10000E-03    8.5986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .47061        .41337        .12476       -1.1380    
  25  Prefactor     1.1417        .18059        .36129E-01   -.88145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61047e-05
Minuit parameter uncertainties:
  1  9.26489
  2  0.000202139
  3  3.82768
  4  128.893
  5  3.45593
  6  3.48729e-05
  7  61.44
  8  2.11872e-06
  9  4.20082e-06
  10  34.7043
  11  2.86457e-06
  12  27.2428
  13  166.699
  14  19.7336
  15  0.419934
  16  9.33246
  17  2.02779
  18  2.60054
  19  48.279
  20  0.00058058
  21  4.64321e-05
  22  0.32835
  23  2.60045e-06
  24  0.416103
  25  0.180684
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.142e+00  1.807e-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:  4.706e-01  4.161e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253597/likelihoodResults_542592001_542851201_4FGL_J2219.2+1806_daily_bin1170.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) = 4989.62672544
delta logL = -0.000441433609922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4989.62628338
delta logL = 6.26940163784e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10413E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2435       1.0000          .0000       5.0000    
     3 'Normalizat'    .47064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1417       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=   4989.626     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      214 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    527.90        .57722E-01** at limit **
   2  alpha         2.3220        3.2001        .41429       -.31440E-04
   3  Normalizat    .47061        .11081        .12476        .79209E-04
   4  Prefactor     1.1417        .48947E-01    .36182E-01    .11932E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010003
  alpha      = 2.32196
  Normalizat = 0.470612
  Prefactor  = 1.14169
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.626     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    18.383        .32410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3220        3.5281        .16571       -.71276E-01
   3  Normalizat    .47061        .33599        .55311E-03   -1.1380    
   4  Prefactor     1.1417        .17279        .18554E-03   -.88145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62871e-09
Minuit parameter uncertainties:
  1  0.00149786
  2  2.57902
  3  0.337448
  4  0.172873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253597': 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) = 4989.62628225
delta logL = 1.7574220692e-06

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  1.498e-03  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.322e+00  2.579e+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.142e+00  1.729e-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:  4.706e-01  3.374e-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/253597/cmap_HighResolution_542592001_542851201_4FGL_J2219.2+1806_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-28 09:01:55.396606', job_id='253597', GAL2='1.14', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1632844915.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1170' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 253597: <4FGL_J2219.2+1806_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1170 334.813 18.1026 542592001 542851201 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 :                                   578.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

