/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 178 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin26
RA = 334.823, Dec = -3.7102
tmin = 246067201, tmax = 246326401
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='255289', job_status='RUN', time_executed='2021-09-28 08:58:33.546002', time_epoch_executed='1632844713.55' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255289/ft1_4FGL_J2219.2-0342_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255289/ft2_4FGL_J2219.2-0342_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255289/ft1_4FGL_J2219.2-0342_daily_bin26.fits outfile=/scratch/kocevski/255289/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin26.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=246067201.0 tmax=246326401.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 1.47
user 1.31
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255289/ft1_filtered_4FGL_J2219.2-0342_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/255289/ft2_4FGL_J2219.2-0342_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/255289/ltcube_246067201_246326401_4FGL_J2219.2-0342_daily_bin26.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/255289/ft2_4FGL_J2219.2-0342_daily_bin26.fits
.....................!
real 12.47
user 12.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255289/ft1_filtered_4FGL_J2219.2-0342_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/255289/ft2_4FGL_J2219.2-0342_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/255289/ltcube_246067201_246326401_4FGL_J2219.2-0342_daily_bin26.fits outfile=/scratch/kocevski/255289/expmap_246067201_246326401_4FGL_J2219.2-0342_daily_bin26.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/255289/ltcube_246067201_246326401_4FGL_J2219.2-0342_daily_bin26.fits
.....................!
real 189.99
user 185.02
sys 4.64

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/255289/ft1_filtered_4FGL_J2219.2-0342_daily_bin26.fits scfile=/scratch/kocevski/255289/ft2_4FGL_J2219.2-0342_daily_bin26.fits outfile=/scratch/kocevski/255289/cmap_246067201_246326401_4FGL_J2219.2-0342_daily_bin26.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/255289/ft1_filtered_4FGL_J2219.2-0342_daily_bin26.fits scfile=/scratch/kocevski/255289/ft2_4FGL_J2219.2-0342_daily_bin26.fits outfile=/scratch/kocevski/255289/cmap_HighResolution_246067201_246326401_4FGL_J2219.2-0342_daily_bin26.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65237       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.557       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8704       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.486       1.0000         .10000E-03   10000.    
    16 'norm      '    21.278       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.808       1.0000         .10000E-03   10000.    
    20 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.846       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0909       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81577       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0212       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=   9400.222     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2734 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90874        1.4158        .30040E-06    .11865E-02
   2  Prefactor     52.972        32.537       -.48485E-06    .11922E-03
   3  Prefactor     .10000E-03    6.1593        .18776E-07** at limit **
   4  Prefactor     .10000E-03    9.3516       -.19420E-07** at limit **
   5  Prefactor     .65180        2.7081        .70902E-06    .50061E-05
   6  Prefactor     .10000E-03    3.8238       -.11999E-06** at limit **
   7  Prefactor     .10000E-03    2.9859        .39383E-10** at limit **
   8  Prefactor     .10000E-03    4.9279       -.39687E-07** at limit **
   9  Prefactor     3.4918        13.500        .42650E-05    .39901E-03
  10  Prefactor     .10000E-03    25.552       -.17087E-05** at limit **
  11  Prefactor     17.556        10.448        .11833E-06   -.50825E-06
  12  Prefactor     4.8925        13.583        .28072E-06    .17360E-04
  13  Prefactor     2.8704        4.4697        .14275E-06    .22561E-04
  14  Prefactor     .10000E-03    57.814        .70005E-06** at limit **
  15  Prefactor     10.486        4.4958        .41272E-07   -.39663E-04
  16  norm          21.277        4.8146        .59911E-08   -.28631E-03
  17  Prefactor     .10000E-03    23.644        .19420E-05** at limit **
  18  norm          .10000E-03    .32833       -.19682E-07** at limit **
  19  Prefactor     16.800        15.843       -.46528E-06   -.28950E-03
  20  norm          .10000E-03    .65326        .22638E-06** at limit **
  21  Prefactor     19.846        10.685       -.12369E-07   -.37435E-04
  22  norm          2.0914        13.001        .96910E-05   -.17439E-03
  23  Normalizat    .81581        .17852       -.94439E-06    .21859E-03
  24  Prefactor     1.0212        .10469        .36562E-07    .39398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.908737
  Prefactor  = 52.9716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.651798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.49183
  Prefactor  = 0.000100003
  Prefactor  = 17.5559
  Prefactor  = 4.8925
  Prefactor  = 2.87042
  Prefactor  = 0.0001
  Prefactor  = 10.4858
  norm       = 21.2769
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 16.8002
  norm       = 0.0001
  Prefactor  = 19.8457
  norm       = 2.09142
  Normalizat = 0.815813
  Prefactor  = 1.02116
 **********
 **   18 **HESSE 
 **********

 FCN=   9400.222     FROM HESSE     STATUS=OK           401 CALLS     3135 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90874        1.1389        .13899E-02   -1.5517    
   2  Prefactor     52.972        32.260        .55113E-04   -1.4251    
   3  Prefactor     .10000E-03    6.1604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .65180        2.5959        .31050E-03   -1.5547    
   6  Prefactor     .10000E-03    4.0055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9937        .16358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4918        13.747        .21626E-03   -1.5334    
  10  Prefactor     .10000E-03    26.110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.556        10.473        .95587E-04   -1.4870    
  12  Prefactor     4.8925        13.573        .18185E-03   -1.5266    
  13  Prefactor     2.8704        4.4479        .23992E-03   -1.5369    
  14  Prefactor     .10000E-03    57.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.486        4.4904        .12373E-03   -1.5060    
  16  norm          21.277        4.8234        .86832E-04   -1.4785    
  17  Prefactor     .10000E-03    23.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .34264        .10838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.800        14.296        .97691E-04   -1.4888    
  20  norm          .10000E-03    .84011        .13708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.846        10.684        .44953E-03   -1.4817    
  22  norm          2.0914        12.983        .14274E-02   -1.5419    
  23  Normalizat    .81581        .20739        .33566E-03   -.99485    
  24  Prefactor     1.0212        .12234        .18601E-03   -.92027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54668e-09
Minuit parameter uncertainties:
  1  1.13893
  2  32.2703
  3  1.0652e-06
  4  1.16531e-05
  5  2.59634
  6  1.11378e-05
  7  2.46301e-06
  8  1.29068e-06
  9  13.759
  10  0.000569953
  11  10.474
  12  13.5812
  13  4.44839
  14  0.000294202
  15  4.49055
  16  4.82345
  17  0.000360105
  18  3.57384e-07
  19  14.2988
  20  1.14215e-05
  21  10.685
  22  10.4249
  23  0.207594
  24  0.122372
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.870e+00  4.448e+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.021e+00  1.224e-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:  8.158e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255289/likelihoodResults_246067201_246326401_4FGL_J2219.2-0342_daily_bin26.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) = 9399.92241801
delta logL = 0.299784984856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9399.91921903
delta logL = 0.302983959311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1827       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8928       1.0000          .0000       10.000    
     3 'Normalizat'    .82380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0177       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.

 FCN=   9399.919     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1806        4.2095        .56787E-02    .16256E-04
   2  Index         1.8923        .61991        .26445       -.72903E-04
   3  Normalizat    .82378        .16844        .75502E-01    .36410E-04
   4  Prefactor     1.0176        .10390        .42381E-01    .85643E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1806
  Index      = 1.8923
  Normalizat = 0.823782
  Prefactor  = 1.01762
 **********
 **   18 **HESSE 
 **********

 FCN=   9399.919     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1806        4.4210        .21948E-03   -1.5351    
   2  Index         1.8923        .83792        .14782E-01   -.67071    
   3  Normalizat    .82378        .19590        .33417E-03   -.99193    
   4  Prefactor     1.0176        .12109        .18627E-03   -.92144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89421e-12
Minuit parameter uncertainties:
  1  4.42146
  2  0.844443
  3  0.196064
  4  0.121122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255289': 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) = 9399.91921838
delta logL = 0.30298461317

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.181e+00  4.421e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.892e+00  8.444e-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.018e+00  1.211e-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:  8.238e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.89 +/- 0.84
Photon Flux (Free Index): 7.65e-09 +/- 1.22e-08
Energy Flux (Free Index): 7.01e-06 +/- 1.35e-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/255289/cmap_HighResolution_246067201_246326401_4FGL_J2219.2-0342_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', comment='SUCCESS', energy_flux2='7.01e-06', dlogl='3.03e-01', photon_flux2='7.65e-09', job_status='DONE', time_completed='2021-09-28 09:11:58.755881', photon_index_error2='0.84', photon_index2='1.89', ts='0.75', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='7.88e-08', energy_flux_error2='1.35e-05', EG='0.82', time_epoch_completed='1632845518.76', return_code='0', job_id='255289', GAL2='1.02', EG2='0.82', return_code2='0', photon_flux_error2='1.22e-08', ts2='1.36', photon_index='2.68' WHERE bin_id='26' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:11:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 255289: <4FGL_J2219.2-0342_daily_bin26> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin26> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:24 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:55:26 2021
Terminated at Tue Sep 28 09:11:59 2021
Results reported at Tue Sep 28 09:11:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin26 334.823 -3.7102 246067201 246326401 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 :                                   806.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

