/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 214 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 = 7682
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2+1806_daily_bin85
RA = 334.813, Dec = 18.1026
tmin = 261360001, tmax = 261619201
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='245815', job_status='RUN', time_executed='2021-09-28 08:24:30.068666', time_epoch_executed='1632842670.07' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245815

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245815/ft1_4FGL_J2219.2+1806_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245815/ft2_4FGL_J2219.2+1806_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245815/ft1_4FGL_J2219.2+1806_daily_bin85.fits outfile=/scratch/kocevski/245815/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin85.fits ra=334.813 dec=18.1026 rad=12.0 tmin=261360001.0 tmax=261619201.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 1.47
user 1.29
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/245815/ft2_4FGL_J2219.2+1806_daily_bin85.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/245815/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin85.fits evtable="EVENTS" outfile="/scratch/kocevski/245815/ft1_filtered_4FGL_J2219.2+1806_daily_bin85.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245815/ft1_filtered_4FGL_J2219.2+1806_daily_bin85.fits" evtable="EVENTS" scfile=/scratch/kocevski/245815/ft2_4FGL_J2219.2+1806_daily_bin85.fits sctable="SC_DATA" outfile=/scratch/kocevski/245815/ltcube_261360001_261619201_4FGL_J2219.2+1806_daily_bin85.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/245815/ft2_4FGL_J2219.2+1806_daily_bin85.fits
.....................!
real 12.52
user 12.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245815/ft1_filtered_4FGL_J2219.2+1806_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/245815/ft2_4FGL_J2219.2+1806_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/245815/ltcube_261360001_261619201_4FGL_J2219.2+1806_daily_bin85.fits outfile=/scratch/kocevski/245815/expmap_261360001_261619201_4FGL_J2219.2+1806_daily_bin85.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/245815/ltcube_261360001_261619201_4FGL_J2219.2+1806_daily_bin85.fits
.....................!
real 190.87
user 185.28
sys 5.27

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/245815/ft1_filtered_4FGL_J2219.2+1806_daily_bin85.fits scfile=/scratch/kocevski/245815/ft2_4FGL_J2219.2+1806_daily_bin85.fits outfile=/scratch/kocevski/245815/cmap_261360001_261619201_4FGL_J2219.2+1806_daily_bin85.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245815/ft1_filtered_4FGL_J2219.2+1806_daily_bin85.fits scfile=/scratch/kocevski/245815/ft2_4FGL_J2219.2+1806_daily_bin85.fits outfile=/scratch/kocevski/245815/cmap_HighResolution_261360001_261619201_4FGL_J2219.2+1806_daily_bin85.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16294       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.7727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.981       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2525       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5836       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9614       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22226       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2489       1.0000         .10000E-03   10000.    
    17 'norm      '    7.0707       1.0000         .10000E-03   10000.    
    18 'norm      '    .42766E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.086       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .60251       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .43623       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2208       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=   8006.696     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2945 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23469        12.260       -.42997E-05    .91094E-03
   2  Prefactor     .10000E-03    65.655        .38967E-06** at limit **
   3  norm          18.874        3.8368       -.35616E-07    .89968E-04
   4  Prefactor     .10000E-03    44.445       -.38052E-06** at limit **
   5  norm          8.7733        3.5404       -.15629E-06   -.28200E-03
   6  Prefactor     .10000E-03    10.630        .28979E-06** at limit **
   7  Prefactor     26.087        43.899        .54803E-06    .64386E-04
   8  norm          2.2527        1.0368       -.40286E-07   -.11823E-03
   9  Prefactor     .10000E-03    15.409       -.28399E-06** at limit **
  10  Prefactor     7.5897        13.373        .17823E-06    .55000E-04
  11  norm          1.9628        3.6748        .91617E-06    .70604E-03
  12  Prefactor     .10000E-03    6.0394       -.23013E-06** at limit **
  13  Prefactor     .10000E-03    135.06       -.27956E-06** at limit **
  14  Prefactor     .10000E-03    9.2404       -.10313E-06** at limit **
  15  Prefactor     .22240        .18310       -.42784E-07   -.17727E-03
  16  Prefactor     2.2492        4.0054        .50788E-06    .30101E-03
  17  norm          7.0714        1.7862       -.34823E-07   -.82528E-04
  18  norm          .41524E-01    .87869        .82730E-07   -.19366E-03
  19  Prefactor     48.086        30.646       -.59357E-07   -.17313E-04
  20  Prefactor     .10000E-03    9.7278       -.67067E-06** at limit **
  21  Prefactor     .10000E-03    12.316       -.72773E-07** at limit **
  22  Prefactor     .60259        .16928       -.12557E-07    .25181E-03
  23  Prefactor     .10000E-03    5.7705       -.25790E-06** at limit **
  24  Normalizat    .43596        .24800        .93351E-05    .29152E-03
  25  Prefactor     1.2208        .12817       -.28564E-05   -.66317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.234689
  Prefactor  = 0.0001
  norm       = 18.8741
  Prefactor  = 0.0001
  norm       = 8.77333
  Prefactor  = 0.0001
  Prefactor  = 26.0868
  norm       = 2.25271
  Prefactor  = 0.0001
  Prefactor  = 7.58973
  norm       = 1.96278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.222395
  Prefactor  = 2.24918
  norm       = 7.07138
  norm       = 0.0415241
  Prefactor  = 48.0863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.602589
  Prefactor  = 0.0001
  Normalizat = 0.435956
  Prefactor  = 1.22081
 **********
 **   18 **HESSE 
 **********

 FCN=   8006.696     FROM HESSE     STATUS=OK           431 CALLS     3376 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23469        32.684        .36560E-02   -1.5611    
   2  Prefactor     .10000E-03    65.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.874        3.8284        .75011E-04   -1.4839    
   4  Prefactor     .10000E-03    44.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.7733        3.5457        .10306E-03   -1.5115    
   6  Prefactor     .10000E-03    10.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.087        43.973        .78592E-04   -1.4686    
   8  norm          2.2527        1.0368        .27377E-04   -1.5408    
   9  Prefactor     .10000E-03    15.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5897        13.329        .14563E-03   -1.5157    
  11  norm          1.9628        3.6422        .22599E-03   -1.5428    
  12  Prefactor     .10000E-03    6.0784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    135.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22240        .17377        .31972E-03   -1.5614    
  16  Prefactor     2.2492        3.9850        .23272E-03   -1.5408    
  17  norm          7.0714        1.7842        .57832E-04   -1.5176    
  18  norm          .41524E-01    15.626        .16122E-02   -1.5667    
  19  Prefactor     48.086        30.689        .57825E-04   -1.4320    
  20  Prefactor     .10000E-03    9.8954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .60259        .16861        .18203E-04   -1.5553    
  23  Prefactor     .10000E-03    5.8060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .43596        .25727        .52153E-03   -1.1548    
  25  Prefactor     1.2208        .13690        .17499E-03   -.85693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61707e-08
Minuit parameter uncertainties:
  1  5.5411
  2  0.000292455
  3  3.82846
  4  0.000236123
  5  3.54583
  6  4.22826e-05
  7  44.0274
  8  1.03681
  9  6.82382e-05
  10  13.3338
  11  3.6426
  12  3.2151e-05
  13  0.000142004
  14  3.02721e-05
  15  0.173772
  16  3.98545
  17  1.78423
  18  1.60952
  19  30.6987
  20  0.000118425
  21  4.91267e-06
  22  0.16861
  23  3.27672e-05
  24  0.25797
  25  0.136938
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.221e+00  1.369e-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.360e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/245815/likelihoodResults_261360001_261619201_4FGL_J2219.2+1806_daily_bin85.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) = 8006.66987871
delta logL = 0.0264550560887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8006.44773251
delta logL = 0.248601254541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68218E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .37883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2445       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=   8006.448     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      294 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68250E-01    .94537E-01    .28829E-03    .18033E-01
   2  alpha         5.0000        3.3315        .50000    ** at limit **
   3  Normalizat    .37866        .25505        .55842E-03   -.34609E-06
   4  Prefactor     1.2446        .13658        .17356E-03   -.11797E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0682503
  alpha      = 5
  Normalizat = 0.378662
  Prefactor  = 1.24461
 **********
 **   18 **HESSE 
 **********

 FCN=   8006.448     FROM HESSE     STATUS=OK            31 CALLS      325 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68250E-01    .91281E-01    .57658E-04   -1.5656    
   2  alpha         5.0000        3.2831        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .37866        .25524        .22337E-04   -1.1842    
   4  Prefactor     1.2446        .13661        .69424E-05   -.84969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50776e-11
Minuit parameter uncertainties:
  1  0.0912808
  2  1.52685e-06
  3  0.256031
  4  0.136645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245815': 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) = 8006.44773151
delta logL = 0.248602251097

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  6.825e-02  9.128e-02  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  5.000e+00  1.527e-06  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.245e+00  1.366e-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:  3.787e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/245815/cmap_HighResolution_261360001_261619201_4FGL_J2219.2+1806_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-28 08:37:22.057916', job_id='245815', GAL2='1.24', fit_tolerance='1e-08', EG2='0.38', EG='0.44', time_epoch_completed='1632843442.06', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.49e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='85' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:37:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 245815: <4FGL_J2219.2+1806_daily_bin85> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin85> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:20:46 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:20:48 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:20:48 2021
Terminated at Tue Sep 28 08:37:22 2021
Results reported at Tue Sep 28 08:37:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin85 334.813 18.1026 261360001 261619201 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

