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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1117
RA = 334.823, Dec = -3.7102
tmin = 528854401, tmax = 529113601
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='261149', job_status='RUN', time_executed='2021-09-28 09:15:51.203953', time_epoch_executed='1632845751.2' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261149

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261149/ft1_4FGL_J2219.2-0342_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261149/ft2_4FGL_J2219.2-0342_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261149/ft1_4FGL_J2219.2-0342_daily_bin1117.fits outfile=/scratch/kocevski/261149/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1117.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=528854401.0 tmax=529113601.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 3.43
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261149/ft1_filtered_4FGL_J2219.2-0342_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/261149/ft2_4FGL_J2219.2-0342_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/261149/ltcube_528854401_529113601_4FGL_J2219.2-0342_daily_bin1117.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/261149/ft2_4FGL_J2219.2-0342_daily_bin1117.fits
.....................!
real 11.97
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261149/ft1_filtered_4FGL_J2219.2-0342_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/261149/ft2_4FGL_J2219.2-0342_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/261149/ltcube_528854401_529113601_4FGL_J2219.2-0342_daily_bin1117.fits outfile=/scratch/kocevski/261149/expmap_528854401_529113601_4FGL_J2219.2-0342_daily_bin1117.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/261149/ltcube_528854401_529113601_4FGL_J2219.2-0342_daily_bin1117.fits
.....................!
real 191.95
user 185.84
sys 5.69

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/261149/ft1_filtered_4FGL_J2219.2-0342_daily_bin1117.fits scfile=/scratch/kocevski/261149/ft2_4FGL_J2219.2-0342_daily_bin1117.fits outfile=/scratch/kocevski/261149/cmap_528854401_529113601_4FGL_J2219.2-0342_daily_bin1117.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261149/ft1_filtered_4FGL_J2219.2-0342_daily_bin1117.fits scfile=/scratch/kocevski/261149/ft2_4FGL_J2219.2-0342_daily_bin1117.fits outfile=/scratch/kocevski/261149/cmap_HighResolution_528854401_529113601_4FGL_J2219.2-0342_daily_bin1117.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.51
user 0.38
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261149/ft1_filtered_4FGL_J2219.2-0342_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/261149/ft2_4FGL_J2219.2-0342_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261149/Model_4FGL_J2219.2-0342_daily_bin1117.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/261149/ft1_filtered_4FGL_J2219.2-0342_daily_bin1117.fits.....................!
real 62.21
user 60.80
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62302       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.541       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9852       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.051       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5180       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.355       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6331       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0836       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.802       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    121.97       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2599       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.305       1.0000         .10000E-03   10000.    
    18 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.6331       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91297       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85115       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=   6436.160     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2745 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61796        3.0654        .11100E-05   -.11756E-03
   2  Prefactor     29.781        47.230       -.25171E-05   -.35855E-04
   3  Prefactor     29.563        29.930       -.10122E-05   -.30110E-03
   4  Prefactor     2.8959        209.68       -.14155E-05   -.26022E-04
   5  Prefactor     .10000E-03    3.2300       -.24161E-06** at limit **
   6  Prefactor     16.049        7.7798        .22496E-06   -.20379E-04
   7  Prefactor     3.5127        17.164        .16623E-04   -.14208E-03
   8  Prefactor     38.369        26.651        .53661E-06    .31716E-03
   9  Prefactor     7.6349        16.591       -.13785E-05   -.10510E-03
  10  Prefactor     4.0800        36.669       -.40597E-05   -.15846E-04
  11  Prefactor     .10000E-03    9.2254        .13137E-06** at limit **
  12  Prefactor     49.670        47.448        .64058E-06   -.73263E-05
  13  Prefactor     18.361        12.122        .37591E-06    .17883E-03
  14  Prefactor     121.98        80.975        .58657E-06   -.15190E-04
  15  Prefactor     .10000E-03    2.3580        .29545E-06** at limit **
  16  norm          4.2595        3.8866        .29873E-06   -.18101E-04
  17  Prefactor     23.181        60.046       -.13712E-05   -.13167E-03
  18  norm          .10000E-03    .65863        .14955E-06** at limit **
  19  Prefactor     .10000E-03    39.707        .30082E-07** at limit **
  20  norm          8.6342        2.1806        .49005E-07   -.12513E-03
  21  Prefactor     .10000E-03    12.880        .60482E-07** at limit **
  22  norm          .10000E-03    3.8363        .24240E-07** at limit **
  23  Normalizat    .91287        .23110       -.34992E-05   -.73733E-04
  24  Prefactor     .85136        .12757        .44912E-06   -.31830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.617956
  Prefactor  = 29.7809
  Prefactor  = 29.5633
  Prefactor  = 2.89594
  Prefactor  = 0.0001
  Prefactor  = 16.0493
  Prefactor  = 3.51272
  Prefactor  = 38.3688
  Prefactor  = 7.63494
  Prefactor  = 4.08002
  Prefactor  = 0.0001
  Prefactor  = 49.6703
  Prefactor  = 18.3605
  Prefactor  = 121.978
  Prefactor  = 0.0001
  norm       = 4.25953
  Prefactor  = 23.1805
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.63421
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.912875
  Prefactor  = 0.851359
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.160     FROM HESSE     STATUS=OK           399 CALLS     3144 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61796        2.9958        .24954E-03   -1.5551    
   2  Prefactor     29.781        46.465        .73494E-04   -1.4616    
   3  Prefactor     29.563        29.768        .36857E-03   -1.4620    
   4  Prefactor     2.8959        210.65        .23497E-03   -1.5368    
   5  Prefactor     .10000E-03    3.2376        .14074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.049        7.7889        .99971E-04   -1.4907    
   7  Prefactor     3.5127        17.237        .10777E-02   -1.5333    
   8  Prefactor     38.369        26.589        .64717E-04   -1.4468    
   9  Prefactor     7.6349        16.354        .14515E-03   -1.5155    
  10  Prefactor     4.0800        35.451        .19951E-03   -1.5304    
  11  Prefactor     .10000E-03    9.3175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     49.670        47.442        .56825E-04   -1.4297    
  13  Prefactor     18.361        12.117        .93479E-04   -1.4851    
  14  Prefactor     121.98        81.001        .36442E-04   -1.3495    
  15  Prefactor     .10000E-03    2.3782        .12004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2595        3.8763        .13956E-03   -1.5295    
  17  Prefactor     23.181        60.032        .82974E-04   -1.4745    
  18  norm          .10000E-03    1.2675        .12549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.6342        2.1705        .57186E-04   -1.5120    
  21  Prefactor     .10000E-03    13.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.8432        .15345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91287        .27500        .32129E-03   -.96009    
  24  Prefactor     .85136        .15377        .19603E-03   -.97862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07327e-09
Minuit parameter uncertainties:
  1  2.72123
  2  46.5214
  3  29.7828
  4  49.5787
  5  6.67259e-06
  6  7.78939
  7  15.5696
  8  26.5975
  9  16.3637
  10  24.0723
  11  2.15547e-05
  12  47.4779
  13  12.1185
  14  81.075
  15  1.0515e-06
  16  3.87652
  17  60.1895
  18  1.00881e-05
  19  3.03512e-05
  20  2.17054
  21  2.32562e-05
  22  5.06419e-06
  23  0.275426
  24  0.153852
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.836e+01  1.212e+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.514e-01  1.539e-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:  9.129e-01  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.46e-08 +/- 5.58e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.36e-05

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) = 6436.09196087
delta logL = 0.0682321812883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6436.0840473
delta logL = 0.0761457505096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.367       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3959       1.0000          .0000       10.000    
     3 'Normalizat'    .94039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83945       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=   6436.084     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      209 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.354        402.52        .22753E-02   -.74140E-04
   2  Index         2.3953        5.8201        .23919       -.11291E-04
   3  Normalizat    .94036        .15671        .71658E-01   -.15569E-03
   4  Prefactor     .83964        .92443E-01    .44228E-01   -.28954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3538
  Index      = 2.39531
  Normalizat = 0.940359
  Prefactor  = 0.839635
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.084     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.354        13.491        .91011E-04   -1.4828    
   2  Index         2.3953        .70704        .90998E-02   -.54795    
   3  Normalizat    .94036        .26665        .31706E-03   -.95056    
   4  Prefactor     .83964        .15491        .19724E-03   -.98283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7652e-11
Minuit parameter uncertainties:
  1  13.4929
  2  0.710311
  3  0.267027
  4  0.15499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261149': 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) = 6436.08404414
delta logL = 0.0761489177175

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.935e+01  1.349e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.395e+00  7.103e-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.396e-01  1.550e-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:  9.404e-01  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.40 +/- 0.71
Photon Flux (Free Index): 6.75e-08 +/- 6.51e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.67e-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/261149/cmap_HighResolution_528854401_529113601_4FGL_J2219.2-0342_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-08', energy_flux2='2.23e-05', photon_flux_error='5.58e-08', dlogl='7.61e-02', energy_flux='2.07e-05', photon_flux2='6.75e-08', job_status='DONE', time_completed='2021-09-28 09:25:40.647209', photon_index_error2='0.71', photon_index2='2.40', ts='4.72', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.91', time_epoch_completed='1632846340.65', return_code='0', job_id='261149', GAL2='0.84', EG2='0.94', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='6.51e-08', ts2='4.83', photon_index='2.68' WHERE bin_id='1117' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 261149: <4FGL_J2219.2-0342_daily_bin1117> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1117 334.823 -3.7102 528854401 529113601 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 :                                   588.57 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            624 sec.

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

