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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin683
RA = 334.823, Dec = -3.7102
tmin = 416361601, tmax = 416620801
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='259446', job_status='RUN', time_executed='2021-09-28 09:10:29.738322', time_epoch_executed='1632845429.74' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259446/ft1_4FGL_J2219.2-0342_daily_bin683.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259446/ft2_4FGL_J2219.2-0342_daily_bin683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259446/ft1_4FGL_J2219.2-0342_daily_bin683.fits outfile=/scratch/kocevski/259446/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin683.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=416361601.0 tmax=416620801.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.09
user 4.86
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259446/ft1_filtered_4FGL_J2219.2-0342_daily_bin683.fits" evtable="EVENTS" scfile=/scratch/kocevski/259446/ft2_4FGL_J2219.2-0342_daily_bin683.fits sctable="SC_DATA" outfile=/scratch/kocevski/259446/ltcube_416361601_416620801_4FGL_J2219.2-0342_daily_bin683.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/259446/ft2_4FGL_J2219.2-0342_daily_bin683.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259446/ft1_filtered_4FGL_J2219.2-0342_daily_bin683.fits evtable="EVENTS" scfile=/scratch/kocevski/259446/ft2_4FGL_J2219.2-0342_daily_bin683.fits sctable="SC_DATA" expcube=/scratch/kocevski/259446/ltcube_416361601_416620801_4FGL_J2219.2-0342_daily_bin683.fits outfile=/scratch/kocevski/259446/expmap_416361601_416620801_4FGL_J2219.2-0342_daily_bin683.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/259446/ltcube_416361601_416620801_4FGL_J2219.2-0342_daily_bin683.fits
.....................!
real 189.85
user 185.09
sys 4.46

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/259446/ft1_filtered_4FGL_J2219.2-0342_daily_bin683.fits scfile=/scratch/kocevski/259446/ft2_4FGL_J2219.2-0342_daily_bin683.fits outfile=/scratch/kocevski/259446/cmap_416361601_416620801_4FGL_J2219.2-0342_daily_bin683.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/259446/ft1_filtered_4FGL_J2219.2-0342_daily_bin683.fits scfile=/scratch/kocevski/259446/ft2_4FGL_J2219.2-0342_daily_bin683.fits outfile=/scratch/kocevski/259446/cmap_HighResolution_416361601_416620801_4FGL_J2219.2-0342_daily_bin683.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259446/ft1_filtered_4FGL_J2219.2-0342_daily_bin683.fits evtable="EVENTS" scfile=/scratch/kocevski/259446/ft2_4FGL_J2219.2-0342_daily_bin683.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259446/Model_4FGL_J2219.2-0342_daily_bin683.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/259446/ft1_filtered_4FGL_J2219.2-0342_daily_bin683.fits.....................!
real 55.97
user 54.67
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42007E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.294       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3707       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12649E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.386       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17078E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.002       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0734       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9402       1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.105       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .54521       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3035       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=   5533.700     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2758 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29715E-01    1.5956       -.56899E-06    .15098E-02
   2  Prefactor     30.577        46.429       -.38395E-05   -.30590E-04
   3  Prefactor     15.334        47.881       -.53457E-05   -.30837E-04
   4  Prefactor     .10000E-03    30.946       -.75034E-07** at limit **
   5  Prefactor     7.3714        7.9564        .12743E-06   -.43639E-04
   6  Prefactor     .10000E-03    5.2581       -.25331E-06** at limit **
   7  Prefactor     .10000E-03    16.896        .27345E-06** at limit **
   8  Prefactor     34.680        29.823       -.39457E-07   -.18391E-04
   9  Prefactor     .10000E-03    52.297       -.10726E-05** at limit **
  10  Prefactor     14.403        23.631        .35286E-07   -.11130E-04
  11  Prefactor     .10000E-03    4.3340       -.89845E-07** at limit **
  12  Prefactor     .10000E-03    28.363       -.24126E-06** at limit **
  13  Prefactor     .10000E-03    4.0328       -.11302E-06** at limit **
  14  Prefactor     .10000E-03    170.27        .90712E-06** at limit **
  15  Prefactor     .10000E-03    1.2891       -.57356E-07** at limit **
  16  norm          10.997        5.2711        .90263E-07   -.30008E-04
  17  Prefactor     .10000E-03    37.974       -.11094E-06** at limit **
  18  norm          4.0717        1.8436        .45765E-07   -.19536E-03
  19  Prefactor     5.9309        20.324       -.19720E-05   -.20657E-03
  20  norm          .10000E-03    1.1032        .63490E-06** at limit **
  21  Prefactor     .10000E-03    7.3824       -.32808E-07** at limit **
  22  norm          17.105        16.214        .49886E-07   -.69316E-05
  23  Normalizat    .54488        .26748        .11894E-05   -.77457E-04
  24  Prefactor     1.3037        .16108       -.86116E-06   -.19583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0297148
  Prefactor  = 30.5766
  Prefactor  = 15.3343
  Prefactor  = 0.0001
  Prefactor  = 7.37142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.6798
  Prefactor  = 0.0001
  Prefactor  = 14.4028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.9975
  Prefactor  = 0.0001
  norm       = 4.07173
  Prefactor  = 5.93094
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.1052
  Normalizat = 0.544875
  Prefactor  = 1.30371
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.700     FROM HESSE     STATUS=OK           405 CALLS     3163 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29715E-01    3.4965        .31215E-01   -1.5674    
   2  Prefactor     30.577        46.915        .72573E-04   -1.4601    
   3  Prefactor     15.334        48.499        .10242E-03   -1.4925    
   4  Prefactor     .10000E-03    30.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3714        7.9403        .14773E-03   -1.5165    
   6  Prefactor     .10000E-03    5.3725        .16637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.680        29.783        .68055E-04   -1.4529    
   9  Prefactor     .10000E-03    53.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.403        23.565        .10560E-03   -1.4949    
  11  Prefactor     .10000E-03    4.3407        .15122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0393        .14586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    170.30        .20366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2914        .82459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.997        5.2625        .11205E-03   -1.5045    
  17  Prefactor     .10000E-03    37.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0717        1.8394        .64995E-04   -1.5304    
  19  Prefactor     5.9309        19.393        .16476E-03   -1.5221    
  20  norm          .10000E-03    1.4410        .13944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.105        16.204        .96842E-04   -1.4881    
  23  Normalizat    .54488        .28198        .43098E-03   -1.1038    
  24  Prefactor     1.3037        .17352        .18041E-03   -.83197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18292e-09
Minuit parameter uncertainties:
  1  0.643618
  2  46.9721
  3  48.6237
  4  3.77698e-05
  5  7.94141
  6  4.6495e-06
  7  6.34579e-05
  8  29.7957
  9  2.98338e-05
  10  23.5804
  11  2.94652e-06
  12  1.82358e-05
  13  2.39686e-06
  14  0.0007436
  15  8.19136e-07
  16  5.26272
  17  3.51681e-05
  18  1.83944
  19  19.414
  20  9.53095e-06
  21  8.55034e-07
  22  16.2086
  23  0.282726
  24  0.173594
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.397e-06  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.304e+00  1.736e-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.449e-01  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259446/likelihoodResults_416361601_416620801_4FGL_J2219.2-0342_daily_bin683.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): 102
logL (Free Index) = 5533.7011826
delta logL = -0.0011712898322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5533.70001127
delta logL = 3.9291990106e-08

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 'Index     '    2.6723       1.0000          .0000       10.000    
     3 'Normalizat'    .54487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3037       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=   5533.700     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.138        .14644E-01** at limit **
   2  Index         2.2891        7.2221        .50000       -.10522E-05
   3  Normalizat    .54488        .15947E-01    .43099E-03   -.23450E-04
   4  Prefactor     1.3037        .10028E-01    .18041E-03   -.46631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28912
  Normalizat = 0.544875
  Prefactor  = 1.30371
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.700     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      279 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    300.41        .15222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2891        5.8082        .50000       -.57302    
   3  Normalizat    .54488        .53623E-01    .17240E-04   -1.1038    
   4  Prefactor     1.3037        .33721E-01    .72166E-05   -.83197    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.76013e-08
Minuit parameter uncertainties:
  1  1.12725e-05
  2  1107.22
  3  0.0536278
  4  0.0337214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259446': 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): 102
logL (Free Index) = 5533.70001028
delta logL = 1.02540707303e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.127e-05  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.289e+00  1.107e+03  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.304e+00  3.372e-02  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.449e-01  5.363e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.823 -3.710

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/259446/cmap_HighResolution_416361601_416620801_4FGL_J2219.2-0342_daily_bin683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-28 09:20:38.365668', job_id='259446', GAL2='1.30', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1632846038.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='683' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:20:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 259446: <4FGL_J2219.2-0342_daily_bin683> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin683> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:16 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:18 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:18 2021
Terminated at Tue Sep 28 09:20:39 2021
Results reported at Tue Sep 28 09:20:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin683 334.823 -3.7102 416361601 416620801 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 :                                   607.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            623 sec.

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

