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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1588
RA = 334.823, Dec = -3.7102
tmin = 650937601, tmax = 651196801
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='262863', job_status='RUN', time_executed='2021-09-28 09:24:10.906992', time_epoch_executed='1632846250.91' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262863/ft1_4FGL_J2219.2-0342_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262863/ft2_4FGL_J2219.2-0342_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262863/ft1_4FGL_J2219.2-0342_daily_bin1588.fits outfile=/scratch/kocevski/262863/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1588.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=650937601.0 tmax=651196801.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.62
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262863/ft2_4FGL_J2219.2-0342_daily_bin1588.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/262863/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1588.fits evtable="EVENTS" outfile="/scratch/kocevski/262863/ft1_filtered_4FGL_J2219.2-0342_daily_bin1588.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262863/ft1_filtered_4FGL_J2219.2-0342_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/262863/ft2_4FGL_J2219.2-0342_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/262863/ltcube_650937601_651196801_4FGL_J2219.2-0342_daily_bin1588.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/262863/ft2_4FGL_J2219.2-0342_daily_bin1588.fits
.....................!
real 11.97
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262863/ft1_filtered_4FGL_J2219.2-0342_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/262863/ft2_4FGL_J2219.2-0342_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/262863/ltcube_650937601_651196801_4FGL_J2219.2-0342_daily_bin1588.fits outfile=/scratch/kocevski/262863/expmap_650937601_651196801_4FGL_J2219.2-0342_daily_bin1588.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/262863/ltcube_650937601_651196801_4FGL_J2219.2-0342_daily_bin1588.fits
.....................!
real 190.69
user 185.55
sys 4.74

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/262863/ft1_filtered_4FGL_J2219.2-0342_daily_bin1588.fits scfile=/scratch/kocevski/262863/ft2_4FGL_J2219.2-0342_daily_bin1588.fits outfile=/scratch/kocevski/262863/cmap_650937601_651196801_4FGL_J2219.2-0342_daily_bin1588.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262863/ft1_filtered_4FGL_J2219.2-0342_daily_bin1588.fits scfile=/scratch/kocevski/262863/ft2_4FGL_J2219.2-0342_daily_bin1588.fits outfile=/scratch/kocevski/262863/cmap_HighResolution_650937601_651196801_4FGL_J2219.2-0342_daily_bin1588.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.58
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262863/ft1_filtered_4FGL_J2219.2-0342_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/262863/ft2_4FGL_J2219.2-0342_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262863/Model_4FGL_J2219.2-0342_daily_bin1588.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/262863/ft1_filtered_4FGL_J2219.2-0342_daily_bin1588.fits.....................!
real 55.56
user 54.26
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7358       1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.821       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11317E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.551       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.877       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.029       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5846       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1005       1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.942       1.0000         .10000E-03   10000.    
    18 'norm      '    .63103E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.123       1.0000         .10000E-03   10000.    
    20 'norm      '    .13360E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .48576       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1811       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=   5330.901     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2733 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7345        3.6839        .12267E-05    .29384E-03
   2  Prefactor     52.785        42.209       -.48371E-06   -.37468E-04
   3  Prefactor     .10000E-03    30.589       -.17824E-06** at limit **
   4  Prefactor     .10000E-03    16.421        .11873E-06** at limit **
   5  Prefactor     .10000E-03    2.5670       -.69015E-07** at limit **
   6  Prefactor     30.304        11.547       -.25760E-07   -.15355E-04
   7  Prefactor     .10000E-03    7.2416       -.11678E-06** at limit **
   8  Prefactor     .10000E-03    7.4581       -.16135E-07** at limit **
   9  Prefactor     49.012        25.017       -.88943E-07    .45123E-06
  10  Prefactor     .10000E-03    8.4875       -.19129E-07** at limit **
  11  Prefactor     14.538        13.793       -.16583E-07    .54231E-06
  12  Prefactor     29.871        31.478        .65636E-07   -.11544E-04
  13  Prefactor     11.702        15.728       -.22459E-06   -.18430E-05
  14  Prefactor     15.078        86.947       -.21393E-05    .82631E-05
  15  Prefactor     3.5825        5.1019        .22985E-06    .21864E-04
  16  norm          8.1011        4.7680        .90376E-07   -.37365E-04
  17  Prefactor     66.071        76.262       -.26424E-05    .56558E-04
  18  norm          .10001E-03    .64496       -.11565E-06** at limit **
  19  Prefactor     18.061        23.153        .22584E-05   -.18829E-03
  20  norm          .10000E-03    1.4101        .19366E-07** at limit **
  21  Prefactor     .10000E-03    24.950       -.27687E-07** at limit **
  22  norm          .10000E-03    17.664       -.35532E-06** at limit **
  23  Normalizat    .48569        .28538        .69776E-06   -.47303E-04
  24  Prefactor     1.1811        .16289       -.31717E-06   -.38644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.73453
  Prefactor  = 52.7847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.0123
  Prefactor  = 0.0001
  Prefactor  = 14.5375
  Prefactor  = 29.8712
  Prefactor  = 11.7019
  Prefactor  = 15.0784
  Prefactor  = 3.58247
  norm       = 8.10109
  Prefactor  = 66.071
  norm       = 0.000100008
  Prefactor  = 18.061
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.485693
  Prefactor  = 1.18106
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.901     FROM HESSE     STATUS=OK           409 CALLS     3142 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7345        3.7327        .65842E-03   -1.5321    
   2  Prefactor     52.785        42.072        .55186E-04   -1.4254    
   3  Prefactor     .10000E-03    30.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5726        .11424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.304        11.515        .72782E-04   -1.4606    
   7  Prefactor     .10000E-03    7.3470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.012        24.990        .57265E-04   -1.4307    
  10  Prefactor     .10000E-03    8.4976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.538        13.774        .10500E-03   -1.4945    
  12  Prefactor     29.871        31.425        .73300E-04   -1.4614    
  13  Prefactor     11.702        15.582        .11705E-03   -1.5024    
  14  Prefactor     15.078        85.861        .10332E-03   -1.4931    
  15  Prefactor     3.5825        5.0524        .17435E-03   -1.5329    
  16  norm          8.1011        4.7551        .11425E-03   -1.5139    
  17  Prefactor     66.071        74.644        .24712E-03   -1.4080    
  18  norm          .10001E-03    1.4632        .20598E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.061        24.458        .94081E-04   -1.4858    
  20  norm          .10000E-03    2.3028        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    18.120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .48569        .29664        .43201E-03   -1.1308    
  24  Prefactor     1.1811        .17400        .17825E-03   -.86916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13972e-10
Minuit parameter uncertainties:
  1  3.73288
  2  42.0953
  3  6.49614e-05
  4  2.06403e-05
  5  1.02644e-06
  6  11.5158
  7  1.61941e-06
  8  4.83288e-06
  9  24.9953
  10  1.75546e-06
  11  13.7768
  12  31.442
  13  15.5873
  14  72.1204
  15  5.05299
  16  4.75533
  17  74.7503
  18  0.000217474
  19  24.4715
  20  0.000104644
  21  8.19347e-05
  22  3.46752e-05
  23  0.29761
  24  0.174086
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.170e+01  1.559e+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:  1.181e+00  1.741e-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:  4.857e-01  2.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262863/likelihoodResults_650937601_651196801_4FGL_J2219.2-0342_daily_bin1588.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5328.74216871
delta logL = 2.15853429493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5328.71539368
delta logL = 2.18530932246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4928       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1108       1.0000          .0000       10.000    
     3 'Normalizat'    .36786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2310       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=   5328.715     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      259 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4921        13.810        .87697E-02    .46212E-03
   2  Index         5.1112        3.4758        .11749        .11033E-03
   3  Normalizat    .36795        .80432E-01    .11109        .47833E-04
   4  Prefactor     1.2310        .50521E-01    .33935E-01   -.29979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49211
  Index      = 5.11116
  Normalizat = 0.367947
  Prefactor  = 1.23101
 **********
 **   18 **HESSE 
 **********

 FCN=   5328.715     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4921        22.672        .46916E-04   -1.5464    
   2  Index         5.1112        7.2117        .48533E-02    .22235E-01
   3  Normalizat    .36795        .26785        .49204E-03   -1.1899    
   4  Prefactor     1.2310        .16318        .17477E-03   -.85382    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86346e-10
Minuit parameter uncertainties:
  1  11.6375
  2  5.31037
  3  0.268787
  4  0.163249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262863': 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) = 5328.7153936
delta logL = 2.18530940452

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.492e+00  1.164e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  5.111e+00  5.310e+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:  1.231e+00  1.632e-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:  3.679e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.56
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 5.11 +/- 5.31
Photon Flux (Free Index): 1.45e-07 +/- 1.03e-07
Energy Flux (Free Index): 1.91e-05 +/- 1.97e-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/262863/cmap_HighResolution_650937601_651196801_4FGL_J2219.2-0342_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', energy_flux2='1.91e-05', dlogl='2.19e+00', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-28 09:34:11.644873', photon_index_error2='5.31', photon_index2='5.11', ts='0.82', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.97e-05', EG='0.49', time_epoch_completed='1632846851.64', return_code='0', job_id='262863', GAL2='1.23', EG2='0.37', return_code2='102', photon_flux_error2='1.03e-07', ts2='5.56', photon_index='2.68' WHERE bin_id='1588' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 262863: <4FGL_J2219.2-0342_daily_bin1588> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1588> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:31 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:32 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:20:32 2021
Terminated at Tue Sep 28 09:34:12 2021
Results reported at Tue Sep 28 09:34:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1588 334.823 -3.7102 650937601 651196801 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 :                                   599.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             284.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

