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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin576
RA = 334.813, Dec = 18.1026
tmin = 388627201, tmax = 388886401
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='248305', job_status='RUN', time_executed='2021-09-28 08:30:41.039961', time_epoch_executed='1632843041.04' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248305

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248305/ft1_4FGL_J2219.2+1806_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248305/ft2_4FGL_J2219.2+1806_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248305/ft1_4FGL_J2219.2+1806_daily_bin576.fits outfile=/scratch/kocevski/248305/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin576.fits ra=334.813 dec=18.1026 rad=12.0 tmin=388627201.0 tmax=388886401.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 4.00
user 3.75
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248305/ft1_filtered_4FGL_J2219.2+1806_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/248305/ft2_4FGL_J2219.2+1806_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/248305/ltcube_388627201_388886401_4FGL_J2219.2+1806_daily_bin576.fits outfile=/scratch/kocevski/248305/expmap_388627201_388886401_4FGL_J2219.2+1806_daily_bin576.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/248305/ltcube_388627201_388886401_4FGL_J2219.2+1806_daily_bin576.fits
.....................!
real 189.42
user 184.98
sys 4.14

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/248305/ft1_filtered_4FGL_J2219.2+1806_daily_bin576.fits scfile=/scratch/kocevski/248305/ft2_4FGL_J2219.2+1806_daily_bin576.fits outfile=/scratch/kocevski/248305/cmap_388627201_388886401_4FGL_J2219.2+1806_daily_bin576.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/248305/ft1_filtered_4FGL_J2219.2+1806_daily_bin576.fits scfile=/scratch/kocevski/248305/ft2_4FGL_J2219.2+1806_daily_bin576.fits outfile=/scratch/kocevski/248305/cmap_HighResolution_388627201_388886401_4FGL_J2219.2+1806_daily_bin576.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1670       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    27.823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.054       1.0000         .10000E-03   10000.    
     8 'norm      '    .63150       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.205       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7739       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8425       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9451       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .64044       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88303       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0613       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=   9408.340     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2898 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1673        10.323       -.66819E-08    .68837E-06
   2  Prefactor     .10000E-03    50.183        .47740E-06** at limit **
   3  norm          27.823        4.4603        .78191E-07    .12103E-03
   4  Prefactor     .10000E-03    32.952        .78572E-06** at limit **
   5  norm          4.8819        2.6680       -.39774E-08    .92787E-05
   6  Prefactor     .10000E-03    12.302       -.63381E-07** at limit **
   7  Prefactor     27.074        35.253       -.24927E-05    .63579E-05
   8  norm          .63169        .88577       -.83306E-07   -.53269E-03
   9  Prefactor     .10000E-03    14.178       -.14214E-06** at limit **
  10  Prefactor     .10000E-03    5.7543       -.10853E-06** at limit **
  11  norm          .10000E-03    .87688       -.66584E-08** at limit **
  12  Prefactor     .10000E-03    38.747       -.18483E-05** at limit **
  13  Prefactor     68.272        110.40       -.93288E-05    .48231E-06
  14  Prefactor     .10000E-03    4.3333        .96009E-08** at limit **
  15  Prefactor     1.5240        .28853        .10538E-07    .12771E-02
  16  Prefactor     .10000E-03    4.7180       -.10685E-06** at limit **
  17  norm          1.7740        1.0916        .91772E-07    .17798E-03
  18  norm          .10000E-03    .40256        .18475E-07** at limit **
  19  Prefactor     .10000E-03    7.7968        .35383E-07** at limit **
  20  Prefactor     4.8438        11.964        .22005E-05   -.36860E-05
  21  Prefactor     1.9442        37.571        .10283E-04   -.65835E-05
  22  Prefactor     .64047        .17628       -.43210E-07    .35166E-03
  23  Prefactor     .10000E-03    5.5499        .22406E-06** at limit **
  24  Normalizat    .88289        .23757        .59828E-07    .54256E-04
  25  Prefactor     1.0614        .11453        .20275E-06    .95384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.16731
  Prefactor  = 0.0001
  norm       = 27.8233
  Prefactor  = 0.0001
  norm       = 4.88187
  Prefactor  = 0.0001
  Prefactor  = 27.0739
  norm       = 0.631694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.2721
  Prefactor  = 0.0001
  Prefactor  = 1.52404
  Prefactor  = 0.0001
  norm       = 1.77398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.8438
  Prefactor  = 1.94422
  Prefactor  = 0.640474
  Prefactor  = 0.0001
  Normalizat = 0.88289
  Prefactor  = 1.06136
 **********
 **   18 **HESSE 
 **********

 FCN=   9408.340     FROM HESSE     STATUS=OK           425 CALLS     3323 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1673        10.307        .17686E-03   -1.5253    
   2  Prefactor     .10000E-03    50.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          27.823        4.4543        .75951E-04   -1.4653    
   4  Prefactor     .10000E-03    32.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8819        2.6667        .11319E-03   -1.5266    
   6  Prefactor     .10000E-03    12.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.074        35.181        .77021E-04   -1.4667    
   8  norm          .63169        .79321        .10314E-02   -1.5549    
   9  Prefactor     .10000E-03    14.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .87757        .88700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     68.272        110.31        .24301E-03   -1.4054    
  14  Prefactor     .10000E-03    4.3511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5240        .28853        .21247E-04   -1.5461    
  16  Prefactor     .10000E-03    4.7490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7740        1.0938        .76497E-04   -1.5442    
  18  norm          .10000E-03    .40333        .60072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.7981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8438        11.989        .91402E-03   -1.5268    
  21  Prefactor     1.9442        37.671        .14881E-02   -1.5429    
  22  Prefactor     .64047        .17619        .19809E-04   -1.5548    
  23  Prefactor     .10000E-03    5.5811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88289        .26712        .41881E-03   -.97064    
  25  Prefactor     1.0614        .13033        .19660E-03   -.90711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68972e-09
Minuit parameter uncertainties:
  1  10.3107
  2  1.1815e-05
  3  4.45436
  4  4.65596e-07
  5  2.66675
  6  5.22921e-06
  7  35.2082
  8  0.793219
  9  1.375e-05
  10  1.46958e-05
  11  3.49376e-07
  12  9.40146e-05
  13  110.644
  14  1.00305e-06
  15  0.288527
  16  5.63322e-06
  17  1.09385
  18  2.77083e-07
  19  3.34871e-06
  20  11.9951
  21  17.1282
  22  0.176191
  23  7.06087e-06
  24  0.267519
  25  0.130373
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.061e+00  1.304e-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:  8.829e-01  2.675e-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: 3.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248305/likelihoodResults_388627201_388886401_4FGL_J2219.2+1806_daily_bin576.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) = 9408.34028288
delta logL = -5.36911684321e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9408.34023073
delta logL = -1.54893496074e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1577       1.0000          .0000       5.0000    
     3 'Normalizat'    .88301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0614       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=   9408.340     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      234 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    59.890        .89239E-02** at limit **
   2  alpha         1.8039        2.7302        .16660        .23065E-07
   3  Normalizat    .88289        .47572E-01    .41882E-03    .36374E-04
   4  Prefactor     1.0614        .24449E-01    .19660E-03    .89562E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80392
  Normalizat = 0.88289
  Prefactor  = 1.06136
 **********
 **   18 **HESSE 
 **********

 FCN=   9408.340     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .95289        .92406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8039        3.1715        .66640E-02   -.28216    
   3  Normalizat    .88289        .25073        .16753E-04   -.97064    
   4  Prefactor     1.0614        .12899        .39320E-04   -.90711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35091e-12
Minuit parameter uncertainties:
  1  8.57896e-07
  2  122.307
  3  0.251059
  4  0.129028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248305': 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) = 9408.34022473
delta logL = 4.4558346417e-06

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  8.579e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  1.804e+00  1.223e+02  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.061e+00  1.290e-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:  8.829e-01  2.511e-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/248305/cmap_HighResolution_388627201_388886401_4FGL_J2219.2+1806_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-05', job_status='DONE', photon_flux_upper_limit='3.18e-08', time_completed='2021-09-28 08:44:41.986394', job_id='248305', GAL2='1.06', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632843881.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='576' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 248305: <4FGL_J2219.2+1806_daily_bin576> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin576> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 08:30:31 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:30:32 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:30:32 2021
Terminated at Tue Sep 28 08:44:42 2021
Results reported at Tue Sep 28 08:44:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin576 334.813 18.1026 388627201 388886401 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 :                                   837.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

