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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1570
RA = 334.823, Dec = -3.7102
tmin = 646272001, tmax = 646531201
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='262836', job_status='RUN', time_executed='2021-09-28 09:24:16.797229', time_epoch_executed='1632846256.8' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262836

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262836/ft1_4FGL_J2219.2-0342_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262836/ft2_4FGL_J2219.2-0342_daily_bin1570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262836/ft1_4FGL_J2219.2-0342_daily_bin1570.fits outfile=/scratch/kocevski/262836/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1570.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=646272001.0 tmax=646531201.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 4.13
user 3.90
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262836/ft1_filtered_4FGL_J2219.2-0342_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/262836/ft2_4FGL_J2219.2-0342_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/262836/ltcube_646272001_646531201_4FGL_J2219.2-0342_daily_bin1570.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/262836/ft2_4FGL_J2219.2-0342_daily_bin1570.fits
.....................!
real 13.40
user 13.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262836/ft1_filtered_4FGL_J2219.2-0342_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/262836/ft2_4FGL_J2219.2-0342_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/262836/ltcube_646272001_646531201_4FGL_J2219.2-0342_daily_bin1570.fits outfile=/scratch/kocevski/262836/expmap_646272001_646531201_4FGL_J2219.2-0342_daily_bin1570.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/262836/ltcube_646272001_646531201_4FGL_J2219.2-0342_daily_bin1570.fits
.....................!
real 191.75
user 186.42
sys 4.97

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/262836/ft1_filtered_4FGL_J2219.2-0342_daily_bin1570.fits scfile=/scratch/kocevski/262836/ft2_4FGL_J2219.2-0342_daily_bin1570.fits outfile=/scratch/kocevski/262836/cmap_646272001_646531201_4FGL_J2219.2-0342_daily_bin1570.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262836/ft1_filtered_4FGL_J2219.2-0342_daily_bin1570.fits scfile=/scratch/kocevski/262836/ft2_4FGL_J2219.2-0342_daily_bin1570.fits outfile=/scratch/kocevski/262836/cmap_HighResolution_646272001_646531201_4FGL_J2219.2-0342_daily_bin1570.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262836/ft1_filtered_4FGL_J2219.2-0342_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/262836/ft2_4FGL_J2219.2-0342_daily_bin1570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262836/Model_4FGL_J2219.2-0342_daily_bin1570.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/262836/ft1_filtered_4FGL_J2219.2-0342_daily_bin1570.fits.....................!
real 53.66
user 52.21
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.964       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.067       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.512       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6289       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14627E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5754       1.0000         .10000E-03   10000.    
    14 'Prefactor '    136.39       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7037       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4997       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10647E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2608       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9170       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1675       1.0000         .10000E-03   10000.    
    22 'norm      '    21.797       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85248       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93604       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=   5504.028     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2760 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3756       -.17720E-06** at limit **
   2  Prefactor     34.600        42.093       -.22629E-06   -.63023E-04
   3  Prefactor     .10000E-03    26.693       -.37994E-06** at limit **
   4  Prefactor     41.989        55.603        .90918E-06    .29188E-04
   5  Prefactor     .10000E-03    4.2245        .19249E-06** at limit **
   6  Prefactor     11.069        7.4702        .16025E-06   -.54393E-04
   7  Prefactor     .10000E-03    5.3481       -.50973E-07** at limit **
   8  Prefactor     33.483        23.299        .22048E-05    .45731E-03
   9  Prefactor     8.6058        24.661       -.65090E-05    .16836E-04
  10  Prefactor     3.1262        60.827        .80647E-05   -.10890E-03
  11  Prefactor     .10000E-03    4.0484        .21529E-06** at limit **
  12  Prefactor     .10000E-03    31.166        .18766E-05** at limit **
  13  Prefactor     3.5779        12.533        .15734E-04   -.10675E-03
  14  Prefactor     136.54        86.779        .98519E-05    .48879E-03
  15  Prefactor     3.7048        4.8051       -.25635E-05   -.43234E-03
  16  norm          4.5013        4.0927       -.23730E-07   -.17521E-04
  17  Prefactor     .10000E-03    43.233       -.11202E-05** at limit **
  18  norm          .10000E-03    .74241        .16544E-06** at limit **
  19  Prefactor     2.0651        288.34       -.51786E-04    .35883E-04
  20  norm          1.9242        3.4791        .37612E-05   -.35118E-03
  21  Prefactor     8.1692        11.161        .26095E-06    .40449E-04
  22  norm          21.806        14.103        .39902E-06    .12738E-05
  23  Normalizat    .85243        .23984       -.88167E-06   -.28068E-04
  24  Prefactor     .93592        .13175       -.18682E-05    .81091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.6004
  Prefactor  = 0.0001
  Prefactor  = 41.9892
  Prefactor  = 0.0001
  Prefactor  = 11.069
  Prefactor  = 0.0001
  Prefactor  = 33.4826
  Prefactor  = 8.60575
  Prefactor  = 3.12615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.57788
  Prefactor  = 136.538
  Prefactor  = 3.7048
  norm       = 4.50128
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.06513
  norm       = 1.92422
  Prefactor  = 8.16923
  norm       = 21.8055
  Normalizat = 0.852435
  Prefactor  = 0.935924
 **********
 **   18 **HESSE 
 **********

 FCN=   5504.028     FROM HESSE     STATUS=OK           399 CALLS     3159 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2568        .16677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.600        41.592        .68133E-04   -1.4531    
   3  Prefactor     .10000E-03    26.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.989        55.585        .61882E-04   -1.4411    
   5  Prefactor     .10000E-03    4.2603        .14868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.069        7.4854        .12043E-03   -1.5042    
   7  Prefactor     .10000E-03    5.3694        .16752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.483        23.499        .69221E-04   -1.4550    
   9  Prefactor     8.6058        23.740        .13646E-03   -1.5121    
  10  Prefactor     3.1262        56.858        .23085E-03   -1.5354    
  11  Prefactor     .10000E-03    4.0539        .14578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5779        12.815        .10686E-02   -1.5330    
  14  Prefactor     136.54        89.083        .17243E-03   -1.3366    
  15  Prefactor     3.7048        4.7861        .16004E-03   -1.5323    
  16  norm          4.5013        4.0871        .13410E-03   -1.5284    
  17  Prefactor     .10000E-03    43.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6943        .12257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0651        344.21        .27321E-03   -1.5421    
  20  norm          1.9242        3.7624        .80820E-04   -1.5431    
  21  Prefactor     8.1692        11.158        .14029E-03   -1.5136    
  22  norm          21.806        14.114        .85793E-04   -1.4774    
  23  Normalizat    .85243        .28744        .31956E-03   -.98152    
  24  Prefactor     .93592        .15785        .18501E-03   -.94897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55249e-09
Minuit parameter uncertainties:
  1  5.60374e-05
  2  41.6269
  3  2.88399e-05
  4  55.6538
  5  1.40891e-06
  6  7.48603
  7  7.79641e-06
  8  23.5052
  9  23.7657
  10  26.6934
  11  1.51274e-07
  12  0.000167151
  13  12.8247
  14  89.1711
  15  4.78663
  16  4.08734
  17  0.000200449
  18  8.88759e-05
  19  53.6384
  20  3.76282
  21  11.1612
  22  14.1163
  23  0.287954
  24  0.157931
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.578e+00  1.282e+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:  9.359e-01  1.579e-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.524e-01  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262836/likelihoodResults_646272001_646531201_4FGL_J2219.2-0342_daily_bin1570.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) = 5502.32458135
delta logL = 1.70388288861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5502.29345671
delta logL = 1.73500753047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13427       1.0000         .10000E-03   10000.    
     2 'Index     '    6.6707       1.0000          .0000       10.000    
     3 'Normalizat'    .72041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98973       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=   5502.293     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      280 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13419        1.4206        .37797E-02    .13566E-02
   2  Index         6.6715        3.4713        .14616        .94083E-04
   3  Normalizat    .72036        .64165E-01    .77820E-01    .24121E-04
   4  Prefactor     .98981        .38977E-01    .46139E-01   -.35557E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.134187
  Index      = 6.67151
  Normalizat = 0.720359
  Prefactor  = 0.989808
 **********
 **   18 **HESSE 
 **********

 FCN=   5502.293     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      311 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13419        2.8267        .17046E-04   -1.5635    
   2  Index         6.6715        7.8824        .59205E-02    .34086    
   3  Normalizat    .72036        .23242        .34452E-03   -1.0309    
   4  Prefactor     .98981        .13786        .18033E-03   -.93070    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57473e-07
Minuit parameter uncertainties:
  1  1.23136
  2  6.12566
  3  0.232737
  4  0.137909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262836': 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) = 5502.29345586
delta logL = 1.73500837631

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.342e-01  1.231e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  6.672e+00  6.126e+00  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:  9.898e-01  1.379e-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:  7.204e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 6.67 +/- 6.13
Photon Flux (Free Index): 1.20e-07 +/- 8.38e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.20e-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/262836/cmap_HighResolution_646272001_646531201_4FGL_J2219.2-0342_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='1.45e-05', dlogl='1.74e+00', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-28 09:34:41.665917', photon_index_error2='6.13', photon_index2='6.67', ts='0.11', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.20e-05', EG='0.85', time_epoch_completed='1632846881.67', return_code='0', job_id='262836', GAL2='0.99', EG2='0.72', return_code2='102', photon_flux_error2='8.38e-08', ts2='3.87', photon_index='2.68' WHERE bin_id='1570' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 262836: <4FGL_J2219.2-0342_daily_bin1570> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1570> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:29 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:30 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:30 2021
Terminated at Tue Sep 28 09:34:42 2021
Results reported at Tue Sep 28 09:34:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1570 334.823 -3.7102 646272001 646531201 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

