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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1134
RA = 334.823, Dec = -3.7102
tmin = 533260801, tmax = 533520001
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='261179', job_status='RUN', time_executed='2021-09-28 09:17:35.400100', time_epoch_executed='1632845855.4' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261179

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261179/ft1_4FGL_J2219.2-0342_daily_bin1134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261179/ft2_4FGL_J2219.2-0342_daily_bin1134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261179/ft1_4FGL_J2219.2-0342_daily_bin1134.fits outfile=/scratch/kocevski/261179/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1134.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=533260801.0 tmax=533520001.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.36
user 4.11
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261179/ft1_filtered_4FGL_J2219.2-0342_daily_bin1134.fits" evtable="EVENTS" scfile=/scratch/kocevski/261179/ft2_4FGL_J2219.2-0342_daily_bin1134.fits sctable="SC_DATA" outfile=/scratch/kocevski/261179/ltcube_533260801_533520001_4FGL_J2219.2-0342_daily_bin1134.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/261179/ft2_4FGL_J2219.2-0342_daily_bin1134.fits
.....................!
real 11.57
user 11.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261179/ft1_filtered_4FGL_J2219.2-0342_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/261179/ft2_4FGL_J2219.2-0342_daily_bin1134.fits sctable="SC_DATA" expcube=/scratch/kocevski/261179/ltcube_533260801_533520001_4FGL_J2219.2-0342_daily_bin1134.fits outfile=/scratch/kocevski/261179/expmap_533260801_533520001_4FGL_J2219.2-0342_daily_bin1134.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/261179/ltcube_533260801_533520001_4FGL_J2219.2-0342_daily_bin1134.fits
.....................!
real 191.37
user 185.82
sys 5.18

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/261179/ft1_filtered_4FGL_J2219.2-0342_daily_bin1134.fits scfile=/scratch/kocevski/261179/ft2_4FGL_J2219.2-0342_daily_bin1134.fits outfile=/scratch/kocevski/261179/cmap_533260801_533520001_4FGL_J2219.2-0342_daily_bin1134.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261179/ft1_filtered_4FGL_J2219.2-0342_daily_bin1134.fits scfile=/scratch/kocevski/261179/ft2_4FGL_J2219.2-0342_daily_bin1134.fits outfile=/scratch/kocevski/261179/cmap_HighResolution_533260801_533520001_4FGL_J2219.2-0342_daily_bin1134.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261179/ft1_filtered_4FGL_J2219.2-0342_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/261179/ft2_4FGL_J2219.2-0342_daily_bin1134.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261179/Model_4FGL_J2219.2-0342_daily_bin1134.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/261179/ft1_filtered_4FGL_J2219.2-0342_daily_bin1134.fits.....................!
real 74.79
user 73.35
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13577E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11460E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .87168       1.0000         .10000E-03   10000.    
    19 'Prefactor '    150.50       1.0000         .10000E-03   10000.    
    20 'norm      '    12.610       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6866       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88946       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=   7495.110     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2752 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9875        3.0274        .66424E-08   -.21032E-04
   2  Prefactor     .10000E-03    26.509        .74002E-08** at limit **
   3  Prefactor     .10000E-03    13.689        .33230E-06** at limit **
   4  Prefactor     .10003E-03    123.17        .39191E-05** at limit **
   5  Prefactor     .10001E-03    4.7022        .79827E-06** at limit **
   6  Prefactor     .10000E-03    11.068        .11827E-06** at limit **
   7  Prefactor     .10000E-03    5.1158        .25089E-07** at limit **
   8  Prefactor     .10000E-03    13.482        .23393E-06** at limit **
   9  Prefactor     .10000E-03    12.851       -.10825E-06** at limit **
  10  Prefactor     .10000E-03    18.912        .37077E-06** at limit **
  11  Prefactor     38.408        18.707        .22564E-07   -.36442E-04
  12  Prefactor     .10000E-03    12.308       -.28108E-06** at limit **
  13  Prefactor     8.3497        13.931       -.39403E-06    .15039E-03
  14  Prefactor     .10000E-03    36.993        .55707E-06** at limit **
  15  Prefactor     .10001E-03    4.4485       -.12541E-05** at limit **
  16  norm          .10001E-03    2.1883        .79736E-06** at limit **
  17  Prefactor     .10002E-03    91.320       -.35764E-05** at limit **
  18  norm          .87163        .74592       -.51016E-08   -.26779E-04
  19  Prefactor     150.46        103.08       -.94666E-05   -.13379E-03
  20  norm          12.615        8.2096        .30063E-05    .24347E-03
  21  Prefactor     .10000E-03    21.103       -.56740E-06** at limit **
  22  norm          .10000E-03    10.392       -.79617E-07** at limit **
  23  Normalizat    1.6864        .25621        .16643E-05   -.12746E-03
  24  Prefactor     .88958        .14058       -.12939E-05    .10036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.98752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.4084
  Prefactor  = 0.0001
  Prefactor  = 8.34968
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.000100014
  Prefactor  = 0.000100017
  norm       = 0.871633
  Prefactor  = 150.458
  norm       = 12.6154
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.68637
  Prefactor  = 0.88958
 **********
 **   18 **HESSE 
 **********

 FCN=   7495.110     FROM HESSE     STATUS=OK           391 CALLS     3143 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9875        3.0278        .12693E-03   -1.5309    
   2  Prefactor     .10000E-03    26.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    121.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    20.757        .35747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.408        18.771        .64676E-04   -1.4468    
  12  Prefactor     .10000E-03    12.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3497        13.293        .13871E-03   -1.5130    
  14  Prefactor     .10000E-03    36.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    10.954        .31914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    12.557        .23679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    89.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .87163        .75948        .67144E-04   -1.5521    
  19  Prefactor     150.46        103.00        .32853E-04   -1.3249    
  20  norm          12.615        8.2372        .43311E-03   -1.4997    
  21  Prefactor     .10000E-03    21.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6864        .30230        .31501E-03   -.72668    
  24  Prefactor     .88958        .16727        .23700E-03   -.96506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36917e-09
Minuit parameter uncertainties:
  1  3.02793
  2  4.1813e-06
  3  8.49125e-05
  4  0.00351995
  5  0.0010801
  6  1.99259e-05
  7  4.34442e-07
  8  5.66106e-05
  9  4.44687e-05
  10  9.82367e-05
  11  18.7739
  12  7.71545e-05
  13  13.2978
  14  0.000262831
  15  0.000610983
  16  0.000847854
  17  0.00246426
  18  0.759487
  19  103.126
  20  8.23791
  21  6.37018e-05
  22  3.82442e-05
  23  0.302627
  24  0.167362
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.350e+00  1.330e+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:  8.896e-01  1.674e-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.686e+00  3.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261179/likelihoodResults_533260801_533520001_4FGL_J2219.2-0342_daily_bin1134.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) = 7494.82843275
delta logL = 0.281785411406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7494.77811186
delta logL = 0.33210629958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.810       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9947       1.0000          .0000       10.000    
     3 'Normalizat'    1.7068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87641       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=   7494.778     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.791        16.902        .27979E-02    .76062E-03
   2  Index         1.9960        .54216        .25819       -.62586E-04
   3  Normalizat    1.7068        .24112        .70838E-01    .75459E-05
   4  Prefactor     .87636        .13909        .44704E-01    .18961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7907
  Index      = 1.99597
  Normalizat = 1.70679
  Prefactor  = 0.876363
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.778     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.791        14.749        .55959E-03   -1.4993    
   2  Index         1.9960        .65493        .94945E-02   -.64451    
   3  Normalizat    1.7068        .28813        .31337E-03   -.72122    
   4  Prefactor     .87636        .16548        .23845E-03   -.96972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29762e-12
Minuit parameter uncertainties:
  1  14.7528
  2  0.657899
  3  0.288413
  4  0.165573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261179': 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) = 7494.77810783
delta logL = 0.33211033219

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.279e+01  1.475e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.996e+00  6.579e-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:  8.764e-01  1.656e-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.707e+00  2.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.00 +/- 0.66
Photon Flux (Free Index): 3.27e-08 +/- 4.37e-08
Energy Flux (Free Index): 2.28e-05 +/- 3.17e-05

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/261179/cmap_HighResolution_533260801_533520001_4FGL_J2219.2-0342_daily_bin1134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', energy_flux2='2.28e-05', dlogl='3.32e-01', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-09-28 09:29:45.271664', photon_index_error2='0.66', photon_index2='2.00', ts='0.47', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='3.17e-05', EG='1.69', time_epoch_completed='1632846585.27', return_code='0', job_id='261179', GAL2='0.88', EG2='1.71', return_code2='0', photon_flux_error2='4.37e-08', ts2='1.14', photon_index='2.68' WHERE bin_id='1134' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:29:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 261179: <4FGL_J2219.2-0342_daily_bin1134> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1134 334.823 -3.7102 533260801 533520001 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 :                                   729.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

