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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1022
RA = 334.823, Dec = -3.7102
tmin = 504230401, tmax = 504489601
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='259961', job_status='RUN', time_executed='2021-09-28 09:14:16.603412', time_epoch_executed='1632845656.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259961/ft1_4FGL_J2219.2-0342_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259961/ft2_4FGL_J2219.2-0342_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259961/ft1_4FGL_J2219.2-0342_daily_bin1022.fits outfile=/scratch/kocevski/259961/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1022.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=504230401.0 tmax=504489601.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.59
user 3.37
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259961/ft1_filtered_4FGL_J2219.2-0342_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/259961/ft2_4FGL_J2219.2-0342_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/259961/ltcube_504230401_504489601_4FGL_J2219.2-0342_daily_bin1022.fits outfile=/scratch/kocevski/259961/expmap_504230401_504489601_4FGL_J2219.2-0342_daily_bin1022.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/259961/ltcube_504230401_504489601_4FGL_J2219.2-0342_daily_bin1022.fits
.....................!
real 189.93
user 184.89
sys 4.69

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/259961/ft1_filtered_4FGL_J2219.2-0342_daily_bin1022.fits scfile=/scratch/kocevski/259961/ft2_4FGL_J2219.2-0342_daily_bin1022.fits outfile=/scratch/kocevski/259961/cmap_504230401_504489601_4FGL_J2219.2-0342_daily_bin1022.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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259961/ft1_filtered_4FGL_J2219.2-0342_daily_bin1022.fits scfile=/scratch/kocevski/259961/ft2_4FGL_J2219.2-0342_daily_bin1022.fits outfile=/scratch/kocevski/259961/cmap_HighResolution_504230401_504489601_4FGL_J2219.2-0342_daily_bin1022.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26854E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0006       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6156       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.030       1.0000         .10000E-03   10000.    
    12 'Prefactor '    126.58       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.058       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.213       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.122       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.090       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8659       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .51634       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=   6775.622     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2774 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.1872        .19972E-05** at limit **
   2  Prefactor     5.9835        63.493       -.30625E-04   -.10389E-03
   3  Prefactor     26.995        47.857       -.79607E-05   -.17257E-03
   4  Prefactor     .10000E-03    28.235       -.76165E-05** at limit **
   5  Prefactor     .10004E-03    3.8432        .20904E-05** at limit **
   6  Prefactor     .10000E-03    5.3403        .12702E-06** at limit **
   7  Prefactor     6.6175        9.0061       -.91737E-06   -.15560E-03
   8  Prefactor     .10000E-03    29.659        .80676E-05** at limit **
   9  Prefactor     22.218        16.808       -.63421E-06    .25605E-05
  10  Prefactor     .10000E-03    7.8610       -.26985E-08** at limit **
  11  Prefactor     24.031        17.249        .13002E-05   -.17586E-04
  12  Prefactor     126.59        52.254        .57561E-05   -.83544E-04
  13  Prefactor     .10004E-03    5.9000       -.22056E-05** at limit **
  14  Prefactor     .10000E-03    113.27        .47075E-05** at limit **
  15  Prefactor     .10000E-03    1.5735       -.42093E-06** at limit **
  16  norm          10.059        5.4709       -.48603E-05   -.18556E-03
  17  Prefactor     38.328        103.66        .17010E-03    .30173E-04
  18  norm          .10000E-03    .42588        .20005E-07** at limit **
  19  Prefactor     .10000E-03    113.74        .46912E-06** at limit **
  20  norm          21.123        3.6128        .25985E-07   -.16850E-04
  21  Prefactor     .10000E-03    6.1649        .94224E-07** at limit **
  22  norm          11.090        10.571       -.38840E-07   -.37716E-04
  23  Normalizat    1.8659        .24266       -.27463E-05   -.16130E-03
  24  Prefactor     .51630        .13063       -.22742E-05   -.38551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 5.98351
  Prefactor  = 26.9951
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 6.61749
  Prefactor  = 0.0001
  Prefactor  = 22.2181
  Prefactor  = 0.0001
  Prefactor  = 24.0312
  Prefactor  = 126.587
  Prefactor  = 0.000100044
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.0592
  Prefactor  = 38.3285
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.123
  Prefactor  = 0.0001
  norm       = 11.0898
  Normalizat = 1.8659
  Prefactor  = 0.516296
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.622     FROM HESSE     STATUS=OK           395 CALLS     3169 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    4.6777        .22935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9835        62.653        .16392E-03   -1.5219    
   3  Prefactor     26.995        47.105        .77094E-04   -1.4668    
   4  Prefactor     .10000E-03    28.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    24.126        .31154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6175        8.9988        .15602E-03   -1.5193    
   8  Prefactor     .10000E-03    29.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.218        16.803        .84983E-04   -1.4765    
  10  Prefactor     .10000E-03    7.8697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.031        17.334        .81715E-04   -1.4727    
  12  Prefactor     126.59        52.289        .35781E-04   -1.3453    
  13  Prefactor     .10004E-03    25.156        .38200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    113.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5809        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.059        5.4825        .12635E-03   -1.5074    
  17  Prefactor     38.328        103.40        .64837E-04   -1.4469    
  18  norm          .10000E-03    .43320        .52429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    114.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.123        3.6002        .62125E-04   -1.4788    
  21  Prefactor     .10000E-03    6.1854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.090        10.582        .12031E-03   -1.5042    
  23  Normalizat    1.8659        .28618        .27554E-03   -.67956    
  24  Prefactor     .51630        .15269        .27101E-03   -1.1123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71852e-09
Minuit parameter uncertainties:
  1  0.000431511
  2  38.7758
  3  47.1696
  4  5.43047e-05
  5  0.00205656
  6  3.86819e-05
  7  9.00065
  8  5.87568e-05
  9  16.8064
  10  2.35745e-05
  11  17.3378
  12  52.3076
  13  0.0021001
  14  0.000503241
  15  5.31556e-05
  16  5.48277
  17  103.884
  18  2.09778e-06
  19  3.18929e-05
  20  3.60021
  21  1.42277e-06
  22  10.5834
  23  0.286443
  24  0.152807
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.100e-03  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:  5.163e-01  1.528e-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.866e+00  2.864e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259961/likelihoodResults_504230401_504489601_4FGL_J2219.2-0342_daily_bin1022.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) = 6775.62176458
delta logL = -0.000188083814464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6775.62157652
delta logL = -2.30211298913e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6749       1.0000          .0000       10.000    
     3 'Normalizat'    1.8659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51630       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=   6775.622     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      230 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .75013        .90712E-01** at limit **
   2  Index         2.6678        6.4105        .50000        .23632E-05
   3  Normalizat    1.8659        .21601E-02    .62312E-01    .46729E-04
   4  Prefactor     .51630        .12100E-02    .61250E-01    .72450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66784
  Normalizat = 1.8659
  Prefactor  = 0.516298
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.622     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1725.1        .38370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6678        5.9745        .50000       -.48525    
   3  Normalizat    1.8659        .55494E-01    .27554E-03   -.67956    
   4  Prefactor     .51630        .31041E-01    .27101E-03   -1.1123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.72945e-07
Minuit parameter uncertainties:
  1  0.00139055
  2  1896.87
  3  0.0554959
  4  0.0310418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259961': 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) = 6775.62157649
delta logL = 9.19044396142e-09

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.391e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.668e+00  1.897e+03  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:  5.163e-01  3.104e-02  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.866e+00  5.550e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/259961/cmap_HighResolution_504230401_504489601_4FGL_J2219.2-0342_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.70e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-28 09:25:40.006225', job_id='259961', GAL2='0.52', fit_tolerance='1e-08', EG2='1.87', EG='1.87', time_epoch_completed='1632846340.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='9.19e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1022' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 259961: <4FGL_J2219.2-0342_daily_bin1022> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1022> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:56 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10: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:10:58 2021
Terminated at Tue Sep 28 09:25:40 2021
Results reported at Tue Sep 28 09:25:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1022 334.823 -3.7102 504230401 504489601 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 :                                   682.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

