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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1535
RA = 334.813, Dec = 18.1026
tmin = 637200001, tmax = 637459201
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='255153', job_status='RUN', time_executed='2021-09-28 08:57:51.894350', time_epoch_executed='1632844671.89' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255153/ft1_4FGL_J2219.2+1806_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255153/ft2_4FGL_J2219.2+1806_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255153/ft1_4FGL_J2219.2+1806_daily_bin1535.fits outfile=/scratch/kocevski/255153/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1535.fits ra=334.813 dec=18.1026 rad=12.0 tmin=637200001.0 tmax=637459201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.52
user 5.14
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255153/ft1_filtered_4FGL_J2219.2+1806_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/255153/ft2_4FGL_J2219.2+1806_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/255153/ltcube_637200001_637459201_4FGL_J2219.2+1806_daily_bin1535.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/255153/ft2_4FGL_J2219.2+1806_daily_bin1535.fits
.....................!
real 13.86
user 12.54
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255153/ft1_filtered_4FGL_J2219.2+1806_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/255153/ft2_4FGL_J2219.2+1806_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/255153/ltcube_637200001_637459201_4FGL_J2219.2+1806_daily_bin1535.fits outfile=/scratch/kocevski/255153/expmap_637200001_637459201_4FGL_J2219.2+1806_daily_bin1535.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/255153/ltcube_637200001_637459201_4FGL_J2219.2+1806_daily_bin1535.fits
.....................!
real 193.45
user 187.35
sys 5.70

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/255153/ft1_filtered_4FGL_J2219.2+1806_daily_bin1535.fits scfile=/scratch/kocevski/255153/ft2_4FGL_J2219.2+1806_daily_bin1535.fits outfile=/scratch/kocevski/255153/cmap_637200001_637459201_4FGL_J2219.2+1806_daily_bin1535.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255153/ft1_filtered_4FGL_J2219.2+1806_daily_bin1535.fits scfile=/scratch/kocevski/255153/ft2_4FGL_J2219.2+1806_daily_bin1535.fits outfile=/scratch/kocevski/255153/cmap_HighResolution_637200001_637459201_4FGL_J2219.2+1806_daily_bin1535.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.811       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5027       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3492       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.057       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.073       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.887       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36464E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .47462       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7612       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61002       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68128       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1608       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=   7237.183     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2562 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.812        10.793        .39807E-06   -.42796E-03
   2  Prefactor     .10000E-03    51.771       -.45164E-05** at limit **
   3  norm          1.5032        2.3299        .12289E-06   -.30189E-03
   4  Prefactor     .10000E-03    27.549        .26644E-06** at limit **
   5  norm          3.2155        2.8343        .96550E-07   -.12641E-03
   6  Prefactor     .10000E-03    16.611       -.15583E-05** at limit **
   7  Prefactor     .10001E-03    24.365       -.64646E-05** at limit **
   8  norm          .10000E-03    .47842        .66484E-07** at limit **
   9  Prefactor     .10001E-03    29.575        .95451E-05** at limit **
  10  Prefactor     3.3464        11.507        .49152E-05   -.73910E-03
  11  norm          .10000E-03    1.9878       -.23275E-07** at limit **
  12  Prefactor     12.053        14.573        .91269E-07   -.24031E-04
  13  Prefactor     16.072        53.561       -.16124E-05   -.18489E-04
  14  Prefactor     17.887        12.067        .10052E-06   -.21280E-03
  15  Prefactor     .36520E-01    .12345        .58584E-07   -.16324E-02
  16  Prefactor     .10000E-03    3.5203        .45370E-08** at limit **
  17  norm          .47466        1.0471        .23076E-06   -.55155E-03
  18  norm          2.7612        1.7181        .31749E-07    .39054E-04
  19  Prefactor     .10000E-03    14.041        .43159E-05** at limit **
  20  Prefactor     .10000E-03    3.2393        .31003E-07** at limit **
  21  Prefactor     .10000E-03    12.912       -.21655E-05** at limit **
  22  Prefactor     .60999        .16740        .78661E-08   -.43725E-03
  23  Prefactor     .10000E-03    4.7319        .38518E-07** at limit **
  24  Normalizat    .68118        .24521       -.13259E-05   -.61675E-04
  25  Prefactor     1.1608        .12371       -.86077E-07   -.99112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8116
  Prefactor  = 0.000100003
  norm       = 1.50324
  Prefactor  = 0.0001
  norm       = 3.21548
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 3.34641
  norm       = 0.0001
  Prefactor  = 12.0529
  Prefactor  = 16.072
  Prefactor  = 17.8874
  Prefactor  = 0.03652
  Prefactor  = 0.0001
  norm       = 0.474656
  norm       = 2.76122
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.609995
  Prefactor  = 0.0001
  Normalizat = 0.68118
  Prefactor  = 1.16083
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.183     FROM HESSE     STATUS=OK           429 CALLS     2991 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.812        10.862        .52036E-03   -1.4938    
   2  Prefactor     .10000E-03    52.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5032        2.3107        .15111E-03   -1.5463    
   4  Prefactor     .10000E-03    27.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2155        2.8278        .12947E-03   -1.5349    
   6  Prefactor     .10000E-03    16.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    25.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5308        .11179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    31.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3464        16.634        .11057E-02   -1.5342    
  11  norm          .10000E-03    1.9976        .11711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.053        14.327        .11537E-03   -1.5013    
  13  Prefactor     16.072        53.514        .99902E-04   -1.4906    
  14  Prefactor     17.887        12.077        .47350E-03   -1.4862    
  15  Prefactor     .36520E-01    .15719        .50318E-03   -1.5670    
  16  Prefactor     .10000E-03    3.5292        .15583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .47466        1.0421        .12392E-03   -1.5570    
  18  norm          2.7612        1.7184        .85509E-04   -1.5376    
  19  Prefactor     .10000E-03    14.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2472        .14952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .60999        .16716        .17309E-04   -1.5552    
  23  Prefactor     .10000E-03    4.7597        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68118        .27220        .40294E-03   -1.0464    
  25  Prefactor     1.1608        .14091        .16853E-03   -.87545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88093e-09
Minuit parameter uncertainties:
  1  10.8636
  2  0.000787263
  3  2.31086
  4  3.3552e-05
  5  2.82792
  6  0.000148623
  7  0.000777983
  8  5.84026e-07
  9  0.00125819
  10  14.928
  11  4.79512e-07
  12  14.3315
  13  53.6748
  14  12.0791
  15  0.151325
  16  1.13383e-06
  17  1.04215
  18  1.71842
  19  0.000395903
  20  1.53961e-06
  21  0.000183413
  22  0.167156
  23  2.31883e-06
  24  0.272737
  25  0.140958
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  4.795e-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.161e+00  1.410e-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:  6.812e-01  2.727e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255153/likelihoodResults_637200001_637459201_4FGL_J2219.2+1806_daily_bin1535.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) = 7237.18582524
delta logL = -0.00237347099755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7237.18345179
delta logL = -1.91357685253e-08

Fit tolerance = 1e-08

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

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

 FCN=   7237.183     FROM MIGRAD    STATUS=FAILED        84 CALLS      223 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    4.6970        .11714E-02** at limit **
   2  alpha         2.2204        2.8410        .16634       -.35944E-05
   3  Normalizat    .68118        .25779        .40294E-03    .40290E-04
   4  Prefactor     1.1608        .13869        .16853E-03    .87021E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7237.183     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      343 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    4.6970        .11690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2204        2.8410        .55758E-03   -.11206    
   3  Normalizat    .68118        .25779        .16333E-03   -1.0464    
   4  Prefactor     1.1608        .13869        .59765E-04   -.87545    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7237.183     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      373 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0078        .23427E-03** at limit **
   2  alpha         2.2685        3.6144        .66535E-02    .30756E-08
   3  Normalizat    .68118        .25794        .16118E-04   -.36538E-04
   4  Prefactor     1.1608        .13877        .67411E-05   -.75554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.2685
  Normalizat = 0.68118
  Prefactor  = 1.16083
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.183     FROM HESSE     STATUS=OK            23 CALLS      396 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0077        .46854E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2685        3.6482        .13307E-02   -.92734E-01
   3  Normalizat    .68118        .25763        .32235E-05   -1.0464    
   4  Prefactor     1.1608        .13861        .13482E-05   -.87545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17837e-12
Minuit parameter uncertainties:
  1  4.78897e-07
  2  182.054
  3  0.258085
  4  0.138654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255153': 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) = 7237.18345165
delta logL = 1.23539393826e-07

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  4.789e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.268e+00  1.821e+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.161e+00  1.387e-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:  6.812e-01  2.581e-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/255153/cmap_HighResolution_637200001_637459201_4FGL_J2219.2+1806_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-05', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-28 09:10:07.393716', job_id='255153', GAL2='1.16', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632845407.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1535' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:10:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 255153: <4FGL_J2219.2+1806_daily_bin1535> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1535> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:13 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:14 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:55:14 2021
Terminated at Tue Sep 28 09:10:08 2021
Results reported at Tue Sep 28 09:10:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1535 334.813 18.1026 637200001 637459201 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 :                                   734.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

