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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1049
RA = 334.823, Dec = -3.7102
tmin = 511228801, tmax = 511488001
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='260002', job_status='RUN', time_executed='2021-09-28 09:12:42.732500', time_epoch_executed='1632845562.73' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260002/ft1_4FGL_J2219.2-0342_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260002/ft2_4FGL_J2219.2-0342_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260002/ft1_4FGL_J2219.2-0342_daily_bin1049.fits outfile=/scratch/kocevski/260002/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1049.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=511228801.0 tmax=511488001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.47
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260002/ft1_filtered_4FGL_J2219.2-0342_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/260002/ft2_4FGL_J2219.2-0342_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/260002/ltcube_511228801_511488001_4FGL_J2219.2-0342_daily_bin1049.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/260002/ft2_4FGL_J2219.2-0342_daily_bin1049.fits
.....................!
real 11.67
user 11.26
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260002/ft1_filtered_4FGL_J2219.2-0342_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/260002/ft2_4FGL_J2219.2-0342_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/260002/ltcube_511228801_511488001_4FGL_J2219.2-0342_daily_bin1049.fits outfile=/scratch/kocevski/260002/expmap_511228801_511488001_4FGL_J2219.2-0342_daily_bin1049.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/260002/ltcube_511228801_511488001_4FGL_J2219.2-0342_daily_bin1049.fits
.....................!
real 191.72
user 185.96
sys 5.38

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/260002/ft1_filtered_4FGL_J2219.2-0342_daily_bin1049.fits scfile=/scratch/kocevski/260002/ft2_4FGL_J2219.2-0342_daily_bin1049.fits outfile=/scratch/kocevski/260002/cmap_511228801_511488001_4FGL_J2219.2-0342_daily_bin1049.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260002/ft1_filtered_4FGL_J2219.2-0342_daily_bin1049.fits scfile=/scratch/kocevski/260002/ft2_4FGL_J2219.2-0342_daily_bin1049.fits outfile=/scratch/kocevski/260002/cmap_HighResolution_511228801_511488001_4FGL_J2219.2-0342_daily_bin1049.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260002/ft1_filtered_4FGL_J2219.2-0342_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/260002/ft2_4FGL_J2219.2-0342_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260002/Model_4FGL_J2219.2-0342_daily_bin1049.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/260002/ft1_filtered_4FGL_J2219.2-0342_daily_bin1049.fits.....................!
real 69.26
user 67.80
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47150       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53738E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8235       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3279       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .66847       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    121.52       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4643       1.0000         .10000E-03   10000.    
    16 'norm      '    7.8652       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .42929       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8012       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4029       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.421       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9737       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73526       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99787       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=   7513.175     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2769 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91069        1.5886        .34827E-06    .73177E-03
   2  Prefactor     49.338        35.473       -.10614E-06   -.19758E-04
   3  Prefactor     10.978        24.137       -.70318E-07   -.95941E-05
   4  Prefactor     .10000E-03    36.103        .91466E-07** at limit **
   5  Prefactor     .10000E-03    2.5735       -.40635E-07** at limit **
   6  Prefactor     .47094        3.4517        .10413E-05   -.44249E-03
   7  Prefactor     .10001E-03    10.068        .16189E-06** at limit **
   8  Prefactor     3.8235        9.0044        .12630E-05   -.51842E-04
   9  Prefactor     20.141        17.710        .82624E-07   -.20134E-04
  10  Prefactor     9.3281        18.373        .16646E-06   -.11963E-04
  11  Prefactor     .67685        5.1513        .79849E-06   -.27861E-03
  12  Prefactor     .10000E-03    20.174       -.20481E-06** at limit **
  13  Prefactor     .10000E-03    3.0843       -.23803E-07** at limit **
  14  Prefactor     121.51        75.041        .36694E-06   -.58382E-04
  15  Prefactor     6.4646        3.8039        .90288E-07   -.32622E-04
  16  norm          7.8656        3.9115        .34668E-07   -.10164E-03
  17  Prefactor     .10000E-03    88.319       -.57037E-06** at limit **
  18  norm          .43008        .56004        .32135E-06    .16914E-02
  19  Prefactor     9.8724        37.586        .43467E-05   -.10980E-04
  20  norm          3.3963        2.8797       -.71971E-06   -.45022E-04
  21  Prefactor     10.422        10.422        .42098E-06   -.36338E-04
  22  norm          2.9717        8.6900       -.53942E-06    .86476E-04
  23  Normalizat    .73495        .19818       -.17165E-05   -.13809E-03
  24  Prefactor     .99801        .11443        .56364E-06   -.30726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.910688
  Prefactor  = 49.3376
  Prefactor  = 10.9777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.470939
  Prefactor  = 0.000100006
  Prefactor  = 3.82346
  Prefactor  = 20.1412
  Prefactor  = 9.32806
  Prefactor  = 0.676848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 121.507
  Prefactor  = 6.46461
  norm       = 7.86563
  Prefactor  = 0.0001
  norm       = 0.430079
  Prefactor  = 9.87242
  norm       = 3.39635
  Prefactor  = 10.4219
  norm       = 2.97173
  Normalizat = 0.734946
  Prefactor  = 0.998007
 **********
 **   18 **HESSE 
 **********

 FCN=   7513.175     FROM HESSE     STATUS=OK           423 CALLS     3192 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91069        1.3168        .14517E-02   -1.5517    
   2  Prefactor     49.338        35.340        .57088E-04   -1.4302    
   3  Prefactor     10.978        24.080        .12088E-03   -1.5045    
   4  Prefactor     .10000E-03    36.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5796        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47094        6.6707        .28935E-02   -1.5571    
   7  Prefactor     .10001E-03    15.089        .71598E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8235        8.9208        .20641E-03   -1.5317    
   9  Prefactor     20.141        17.678        .89239E-04   -1.4810    
  10  Prefactor     9.3281        18.292        .13122E-03   -1.5097    
  11  Prefactor     .67685        11.389        .36657E-02   -1.5543    
  12  Prefactor     .10000E-03    20.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0927        .14861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     121.51        74.772        .36509E-04   -1.3499    
  15  Prefactor     6.4646        3.8009        .12263E-03   -1.5199    
  16  norm          7.8656        3.9122        .11036E-03   -1.5147    
  17  Prefactor     .10000E-03    88.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .43008        .51331        .78211E-03   -1.5577    
  19  Prefactor     9.8724        37.454        .12800E-03   -1.5079    
  20  norm          3.3963        2.8743        .69498E-04   -1.5339    
  21  Prefactor     10.422        10.402        .12412E-03   -1.5062    
  22  norm          2.9717        8.5896        .23545E-03   -1.5363    
  23  Normalizat    .73495        .22637        .33220E-03   -1.0253    
  24  Prefactor     .99801        .13373        .18074E-03   -.92796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73171e-10
Minuit parameter uncertainties:
  1  1.3168
  2  35.3549
  3  24.1011
  4  1.73698e-05
  5  2.96617e-07
  6  3.54494
  7  0.000611688
  8  8.92386
  9  17.6822
  10  18.3027
  11  5.55376
  12  2.87373e-06
  13  1.09471e-07
  14  74.8305
  15  3.80105
  16  3.91238
  17  9.65444e-05
  18  0.513319
  19  37.5432
  20  2.87446
  21  10.4039
  22  8.59313
  23  0.226659
  24  0.133774
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.095e-07  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.980e-01  1.338e-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.349e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/260002/likelihoodResults_511228801_511488001_4FGL_J2219.2-0342_daily_bin1049.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7513.17679251
delta logL = -0.00153967674942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7513.17525283
delta logL = 5.04223862663e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6771       1.0000          .0000       10.000    
     3 'Normalizat'    .73494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99801       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=   7513.175     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      256 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    520.64        .14877E-02** at limit **
   2  Index         2.4356        5.4472        .50000       -.71600E-07
   3  Normalizat    .73495        .79634E-01    .33220E-03   -.16427E-05
   4  Prefactor     .99801        .50208E-01    .18074E-03    .76738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43559
  Normalizat = 0.734946
  Prefactor  = 0.998007
 **********
 **   18 **HESSE 
 **********

 FCN=   7513.175     FROM HESSE     STATUS=OK            29 CALLS      285 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7665        .29753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4356        8.7657        .50000       -.53854    
   3  Normalizat    .73495        .20872        .13288E-04   -1.0253    
   4  Prefactor     .99801        .13168        .72297E-05   -.92796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28521e-12
Minuit parameter uncertainties:
  1  3.96343e-06
  2  152.269
  3  0.20895
  4  0.131723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260002': 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) = 7513.1752524
delta logL = 4.3450108933e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  3.963e-06  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.436e+00  1.523e+02  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.980e-01  1.317e-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.349e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.823 -3.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/260002/cmap_HighResolution_511228801_511488001_4FGL_J2219.2-0342_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-28 09:24:38.198456', job_id='260002', GAL2='1.00', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632846278.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1049' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 260002: <4FGL_J2219.2-0342_daily_bin1049> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1049> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:59 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:11:01 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:11:01 2021
Terminated at Tue Sep 28 09:24:38 2021
Results reported at Tue Sep 28 09:24:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1049 334.823 -3.7102 511228801 511488001 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 :                                   715.02 sec.
    Max Memory :                                 1216 MB
    Average Memory :                             322.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

