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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1157
RA = 334.823, Dec = -3.7102
tmin = 539222401, tmax = 539481601
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='261215', job_status='RUN', time_executed='2021-09-28 09:17:54.398942', time_epoch_executed='1632845874.4' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261215/ft1_4FGL_J2219.2-0342_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261215/ft1_4FGL_J2219.2-0342_daily_bin1157.fits outfile=/scratch/kocevski/261215/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1157.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=539222401.0 tmax=539481601.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.59
user 5.33
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.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/261215/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/261215/ltcube_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.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/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits
.....................!
real 11.69
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/261215/ltcube_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.fits outfile=/scratch/kocevski/261215/expmap_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.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/261215/ltcube_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.fits
.....................!
real 190.51
user 185.63
sys 4.53

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/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.fits scfile=/scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits outfile=/scratch/kocevski/261215/cmap_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.fits scfile=/scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits outfile=/scratch/kocevski/261215/cmap_HighResolution_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261215/Model_4FGL_J2219.2-0342_daily_bin1157.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/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.fits.....................!
real 66.98
user 65.62
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.fits', '/scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits', expMap='/scratch/kocevski/261215/expmap_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.fits', expCube='/scratch/kocevski/261215/ltcube_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261215/Model_4FGL_J2219.2-0342_daily_bin1157.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/261215/ft1_filtered_4FGL_J2219.2-0342_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/261215/ft2_4FGL_J2219.2-0342_daily_bin1157.fits
Exposure map: /scratch/kocevski/261215/expmap_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.fits
Exposure cube: /scratch/kocevski/261215/ltcube_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261215/Model_4FGL_J2219.2-0342_daily_bin1157.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) = 7033.82143532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.168       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33314E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24945E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45645E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.614       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11447E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11743E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.586       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46250E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4590       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95129E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .89843E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.231       1.0000         .10000E-03   10000.    
    20 'norm      '    14.479       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.5967       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4020       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61512       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=   7033.670     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     2515 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .83363        .28958E-06** at limit **
   2  Prefactor     68.484        39.051       -.18134E-04    .81770E-04
   3  Prefactor     .10008E-03    244.38       -.91325E-04** at limit **
   4  Prefactor     .10000E-03    17.523       -.60196E-07** at limit **
   5  Prefactor     .10000E-03    2.8943       -.13664E-06** at limit **
   6  Prefactor     .10000E-03    2.4015       -.21617E-06** at limit **
   7  Prefactor     .10000E-03    4.0741        .24364E-06** at limit **
   8  Prefactor     32.271        23.395       -.14985E-05    .10048E-04
   9  Prefactor     .10000E-03    31.301       -.95629E-06** at limit **
  10  Prefactor     .10000E-03    7.8676       -.40653E-06** at limit **
  11  Prefactor     .10000E-03    5.0674        .21107E-07** at limit **
  12  Prefactor     23.566        25.656        .47064E-05    .27708E-05
  13  Prefactor     .10000E-03    5.3797       -.55641E-06** at limit **
  14  Prefactor     16.574        64.237        .17519E-05    .15386E-04
  15  Prefactor     .10000E-03    1.8014       -.23359E-07** at limit **
  16  norm          5.4697        3.3375       -.42301E-06   -.10695E-03
  17  Prefactor     .10000E-03    78.467        .10325E-05** at limit **
  18  norm          .90299E-01    .32145       -.64120E-06   -.25759E-02
  19  Prefactor     82.418        67.106        .21911E-04   -.17879E-03
  20  norm          14.472        5.8440       -.39908E-05    .16651E-02
  21  Prefactor     .10000E-03    3.5526        .32015E-06** at limit **
  22  norm          7.5331        12.110       -.10024E-05   -.64411E-04
  23  Normalizat    1.4019        .19755        .28778E-06    .48739E-03
  24  Prefactor     .61493        .11256        .85613E-06    .45647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 68.4839
  Prefactor  = 0.00010008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5659
  Prefactor  = 0.000100001
  Prefactor  = 16.5735
  Prefactor  = 0.0001
  norm       = 5.46965
  Prefactor  = 0.0001
  norm       = 0.0902995
  Prefactor  = 82.4177
  norm       = 14.4715
  Prefactor  = 0.0001
  norm       = 7.53311
  Normalizat = 1.40186
  Prefactor  = 0.614935
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.670     FROM HESSE     STATUS=OK           391 CALLS     2906 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .84206        .74780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.484        39.373        .48615E-04   -1.4051    
   3  Prefactor     .10008E-03    250.46        .36753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.537        .21466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9023        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.720        .24948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0918        .16531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.271        23.391        .71263E-04   -1.4571    
   9  Prefactor     .10000E-03    32.707        .41342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.566        25.643        .82480E-04   -1.4737    
  13  Prefactor     .10000E-03    17.951        .37199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.574        64.214        .95569E-04   -1.4894    
  15  Prefactor     .10000E-03    1.8205        .10976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4697        3.3373        .11276E-03   -1.5240    
  17  Prefactor     .10000E-03    78.630        .18167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .90299E-01    .38923        .87474E-03   -1.5648    
  19  Prefactor     82.418        69.922        .44294E-04   -1.3890    
  20  norm          14.472        6.0954        .60437E-04   -1.4947    
  21  Prefactor     .10000E-03    3.5565        .15438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.5331        12.126        .14550E-03   -1.5159    
  23  Normalizat    1.4019        .23091        .25932E-03   -.80575    
  24  Prefactor     .61493        .13257        .22263E-03   -1.0696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2649e-09
Minuit parameter uncertainties:
  1  2.41483e-05
  2  39.3875
  3  0.00896538
  4  5.19054e-05
  5  1.43264e-05
  6  4.17791e-05
  7  1.72716e-05
  8  23.3978
  9  5.61494e-05
  10  8.70658e-06
  11  1.2136e-05
  12  25.6551
  13  0.000251044
  14  64.4833
  15  2.32195e-06
  16  3.33743
  17  7.11885e-05
  18  0.374748
  19  69.9923
  20  6.0957
  21  2.52499e-06
  22  12.1299
  23  0.23108
  24  0.132639
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.510e-04  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:  6.149e-01  1.326e-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.402e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261215/likelihoodResults_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.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) = 7033.67044953
delta logL = -0.000263792275291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7033.67018577
delta logL = -3.33138814312e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6758       1.0000          .0000       10.000    
     3 'Normalizat'    1.4019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61494       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=   7033.670     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      222 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .51999        .90712E-01** at limit **
   2  Index         2.6699        5.6478        .50000        .26807E-05
   3  Normalizat    1.4019        .17426E-02    .58640E-01    .54222E-05
   4  Prefactor     .61494        .10389E-02    .41257E-01    .32083E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66991
  Normalizat = 1.40186
  Prefactor  = 0.614935
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.670     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      257 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    201.86        .33183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6699        5.0262        .50000       -.48478    
   3  Normalizat    1.4019        .16606E-01    .25932E-03   -.80575    
   4  Prefactor     .61494        .99004E-02    .22263E-03   -1.0696    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04626e-07
Minuit parameter uncertainties:
  1  8.77673e-05
  2  537.786
  3  0.0166056
  4  0.00990039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261215': 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) = 7033.67018573
delta logL = 8.32278601592e-09

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  8.777e-05  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.670e+00  5.378e+02  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:  6.149e-01  9.900e-03  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.402e+00  1.661e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.823 -3.710

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/261215/cmap_HighResolution_539222401_539481601_4FGL_J2219.2-0342_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='8.87e-08', time_completed='2021-09-28 09:29:38.456349', job_id='261215', GAL2='0.61', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632846578.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='8.32e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1157' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:29:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 261215: <4FGL_J2219.2-0342_daily_bin1157> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1157> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:22 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:24 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:24 2021
Terminated at Tue Sep 28 09:29:39 2021
Results reported at Tue Sep 28 09:29:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1157 334.823 -3.7102 539222401 539481601 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 :                                   702.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

