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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1422
RA = 334.823, Dec = -3.7102
tmin = 607910401, tmax = 608169601
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='261630', job_status='RUN', time_executed='2021-09-28 09:19:17.681270', time_epoch_executed='1632845957.68' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261630

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261630/ft1_4FGL_J2219.2-0342_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261630/ft2_4FGL_J2219.2-0342_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261630/ft1_4FGL_J2219.2-0342_daily_bin1422.fits outfile=/scratch/kocevski/261630/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1422.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=607910401.0 tmax=608169601.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.62
user 3.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261630/ft1_filtered_4FGL_J2219.2-0342_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/261630/ft2_4FGL_J2219.2-0342_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/261630/ltcube_607910401_608169601_4FGL_J2219.2-0342_daily_bin1422.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/261630/ft2_4FGL_J2219.2-0342_daily_bin1422.fits
.....................!
real 11.87
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261630/ft1_filtered_4FGL_J2219.2-0342_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/261630/ft2_4FGL_J2219.2-0342_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/261630/ltcube_607910401_608169601_4FGL_J2219.2-0342_daily_bin1422.fits outfile=/scratch/kocevski/261630/expmap_607910401_608169601_4FGL_J2219.2-0342_daily_bin1422.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/261630/ltcube_607910401_608169601_4FGL_J2219.2-0342_daily_bin1422.fits
.....................!
real 190.10
user 185.79
sys 3.96

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/261630/ft1_filtered_4FGL_J2219.2-0342_daily_bin1422.fits scfile=/scratch/kocevski/261630/ft2_4FGL_J2219.2-0342_daily_bin1422.fits outfile=/scratch/kocevski/261630/cmap_607910401_608169601_4FGL_J2219.2-0342_daily_bin1422.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261630/ft1_filtered_4FGL_J2219.2-0342_daily_bin1422.fits scfile=/scratch/kocevski/261630/ft2_4FGL_J2219.2-0342_daily_bin1422.fits outfile=/scratch/kocevski/261630/cmap_HighResolution_607910401_608169601_4FGL_J2219.2-0342_daily_bin1422.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261630/ft1_filtered_4FGL_J2219.2-0342_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/261630/ft2_4FGL_J2219.2-0342_daily_bin1422.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261630/Model_4FGL_J2219.2-0342_daily_bin1422.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/261630/ft1_filtered_4FGL_J2219.2-0342_daily_bin1422.fits.....................!
real 77.33
user 75.88
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.367       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9498       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.082       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.077       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1449       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69226       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9810       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .95160       1.0000         .10000E-03   10000.    
    16 'norm      '    6.1672       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.439       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3474       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.913       1.0000         .10000E-03   10000.    
    20 'norm      '    10.325       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .41281E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .48012       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1670       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=   8518.850     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2866 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68558       -.23004E-07** at limit **
   2  Prefactor     .10003E-03    86.929       -.38108E-05** at limit **
   3  Prefactor     40.369        29.904       -.44905E-07    .18135E-04
   4  Prefactor     44.608        41.004        .85953E-06   -.47748E-04
   5  Prefactor     .10000E-03    5.2142       -.20123E-05** at limit **
   6  Prefactor     2.9502        5.0137       -.12250E-06    .25508E-03
   7  Prefactor     10.083        9.1741       -.10453E-06   -.20155E-03
   8  Prefactor     15.073        18.033       -.70520E-06   -.98954E-05
   9  Prefactor     .10000E-03    8.2358       -.24801E-07** at limit **
  10  Prefactor     .10000E-03    12.319        .44499E-06** at limit **
  11  Prefactor     5.1440        6.9635       -.63405E-06    .60337E-03
  12  Prefactor     .66961        19.908       -.26087E-05   -.51985E-04
  13  Prefactor     2.9798        10.662       -.68327E-05    .56003E-05
  14  Prefactor     38.283        42.662        .20560E-06    .10264E-03
  15  Prefactor     .95339        3.3245        .20281E-05    .64299E-03
  16  norm          6.1664        3.3451       -.32350E-06    .65302E-04
  17  Prefactor     26.434        34.160       -.31713E-06   -.16342E-03
  18  norm          1.3473        .74200        .17341E-07    .21824E-03
  19  Prefactor     49.942        71.552        .28912E-05   -.12898E-03
  20  norm          10.322        6.1486       -.60491E-06   -.18294E-04
  21  Prefactor     .10001E-03    79.375        .29355E-04** at limit **
  22  norm          .10000E-03    9.0343        .31880E-06** at limit **
  23  Normalizat    .48006        .20065        .17481E-05   -.40795E-03
  24  Prefactor     1.1671        .11810       -.60746E-06   -.11823E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 40.3691
  Prefactor  = 44.6084
  Prefactor  = 0.000100003
  Prefactor  = 2.95018
  Prefactor  = 10.0835
  Prefactor  = 15.0734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.14402
  Prefactor  = 0.669615
  Prefactor  = 2.97982
  Prefactor  = 38.2825
  Prefactor  = 0.953388
  norm       = 6.16643
  Prefactor  = 26.4343
  norm       = 1.34734
  Prefactor  = 49.9421
  norm       = 10.3223
  Prefactor  = 0.000100013
  norm       = 0.000100001
  Normalizat = 0.480063
  Prefactor  = 1.16708
 **********
 **   18 **HESSE 
 **********

 FCN=   8518.850     FROM HESSE     STATUS=OK           407 CALLS     3273 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .69700        .74581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    89.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.369        29.891        .63089E-04   -1.4436    
   4  Prefactor     44.608        41.090        .60021E-04   -1.4371    
   5  Prefactor     .10000E-03    5.4600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9502        4.9880        .23646E-03   -1.5364    
   7  Prefactor     10.083        9.1681        .12619E-03   -1.5073    
   8  Prefactor     15.073        17.990        .10315E-03   -1.4931    
   9  Prefactor     .10000E-03    8.2787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1440        6.9531        .88621E-03   -1.5254    
  12  Prefactor     .66961        169.88        .75218E-02   -1.5544    
  13  Prefactor     2.9798        10.714        .11757E-02   -1.5363    
  14  Prefactor     38.283        42.646        .64783E-04   -1.4470    
  15  Prefactor     .95339        3.2545        .27151E-03   -1.5513    
  16  norm          6.1664        3.3371        .58047E-03   -1.5211    
  17  Prefactor     26.434        34.147        .77909E-04   -1.4679    
  18  norm          1.3473        .74218        .57139E-04   -1.5476    
  19  Prefactor     49.942        71.492        .56763E-04   -1.4293    
  20  norm          10.322        6.1450        .66009E-04   -1.5065    
  21  Prefactor     .10001E-03    6.8234        .80948E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.1093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .48006        .21069        .40841E-03   -1.1335    
  24  Prefactor     1.1671        .12834        .17319E-03   -.87350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91785e-08
Minuit parameter uncertainties:
  1  6.12074e-07
  2  0.00306434
  3  29.9019
  4  41.1159
  5  0.000253204
  6  4.98867
  7  9.16934
  8  17.9962
  9  4.09055e-05
  10  8.0314e-05
  11  6.9542
  12  21.3912
  13  10.7212
  14  42.6802
  15  3.25511
  16  3.33721
  17  34.1724
  18  0.742181
  19  71.6148
  20  6.14533
  21  0.000598059
  22  0.000156595
  23  0.211039
  24  0.12837
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.980e+00  1.072e+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:  1.167e+00  1.284e-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:  4.801e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261630/likelihoodResults_607910401_608169601_4FGL_J2219.2-0342_daily_bin1422.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) = 8518.3787487
delta logL = 0.470866285696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8518.296414
delta logL = 0.553200990562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4655       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4494       1.0000          .0000       10.000    
     3 'Normalizat'    .42280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1882       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=   8518.296     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      222 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4626        24.402        .88802E-02    .10426E-02
   2  Index         4.4507        3.7922        .20266        .12055E-03
   3  Normalizat    .42282        .41260E-01    .97986E-01    .59353E-04
   4  Prefactor     1.1882        .26513E-01    .34916E-01   -.32543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4626
  Index      = 4.45071
  Normalizat = 0.422823
  Prefactor  = 1.18822
 **********
 **   18 **HESSE 
 **********

 FCN=   8518.296     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      255 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4626        64.023        .10261E-03   -1.5466    
   2  Index         4.4507        6.9825        .90092E-02   -.11008    
   3  Normalizat    .42282        .17328        .43420E-03   -1.1614    
   4  Prefactor     1.1882        .11260        .17179E-03   -.86694    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.44311e-07
Minuit parameter uncertainties:
  1  19.375
  2  9.46829
  3  0.173498
  4  0.112621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261630': 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) = 8518.29641378
delta logL = 0.553201211023

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.463e+00  1.937e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  4.451e+00  9.468e+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:  1.188e+00  1.126e-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:  4.228e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 4.45 +/- 9.47
Photon Flux (Free Index): 5.80e-08 +/- 6.58e-08
Energy Flux (Free Index): 8.15e-06 +/- 1.61e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', comment='SUCCESS', energy_flux2='8.15e-06', dlogl='5.53e-01', photon_flux2='5.80e-08', job_status='DONE', time_completed='2021-09-28 09:32:22.406757', photon_index_error2='9.47', photon_index2='4.45', ts='0.10', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.61e-05', EG='0.48', time_epoch_completed='1632846742.41', return_code='0', job_id='261630', GAL2='1.19', EG2='0.42', return_code2='102', photon_flux_error2='6.58e-08', ts2='1.32', photon_index='2.68' WHERE bin_id='1422' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:32:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 261630: <4FGL_J2219.2-0342_daily_bin1422> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1422 334.823 -3.7102 607910401 608169601 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 :                                   783.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

