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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1405
RA = 334.823, Dec = -3.7102
tmin = 603504001, tmax = 603763201
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='261601', job_status='RUN', time_executed='2021-09-28 09:18:11.599830', time_epoch_executed='1632845891.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261601/ft1_4FGL_J2219.2-0342_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261601/ft2_4FGL_J2219.2-0342_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261601/ft1_4FGL_J2219.2-0342_daily_bin1405.fits outfile=/scratch/kocevski/261601/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1405.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.72
user 2.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261601/ft1_filtered_4FGL_J2219.2-0342_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/261601/ft2_4FGL_J2219.2-0342_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/261601/ltcube_603504001_603763201_4FGL_J2219.2-0342_daily_bin1405.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/261601/ft2_4FGL_J2219.2-0342_daily_bin1405.fits
.....................!
real 12.41
user 12.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261601/ft1_filtered_4FGL_J2219.2-0342_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/261601/ft2_4FGL_J2219.2-0342_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/261601/ltcube_603504001_603763201_4FGL_J2219.2-0342_daily_bin1405.fits outfile=/scratch/kocevski/261601/expmap_603504001_603763201_4FGL_J2219.2-0342_daily_bin1405.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/261601/ltcube_603504001_603763201_4FGL_J2219.2-0342_daily_bin1405.fits
.....................!
real 191.40
user 186.03
sys 5.00

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/261601/ft1_filtered_4FGL_J2219.2-0342_daily_bin1405.fits scfile=/scratch/kocevski/261601/ft2_4FGL_J2219.2-0342_daily_bin1405.fits outfile=/scratch/kocevski/261601/cmap_603504001_603763201_4FGL_J2219.2-0342_daily_bin1405.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261601/ft1_filtered_4FGL_J2219.2-0342_daily_bin1405.fits scfile=/scratch/kocevski/261601/ft2_4FGL_J2219.2-0342_daily_bin1405.fits outfile=/scratch/kocevski/261601/cmap_HighResolution_603504001_603763201_4FGL_J2219.2-0342_daily_bin1405.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.60
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261601/ft1_filtered_4FGL_J2219.2-0342_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/261601/ft2_4FGL_J2219.2-0342_daily_bin1405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261601/Model_4FGL_J2219.2-0342_daily_bin1405.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/261601/ft1_filtered_4FGL_J2219.2-0342_daily_bin1405.fits.....................!
real 35.36
user 33.98
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28949E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.860       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.118       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19125E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68765       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5689       1.0000         .10000E-03   10000.    
    17 'Prefactor '    387.09       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.333       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .30621       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0817       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=   2587.565     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     3303 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1852       -.19705E-06** at limit **
   2  Prefactor     .10000E-03    35.596        .45895E-07** at limit **
   3  Prefactor     .10000E-03    164.23       -.50294E-06** at limit **
   4  Prefactor     .10000E-03    497.15       -.24171E-05** at limit **
   5  Prefactor     10.571        14.430        .61045E-06   -.51843E-05
   6  Prefactor     55.867        98.999       -.21758E-06   -.17911E-05
   7  Prefactor     15.455        23.931       -.46587E-06   -.40764E-05
   8  Prefactor     11.123        29.893       -.15434E-05   -.14945E-04
   9  Prefactor     .10000E-03    13.204        .12864E-06** at limit **
  10  Prefactor     .10000E-03    13.026        .92406E-07** at limit **
  11  Prefactor     .10000E-03    174.63        .45579E-06** at limit **
  12  Prefactor     .10002E-03    140.19        .82030E-05** at limit **
  13  Prefactor     54.107        55.124       -.25963E-06    .20723E-05
  14  Prefactor     .10000E-03    430.63       -.40357E-05** at limit **
  15  Prefactor     .66596        77.951       -.50424E-05   -.23117E-04
  16  norm          7.5724        20.922       -.24789E-06   -.32584E-05
  17  Prefactor     387.13        310.70       -.13280E-06   -.17932E-05
  18  norm          .10000E-03    6.5328        .38206E-07** at limit **
  19  Prefactor     .10000E-03    273.52        .36545E-05** at limit **
  20  norm          16.335        8.1508       -.85126E-06   -.44979E-05
  21  Prefactor     .10000E-03    18.364        .36192E-07** at limit **
  22  norm          .10000E-03    14.979        .54855E-07** at limit **
  23  Normalizat    .30561        .46441        .33664E-05   -.39209E-05
  24  Prefactor     1.0819        .24319       -.85700E-06   -.33354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5707
  Prefactor  = 55.8675
  Prefactor  = 15.4552
  Prefactor  = 11.1226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 54.1065
  Prefactor  = 0.000100002
  Prefactor  = 0.665957
  norm       = 7.57236
  Prefactor  = 387.133
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 16.335
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.305612
  Prefactor  = 1.08193
 **********
 **   18 **HESSE 
 **********

 FCN=   2587.565     FROM HESSE     STATUS=OK           399 CALLS     3702 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.550        .19989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    164.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    501.51        .19867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.571        14.356        .12328E-03   -1.5058    
   6  Prefactor     55.867        98.936        .53671E-04   -1.4212    
   7  Prefactor     15.455        23.882        .10189E-03   -1.4922    
   8  Prefactor     11.123        29.512        .12015E-03   -1.5041    
   9  Prefactor     .10000E-03    13.210        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.033        .17933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    174.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    340.70        .63717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     54.107        60.458        .54550E-04   -1.4235    
  14  Prefactor     .10000E-03    427.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .66596        123.11        .30656E-02   -1.5545    
  16  norm          7.5724        20.892        .14577E-03   -1.5158    
  17  Prefactor     387.13        313.42        .10368E-03   -1.1747    
  18  norm          .10000E-03    6.6025        .12684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    276.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.335        8.1213        .98123E-04   -1.4899    
  21  Prefactor     .10000E-03    18.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .30561        .42348        .55819E-03   -1.2250    
  24  Prefactor     1.0819        .23311        .16924E-03   -.90046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17115e-08
Minuit parameter uncertainties:
  1  6.54095e-06
  2  1.03083e-05
  3  0.000232436
  4  0.000536352
  5  14.3602
  6  99.2284
  7  23.8972
  8  29.5506
  9  1.64176e-06
  10  1.86674e-06
  11  0.000105637
  12  0.00508133
  13  60.5263
  14  0.00186457
  15  18.1456
  16  20.9125
  17  314.811
  18  3.80534e-05
  19  0.000909979
  20  8.12185
  21  2.43136e-05
  22  1.54425e-07
  23  0.42803
  24  0.233328
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.411e+01  6.053e+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.082e+00  2.333e-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.056e-01  4.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 2.49e-07 +/- 2.79e-07
Energy Flux (Fixed Index): 6.09e-05 +/- 6.81e-05

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

Saving results to:
/scratch/kocevski/261601/likelihoodResults_603504001_603763201_4FGL_J2219.2-0342_daily_bin1405.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) = 2587.06403852
delta logL = 0.50115319123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2587.02085775
delta logL = 0.544333960045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.142       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5628       1.0000          .0000       10.000    
     3 'Normalizat'    .18479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1322       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2587.021     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      293 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.201        47.991        .67602E-04    .95774E-04
   2  Index         3.5641        1.1352        .50048E-02    .38370E-04
   3  Normalizat    .18455        .43067        .70753E-03   -.24849E-04
   4  Prefactor     1.1319        .23886        .16578E-03    .19394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.2011
  Index      = 3.56411
  Normalizat = 0.184549
  Prefactor  = 1.13192
 **********
 **   18 **HESSE 
 **********

 FCN=   2587.021     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.201        43.077        .27041E-05   -1.4521    
   2  Index         3.5641        1.0197        .20019E-03   -.29128    
   3  Normalizat    .18455        .42889        .28301E-04   -1.3057    
   4  Prefactor     1.1319        .23731        .33157E-04   -.88453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47432e-10
Minuit parameter uncertainties:
  1  43.1155
  2  1.02752
  3  0.43696
  4  0.237534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261601': 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) = 2587.02084205
delta logL = 0.544349655104

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.520e+01  4.312e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.564e+00  1.028e+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.132e+00  2.375e-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.845e-01  4.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.56 +/- 1.03
Photon Flux (Free Index): 4.45e-07 +/- 3.15e-07
Energy Flux (Free Index): 7.29e-05 +/- 4.87e-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/261601/cmap_HighResolution_603504001_603763201_4FGL_J2219.2-0342_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-02', comment='SUCCESS', photon_flux='2.49e-07', energy_flux2='7.29e-05', photon_flux_error='2.79e-07', dlogl='5.44e-01', energy_flux='6.09e-05', photon_flux2='4.45e-07', job_status='DONE', time_completed='2021-09-28 09:25:45.574206', photon_index_error2='1.03', photon_index2='3.56', ts='2.02', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='6.47e-07', energy_flux_error2='4.87e-05', EG='0.31', time_epoch_completed='1632846345.57', return_code='0', job_id='261601', GAL2='1.13', EG2='0.18', return_code2='0', energy_flux_error='6.81e-05', photon_flux_error2='3.15e-07', ts2='3.37', photon_index='2.68' WHERE bin_id='1405' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 261601: <4FGL_J2219.2-0342_daily_bin1405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1405 334.823 -3.7102 603504001 603763201 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 :                                   452.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            590 sec.

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

