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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1160
RA = 334.823, Dec = -3.7102
tmin = 540000001, tmax = 540259201
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='261220', job_status='RUN', time_executed='2021-09-28 09:18:56.182656', time_epoch_executed='1632845936.18' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261220/ft1_4FGL_J2219.2-0342_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261220/ft2_4FGL_J2219.2-0342_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261220/ft1_4FGL_J2219.2-0342_daily_bin1160.fits outfile=/scratch/kocevski/261220/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1160.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=540000001.0 tmax=540259201.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/261220/ft2_4FGL_J2219.2-0342_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/261220/ltcube_540000001_540259201_4FGL_J2219.2-0342_daily_bin1160.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/261220/ft2_4FGL_J2219.2-0342_daily_bin1160.fits
.....................!
real 11.85
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/261220/ft2_4FGL_J2219.2-0342_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/261220/ltcube_540000001_540259201_4FGL_J2219.2-0342_daily_bin1160.fits outfile=/scratch/kocevski/261220/expmap_540000001_540259201_4FGL_J2219.2-0342_daily_bin1160.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/261220/ltcube_540000001_540259201_4FGL_J2219.2-0342_daily_bin1160.fits
.....................!
real 192.03
user 187.42
sys 4.22

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/261220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1160.fits scfile=/scratch/kocevski/261220/ft2_4FGL_J2219.2-0342_daily_bin1160.fits outfile=/scratch/kocevski/261220/cmap_540000001_540259201_4FGL_J2219.2-0342_daily_bin1160.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1160.fits scfile=/scratch/kocevski/261220/ft2_4FGL_J2219.2-0342_daily_bin1160.fits outfile=/scratch/kocevski/261220/cmap_HighResolution_540000001_540259201_4FGL_J2219.2-0342_daily_bin1160.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/261220/ft2_4FGL_J2219.2-0342_daily_bin1160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261220/Model_4FGL_J2219.2-0342_daily_bin1160.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/261220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1160.fits....................!
real 70.76
user 69.44
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0339       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.856       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.488       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.380       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.818       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3349       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3645       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.042       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4234       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.5047       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6110       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0110       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=   7264.676     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2701 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0338        3.1230        .95574E-07   -.13500E-03
   2  Prefactor     46.851        44.707       -.53050E-05    .20846E-05
   3  Prefactor     26.723        28.562       -.28437E-06    .30054E-05
   4  Prefactor     .10000E-03    78.652       -.24554E-05** at limit **
   5  Prefactor     9.1056        9.0817       -.11906E-05   -.52536E-04
   6  Prefactor     28.488        10.501       -.36346E-06   -.37294E-05
   7  Prefactor     .10000E-03    3.0951       -.49246E-07** at limit **
   8  Prefactor     .10000E-03    12.502       -.28343E-05** at limit **
   9  Prefactor     .10000E-03    9.8171        .72712E-05** at limit **
  10  Prefactor     .10000E-03    7.1699        .33066E-05** at limit **
  11  Prefactor     41.379        18.011        .67877E-06    .16488E-04
  12  Prefactor     .10000E-03    8.3660       -.78189E-05** at limit **
  13  Prefactor     .10000E-03    5.5415       -.48571E-06** at limit **
  14  Prefactor     29.791        87.731       -.44115E-04    .10734E-05
  15  Prefactor     2.3347        3.1230       -.23533E-06   -.42740E-03
  16  norm          6.3644        3.9540        .15797E-06   -.93683E-04
  17  Prefactor     14.041        68.544       -.23335E-05    .68289E-06
  18  norm          2.4234        1.2387        .10884E-06    .62620E-04
  19  Prefactor     .10000E-03    34.061        .13677E-05** at limit **
  20  norm          5.5042        2.0228       -.90069E-08   -.74256E-04
  21  Prefactor     .10000E-03    4.5758        .10335E-06** at limit **
  22  norm          1.6104        16.127       -.31765E-05   -.29725E-03
  23  Normalizat    1.0737        .23737        .25924E-05   -.31441E-04
  24  Prefactor     1.0111        .13378        .56358E-06    .38892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.03378
  Prefactor  = 46.8509
  Prefactor  = 26.7228
  Prefactor  = 0.0001
  Prefactor  = 9.10557
  Prefactor  = 28.4881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.3793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7911
  Prefactor  = 2.33474
  norm       = 6.36438
  Prefactor  = 14.0406
  norm       = 2.42336
  Prefactor  = 0.0001
  norm       = 5.5042
  Prefactor  = 0.0001
  norm       = 1.61045
  Normalizat = 1.07369
  Prefactor  = 1.01107
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.676     FROM HESSE     STATUS=OK           399 CALLS     3100 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0338        3.1182        .11163E-03   -1.5259    
   2  Prefactor     46.851        44.680        .58576E-04   -1.4338    
   3  Prefactor     26.723        28.560        .77495E-04   -1.4674    
   4  Prefactor     .10000E-03    78.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1056        9.0851        .13278E-03   -1.5104    
   6  Prefactor     28.488        10.530        .75061E-04   -1.4640    
   7  Prefactor     .10000E-03    3.0985        .14644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.379        18.054        .62316E-04   -1.4421    
  12  Prefactor     .10000E-03    8.3594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.791        87.463        .73372E-04   -1.4616    
  15  Prefactor     2.3347        3.1067        .16787E-03   -1.5402    
  16  norm          6.3644        3.9533        .12498E-03   -1.5203    
  17  Prefactor     14.041        68.463        .10689E-03   -1.4958    
  18  norm          2.4234        1.2357        .65506E-04   -1.5397    
  19  Prefactor     .10000E-03    34.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.5042        2.0175        .70747E-04   -1.5239    
  21  Prefactor     .10000E-03    4.5798        .17806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6104        16.457        .33372E-03   -1.5454    
  23  Normalizat    1.0737        .28143        .34311E-03   -.90601    
  24  Prefactor     1.0111        .15913        .20790E-03   -.92361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90116e-10
Minuit parameter uncertainties:
  1  3.11829
  2  44.7124
  3  28.5748
  4  0.000145754
  5  9.08652
  6  10.5307
  7  2.26437e-06
  8  1.2103e-05
  9  2.77025e-05
  10  1.41839e-05
  11  18.0563
  12  5.05023e-06
  13  1.05095e-05
  14  87.8431
  15  3.10687
  16  3.95345
  17  62.123
  18  1.23568
  19  3.59829e-05
  20  2.01751
  21  2.13352e-06
  22  10.2996
  23  0.281821
  24  0.159207
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.051e-05  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.011e+00  1.592e-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:  1.074e+00  2.818e-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: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261220/likelihoodResults_540000001_540259201_4FGL_J2219.2-0342_daily_bin1160.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) = 7264.67640531
delta logL = -0.000856790517901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7264.67554862
delta logL = -9.61335899774e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6692       1.0000          .0000       10.000    
     3 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0111       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7264.676     FROM MIGRAD    STATUS=FAILED        89 CALLS      241 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    181.75        .18142E-02** at limit **
   2  Index         2.5806        6.2900        .50000        .15064E-04
   3  Normalizat    1.0737        .32816E-01    .34311E-03    .15838E-04
   4  Prefactor     1.0111        .19485E-01    .20790E-03    .44238E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7264.676     FROM SIMPLEX   STATUS=UNCHANGED    145 CALLS      386 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    181.75        .34119E-03** at limit **
   2  Index         2.5806        6.2900        .34359E-04    .15064E-04
   3  Normalizat    1.0737        .32816E-01    .55345E-06    .15838E-04
   4  Prefactor     1.0111        .19485E-01    .35464E-06    .44238E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7264.676     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      429 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    157.21        .36285E-02** at limit **
   2  Index         2.3463        6.3230        .50000       -.59435E-07
   3  Normalizat    1.0737        .29588E-01    .13724E-04   -.12641E-03
   4  Prefactor     1.0111        .17568E-01    .83162E-05   -.19494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34633
  Normalizat = 1.07369
  Prefactor  = 1.01107
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.676     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      458 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    646.13        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3463        6.9269        .50000       -.55947    
   3  Normalizat    1.0737        .68422E-01    .27448E-05   -.90601    
   4  Prefactor     1.0111        .40632E-01    .16632E-05   -.92361    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38172e-10
Minuit parameter uncertainties:
  1  2.18963e-06
  2  1301.29
  3  0.068428
  4  0.0406336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261220': 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) = 7264.6755477
delta logL = 8.21130015538e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.190e-06  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.346e+00  1.301e+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.011e+00  4.063e-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:  1.074e+00  6.843e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261220/cmap_HighResolution_540000001_540259201_4FGL_J2219.2-0342_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2021-09-28 09:30:49.006518', job_id='261220', GAL2='1.01', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632846649.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='8.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1160' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:30:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 261220: <4FGL_J2219.2-0342_daily_bin1160> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1160 334.823 -3.7102 540000001 540259201 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 :                                   712.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            926 sec.

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

