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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1412
RA = 334.823, Dec = -3.7102
tmin = 605318401, tmax = 605577601
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='261612', job_status='RUN', time_executed='2021-09-28 09:19:15.872001', time_epoch_executed='1632845955.87' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261612

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261612/ft1_4FGL_J2219.2-0342_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261612/ft1_4FGL_J2219.2-0342_daily_bin1412.fits outfile=/scratch/kocevski/261612/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1412.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=605318401.0 tmax=605577601.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.55
user 5.26
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.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/261612/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1412.fits evtable="EVENTS" outfile="/scratch/kocevski/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/261612/ltcube_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.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/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits
.....................!
real 11.74
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/261612/ltcube_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.fits outfile=/scratch/kocevski/261612/expmap_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.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/261612/ltcube_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.fits
.....................!
real 193.57
user 186.70
sys 5.68

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.fits scfile=/scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits outfile=/scratch/kocevski/261612/cmap_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.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.823 yref=-3.7102 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.fits scfile=/scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits outfile=/scratch/kocevski/261612/cmap_HighResolution_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.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.823 yref=-3.7102 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261612/Model_4FGL_J2219.2-0342_daily_bin1412.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/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.fits.....................!
real 52.82
user 51.18
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.fits', '/scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits', expMap='/scratch/kocevski/261612/expmap_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.fits', expCube='/scratch/kocevski/261612/ltcube_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261612/Model_4FGL_J2219.2-0342_daily_bin1412.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2-0342'

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.492e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261612/ft1_filtered_4FGL_J2219.2-0342_daily_bin1412.fits
Spacecraft file(s): /scratch/kocevski/261612/ft2_4FGL_J2219.2-0342_daily_bin1412.fits
Exposure map: /scratch/kocevski/261612/expmap_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.fits
Exposure cube: /scratch/kocevski/261612/ltcube_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261612/Model_4FGL_J2219.2-0342_daily_bin1412.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) = 4966.09249989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30328       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.471       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4847       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.154       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16231E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4666       1.0000         .10000E-03   10000.    
    16 'norm      '    .69553E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .36726       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.011       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6888       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3455       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4966.069     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2905 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30307        3.3390        .74480E-06   -.41968E-03
   2  Prefactor     .10000E-03    13.154        .37675E-07** at limit **
   3  Prefactor     53.224        65.645        .23778E-06   -.92112E-04
   4  Prefactor     .10000E-03    21.896        .11872E-05** at limit **
   5  Prefactor     .10000E-03    4.4259        .10272E-06** at limit **
   6  Prefactor     .10000E-03    2.8462        .95613E-08** at limit **
   7  Prefactor     9.4771        12.506        .22092E-06    .25518E-05
   8  Prefactor     30.149        19.327        .11465E-07    .37470E-05
   9  Prefactor     .10000E-03    16.812       -.99449E-06** at limit **
  10  Prefactor     .10000E-03    25.547       -.70805E-06** at limit **
  11  Prefactor     .10000E-03    5.9472        .54076E-07** at limit **
  12  Prefactor     .10000E-03    16.227        .12160E-05** at limit **
  13  Prefactor     5.7908        19.868       -.32850E-05    .11639E-04
  14  Prefactor     .10000E-03    315.04        .15043E-04** at limit **
  15  Prefactor     2.4655        7.1870        .27475E-05    .24169E-03
  16  norm          .25067E-01    3.4324       -.10599E-05    .51741E-03
  17  Prefactor     .10000E-03    36.349        .72877E-06** at limit **
  18  norm          .36697        1.1600        .48805E-06   -.53154E-05
  19  Prefactor     .10000E-03    40.658        .59495E-07** at limit **
  20  norm          28.014        4.9413       -.67751E-07    .11297E-03
  21  Prefactor     .10000E-03    8.1494        .20048E-07** at limit **
  22  norm          1.6726        57.657       -.57837E-07   -.20353E-05
  23  Normalizat    1.3461        .26782        .89899E-06    .73150E-04
  24  Prefactor     .79048        .14615       -.13311E-06    .11697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.303071
  Prefactor  = 0.0001
  Prefactor  = 53.2244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.47705
  Prefactor  = 30.1494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79084
  Prefactor  = 0.000100004
  Prefactor  = 2.4655
  norm       = 0.0250674
  Prefactor  = 0.0001
  norm       = 0.366975
  Prefactor  = 0.0001
  norm       = 28.0144
  Prefactor  = 0.0001
  norm       = 1.67256
  Normalizat = 1.34615
  Prefactor  = 0.790478
 **********
 **   18 **HESSE 
 **********

 FCN=   4966.069     FROM HESSE     STATUS=OK           409 CALLS     3314 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30307        6.4962        .22206E-02   -1.5598    
   2  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.224        65.178        .27425E-03   -1.4248    
   4  Prefactor     .10000E-03    21.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5076        .14475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8536        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4771        12.502        .13013E-03   -1.5092    
   8  Prefactor     30.149        19.333        .72963E-04   -1.4609    
   9  Prefactor     .10000E-03    16.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9538        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7908        19.766        .16704E-03   -1.5227    
  14  Prefactor     .10000E-03    314.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4655        7.2224        .25227E-03   -1.5394    
  16  norm          .25067E-01    7.7406        .39226E-01   -1.5676    
  17  Prefactor     .10000E-03    36.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .36697        1.1869        .12825E-02   -1.5587    
  19  Prefactor     .10000E-03    40.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.014        4.9282        .63052E-04   -1.4649    
  21  Prefactor     .10000E-03    8.1605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6726        58.340        .32396E-03   -1.5449    
  23  Normalizat    1.3461        .32091        .29403E-03   -.82199    
  24  Prefactor     .79048        .17456        .21610E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08371e-08
Minuit parameter uncertainties:
  1  2.80616
  2  7.45315e-06
  3  65.2659
  4  4.71289e-05
  5  2.17915e-06
  6  1.28573e-06
  7  12.5055
  8  19.3368
  9  4.92391e-05
  10  5.41806e-05
  11  1.63739e-06
  12  3.92001e-05
  13  19.7884
  14  0.00238323
  15  7.22497
  16  0.879347
  17  3.64376e-05
  18  1.18698
  19  5.07895e-06
  20  4.92827
  21  2.38285e-07
  22  19.7765
  23  0.321389
  24  0.174682
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.791e+00  1.979e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  7.905e-01  1.747e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.346e+00  3.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261612/likelihoodResults_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4964.23501333
delta logL = 1.83360927954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4963.68811158
delta logL = 2.38051102651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62273E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.1466       1.0000          .0000       10.000    
     3 'Normalizat'    1.1098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88927       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4963.688     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      319 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61769E-02    .55897E-01    .64990E-03    .71251E-02
   2  Index         9.1521        8.1746        .18694        .38047E-04
   3  Normalizat    1.1095        .93256E-01    .71961E-01    .11723E-04
   4  Prefactor     .88936        .54488E-01    .44868E-01    .46874E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00617685
  Index      = 9.15212
  Normalizat = 1.10951
  Prefactor  = 0.889361
 **********
 **   18 **HESSE 
 **********

 FCN=   4963.688     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      352 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61769E-02    .86238E-01    .28159E-05   -1.5692    
   2  Index         9.1521        8.8088        .85456E-02    .97987    
   3  Normalizat    1.1095        .28324        .31844E-03   -.89447    
   4  Prefactor     .88936        .16160        .20499E-03   -.96514    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.75557e-11
Minuit parameter uncertainties:
  1  0.0457847
  2  4.86272
  3  0.283629
  4  0.161683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261612': 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): 102
logL (Free Index) = 4963.6881097
delta logL = 2.38051291445

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.177e-03  4.578e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  9.152e+00  4.863e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.894e-01  1.617e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.110e+00  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 9.15 +/- 4.86
Photon Flux (Free Index): 2.17e-07 +/- 1.13e-07
Energy Flux (Free Index): 2.46e-05 +/- 1.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/261612/cmap_HighResolution_605318401_605577601_4FGL_J2219.2-0342_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', energy_flux2='2.46e-05', dlogl='2.38e+00', photon_flux2='2.17e-07', job_status='DONE', time_completed='2021-09-28 09:29:30.602756', photon_index_error2='4.86', photon_index2='9.15', ts='0.14', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='1.34e-05', EG='1.35', time_epoch_completed='1632846570.6', return_code='0', job_id='261612', GAL2='0.89', EG2='1.11', return_code2='102', photon_flux_error2='1.13e-07', ts2='5.52', photon_index='2.68' WHERE bin_id='1412' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:29:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 261612: <4FGL_J2219.2-0342_daily_bin1412> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1412> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:57 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:15:58 2021
Terminated at Tue Sep 28 09:29:30 2021
Results reported at Tue Sep 28 09:29:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1412 334.823 -3.7102 605318401 605577601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

