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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1103
RA = 334.823, Dec = -3.7102
tmin = 525225601, tmax = 525484801
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='261127', job_status='RUN', time_executed='2021-09-28 09:18:43.653667', time_epoch_executed='1632845923.65' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261127/ft1_4FGL_J2219.2-0342_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261127/ft2_4FGL_J2219.2-0342_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261127/ft1_4FGL_J2219.2-0342_daily_bin1103.fits outfile=/scratch/kocevski/261127/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1103.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=525225601.0 tmax=525484801.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.06
user 3.82
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261127/ft2_4FGL_J2219.2-0342_daily_bin1103.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/261127/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1103.fits evtable="EVENTS" outfile="/scratch/kocevski/261127/ft1_filtered_4FGL_J2219.2-0342_daily_bin1103.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261127/ft1_filtered_4FGL_J2219.2-0342_daily_bin1103.fits" evtable="EVENTS" scfile=/scratch/kocevski/261127/ft2_4FGL_J2219.2-0342_daily_bin1103.fits sctable="SC_DATA" outfile=/scratch/kocevski/261127/ltcube_525225601_525484801_4FGL_J2219.2-0342_daily_bin1103.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/261127/ft2_4FGL_J2219.2-0342_daily_bin1103.fits
.....................!
real 11.73
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261127/ft1_filtered_4FGL_J2219.2-0342_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/261127/ft2_4FGL_J2219.2-0342_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/261127/ltcube_525225601_525484801_4FGL_J2219.2-0342_daily_bin1103.fits outfile=/scratch/kocevski/261127/expmap_525225601_525484801_4FGL_J2219.2-0342_daily_bin1103.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/261127/ltcube_525225601_525484801_4FGL_J2219.2-0342_daily_bin1103.fits
.....................!
real 190.72
user 184.91
sys 5.49

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/261127/ft1_filtered_4FGL_J2219.2-0342_daily_bin1103.fits scfile=/scratch/kocevski/261127/ft2_4FGL_J2219.2-0342_daily_bin1103.fits outfile=/scratch/kocevski/261127/cmap_525225601_525484801_4FGL_J2219.2-0342_daily_bin1103.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261127/ft1_filtered_4FGL_J2219.2-0342_daily_bin1103.fits scfile=/scratch/kocevski/261127/ft2_4FGL_J2219.2-0342_daily_bin1103.fits outfile=/scratch/kocevski/261127/cmap_HighResolution_525225601_525484801_4FGL_J2219.2-0342_daily_bin1103.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261127/ft1_filtered_4FGL_J2219.2-0342_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/261127/ft2_4FGL_J2219.2-0342_daily_bin1103.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261127/Model_4FGL_J2219.2-0342_daily_bin1103.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/261127/ft1_filtered_4FGL_J2219.2-0342_daily_bin1103.fits.....................!
real 72.93
user 71.53
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.897       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15667E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.598       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.511       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.562       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.8777       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2703       1.0000         .10000E-03   10000.    
    22 'norm      '    16.164       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .23101       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3949       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=   7943.266     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2761 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5905       -.51590E-06** at limit **
   2  Prefactor     1.6209        168.02       -.61822E-05    .32000E-04
   3  Prefactor     .10000E-03    9.6318       -.97899E-07** at limit **
   4  Prefactor     20.898        46.153        .96709E-06    .96238E-04
   5  Prefactor     .10000E-03    9.6341       -.59468E-07** at limit **
   6  Prefactor     .10000E-03    3.4974        .38691E-06** at limit **
   7  Prefactor     .10000E-03    8.7825        .20412E-07** at limit **
   8  Prefactor     .10000E-03    53.755       -.46723E-06** at limit **
   9  Prefactor     .10013E-03    13.329       -.24134E-06** at limit **
  10  Prefactor     20.604        17.196        .37917E-06    .35979E-03
  11  Prefactor     2.8882        5.8433        .82873E-06   -.17148E-03
  12  Prefactor     .10000E-03    15.687        .24131E-06** at limit **
  13  Prefactor     11.507        8.7506        .62610E-06    .18714E-03
  14  Prefactor     .10000E-03    24.237       -.28387E-06** at limit **
  15  Prefactor     .10000E-03    2.2654        .48794E-07** at limit **
  16  norm          5.4790        3.4850        .37362E-06   -.17285E-04
  17  Prefactor     53.561        64.921        .73789E-06    .20015E-04
  18  norm          1.4784        .76158        .49568E-07   -.38935E-04
  19  Prefactor     .10000E-03    49.917        .19430E-05** at limit **
  20  norm          4.8774        1.5521        .12960E-06   -.13762E-02
  21  Prefactor     2.2702        4.2250        .67249E-07   -.17440E-03
  22  norm          16.165        9.9960        .31175E-06    .50143E-04
  23  Normalizat    .23139        .22093       -.17028E-04    .11181E-03
  24  Prefactor     1.3947        .14259        .42933E-05    .65131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 1.62087
  Prefactor  = 0.0001
  Prefactor  = 20.8977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100134
  Prefactor  = 20.6043
  Prefactor  = 2.88819
  Prefactor  = 0.0001
  Prefactor  = 11.507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.47896
  Prefactor  = 53.5611
  norm       = 1.47835
  Prefactor  = 0.0001
  norm       = 4.87738
  Prefactor  = 2.27023
  norm       = 16.165
  Normalizat = 0.231392
  Prefactor  = 1.3947
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6387        .21757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6209        171.01        .32763E-03   -1.5453    
   3  Prefactor     .10000E-03    9.6364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.898        45.984        .87618E-04   -1.4793    
   5  Prefactor     .10000E-03    9.8359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6010        .32578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10013E-03    70.835        .57548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.604        16.050        .88253E-04   -1.4800    
  11  Prefactor     2.8882        5.8330        .23905E-03   -1.5368    
  12  Prefactor     .10000E-03    15.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.507        8.7341        .11808E-03   -1.5029    
  14  Prefactor     .10000E-03    24.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3155        .26142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4790        3.4888        .12339E-03   -1.5240    
  17  Prefactor     53.561        64.923        .54805E-04   -1.4243    
  18  norm          1.4784        .75831        .54178E-04   -1.5465    
  19  Prefactor     .10000E-03    50.365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.8774        1.5356        .59863E-04   -1.5266    
  21  Prefactor     2.2702        4.2037        .24418E-03   -1.5407    
  22  norm          16.165        10.006        .99619E-04   -1.4904    
  23  Normalizat    .23139        .22125        .57717E-03   -1.2720    
  24  Prefactor     1.3947        .14313        .16398E-03   -.80533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31388e-09
Minuit parameter uncertainties:
  1  0.00010059
  2  33.3953
  3  1.87159e-05
  4  46.0625
  5  7.81583e-05
  6  2.29272e-06
  7  5.12441e-05
  8  8.5602e-05
  9  0.00617947
  10  16.0531
  11  5.83418
  12  8.0015e-06
  13  8.73507
  14  7.81038e-07
  15  5.43289e-06
  16  3.48894
  17  65.0087
  18  0.75832
  19  0.000283746
  20  1.53557
  21  4.20423
  22  10.0068
  23  0.222097
  24  0.143176
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.151e+01  8.735e+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:  1.395e+00  1.432e-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:  2.314e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 9.82e-06

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

Saving results to:
/scratch/kocevski/261127/likelihoodResults_525225601_525484801_4FGL_J2219.2-0342_daily_bin1103.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) = 7943.13515607
delta logL = 0.13122536535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7943.11437034
delta logL = 0.152011096102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2617       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0362       1.0000          .0000       10.000    
     3 'Normalizat'    .27033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3812       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=   7943.114     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      218 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2384        8.7337        .32923E-02    .13866E-03
   2  Index         2.0352        .54722        .25584       -.97700E-04
   3  Normalizat    .27014        .25502        .12116        .97434E-04
   4  Prefactor     1.3813        .16866        .31326E-01   -.22094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.23837
  Index      = 2.03522
  Normalizat = 0.270141
  Prefactor  = 1.38131
 **********
 **   18 **HESSE 
 **********

 FCN=   7943.114     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2384        13.981        .13169E-03   -1.5100    
   2  Index         2.0352        1.1667        .11333E-01   -.63473    
   3  Normalizat    .27014        .22079        .53550E-03   -1.2466    
   4  Prefactor     1.3813        .14344        .16467E-03   -.80920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11848e-10
Minuit parameter uncertainties:
  1  13.9856
  2  1.18371
  3  0.221509
  4  0.14348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261127': 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) = 7943.11436776
delta logL = 0.152013675119

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.238e+00  1.399e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.035e+00  1.184e+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.381e+00  1.435e-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:  2.701e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.04 +/- 1.18
Photon Flux (Free Index): 2.42e-08 +/- 5.28e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.89e-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/261127/cmap_HighResolution_525225601_525484801_4FGL_J2219.2-0342_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='1.54e-05', photon_flux_error='4.02e-08', dlogl='1.52e-01', energy_flux='1.29e-05', photon_flux2='2.42e-08', job_status='DONE', time_completed='2021-09-28 09:31:04.819449', photon_index_error2='1.18', photon_index2='2.04', ts='2.82', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.89e-05', EG='0.23', time_epoch_completed='1632846664.82', return_code='0', job_id='261127', GAL2='1.38', EG2='0.27', return_code2='0', energy_flux_error='9.82e-06', photon_flux_error2='5.28e-08', ts2='3.09', photon_index='2.68' WHERE bin_id='1103' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 261127: <4FGL_J2219.2-0342_daily_bin1103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1103 334.823 -3.7102 525225601 525484801 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 :                                   740.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             320.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

