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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1365
RA = 334.823, Dec = -3.7102
tmin = 593136001, tmax = 593395201
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='261541', job_status='RUN', time_executed='2021-09-28 09:18:56.581243', time_epoch_executed='1632845936.58' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261541/ft1_4FGL_J2219.2-0342_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261541/ft2_4FGL_J2219.2-0342_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261541/ft1_4FGL_J2219.2-0342_daily_bin1365.fits outfile=/scratch/kocevski/261541/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1365.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=593136001.0 tmax=593395201.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 5.25
user 4.99
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261541/ft1_filtered_4FGL_J2219.2-0342_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/261541/ft2_4FGL_J2219.2-0342_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/261541/ltcube_593136001_593395201_4FGL_J2219.2-0342_daily_bin1365.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/261541/ft2_4FGL_J2219.2-0342_daily_bin1365.fits
.....................!
real 11.92
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261541/ft1_filtered_4FGL_J2219.2-0342_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/261541/ft2_4FGL_J2219.2-0342_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/261541/ltcube_593136001_593395201_4FGL_J2219.2-0342_daily_bin1365.fits outfile=/scratch/kocevski/261541/expmap_593136001_593395201_4FGL_J2219.2-0342_daily_bin1365.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/261541/ltcube_593136001_593395201_4FGL_J2219.2-0342_daily_bin1365.fits
.....................!
real 191.07
user 185.64
sys 4.96

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/261541/ft1_filtered_4FGL_J2219.2-0342_daily_bin1365.fits scfile=/scratch/kocevski/261541/ft2_4FGL_J2219.2-0342_daily_bin1365.fits outfile=/scratch/kocevski/261541/cmap_593136001_593395201_4FGL_J2219.2-0342_daily_bin1365.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261541/ft1_filtered_4FGL_J2219.2-0342_daily_bin1365.fits scfile=/scratch/kocevski/261541/ft2_4FGL_J2219.2-0342_daily_bin1365.fits outfile=/scratch/kocevski/261541/cmap_HighResolution_593136001_593395201_4FGL_J2219.2-0342_daily_bin1365.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261541/ft1_filtered_4FGL_J2219.2-0342_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/261541/ft2_4FGL_J2219.2-0342_daily_bin1365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261541/Model_4FGL_J2219.2-0342_daily_bin1365.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/261541/ft1_filtered_4FGL_J2219.2-0342_daily_bin1365.fits....................!
real 61.12
user 59.53
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    116.70       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1366       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5825       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9256       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.842       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.570       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.347       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7106       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.691       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2408       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.727       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0851       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82430       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91820       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=   6272.518     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2797 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2789       -.64709E-07** at limit **
   2  Prefactor     116.69        57.466        .31087E-06    .87809E-05
   3  Prefactor     26.395        45.524        .54032E-06    .95171E-05
   4  Prefactor     8.1349        38.297        .41512E-06    .10541E-04
   5  Prefactor     .10000E-03    2.4668        .12264E-06** at limit **
   6  Prefactor     5.5845        6.9788        .47554E-06    .65204E-04
   7  Prefactor     9.9252        11.802        .14783E-06    .16836E-04
   8  Prefactor     50.192        27.999        .35128E-06    .20606E-03
   9  Prefactor     .10000E-03    41.995       -.82836E-06** at limit **
  10  Prefactor     19.780        18.756        .37822E-06    .33000E-04
  11  Prefactor     5.5107        7.6298        .26160E-06    .38575E-04
  12  Prefactor     51.842        41.609        .25832E-06    .53390E-04
  13  Prefactor     10.575        10.627        .33436E-06    .63989E-04
  14  Prefactor     29.358        49.765       -.10312E-06    .10300E-05
  15  Prefactor     .10000E-03    1.0753        .25354E-07** at limit **
  16  norm          5.7107        3.7998        .13789E-06    .95929E-04
  17  Prefactor     .10000E-03    46.551       -.20434E-06** at limit **
  18  norm          .10000E-03    .41780       -.72686E-07** at limit **
  19  Prefactor     42.806        51.310        .62095E-05    .22569E-04
  20  norm          5.2302        4.2752       -.14684E-05    .16122E-03
  21  Prefactor     18.725        10.957       -.80374E-09   -.33353E-04
  22  norm          2.1072        24.457        .19671E-05    .27043E-04
  23  Normalizat    .82398        .22637       -.23614E-05    .54870E-04
  24  Prefactor     .91837        .12666        .77788E-06   -.30866E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 116.689
  Prefactor  = 26.3948
  Prefactor  = 8.13493
  Prefactor  = 0.0001
  Prefactor  = 5.58447
  Prefactor  = 9.92522
  Prefactor  = 50.1919
  Prefactor  = 0.0001
  Prefactor  = 19.7802
  Prefactor  = 5.51069
  Prefactor  = 51.8417
  Prefactor  = 10.5752
  Prefactor  = 29.3578
  Prefactor  = 0.0001
  norm       = 5.71072
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.8058
  norm       = 5.23023
  Prefactor  = 18.7251
  norm       = 2.10724
  Normalizat = 0.82398
  Prefactor  = 0.918367
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.518     FROM HESSE     STATUS=OK           405 CALLS     3202 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3265        .23273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     116.69        57.422        .37246E-04   -1.3543    
   3  Prefactor     26.395        45.498        .77991E-04   -1.4680    
   4  Prefactor     8.1349        38.252        .14055E-03   -1.5137    
   5  Prefactor     .10000E-03    2.4708        .12141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5845        6.9978        .17003E-03   -1.5235    
   7  Prefactor     9.9252        11.813        .12719E-03   -1.5078    
   8  Prefactor     50.192        28.529        .56591E-04   -1.4290    
   9  Prefactor     .10000E-03    43.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.780        18.745        .90051E-04   -1.4818    
  11  Prefactor     5.5107        7.6339        .17115E-03   -1.5238    
  12  Prefactor     51.842        41.620        .55701E-04   -1.4267    
  13  Prefactor     10.575        10.649        .12323E-03   -1.5057    
  14  Prefactor     29.358        49.749        .73957E-04   -1.4624    
  15  Prefactor     .10000E-03    1.0782        .80159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7107        3.8057        .11706E-03   -1.5230    
  17  Prefactor     .10000E-03    46.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0291        .99224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.806        51.278        .61355E-04   -1.4399    
  20  norm          5.2302        4.2776        .65129E-04   -1.5251    
  21  Prefactor     18.725        10.959        .92554E-04   -1.4842    
  22  norm          2.1072        24.625        .28594E-03   -1.5418    
  23  Normalizat    .82398        .25765        .32572E-03   -.99185    
  24  Prefactor     .91837        .14641        .19133E-03   -.95502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30051e-10
Minuit parameter uncertainties:
  1  1.09961e-06
  2  57.4493
  3  45.5582
  4  35.3171
  5  3.72126e-06
  6  6.9988
  7  11.8159
  8  28.5369
  9  8.56899e-05
  10  18.7502
  11  7.63521
  12  41.6429
  13  10.6509
  14  49.8194
  15  7.30937e-07
  16  3.80586
  17  9.31339e-05
  18  1.09328e-06
  19  51.3313
  20  4.27784
  21  10.9598
  22  14.4141
  23  0.258034
  24  0.146473
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.058e+01  1.065e+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:  9.184e-01  1.465e-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:  8.240e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 4.90e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/261541/likelihoodResults_593136001_593395201_4FGL_J2219.2-0342_daily_bin1365.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) = 6272.18698475
delta logL = 0.330960945475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6272.18515068
delta logL = 0.332795015053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5652       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5284       1.0000          .0000       10.000    
     3 'Normalizat'    .78493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93349       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=   6272.185     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5641        10.826        .15066E-03   -.47390E-03
   2  Index         3.5287        1.3323        .76266E-02   -.88472E-04
   3  Normalizat    .78494        .23897        .33300E-03   -.26646E-03
   4  Prefactor     .93348        .14502        .18991E-03   -.41654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.56414
  Index      = 3.52872
  Normalizat = 0.784939
  Prefactor  = 0.933484
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.185     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5641        9.0695        .60262E-05   -1.5195    
   2  Index         3.5287        1.1188        .30506E-03   -.29868    
   3  Normalizat    .78494        .23882        .13320E-04   -1.0063    
   4  Prefactor     .93348        .14482        .37981E-04   -.94981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60281e-10
Minuit parameter uncertainties:
  1  9.07136
  2  1.12931
  3  0.239143
  4  0.144877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261541': 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) = 6272.18515063
delta logL = 0.332795068806

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.564e+00  9.071e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.529e+00  1.129e+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:  9.335e-01  1.449e-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:  7.849e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.53 +/- 1.13
Photon Flux (Free Index): 7.95e-08 +/- 6.66e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.05e-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/261541/cmap_HighResolution_593136001_593395201_4FGL_J2219.2-0342_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='1.31e-05', photon_flux_error='4.90e-08', dlogl='3.33e-01', energy_flux='1.19e-05', photon_flux2='7.95e-08', job_status='DONE', time_completed='2021-09-28 09:30:06.694986', photon_index_error2='1.13', photon_index2='3.53', ts='1.39', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.05e-05', EG='0.82', time_epoch_completed='1632846606.7', return_code='0', job_id='261541', GAL2='0.93', EG2='0.78', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='6.66e-08', ts2='2.11', photon_index='2.68' WHERE bin_id='1365' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:30:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 261541: <4FGL_J2219.2-0342_daily_bin1365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1365 334.823 -3.7102 593136001 593395201 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 :                                   667.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

