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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1493
RA = 334.813, Dec = 18.1026
tmin = 626313601, tmax = 626572801
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='254089', job_status='RUN', time_executed='2021-09-28 08:51:16.450696', time_epoch_executed='1632844276.45' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254089/ft1_4FGL_J2219.2+1806_daily_bin1493.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254089/ft2_4FGL_J2219.2+1806_daily_bin1493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254089/ft1_4FGL_J2219.2+1806_daily_bin1493.fits outfile=/scratch/kocevski/254089/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1493.fits ra=334.813 dec=18.1026 rad=12.0 tmin=626313601.0 tmax=626572801.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.42
user 4.18
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254089/ft1_filtered_4FGL_J2219.2+1806_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/254089/ft2_4FGL_J2219.2+1806_daily_bin1493.fits sctable="SC_DATA" expcube=/scratch/kocevski/254089/ltcube_626313601_626572801_4FGL_J2219.2+1806_daily_bin1493.fits outfile=/scratch/kocevski/254089/expmap_626313601_626572801_4FGL_J2219.2+1806_daily_bin1493.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/254089/ltcube_626313601_626572801_4FGL_J2219.2+1806_daily_bin1493.fits
.....................!
real 190.04
user 185.84
sys 3.83

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/254089/ft1_filtered_4FGL_J2219.2+1806_daily_bin1493.fits scfile=/scratch/kocevski/254089/ft2_4FGL_J2219.2+1806_daily_bin1493.fits outfile=/scratch/kocevski/254089/cmap_626313601_626572801_4FGL_J2219.2+1806_daily_bin1493.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    103.40       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4207       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.131       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.866       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3529       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2016       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29018E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64506       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4613       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4332       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12922E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35573       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.004       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4471       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72606       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=   8202.760     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2935 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5236        .87902E-07** at limit **
   2  Prefactor     103.07        124.51        .33736E-04    .82766E-04
   3  norm          2.4206        2.2393       -.29200E-06   -.96473E-03
   4  Prefactor     .10000E-03    16.166       -.47128E-06** at limit **
   5  norm          .10000E-03    .61884        .64820E-07** at limit **
   6  Prefactor     38.136        34.829       -.11947E-05   -.14708E-03
   7  Prefactor     .10000E-03    24.821        .20670E-05** at limit **
   8  norm          .12578        .39066        .25654E-06    .13888E-04
   9  Prefactor     42.840        34.434        .31135E-05    .86944E-07
  10  Prefactor     .10000E-03    7.0855        .10291E-06** at limit **
  11  norm          6.3551        4.9451        .32180E-07   -.68421E-03
  12  Prefactor     2.1979        13.355        .11625E-05   -.72971E-04
  13  Prefactor     .10000E-03    28.495       -.11089E-05** at limit **
  14  Prefactor     .10024E-03    6.9100        .83543E-05** at limit **
  15  Prefactor     .32412        .18672       -.16047E-06    .29704E-03
  16  Prefactor     .64387        6.3995        .37246E-04   -.10763E-04
  17  norm          2.4611        1.2245        .67689E-07   -.35395E-03
  18  norm          1.4347        1.3850       -.28326E-07   -.45249E-03
  19  Prefactor     33.063        30.640        .11016E-05   -.57117E-04
  20  Prefactor     .10001E-03    4.7823       -.20203E-05** at limit **
  21  Prefactor     .10000E-03    7.3437        .25236E-06** at limit **
  22  Prefactor     .35569        .16194        .38434E-07   -.20108E-02
  23  Prefactor     28.006        14.466        .30311E-06   -.13943E-03
  24  Normalizat    1.4478        .22286       -.46711E-05   -.95807E-03
  25  Prefactor     .72590        .10354        .36340E-06   -.32299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 103.069
  norm       = 2.4206
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.1362
  Prefactor  = 0.0001
  norm       = 0.125775
  Prefactor  = 42.8401
  Prefactor  = 0.0001
  norm       = 6.35514
  Prefactor  = 2.19793
  Prefactor  = 0.0001
  Prefactor  = 0.000100237
  Prefactor  = 0.324124
  Prefactor  = 0.643871
  norm       = 2.46113
  norm       = 1.43469
  Prefactor  = 33.0625
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.355694
  Prefactor  = 28.0062
  Normalizat = 1.44778
  Prefactor  = 0.725903
 **********
 **   18 **HESSE 
 **********

 FCN=   8202.760     FROM HESSE     STATUS=OK           427 CALLS     3362 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5318        .14050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     103.07        124.59        .19772E-03   -1.3674    
   3  norm          2.4206        2.2221        .12022E-03   -1.5397    
   4  Prefactor     .10000E-03    16.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .62508        .69569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.136        34.656        .64907E-04   -1.4472    
   7  Prefactor     .10000E-03    24.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .12578        .42194        .95793E-03   -1.5637    
   9  Prefactor     42.840        34.501        .61230E-04   -1.4398    
  10  Prefactor     .10000E-03    7.0998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3551        4.9284        .15925E-03   -1.5204    
  12  Prefactor     2.1979        13.198        .27729E-03   -1.5411    
  13  Prefactor     .10000E-03    28.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10024E-03    37.937        .44383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .32412        .18161        .27470E-04   -1.5594    
  16  Prefactor     .64387        6.4617        .22184E-02   -1.5547    
  17  norm          2.4611        1.2228        .68593E-04   -1.5394    
  18  norm          1.4347        1.3510        .10080E-03   -1.5468    
  19  Prefactor     33.063        30.649        .69679E-04   -1.4557    
  20  Prefactor     .10001E-03    22.406        .37932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .35569        .16002        .22901E-04   -1.5589    
  23  Prefactor     28.006        14.458        .75706E-04   -1.4649    
  24  Normalizat    1.4478        .26171        .30797E-03   -.79257    
  25  Prefactor     .72590        .12304        .20276E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9253e-08
Minuit parameter uncertainties:
  1  8.70948e-06
  2  124.909
  3  2.22214
  4  3.38128e-06
  5  3.3297e-06
  6  34.6746
  7  5.46485e-05
  8  0.421948
  9  34.5175
  10  3.73687e-05
  11  4.92873
  12  10.7752
  13  7.92509e-06
  14  0.00600126
  15  0.181612
  16  4.07971
  17  1.22278
  18  1.35106
  19  30.664
  20  0.00108423
  21  1.06382e-05
  22  0.160018
  23  14.4597
  24  0.261951
  25  0.123086
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  6.355e+00  4.929e+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:  7.259e-01  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.448e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.31e-05

TS (Fixed Index): 2.74
Ra Dec: 334.813 18.103
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254089/likelihoodResults_626313601_626572801_4FGL_J2219.2+1806_daily_bin1493.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) = 8202.5937098
delta logL = 0.166389559232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8202.59200683
delta logL = 0.168092525706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3523       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8062       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72141       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=   8202.592     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3026        6.6650        .39814E-02    .14736E-03
   2  alpha         1.8044        .65746        .43359       -.26849E-04
   3  Normalizat    1.4638        .21191        .69287E-01    .92631E-05
   4  Prefactor     .72141        .10283        .42685E-01    .17202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.30261
  alpha      = 1.80438
  Normalizat = 1.46381
  Prefactor  = 0.721406
 **********
 **   18 **HESSE 
 **********

 FCN=   8202.592     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3026        5.0963        .15926E-03   -1.5206    
   2  alpha         1.8044        .61372        .17826E-01   -.28197    
   3  Normalizat    1.4638        .24980        .30653E-03   -.78800    
   4  Prefactor     .72141        .12137        .20329E-03   -1.0269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42399e-12
Minuit parameter uncertainties:
  1  5.0966
  2  0.620608
  3  0.250011
  4  0.121415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254089': 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) = 8202.59196045
delta logL = 0.168138904552

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  6.303e+00  5.097e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  1.804e+00  6.206e-01  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:  7.214e-01  1.214e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.464e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.07
Ra Dec: 334.813 18.103
Photon Index (Free Index): 1.80 +/- 0.62
Photon Flux (Free Index): 2.71e-08 +/- 2.90e-08
Energy Flux (Free Index): 2.21e-05 +/- 2.13e-05

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/254089/cmap_HighResolution_626313601_626572801_4FGL_J2219.2+1806_daily_bin1493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-05', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='2.21e-05', photon_flux_error='3.08e-08', dlogl='1.68e-01', energy_flux='1.69e-05', photon_flux2='2.71e-08', job_status='DONE', time_completed='2021-09-28 09:04:23.217721', photon_index_error2='0.62', photon_index2='1.80', ts='2.74', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.13e-05', EG='1.45', time_epoch_completed='1632845063.22', return_code='0', job_id='254089', GAL2='0.72', EG2='1.46', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.90e-08', ts2='3.07', photon_index='2.18' WHERE bin_id='1493' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:04:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 254089: <4FGL_J2219.2+1806_daily_bin1493> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1493 334.813 18.1026 626313601 626572801 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 :                                   779.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

