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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin981
RA = 334.823, Dec = -3.7102
tmin = 493603201, tmax = 493862401
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='259894', job_status='RUN', time_executed='2021-09-28 09:14:09.404884', time_epoch_executed='1632845649.4' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259894

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259894/ft1_4FGL_J2219.2-0342_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259894/ft2_4FGL_J2219.2-0342_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259894/ft1_4FGL_J2219.2-0342_daily_bin981.fits outfile=/scratch/kocevski/259894/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin981.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=493603201.0 tmax=493862401.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.49
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259894/ft2_4FGL_J2219.2-0342_daily_bin981.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/259894/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin981.fits evtable="EVENTS" outfile="/scratch/kocevski/259894/ft1_filtered_4FGL_J2219.2-0342_daily_bin981.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/259894/ft1_filtered_4FGL_J2219.2-0342_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/259894/ft2_4FGL_J2219.2-0342_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/259894/ltcube_493603201_493862401_4FGL_J2219.2-0342_daily_bin981.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/259894/ft2_4FGL_J2219.2-0342_daily_bin981.fits
.....................!
real 11.86
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259894/ft1_filtered_4FGL_J2219.2-0342_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/259894/ft2_4FGL_J2219.2-0342_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/259894/ltcube_493603201_493862401_4FGL_J2219.2-0342_daily_bin981.fits outfile=/scratch/kocevski/259894/expmap_493603201_493862401_4FGL_J2219.2-0342_daily_bin981.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/259894/ltcube_493603201_493862401_4FGL_J2219.2-0342_daily_bin981.fits
.....................!
real 189.81
user 185.01
sys 4.45

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/259894/ft1_filtered_4FGL_J2219.2-0342_daily_bin981.fits scfile=/scratch/kocevski/259894/ft2_4FGL_J2219.2-0342_daily_bin981.fits outfile=/scratch/kocevski/259894/cmap_493603201_493862401_4FGL_J2219.2-0342_daily_bin981.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8950       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.872       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9489       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13972E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17012E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11144E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4681       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .50003       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.603       1.0000         .10000E-03   10000.    
    20 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6147       1.0000         .10000E-03   10000.    
    22 'norm      '    30.810       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95074       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7473.200     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     2797 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8951        2.0944       -.17259E-06   -.50170E-03
   2  Prefactor     25.866        1.2733        .17624E-07   -.17608E-03
   3  Prefactor     8.9448        1.3761        .10573E-05   -.74052E-03
   4  Prefactor     .10000E-03    29.782        .21238E-04** at limit **
   5  Prefactor     .10000E-03    8.3348       -.86034E-06** at limit **
   6  Prefactor     .10000E-03    1.5788       -.16229E-06** at limit **
   7  Prefactor     .10000E-03    4.8269       -.10622E-05** at limit **
   8  Prefactor     8.9234        1.0610        .26226E-06   -.14506E-03
   9  Prefactor     10.727        4.5164        .37166E-05   -.98709E-04
  10  Prefactor     1.3945        1.4604       -.12631E-05    .58473E-03
  11  Prefactor     .10009E-03    261.47       -.92546E-05** at limit **
  12  Prefactor     19.431        1.2436        .11529E-06   -.30872E-03
  13  Prefactor     15.949        1.2134        .64713E-07    .76595E-03
  14  Prefactor     .10000E-03    18.076       -.19145E-06** at limit **
  15  Prefactor     .10000E-03    3.0334       -.12039E-06** at limit **
  16  norm          7.4675        3.4569        .17624E-06    .15281E-02
  17  Prefactor     .10000E-03    26.504       -.19330E-04** at limit **
  18  norm          .49998        .48811        .49985E-08   -.31587E-04
  19  Prefactor     10.599        1.0828       -.39267E-06   -.17394E-03
  20  norm          .10000E-03    1.6273        .51823E-06** at limit **
  21  Prefactor     7.6116        7.2903       -.87932E-05   -.86239E-04
  22  norm          30.807        1.0313        .12949E-06   -.39410E-03
  23  Normalizat    .95084        .21801        .17799E-06   -.38816E-04
  24  Prefactor     .91484        .13485       -.60020E-06   -.18857E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89506
  Prefactor  = 25.8655
  Prefactor  = 8.94484
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.9234
  Prefactor  = 10.727
  Prefactor  = 1.39448
  Prefactor  = 0.000100093
  Prefactor  = 19.4311
  Prefactor  = 15.9493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.46746
  Prefactor  = 0.000100001
  norm       = 0.49998
  Prefactor  = 10.5989
  norm       = 0.0001
  Prefactor  = 7.61165
  norm       = 30.807
  Normalizat = 0.950844
  Prefactor  = 0.914838
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.200     FROM HESSE     STATUS=OK           463 CALLS     3260 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8951        2.1497        .75552E-02   -1.5433    
   2  Prefactor     25.866        28.986        .19689E-02   -1.4690    
   3  Prefactor     8.9448        18.982        .33496E-02   -1.5110    
   4  Prefactor     .10000E-03    31.223        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.9234        19.677        .33543E-02   -1.5110    
   9  Prefactor     10.727        13.642        .30609E-02   -1.5053    
  10  Prefactor     1.3945        58.888        .92895E-02   -1.5472    
  11  Prefactor     .10009E-03    5.1532        .91078E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.431        28.165        .22712E-02   -1.4826    
  13  Prefactor     15.949        9.4958        .25079E-02   -1.4909    
  14  Prefactor     .10000E-03    18.133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4675        3.4702        .36689E-02   -1.5161    
  17  Prefactor     .10000E-03    29.188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .49998        .48228        .11271E-01   -1.5567    
  19  Prefactor     10.599        13.657        .30760E-02   -1.5057    
  20  norm          .10000E-03    .95367        .24115E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6116        7.3245        .36331E-02   -1.5156    
  22  norm          30.807        13.503        .18046E-02   -1.4597    
  23  Normalizat    .95084        .19059        .67148E-01   -.94696    
  24  Prefactor     .91484        .11310        .45193E-01   -.95625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76539e-08
Minuit parameter uncertainties:
  1  2.14978
  2  29.0019
  3  18.9947
  4  0.000259741
  5  0.000195098
  6  1.3181e-05
  7  0.000144584
  8  19.6917
  9  13.6464
  10  18.1422
  11  0.00138571
  12  28.1839
  13  9.49674
  14  3.65103e-05
  15  3.07743e-05
  16  3.47028
  17  0.000389766
  18  0.482288
  19  13.6609
  20  3.13729e-05
  21  7.32533
  22  13.5045
  23  0.190726
  24  0.113131
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.595e+01  9.497e+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:  9.148e-01  1.131e-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.508e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.35e-08 +/- 4.37e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.07e-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) = 7473.19991308
delta logL = 1.38896511999e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7473.19990827
delta logL = 1.86975885299e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.980       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6781       1.0000          .0000       10.000    
     3 'Normalizat'    .95116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91471       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=   7473.200     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      264 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.983        11.224        .10019E-03    .12107E-03
   2  Index         2.6784        .62990        .77737E-02   -.95395E-05
   3  Normalizat    .95105        .21880        .29700E-03    .40958E-05
   4  Prefactor     .91474        .13516        .18781E-03   -.53086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9827
  Index      = 2.67838
  Normalizat = 0.951049
  Prefactor  = 0.914745
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.200     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.983        10.909        .40077E-05   -1.4908    
   2  Index         2.6784        .61195        .31095E-03   -.48287    
   3  Normalizat    .95105        .21892        .11880E-04   -.94689    
   4  Prefactor     .91474        .13521        .75126E-05   -.95628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72183e-11
Minuit parameter uncertainties:
  1  10.9102
  2  0.613916
  3  0.219121
  4  0.13526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259894': 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) = 7473.19990788
delta logL = 1.90849277715e-05

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.598e+01  1.091e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.678e+00  6.139e-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:  9.147e-01  1.353e-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.510e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.68 +/- 0.61
Photon Flux (Free Index): 7.34e-08 +/- 4.84e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.13e-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/259894/cmap_HighResolution_493603201_493862401_4FGL_J2219.2-0342_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.35e-08', energy_flux2='1.80e-05', photon_flux_error='4.37e-08', dlogl='1.91e-05', energy_flux='1.79e-05', photon_flux2='7.34e-08', job_status='DONE', time_completed='2021-09-28 09:25:07.688239', photon_index_error2='0.61', photon_index2='2.68', ts='4.27', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.95', time_epoch_completed='1632846307.69', return_code='0', job_id='259894', GAL2='0.91', EG2='0.95', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.84e-08', ts2='4.25', photon_index='2.68' WHERE bin_id='981' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 259894: <4FGL_J2219.2-0342_daily_bin981> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin981> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:52 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:53 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:10:53 2021
Terminated at Tue Sep 28 09:25:08 2021
Results reported at Tue Sep 28 09:25:08 2021

Your job looked like:

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

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

