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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1499
RA = 334.823, Dec = -3.7102
tmin = 627868801, tmax = 628128001
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='262729', job_status='RUN', time_executed='2021-09-28 09:22:54.362363', time_epoch_executed='1632846174.36' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262729

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262729/ft1_4FGL_J2219.2-0342_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262729/ft2_4FGL_J2219.2-0342_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262729/ft1_4FGL_J2219.2-0342_daily_bin1499.fits outfile=/scratch/kocevski/262729/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1499.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=627868801.0 tmax=628128001.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.50
user 2.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262729/ft1_filtered_4FGL_J2219.2-0342_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/262729/ft2_4FGL_J2219.2-0342_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/262729/ltcube_627868801_628128001_4FGL_J2219.2-0342_daily_bin1499.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/262729/ft2_4FGL_J2219.2-0342_daily_bin1499.fits
.....................!
real 12.98
user 12.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262729/ft1_filtered_4FGL_J2219.2-0342_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/262729/ft2_4FGL_J2219.2-0342_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/262729/ltcube_627868801_628128001_4FGL_J2219.2-0342_daily_bin1499.fits outfile=/scratch/kocevski/262729/expmap_627868801_628128001_4FGL_J2219.2-0342_daily_bin1499.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/262729/ltcube_627868801_628128001_4FGL_J2219.2-0342_daily_bin1499.fits
.....................!
real 192.67
user 187.66
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/262729/ft1_filtered_4FGL_J2219.2-0342_daily_bin1499.fits scfile=/scratch/kocevski/262729/ft2_4FGL_J2219.2-0342_daily_bin1499.fits outfile=/scratch/kocevski/262729/cmap_627868801_628128001_4FGL_J2219.2-0342_daily_bin1499.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.61
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262729/ft1_filtered_4FGL_J2219.2-0342_daily_bin1499.fits scfile=/scratch/kocevski/262729/ft2_4FGL_J2219.2-0342_daily_bin1499.fits outfile=/scratch/kocevski/262729/cmap_HighResolution_627868801_628128001_4FGL_J2219.2-0342_daily_bin1499.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.59
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262729/ft1_filtered_4FGL_J2219.2-0342_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/262729/ft2_4FGL_J2219.2-0342_daily_bin1499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262729/Model_4FGL_J2219.2-0342_daily_bin1499.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/262729/ft1_filtered_4FGL_J2219.2-0342_daily_bin1499.fits.....................!
real 69.20
user 67.72
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.188       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 '    10.603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.208       1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.377       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8759       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4049       1.0000         .10000E-03   10000.    
    16 'norm      '    10.045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7133       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9776       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.0589       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81524       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97396       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=   7258.382     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2300 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3390        1.7171        .54117E-07   -.10880E-03
   2  Prefactor     .10000E-03    11.473       -.27996E-07** at limit **
   3  Prefactor     51.187        34.633       -.75041E-06   -.14560E-05
   4  Prefactor     .10000E-03    19.446        .87590E-05** at limit **
   5  Prefactor     .10000E-03    2.0408        .52763E-07** at limit **
   6  Prefactor     10.602        6.5343       -.35455E-06   -.11974E-03
   7  Prefactor     .10000E-03    2.8711        .10912E-07** at limit **
   8  Prefactor     9.5106        17.889        .15256E-06   -.36929E-04
   9  Prefactor     10.207        15.359       -.37928E-06   -.38722E-04
  10  Prefactor     73.378        24.145        .31420E-06   -.97036E-05
  11  Prefactor     3.8756        10.842       -.58879E-06   -.14735E-03
  12  Prefactor     21.964        23.365       -.14460E-05   -.10567E-04
  13  Prefactor     .10000E-03    3.0333        .82081E-07** at limit **
  14  Prefactor     .10000E-03    53.378       -.97228E-05** at limit **
  15  Prefactor     4.4042        4.0177       -.21590E-06   -.43872E-03
  16  norm          10.045        4.4825        .16115E-05   -.11480E-03
  17  Prefactor     .10000E-03    33.889        .14321E-04** at limit **
  18  norm          1.7134        1.0599        .12626E-07    .14613E-03
  19  Prefactor     .10000E-03    22.219       -.15443E-04** at limit **
  20  norm          5.9785        1.8820        .52788E-07    .15034E-02
  21  Prefactor     .10000E-03    6.6000        .27940E-06** at limit **
  22  norm          8.0586        11.864       -.18492E-06   -.62149E-04
  23  Normalizat    .81533        .20843       -.64097E-06    .22413E-04
  24  Prefactor     .97391        .12175        .24562E-06   -.60747E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33904
  Prefactor  = 0.0001
  Prefactor  = 51.1873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6024
  Prefactor  = 0.0001
  Prefactor  = 9.51059
  Prefactor  = 10.2071
  Prefactor  = 73.3778
  Prefactor  = 3.87557
  Prefactor  = 21.9639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.40425
  norm       = 10.0452
  Prefactor  = 0.0001
  norm       = 1.71335
  Prefactor  = 0.0001
  norm       = 5.97853
  Prefactor  = 0.0001
  norm       = 8.05862
  Normalizat = 0.81533
  Prefactor  = 0.973912
 **********
 **   18 **HESSE 
 **********

 FCN=   7258.382     FROM HESSE     STATUS=OK           399 CALLS     2699 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3390        1.7131        .92496E-04   -1.5402    
   2  Prefactor     .10000E-03    11.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     51.187        34.631        .56055E-04   -1.4276    
   4  Prefactor     .10000E-03    19.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0490        .11885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.602        6.5445        .12305E-03   -1.5057    
   7  Prefactor     .10000E-03    2.8788        .14097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5106        17.865        .12995E-03   -1.5091    
   9  Prefactor     10.207        15.336        .12541E-03   -1.5069    
  10  Prefactor     73.378        24.106        .46869E-04   -1.3993    
  11  Prefactor     3.8756        10.863        .20496E-03   -1.5314    
  12  Prefactor     21.964        23.355        .85461E-04   -1.4770    
  13  Prefactor     .10000E-03    3.0402        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4042        4.0168        .15441E-03   -1.5288    
  16  norm          10.045        4.4808        .11232E-03   -1.5074    
  17  Prefactor     .10000E-03    33.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7134        1.0598        .32109E-04   -1.5446    
  19  Prefactor     .10000E-03    22.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9785        1.8820        .63583E-04   -1.5219    
  21  Prefactor     .10000E-03    6.6648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.0586        11.869        .14123E-03   -1.5140    
  23  Normalizat    .81533        .24490        .33712E-03   -.99503    
  24  Prefactor     .97391        .14405        .19141E-03   -.93604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14201e-10
Minuit parameter uncertainties:
  1  1.71318
  2  5.40969e-07
  3  34.6447
  4  3.8852e-06
  5  5.79031e-07
  6  6.54499
  7  1.7656e-08
  8  17.8755
  9  15.342
  10  24.1095
  11  10.8688
  12  23.3651
  13  2.139e-06
  14  7.57056e-05
  15  4.01703
  16  4.48097
  17  5.33111e-05
  18  1.05982
  19  1.18643e-05
  20  1.88205
  21  1.42898e-06
  22  11.8728
  23  0.245232
  24  0.144105
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.139e-06  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.739e-01  1.441e-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.153e-01  2.452e-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/262729/likelihoodResults_627868801_628128001_4FGL_J2219.2-0342_daily_bin1499.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) = 7258.383843
delta logL = -0.00156489770143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7258.38227809
delta logL = 5.31326804776e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6792       1.0000          .0000       10.000    
     3 'Normalizat'    .81533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97391       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7258.382     FROM MIGRAD    STATUS=FAILED        98 CALLS      254 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    454.99        .14490E-02** at limit **
   2  Index         2.4986        5.7650        .50000       -.20732E-06
   3  Normalizat    .81533        .77675E-01    .33712E-03    .14231E-04
   4  Prefactor     .97391        .48166E-01    .19141E-03    .29519E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7258.382     FROM SIMPLEX   STATUS=UNCHANGED    190 CALLS      444 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    454.99        .32073E-03** at limit **
   2  Index         2.4986        5.7650        .42058E-06   -.20732E-06
   3  Normalizat    .81533        .77675E-01    .26288E-07    .14231E-04
   4  Prefactor     .97391        .48166E-01    .85705E-08    .29519E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7258.382     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      478 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8875        .28980E-03** at limit **
   2  Index         2.5000        8.6390        .50000       -.12999E-06
   3  Normalizat    .81533        .22997        .13485E-04    .14164E-04
   4  Prefactor     .97391        .14270        .76563E-05    .29401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50002
  Normalizat = 0.815329
  Prefactor  = 0.973912
 **********
 **   18 **HESSE 
 **********

 FCN=   7258.382     FROM HESSE     STATUS=OK            29 CALLS      507 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1010        .57960E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5000        6.3294        .50000       -.52360    
   3  Normalizat    .81533        .22997        .26969E-05   -.99503    
   4  Prefactor     .97391        .14269        .15313E-05   -.93604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02482e-11
Minuit parameter uncertainties:
  1  1.8569e-05
  2  160.837
  3  0.230245
  4  0.142748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262729': 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) = 7258.38227791
delta logL = 1.86139004654e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.857e-05  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.500e+00  1.608e+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.739e-01  1.427e-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.153e-01  2.302e-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/262729/cmap_HighResolution_627868801_628128001_4FGL_J2219.2-0342_daily_bin1499.png

Cleaning up...

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

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:34:19.498651', job_id='262729', GAL2='0.97', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632846859.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1499' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 262729: <4FGL_J2219.2-0342_daily_bin1499> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1499 334.823 -3.7102 627868801 628128001 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

