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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1523
RA = 334.823, Dec = -3.7102
tmin = 634089601, tmax = 634348801
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='262767', job_status='RUN', time_executed='2021-09-28 09:24:13.711139', time_epoch_executed='1632846253.71' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262767/ft1_4FGL_J2219.2-0342_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262767/ft2_4FGL_J2219.2-0342_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262767/ft1_4FGL_J2219.2-0342_daily_bin1523.fits outfile=/scratch/kocevski/262767/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1523.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=634089601.0 tmax=634348801.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 4.91
user 4.66
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262767/ft1_filtered_4FGL_J2219.2-0342_daily_bin1523.fits" evtable="EVENTS" scfile=/scratch/kocevski/262767/ft2_4FGL_J2219.2-0342_daily_bin1523.fits sctable="SC_DATA" outfile=/scratch/kocevski/262767/ltcube_634089601_634348801_4FGL_J2219.2-0342_daily_bin1523.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/262767/ft2_4FGL_J2219.2-0342_daily_bin1523.fits
.....................!
real 14.74
user 14.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262767/ft1_filtered_4FGL_J2219.2-0342_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/262767/ft2_4FGL_J2219.2-0342_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/262767/ltcube_634089601_634348801_4FGL_J2219.2-0342_daily_bin1523.fits outfile=/scratch/kocevski/262767/expmap_634089601_634348801_4FGL_J2219.2-0342_daily_bin1523.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/262767/ltcube_634089601_634348801_4FGL_J2219.2-0342_daily_bin1523.fits
.....................!
real 190.63
user 186.03
sys 4.25

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/262767/ft1_filtered_4FGL_J2219.2-0342_daily_bin1523.fits scfile=/scratch/kocevski/262767/ft2_4FGL_J2219.2-0342_daily_bin1523.fits outfile=/scratch/kocevski/262767/cmap_634089601_634348801_4FGL_J2219.2-0342_daily_bin1523.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.56
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262767/ft1_filtered_4FGL_J2219.2-0342_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/262767/ft2_4FGL_J2219.2-0342_daily_bin1523.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262767/Model_4FGL_J2219.2-0342_daily_bin1523.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/262767/ft1_filtered_4FGL_J2219.2-0342_daily_bin1523.fits.....................!
real 59.75
user 58.40
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.872       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85891       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.347       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7312       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.532       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10993E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.404       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.341       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8698       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7676       1.0000         .10000E-03   10000.    
    18 'norm      '    .23894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12876E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8928       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.944       1.0000         .10000E-03   10000.    
    22 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94813       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=   6100.474     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2900 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5449        .31323E-06** at limit **
   2  Prefactor     45.854        57.392       -.67704E-05    .46556E-04
   3  Prefactor     .97461        48.658       -.11365E-05   -.45994E-04
   4  Prefactor     18.093        78.515       -.67649E-07   -.28323E-04
   5  Prefactor     .10007E-03    8.5618        .48803E-06** at limit **
   6  Prefactor     1.7308        4.6757       -.87413E-06   -.63080E-03
   7  Prefactor     .10000E-03    4.5206        .11661E-07** at limit **
   8  Prefactor     26.511        22.921       -.62215E-05    .23601E-03
   9  Prefactor     .10000E-03    14.292       -.13114E-06** at limit **
  10  Prefactor     12.398        22.068        .25056E-05   -.53101E-04
  11  Prefactor     29.338        16.525       -.18441E-05    .18110E-03
  12  Prefactor     .10000E-03    32.858        .20607E-07** at limit **
  13  Prefactor     5.8678        8.3642       -.31571E-06   -.73822E-04
  14  Prefactor     .10000E-03    22.202        .33585E-07** at limit **
  15  Prefactor     .10000E-03    3.6421       -.81481E-07** at limit **
  16  norm          3.9677        3.6428       -.30757E-06   -.29943E-03
  17  Prefactor     9.7360        210.61        .10914E-04   -.11905E-04
  18  norm          .23903        .60218       -.28578E-06   -.24098E-02
  19  Prefactor     .10000E-03    60.083        .12988E-05** at limit **
  20  norm          1.8949        1.3887       -.12177E-06   -.36783E-03
  21  Prefactor     29.947        16.281        .17488E-05   -.16586E-03
  22  norm          .10000E-03    3.5070       -.16898E-07** at limit **
  23  Normalizat    1.0399        .23205        .16363E-05   -.31745E-04
  24  Prefactor     .94837        .13180        .14716E-07    .20386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.8545
  Prefactor  = 0.97461
  Prefactor  = 18.093
  Prefactor  = 0.000100069
  Prefactor  = 1.73082
  Prefactor  = 0.0001
  Prefactor  = 26.5114
  Prefactor  = 0.0001
  Prefactor  = 12.3975
  Prefactor  = 29.3383
  Prefactor  = 0.0001
  Prefactor  = 5.86776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.96771
  Prefactor  = 9.73597
  norm       = 0.239034
  Prefactor  = 0.0001
  norm       = 1.89494
  Prefactor  = 29.9465
  norm       = 0.0001
  Normalizat = 1.0399
  Prefactor  = 0.948366
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.474     FROM HESSE     STATUS=OK           421 CALLS     3321 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7441        .18584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.854        56.780        .59199E-04   -1.4353    
   3  Prefactor     .97461        54.641        .15203       -1.5511    
   4  Prefactor     18.093        81.291        .96163E-04   -1.4857    
   5  Prefactor     .10007E-03    11.175        .61467E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7308        4.7406        .27275E-03   -1.5445    
   7  Prefactor     .10000E-03    4.5273        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.511        22.531        .77774E-04   -1.4678    
   9  Prefactor     .10000E-03    14.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.398        21.956        .11374E-03   -1.5004    
  11  Prefactor     29.338        16.490        .73964E-04   -1.4624    
  12  Prefactor     .10000E-03    32.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8678        8.3629        .16576E-03   -1.5223    
  14  Prefactor     .10000E-03    22.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7940        .29067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9677        3.6403        .13470E-03   -1.5310    
  17  Prefactor     9.7360        209.39        .12822E-03   -1.5084    
  18  norm          .23903        .52371        .95869E-03   -1.5610    
  19  Prefactor     .10000E-03    60.967        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8949        1.3621        .75022E-04   -1.5433    
  21  Prefactor     29.947        16.219        .73217E-04   -1.4613    
  22  norm          .10000E-03    3.5108        .14285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0399        .27611        .31652E-03   -.91706    
  24  Prefactor     .94837        .15727        .19672E-03   -.94471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54465e-09
Minuit parameter uncertainties:
  1  5.21937e-05
  2  56.8471
  3  14.6083
  4  76.8759
  5  0.00175631
  6  4.74158
  7  2.26406e-06
  8  22.5383
  9  4.94063e-05
  10  21.9703
  11  16.4929
  12  0.000110738
  13  8.36461
  14  4.38958e-06
  15  1.53437e-05
  16  3.64047
  17  90.6648
  18  0.523716
  19  0.000114195
  20  1.3621
  21  16.2214
  22  2.63986e-06
  23  0.276495
  24  0.157348
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.868e+00  8.365e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.484e-01  1.573e-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.040e+00  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262767/likelihoodResults_634089601_634348801_4FGL_J2219.2-0342_daily_bin1523.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) = 6100.09539711
delta logL = 0.379046014834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6100.08566789
delta logL = 0.388775235398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9546       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9207       1.0000          .0000       10.000    
     3 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94003       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=   6100.086     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      205 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9546        8.6654        .38032E-02   -.85203E-03
   2  Index         1.9207        .55045        .26267       -.48732E-04
   3  Normalizat    1.0570        .21816        .71005E-01    .14833E-04
   4  Prefactor     .94003        .13089        .45513E-01    .43676E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95457
  Index      = 1.92066
  Normalizat = 1.05702
  Prefactor  = 0.940028
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.086     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9546        8.9473        .15213E-03   -1.5180    
   2  Index         1.9207        .72996        .10214E-01   -.66349    
   3  Normalizat    1.0570        .25944        .31418E-03   -.91144    
   4  Prefactor     .94003        .15582        .19741E-03   -.94756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15622e-10
Minuit parameter uncertainties:
  1  8.94901
  2  0.734207
  3  0.259751
  4  0.155898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262767': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6100.08566789
delta logL = 0.388775236485

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.955e+00  8.949e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.921e+00  7.342e-01  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:  9.400e-01  1.559e-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.057e+00  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.92 +/- 0.73
Photon Flux (Free Index): 1.70e-08 +/- 2.52e-08
Energy Flux (Free Index): 1.44e-05 +/- 2.33e-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/262767/cmap_HighResolution_634089601_634348801_4FGL_J2219.2-0342_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='3.89e-01', photon_flux2='1.70e-08', job_status='DONE', time_completed='2021-09-28 09:35:04.813178', photon_index_error2='0.73', photon_index2='1.92', ts='0.81', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='2.33e-05', EG='1.04', time_epoch_completed='1632846904.81', return_code='0', job_id='262767', GAL2='0.94', EG2='1.06', return_code2='0', photon_flux_error2='2.52e-08', ts2='1.59', photon_index='2.68' WHERE bin_id='1523' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:35:04 PDT 2021


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

Job <4FGL_J2219.2-0342_daily_bin1523> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:21 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:23 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:23 2021
Terminated at Tue Sep 28 09:35:05 2021
Results reported at Tue Sep 28 09:35:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1523 334.823 -3.7102 634089601 634348801 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 :                                   650.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.17 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.

