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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1528
RA = 334.823, Dec = -3.7102
tmin = 635385601, tmax = 635644801
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='262774', job_status='RUN', time_executed='2021-09-28 09:20:32.593404', time_epoch_executed='1632846032.59' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262774/ft1_4FGL_J2219.2-0342_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262774/ft2_4FGL_J2219.2-0342_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262774/ft1_4FGL_J2219.2-0342_daily_bin1528.fits outfile=/scratch/kocevski/262774/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1528.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=635385601.0 tmax=635644801.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.23
user 2.03
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262774/ft1_filtered_4FGL_J2219.2-0342_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/262774/ft2_4FGL_J2219.2-0342_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/262774/ltcube_635385601_635644801_4FGL_J2219.2-0342_daily_bin1528.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/262774/ft2_4FGL_J2219.2-0342_daily_bin1528.fits
.....................!
real 10.04
user 9.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262774/ft1_filtered_4FGL_J2219.2-0342_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/262774/ft2_4FGL_J2219.2-0342_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/262774/ltcube_635385601_635644801_4FGL_J2219.2-0342_daily_bin1528.fits outfile=/scratch/kocevski/262774/expmap_635385601_635644801_4FGL_J2219.2-0342_daily_bin1528.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/262774/ltcube_635385601_635644801_4FGL_J2219.2-0342_daily_bin1528.fits
.....................!
real 151.25
user 146.71
sys 4.29

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/262774/ft1_filtered_4FGL_J2219.2-0342_daily_bin1528.fits scfile=/scratch/kocevski/262774/ft2_4FGL_J2219.2-0342_daily_bin1528.fits outfile=/scratch/kocevski/262774/cmap_635385601_635644801_4FGL_J2219.2-0342_daily_bin1528.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.49
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262774/ft1_filtered_4FGL_J2219.2-0342_daily_bin1528.fits scfile=/scratch/kocevski/262774/ft2_4FGL_J2219.2-0342_daily_bin1528.fits outfile=/scratch/kocevski/262774/cmap_HighResolution_635385601_635644801_4FGL_J2219.2-0342_daily_bin1528.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.47
user 0.31
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262774/ft1_filtered_4FGL_J2219.2-0342_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/262774/ft2_4FGL_J2219.2-0342_daily_bin1528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262774/Model_4FGL_J2219.2-0342_daily_bin1528.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/262774/ft1_filtered_4FGL_J2219.2-0342_daily_bin1528.fits......................!
real 27.58
user 26.47
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3233       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.629       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3962       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11105E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    881.47       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .66762E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11374E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .40972E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.134       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .16157       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1960       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=   2209.083     FROM MIGRAD    STATUS=CONVERGED    983 CALLS     4134 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3218        5.9487        .12706E-03   -.38966E-04
   2  Prefactor     47.461        80.952        .58199E-04   -.43620E-04
   3  Prefactor     39.792        85.777        .63551E-04   -.47406E-05
   4  Prefactor     25.875        133.44        .79129E-04    .97051E-04
   5  Prefactor     9.3848        18.269        .13074E-03   -.11461E-03
   6  Prefactor     .10001E-03    158.69        .18142E-02** at limit **
   7  Prefactor     .10000E-03    9.9402        .14472E-02** at limit **
   8  Prefactor     22.497        24.506        .84388E-04   -.62981E-04
   9  Prefactor     .10000E-03    27.937        .18142E-02** at limit **
  10  Prefactor     67.106        50.547        .48983E-04   -.85318E-04
  11  Prefactor     .10001E-03    655.40        .18142E-02** at limit **
  12  Prefactor     .10000E-03    15.543        .18096E-02** at limit **
  13  Prefactor     17.492        42.247        .95662E-04    .11783E-03
  14  Prefactor     875.92        1967.1        .70544E-04   -.14182E-04
  15  Prefactor     .10000E-03    6.4843        .11682E-02** at limit **
  16  norm          3.3554        192.20        .22567E-03   -.59068E-04
  17  Prefactor     .10000E-03    118.22        .18142E-02** at limit **
  18  norm          .10005E-03    55.127        .33851E-02** at limit **
  19  Prefactor     .10002E-03    275.09        .18142E-02** at limit **
  20  norm          .10111E-03    18.197        .48625E-01** at limit **
  21  Prefactor     34.205        47.324        .68589E-04    .20638E-03
  22  norm          .10000E-03    10.632        .14960E-02** at limit **
  23  Normalizat    .16170        .51003        .78873E-02   -.10050E-04
  24  Prefactor     1.1961        .28100        .16803E-03   -.30312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32177
  Prefactor  = 47.4614
  Prefactor  = 39.7918
  Prefactor  = 25.8752
  Prefactor  = 9.38481
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 22.4971
  Prefactor  = 0.000100001
  Prefactor  = 67.1056
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 17.4922
  Prefactor  = 875.924
  Prefactor  = 0.0001
  norm       = 3.35544
  Prefactor  = 0.000100001
  norm       = 0.000100047
  Prefactor  = 0.000100022
  norm       = 0.000101113
  Prefactor  = 34.2049
  norm       = 0.0001
  Normalizat = 0.161698
  Prefactor  = 1.19606
 **********
 **   18 **HESSE 
 **********

 FCN=   2209.083     FROM HESSE     STATUS=OK           385 CALLS     4519 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3218        5.9485        .50825E-05   -1.5292    
   2  Prefactor     47.461        80.927        .11640E-04   -1.4329    
   3  Prefactor     39.792        85.793        .25421E-05   -1.4446    
   4  Prefactor     25.875        133.20        .15826E-04   -1.4690    
   5  Prefactor     9.3848        18.256        .52296E-05   -1.5095    
   6  Prefactor     .10001E-03    158.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9403        .28943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.497        24.493        .16878E-04   -1.4759    
   9  Prefactor     .10000E-03    27.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     67.106        50.479        .97966E-05   -1.4068    
  11  Prefactor     .10001E-03    655.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.544        .36191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.492        42.212        .19132E-04   -1.4871    
  14  Prefactor     875.92        1957.0        .14109E-04   -.96988    
  15  Prefactor     .10000E-03    6.4844        .23364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3554        189.30        .90267E-05   -1.5342    
  17  Prefactor     .10000E-03    118.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10005E-03    55.553        .67703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    275.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10111E-03    17.423        .49808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.205        47.279        .13718E-04   -1.4538    
  22  norm          .10000E-03    10.632        .29920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .16170        .48584        .31549E-03   -1.3237    
  24  Prefactor     1.1961        .26808        .67210E-05   -.86453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62561e-09
Minuit parameter uncertainties:
  1  5.94933
  2  81.1148
  3  86.061
  4  117.833
  5  18.2669
  6  0.00305499
  7  4.23126e-05
  8  24.5039
  9  0.000338111
  10  50.5114
  11  0.00634082
  12  6.57701e-05
  13  42.2843
  14  2161.5
  15  8.82478e-05
  16  50.5738
  17  0.00060972
  18  0.0032447
  19  0.00495012
  20  0.00881085
  21  47.3312
  22  6.54809e-05
  23  0.499649
  24  0.268388
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.196e+00  2.684e-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.617e-01  4.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262774/likelihoodResults_635385601_635644801_4FGL_J2219.2-0342_daily_bin1528.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) = 2208.09395683
delta logL = 0.98888888809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2208.07224355
delta logL = 1.01060216001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.650       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3934       1.0000          .0000       10.000    
     3 'Normalizat'    .23136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1516       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=   2208.072     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      264 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.660        28.390        .86083E-04   -.11490E-04
   2  Index         1.3934        .55154        .50417E-02   -.15361E-03
   3  Normalizat    .23118        .47267        .66960E-03    .89985E-06
   4  Prefactor     1.1517        .26453        .17024E-03    .22038E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6596
  Index      = 1.39345
  Normalizat = 0.231181
  Prefactor  = 1.15169
 **********
 **   18 **HESSE 
 **********

 FCN=   2208.072     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.660        29.134        .34433E-05   -1.4777    
   2  Index         1.3934        .56595        .10083E-02   -.80569    
   3  Normalizat    .23118        .47186        .26784E-04   -1.2721    
   4  Prefactor     1.1517        .26407        .68096E-05   -.87831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19354e-13
Minuit parameter uncertainties:
  1  29.1528
  2  0.568501
  3  0.480365
  4  0.264375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262774': 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) = 2208.07224335
delta logL = 1.01060236593

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.166e+01  2.915e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.393e+00  5.685e-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.152e+00  2.644e-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:  2.312e-01  4.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.39 +/- 0.57
Photon Flux (Free Index): 4.93e-08 +/- 5.85e-08
Energy Flux (Free Index): 2.22e-04 +/- 3.40e-04

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/262774/cmap_HighResolution_635385601_635644801_4FGL_J2219.2-0342_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-02', comment='SUCCESS', energy_flux2='2.22e-04', dlogl='1.01e+00', photon_flux2='4.93e-08', job_status='DONE', time_completed='2021-09-28 09:26:37.982320', photon_index_error2='0.57', photon_index2='1.39', ts='0.24', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='5.68e-07', energy_flux_error2='3.40e-04', EG='0.16', time_epoch_completed='1632846397.98', return_code='0', job_id='262774', GAL2='1.15', EG2='0.23', return_code2='0', photon_flux_error2='5.85e-08', ts2='2.28', photon_index='2.68' WHERE bin_id='1528' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:26:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 262774: <4FGL_J2219.2-0342_daily_bin1528> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1528> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:22 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:23 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:20:23 2021
Terminated at Tue Sep 28 09:26:38 2021
Results reported at Tue Sep 28 09:26:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1528 334.823 -3.7102 635385601 635644801 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 :                                   364.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             402.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   375 sec.
    Turnaround time :                            376 sec.

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

