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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1311
RA = 334.813, Dec = 18.1026
tmin = 579139201, tmax = 579398401
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='253815', job_status='RUN', time_executed='2021-09-28 08:52:32.799855', time_epoch_executed='1632844352.8' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253815/ft1_4FGL_J2219.2+1806_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253815/ft2_4FGL_J2219.2+1806_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253815/ft1_4FGL_J2219.2+1806_daily_bin1311.fits outfile=/scratch/kocevski/253815/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1311.fits ra=334.813 dec=18.1026 rad=12.0 tmin=579139201.0 tmax=579398401.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 3.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253815/ft1_filtered_4FGL_J2219.2+1806_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/253815/ft2_4FGL_J2219.2+1806_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/253815/ltcube_579139201_579398401_4FGL_J2219.2+1806_daily_bin1311.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/253815/ft2_4FGL_J2219.2+1806_daily_bin1311.fits
.....................!
real 14.50
user 14.09
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253815/ft1_filtered_4FGL_J2219.2+1806_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/253815/ft2_4FGL_J2219.2+1806_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/253815/ltcube_579139201_579398401_4FGL_J2219.2+1806_daily_bin1311.fits outfile=/scratch/kocevski/253815/expmap_579139201_579398401_4FGL_J2219.2+1806_daily_bin1311.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/253815/ltcube_579139201_579398401_4FGL_J2219.2+1806_daily_bin1311.fits
.....................!
real 192.16
user 185.88
sys 5.75

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/253815/ft1_filtered_4FGL_J2219.2+1806_daily_bin1311.fits scfile=/scratch/kocevski/253815/ft2_4FGL_J2219.2+1806_daily_bin1311.fits outfile=/scratch/kocevski/253815/cmap_579139201_579398401_4FGL_J2219.2+1806_daily_bin1311.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.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253815/ft1_filtered_4FGL_J2219.2+1806_daily_bin1311.fits scfile=/scratch/kocevski/253815/ft2_4FGL_J2219.2+1806_daily_bin1311.fits outfile=/scratch/kocevski/253815/cmap_HighResolution_579139201_579398401_4FGL_J2219.2+1806_daily_bin1311.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .92097E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .36506E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .18351       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.831       1.0000         .10000E-03   10000.    
    11 'norm      '    9.2430       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.994       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93168       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.740       1.0000         .10000E-03   10000.    
    17 'norm      '    7.7781       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3202       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    85.658       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.676       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8404       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2870       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .30630       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10957.57     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     2448 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4378        8.4569       -.84350E-05    .91115E-04
   2  Prefactor     .10086E-03    60.425       -.84997E-04** at limit **
   3  norm          .11583        9.9332        .13374E-04    .21846E-04
   4  Prefactor     .10015E-03    19.114        .46777E-04** at limit **
   5  norm          .10000E-03    7.4913        .13810E-05** at limit **
   6  Prefactor     .10001E-03    20.129        .49411E-04** at limit **
   7  Prefactor     .10002E-03    30.458       -.46332E-04** at limit **
   8  norm          .18370        .38384        .77037E-06   -.52438E-03
   9  Prefactor     48.762        2.1038        .20790E-05   -.37154E-02
  10  Prefactor     27.833        1.0281        .96159E-07    .32116E-03
  11  norm          9.2455        5.4095       -.42040E-05   -.27199E-03
  12  Prefactor     13.002        1.0984       -.43109E-06   -.23530E-03
  13  Prefactor     .10189E-03    22.949       -.47728E-05** at limit **
  14  Prefactor     17.803        2.0514        .27876E-05    .31425E-02
  15  Prefactor     .93184        .22764        .55197E-07    .13697E-02
  16  Prefactor     16.742        1.2210        .10116E-05    .18890E-02
  17  norm          7.7788        1.6114       -.12055E-08   -.52147E-03
  18  norm          1.3205        1.3967        .67064E-06    .48357E-03
  19  Prefactor     .10000E-03    13.683        .61214E-05** at limit **
  20  Prefactor     85.664        1.0915        .17228E-06    .69528E-03
  21  Prefactor     13.678        1.0072       -.12366E-07   -.75292E-04
  22  Prefactor     2.8407        .26977       -.81629E-07   -.23777E-02
  23  Prefactor     8.2917        1.3303        .10953E-05    .14865E-02
  24  Normalizat    .30589        .24445        .22180E-05    .16469E-03
  25  Prefactor     1.1644        .12520       -.11510E-05    .55663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43776
  Prefactor  = 0.000100864
  norm       = 0.115829
  Prefactor  = 0.000100146
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.00010002
  norm       = 0.183702
  Prefactor  = 48.7619
  Prefactor  = 27.833
  norm       = 9.24545
  Prefactor  = 13.0019
  Prefactor  = 0.000101894
  Prefactor  = 17.8033
  Prefactor  = 0.93184
  Prefactor  = 16.7416
  norm       = 7.77884
  norm       = 1.32049
  Prefactor  = 0.000100001
  Prefactor  = 85.6636
  Prefactor  = 13.6782
  Prefactor  = 2.84065
  Prefactor  = 8.29166
  Normalizat = 0.305886
  Prefactor  = 1.16437
 **********
 **   18 **HESSE 
 **********

 FCN=   10957.57     FROM HESSE     STATUS=OK           501 CALLS     2949 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4378        8.6317        .89675E-02   -1.5468    
   2  Prefactor     .10086E-03    81.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .11583        .91291        .62329E-01   -1.5640    
   4  Prefactor     .10015E-03    42.415        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1531        .65082E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    44.254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    31.534        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .18370        .45132        .23564E-01   -1.5622    
   9  Prefactor     48.762        37.457        .14357E-02   -1.4310    
  10  Prefactor     27.833        16.009        .18985E-02   -1.4652    
  11  norm          9.2455        5.5031        .32956E-02   -1.5100    
  12  Prefactor     13.002        13.429        .27780E-02   -1.4987    
  13  Prefactor     .10189E-03    62.282        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.803        10.507        .23736E-02   -1.4864    
  15  Prefactor     .93184        .24033        .53005E-02   -1.5515    
  16  Prefactor     16.742        8.9077        .24473E-02   -1.4889    
  17  norm          7.7788        1.6232        .35945E-02   -1.5150    
  18  norm          1.3205        1.4337        .95749E-02   -1.5478    
  19  Prefactor     .10000E-03    13.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     85.664        18.340        .10852E-02   -1.3854    
  21  Prefactor     13.678        12.776        .27077E-02   -1.4968    
  22  Prefactor     2.8407        .27950        .36111E-02   -1.5371    
  23  Prefactor     8.2917        8.4886        .34816E-02   -1.5132    
  24  Normalizat    .30589        .37943        .15501       -1.2249    
  25  Prefactor     1.1644        .17012        .35532E-01   -.87435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68099e-08
Minuit parameter uncertainties:
  1  7.04693
  2  0.0168519
  3  0.650093
  4  0.0049801
  5  2.37546e-05
  6  0.00123926
  7  0.00160725
  8  0.451327
  9  37.4755
  10  16.0111
  11  5.50339
  12  13.4318
  13  0.0217447
  14  10.5076
  15  0.24033
  16  8.90838
  17  1.62321
  18  1.43378
  19  0.000189531
  20  18.3411
  21  12.7782
  22  0.279498
  23  8.48987
  24  0.382673
  25  0.170201
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  9.245e+00  5.503e+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.164e+00  1.702e-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.059e-01  3.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.54
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.46e-05

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) = 10955.8069312
delta logL = 1.76447582311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10955.8022285
delta logL = 1.76917854683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8138       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4150       1.0000          .0000       5.0000    
     3 'Normalizat'    .34471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1498       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=   10955.80     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8149        6.1008        .87195E-06   -.98423E-04
   2  alpha         1.4151        .37121        .13830E-04   -.23276E-04
   3  Normalizat    .34474        .25913        .41010E-05    .75153E-05
   4  Prefactor     1.1498        .13530       -.13147E-05   -.28746E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.81488
  alpha      = 1.41509
  Normalizat = 0.344744
  Prefactor  = 1.1498
 **********
 **   18 **HESSE 
 **********

 FCN=   10955.80     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8149        6.0255        .12792E-03   -1.5081    
   2  alpha         1.4151        .35862        .12847E-01   -.44889    
   3  Normalizat    .34474        .23853        .64623E-03   -1.2026    
   4  Prefactor     1.1498        .12433        .18899E-03   -.87890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90084e-10
Minuit parameter uncertainties:
  1  6.0259
  2  0.360149
  3  0.239235
  4  0.124363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253815': 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) = 10955.8022283
delta logL = 1.76917870149

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  9.815e+00  6.026e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  1.415e+00  3.601e-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:  1.150e+00  1.244e-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.447e-01  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.04
Ra Dec: 334.813 18.103
Photon Index (Free Index): 1.42 +/- 0.36
Photon Flux (Free Index): 3.37e-08 +/- 2.24e-08
Energy Flux (Free Index): 7.11e-05 +/- 5.57e-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/253815/cmap_HighResolution_579139201_579398401_4FGL_J2219.2+1806_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='7.11e-05', photon_flux_error='3.44e-08', dlogl='1.77e+00', energy_flux='2.46e-05', photon_flux2='3.37e-08', job_status='DONE', time_completed='2021-09-28 09:05:51.170957', photon_index_error2='0.36', photon_index2='1.42', ts='5.54', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='5.57e-05', EG='0.31', time_epoch_completed='1632845151.17', return_code='0', job_id='253815', GAL2='1.15', EG2='0.34', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='2.24e-08', ts2='9.04', photon_index='2.18' WHERE bin_id='1311' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:05:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 253815: <4FGL_J2219.2+1806_daily_bin1311> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1311> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:50:34 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:50:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:50:37 2021
Terminated at Tue Sep 28 09:05:51 2021
Results reported at Tue Sep 28 09:05:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1311 334.813 18.1026 579139201 579398401 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 :                                   793.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

