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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1334
RA = 334.823, Dec = -3.7102
tmin = 585100801, tmax = 585360001
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='261490', job_status='RUN', time_executed='2021-09-28 09:16:08.860993', time_epoch_executed='1632845768.86' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261490

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261490/ft1_4FGL_J2219.2-0342_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261490/ft2_4FGL_J2219.2-0342_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261490/ft1_4FGL_J2219.2-0342_daily_bin1334.fits outfile=/scratch/kocevski/261490/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1334.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=585100801.0 tmax=585360001.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.99
user 2.79
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261490/ft1_filtered_4FGL_J2219.2-0342_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/261490/ft2_4FGL_J2219.2-0342_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/261490/ltcube_585100801_585360001_4FGL_J2219.2-0342_daily_bin1334.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/261490/ft2_4FGL_J2219.2-0342_daily_bin1334.fits
.....................!
real 11.95
user 11.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261490/ft1_filtered_4FGL_J2219.2-0342_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/261490/ft2_4FGL_J2219.2-0342_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/261490/ltcube_585100801_585360001_4FGL_J2219.2-0342_daily_bin1334.fits outfile=/scratch/kocevski/261490/expmap_585100801_585360001_4FGL_J2219.2-0342_daily_bin1334.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/261490/ltcube_585100801_585360001_4FGL_J2219.2-0342_daily_bin1334.fits
.....................!
real 189.75
user 184.88
sys 4.42

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/261490/ft1_filtered_4FGL_J2219.2-0342_daily_bin1334.fits scfile=/scratch/kocevski/261490/ft2_4FGL_J2219.2-0342_daily_bin1334.fits outfile=/scratch/kocevski/261490/cmap_585100801_585360001_4FGL_J2219.2-0342_daily_bin1334.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/261490/ft1_filtered_4FGL_J2219.2-0342_daily_bin1334.fits scfile=/scratch/kocevski/261490/ft2_4FGL_J2219.2-0342_daily_bin1334.fits outfile=/scratch/kocevski/261490/cmap_HighResolution_585100801_585360001_4FGL_J2219.2-0342_daily_bin1334.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261490/ft1_filtered_4FGL_J2219.2-0342_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/261490/ft2_4FGL_J2219.2-0342_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261490/Model_4FGL_J2219.2-0342_daily_bin1334.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/261490/ft1_filtered_4FGL_J2219.2-0342_daily_bin1334.fits.....................!
real 39.86
user 38.51
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2477       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20913E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6180       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95572E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0992       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.768       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    64.326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.928       1.0000         .10000E-03   10000.    
    14 'Prefactor '    254.80       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4504       1.0000         .10000E-03   10000.    
    16 'norm      '    15.118       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0686       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.101       1.0000         .10000E-03   10000.    
    22 'norm      '    12.467       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1006       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64843       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=   3270.106     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2766 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2533        10.679        .51995E-05   -.12064E-03
   2  Prefactor     .10000E-03    245.03       -.10409E-03** at limit **
   3  Prefactor     .10000E-03    189.06        .89206E-04** at limit **
   4  Prefactor     .10000E-03    316.68       -.63360E-04** at limit **
   5  Prefactor     9.6265        15.073       -.39019E-06    .16003E-03
   6  Prefactor     .10010E-03    16.461       -.16225E-05** at limit **
   7  Prefactor     3.0558        74.047        .13697E-04   -.13129E-04
   8  Prefactor     18.763        31.983        .13648E-05    .22899E-04
   9  Prefactor     .10000E-03    12.086       -.23471E-06** at limit **
  10  Prefactor     .10000E-03    30.618        .64442E-06** at limit **
  11  Prefactor     64.340        36.267        .11067E-05    .83518E-04
  12  Prefactor     27.356        38.133       -.23775E-05    .41072E-05
  13  Prefactor     29.934        29.042        .57825E-07    .25208E-04
  14  Prefactor     254.78        169.41       -.16195E-04    .87639E-05
  15  Prefactor     2.4475        8.3893       -.22086E-05   -.40921E-03
  16  norm          15.115        8.3771        .22902E-05    .18372E-04
  17  Prefactor     .10000E-03    48.631        .48295E-06** at limit **
  18  norm          4.9010        2.0828        .91066E-07    .87055E-04
  19  Prefactor     .10000E-03    71.414       -.42799E-05** at limit **
  20  norm          4.0691        2.4921        .13572E-06    .19005E-03
  21  Prefactor     12.101        20.993       -.99673E-07   -.60368E-05
  22  norm          12.465        11.329       -.13932E-05    .35580E-05
  23  Normalizat    1.1007        .31896       -.67812E-06    .12507E-03
  24  Prefactor     .64852        .17239       -.65326E-06    .14848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.25334
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 9.62654
  Prefactor  = 0.000100101
  Prefactor  = 3.05584
  Prefactor  = 18.7627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.3402
  Prefactor  = 27.356
  Prefactor  = 29.9341
  Prefactor  = 254.776
  Prefactor  = 2.44753
  norm       = 15.1152
  Prefactor  = 0.0001
  norm       = 4.90098
  Prefactor  = 0.0001
  norm       = 4.06913
  Prefactor  = 12.1005
  norm       = 12.4648
  Normalizat = 1.10075
  Prefactor  = 0.64852
 **********
 **   18 **HESSE 
 **********

 FCN=   3270.106     FROM HESSE     STATUS=OK           403 CALLS     3169 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2533        10.633        .13960E-03   -1.5133    
   2  Prefactor     .10000E-03    246.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    187.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    317.95        .20188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6265        15.049        .12922E-03   -1.5087    
   6  Prefactor     .10010E-03    87.073        .43986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0558        73.079        .23035E-03   -1.5358    
   8  Prefactor     18.763        31.965        .92451E-04   -1.4841    
   9  Prefactor     .10000E-03    12.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.340        36.000        .50036E-04   -1.4102    
  12  Prefactor     27.356        38.145        .76585E-04   -1.4661    
  13  Prefactor     29.934        28.683        .73237E-04   -1.4613    
  14  Prefactor     254.78        169.45        .12692E-03   -1.2502    
  15  Prefactor     2.4475        8.2384        .25645E-03   -1.5395    
  16  norm          15.115        8.3806        .10301E-03   -1.4930    
  17  Prefactor     .10000E-03    48.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9010        2.0828        .51944E-04   -1.5265    
  19  Prefactor     .10000E-03    71.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0691        2.4775        .65481E-04   -1.5304    
  21  Prefactor     12.101        21.018        .11515E-03   -1.5012    
  22  norm          12.465        11.336        .11345E-03   -1.5002    
  23  Normalizat    1.1007        .37188        .31078E-03   -.89728    
  24  Prefactor     .64852        .20084        .22160E-03   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82919e-09
Minuit parameter uncertainties:
  1  10.6357
  2  0.00132901
  3  0.00156808
  4  0.000307364
  5  15.0552
  6  0.00595388
  7  29.9283
  8  31.9943
  9  2.49549e-05
  10  8.57554e-05
  11  36.0121
  12  38.1789
  13  28.6958
  14  169.775
  15  8.24226
  16  8.38125
  17  2.20182e-05
  18  2.08284
  19  3.72473e-05
  20  2.47754
  21  21.0311
  22  11.3379
  23  0.372772
  24  0.201063
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.993e+01  2.870e+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:  6.485e-01  2.011e-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.101e+00  3.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 1.32e-07
Energy Flux (Fixed Index): 3.37e-05 +/- 3.23e-05

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

Saving results to:
/scratch/kocevski/261490/likelihoodResults_585100801_585360001_4FGL_J2219.2-0342_daily_bin1334.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) = 3270.10570363
delta logL = 0.000142964013321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3270.10566765
delta logL = 0.000178945815605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.748       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6984       1.0000          .0000       10.000    
     3 'Normalizat'    1.0993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64905       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=   3270.106     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      257 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.722        28.701        .73458E-04   -.27084E-05
   2  Index         2.6972        .80151        .72940E-02    .90723E-04
   3  Normalizat    1.0994        .35924        .31095E-03   -.12813E-03
   4  Prefactor     .64914        .19903        .22151E-03    .12366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7216
  Index      = 2.69718
  Normalizat = 1.09938
  Prefactor  = 0.649135
 **********
 **   18 **HESSE 
 **********

 FCN=   3270.106     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.722        28.249        .29383E-05   -1.4617    
   2  Index         2.6972        .78826        .14588E-02   -.47863    
   3  Normalizat    1.0994        .35948        .12438E-04   -.89772    
   4  Prefactor     .64914        .19907        .88603E-05   -1.0556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72981e-10
Minuit parameter uncertainties:
  1  28.2616
  2  0.792463
  3  0.36028
  4  0.199283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261490': 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) = 3270.10566463
delta logL = 0.00018196344854

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.972e+01  2.826e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.697e+00  7.925e-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:  6.491e-01  1.993e-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.099e+00  3.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.70 +/- 0.79
Photon Flux (Free Index): 1.39e-07 +/- 1.34e-07
Energy Flux (Free Index): 3.35e-05 +/- 2.98e-05

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/261490/cmap_HighResolution_585100801_585360001_4FGL_J2219.2-0342_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-02', comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='3.35e-05', photon_flux_error='1.32e-07', dlogl='1.82e-04', energy_flux='3.37e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-28 09:24:08.546740', photon_index_error2='0.79', photon_index2='2.70', ts='1.84', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='3.81e-07', energy_flux_error2='2.98e-05', EG='1.10', time_epoch_completed='1632846248.55', return_code='0', job_id='261490', GAL2='0.65', EG2='1.10', return_code2='0', energy_flux_error='3.23e-05', photon_flux_error2='1.34e-07', ts2='1.82', photon_index='2.68' WHERE bin_id='1334' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 261490: <4FGL_J2219.2-0342_daily_bin1334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1334 334.823 -3.7102 585100801 585360001 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 :                                   477.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   500 sec.
    Turnaround time :                            503 sec.

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

