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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1319
RA = 334.823, Dec = -3.7102
tmin = 581212801, tmax = 581472001
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='261468', job_status='RUN', time_executed='2021-09-28 09:18:22.865164', time_epoch_executed='1632845902.87' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261468/ft1_4FGL_J2219.2-0342_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261468/ft2_4FGL_J2219.2-0342_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261468/ft1_4FGL_J2219.2-0342_daily_bin1319.fits outfile=/scratch/kocevski/261468/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1319.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=581212801.0 tmax=581472001.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.98
user 2.76
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261468/ft1_filtered_4FGL_J2219.2-0342_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/261468/ft2_4FGL_J2219.2-0342_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/261468/ltcube_581212801_581472001_4FGL_J2219.2-0342_daily_bin1319.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/261468/ft2_4FGL_J2219.2-0342_daily_bin1319.fits
.....................!
real 13.49
user 13.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261468/ft1_filtered_4FGL_J2219.2-0342_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/261468/ft2_4FGL_J2219.2-0342_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/261468/ltcube_581212801_581472001_4FGL_J2219.2-0342_daily_bin1319.fits outfile=/scratch/kocevski/261468/expmap_581212801_581472001_4FGL_J2219.2-0342_daily_bin1319.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/261468/ltcube_581212801_581472001_4FGL_J2219.2-0342_daily_bin1319.fits
.....................!
real 191.48
user 185.68
sys 5.48

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/261468/ft1_filtered_4FGL_J2219.2-0342_daily_bin1319.fits scfile=/scratch/kocevski/261468/ft2_4FGL_J2219.2-0342_daily_bin1319.fits outfile=/scratch/kocevski/261468/cmap_581212801_581472001_4FGL_J2219.2-0342_daily_bin1319.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261468/ft1_filtered_4FGL_J2219.2-0342_daily_bin1319.fits scfile=/scratch/kocevski/261468/ft2_4FGL_J2219.2-0342_daily_bin1319.fits outfile=/scratch/kocevski/261468/cmap_HighResolution_581212801_581472001_4FGL_J2219.2-0342_daily_bin1319.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261468/ft1_filtered_4FGL_J2219.2-0342_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/261468/ft2_4FGL_J2219.2-0342_daily_bin1319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261468/Model_4FGL_J2219.2-0342_daily_bin1319.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/261468/ft1_filtered_4FGL_J2219.2-0342_daily_bin1319.fits.....................!
real 84.45
user 83.14
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92542E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7455       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0727       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6857       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8850       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.588       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .26039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.435       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1484       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.646       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8406       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6755       1.0000         .10000E-03   10000.    
    22 'norm      '    53.676       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .59953       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2147       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=   9316.078     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2775 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1320        .38070E-07** at limit **
   2  Prefactor     .10000E-03    13.519       -.11394E-06** at limit **
   3  Prefactor     .10000E-03    64.492        .10966E-05** at limit **
   4  Prefactor     9.8013        34.885       -.85846E-06   -.16812E-04
   5  Prefactor     5.7465        5.3418        .77942E-07    .16850E-04
   6  Prefactor     .10000E-03    2.2251        .44472E-07** at limit **
   7  Prefactor     4.0668        10.095       -.25191E-06   -.64846E-04
   8  Prefactor     4.1604        13.346       -.11338E-05   -.72921E-04
   9  Prefactor     .10000E-03    3.8934       -.92243E-07** at limit **
  10  Prefactor     1.6804        14.239        .12934E-05   -.11916E-04
  11  Prefactor     7.8855        7.6031        .14541E-05   -.12621E-03
  12  Prefactor     .10000E-03    14.500        .26988E-07** at limit **
  13  Prefactor     15.222        9.5643        .50001E-07   -.34042E-04
  14  Prefactor     26.497        45.848       -.18372E-05   -.45897E-04
  15  Prefactor     .10000E-03    2.5165        .14563E-06** at limit **
  16  norm          .10000E-03    1.1463        .11333E-06** at limit **
  17  Prefactor     10.422        29.351        .21611E-05    .42474E-04
  18  norm          2.1485        .95533       -.42775E-08   -.54032E-04
  19  Prefactor     12.643        32.763        .13272E-05   -.28051E-04
  20  norm          3.8407        2.6607       -.18529E-06    .10276E-03
  21  Prefactor     1.6754        6.6480        .12936E-05   -.44567E-04
  22  norm          53.677        15.225        .15509E-06    .38991E-04
  23  Normalizat    .59941        .19425       -.11268E-05   -.43727E-04
  24  Prefactor     1.2147        .11601        .18532E-06   -.12294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.80133
  Prefactor  = 5.74648
  Prefactor  = 0.0001
  Prefactor  = 4.06676
  Prefactor  = 4.16035
  Prefactor  = 0.0001
  Prefactor  = 1.68038
  Prefactor  = 7.88554
  Prefactor  = 0.0001
  Prefactor  = 15.2223
  Prefactor  = 26.4975
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 10.4221
  norm       = 2.14848
  Prefactor  = 12.6427
  norm       = 3.84066
  Prefactor  = 1.67543
  norm       = 53.6773
  Normalizat = 0.599414
  Prefactor  = 1.21471
 **********
 **   18 **HESSE 
 **********

 FCN=   9316.078     FROM HESSE     STATUS=OK           405 CALLS     3180 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1735        .20048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    65.953        .20813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8013        34.835        .12804E-03   -1.5082    
   5  Prefactor     5.7465        5.3280        .16757E-03   -1.5228    
   6  Prefactor     .10000E-03    2.2576        .14056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0668        10.118        .19978E-03   -1.5305    
   8  Prefactor     4.1604        13.536        .19741E-03   -1.5300    
   9  Prefactor     .10000E-03    3.8973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6804        14.261        .32433E-03   -1.5449    
  11  Prefactor     7.8855        7.6900        .71397E-03   -1.5146    
  12  Prefactor     .10000E-03    14.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.222        9.5337        .10265E-03   -1.4927    
  14  Prefactor     26.497        45.976        .77691E-04   -1.4678    
  15  Prefactor     .10000E-03    2.5909        .29795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.213        .19250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.422        29.625        .12404E-03   -1.5062    
  18  norm          2.1485        .95342        .60483E-04   -1.5415    
  19  Prefactor     12.643        37.280        .11264E-03   -1.4997    
  20  norm          3.8407        3.0296        .72206E-04   -1.5316    
  21  Prefactor     1.6754        6.6756        .32556E-03   -1.5449    
  22  norm          53.677        15.217        .54747E-04   -1.4241    
  23  Normalizat    .59941        .21102        .38262E-03   -1.0801    
  24  Prefactor     1.2147        .12934        .17636E-03   -.85880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86633e-10
Minuit parameter uncertainties:
  1  1.08647e-06
  2  1.31372e-06
  3  0.000122148
  4  34.9069
  5  5.3284
  6  8.50021e-07
  7  10.1224
  8  13.5462
  9  6.71749e-07
  10  9.79348
  11  7.69093
  12  1.94525e-05
  13  9.53468
  14  46.0374
  15  1.2429e-06
  16  0.000260732
  17  29.6667
  18  0.953425
  19  37.3484
  20  3.02968
  21  6.67856
  22  15.2179
  23  0.211305
  24  0.129376
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.522e+01  9.535e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.215e+00  1.294e-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:  5.994e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.01e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/261468/likelihoodResults_581212801_581472001_4FGL_J2219.2-0342_daily_bin1319.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) = 9316.05913445
delta logL = 0.0193003684544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9316.04999013
delta logL = 0.0284446877995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.721       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5435       1.0000          .0000       10.000    
     3 'Normalizat'    .60700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2105       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=   9316.050     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      243 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.722        11.926        .97946E-04   -.62609E-03
   2  Index         2.5433        .56951        .82024E-02   -.19594E-03
   3  Normalizat    .60692        .20288        .38036E-03    .14753E-03
   4  Prefactor     1.2106        .12895        .17660E-03    .43855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.722
  Index      = 2.54335
  Normalizat = 0.60692
  Prefactor  = 1.2106
 **********
 **   18 **HESSE 
 **********

 FCN=   9316.050     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.722        11.636        .39178E-05   -1.4890    
   2  Index         2.5433        .55537        .32810E-03   -.51362    
   3  Normalizat    .60692        .20289        .15215E-04   -1.0769    
   4  Prefactor     1.2106        .12892        .35320E-04   -.86006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02541e-10
Minuit parameter uncertainties:
  1  11.6376
  2  0.55689
  3  0.203142
  4  0.128952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261468': 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) = 9316.04998999
delta logL = 0.0284448266175

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.672e+01  1.164e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.543e+00  5.569e-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:  1.211e+00  1.290e-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:  6.069e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.54 +/- 0.56
Photon Flux (Free Index): 6.70e-08 +/- 4.44e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.32e-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/261468/cmap_HighResolution_581212801_581472001_4FGL_J2219.2-0342_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='7.01e-08', energy_flux2='1.86e-05', photon_flux_error='4.39e-08', dlogl='2.84e-02', energy_flux='1.71e-05', photon_flux2='6.70e-08', job_status='DONE', time_completed='2021-09-28 09:32:15.898158', photon_index_error2='0.56', photon_index2='2.54', ts='3.49', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.32e-05', EG='0.60', time_epoch_completed='1632846735.9', return_code='0', job_id='261468', GAL2='1.21', EG2='0.61', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.44e-08', ts2='3.51', photon_index='2.68' WHERE bin_id='1319' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:32:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 261468: <4FGL_J2219.2-0342_daily_bin1319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1319 334.823 -3.7102 581212801 581472001 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 :                                   831.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

