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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin489
RA = 334.823, Dec = -3.7102
tmin = 366076801, tmax = 366336001
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='258122', job_status='RUN', time_executed='2021-09-28 09:05:45.101720', time_epoch_executed='1632845145.1' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258122

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258122/ft1_4FGL_J2219.2-0342_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258122/ft2_4FGL_J2219.2-0342_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258122/ft1_4FGL_J2219.2-0342_daily_bin489.fits outfile=/scratch/kocevski/258122/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin489.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.33
user 5.02
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258122/ft1_filtered_4FGL_J2219.2-0342_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/258122/ft2_4FGL_J2219.2-0342_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/258122/ltcube_366076801_366336001_4FGL_J2219.2-0342_daily_bin489.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/258122/ft2_4FGL_J2219.2-0342_daily_bin489.fits
.....................!
real 11.45
user 11.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258122/ft1_filtered_4FGL_J2219.2-0342_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/258122/ft2_4FGL_J2219.2-0342_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/258122/ltcube_366076801_366336001_4FGL_J2219.2-0342_daily_bin489.fits outfile=/scratch/kocevski/258122/expmap_366076801_366336001_4FGL_J2219.2-0342_daily_bin489.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/258122/ltcube_366076801_366336001_4FGL_J2219.2-0342_daily_bin489.fits
.....................!
real 191.20
user 185.90
sys 4.08

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/258122/ft1_filtered_4FGL_J2219.2-0342_daily_bin489.fits scfile=/scratch/kocevski/258122/ft2_4FGL_J2219.2-0342_daily_bin489.fits outfile=/scratch/kocevski/258122/cmap_366076801_366336001_4FGL_J2219.2-0342_daily_bin489.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258122/ft1_filtered_4FGL_J2219.2-0342_daily_bin489.fits scfile=/scratch/kocevski/258122/ft2_4FGL_J2219.2-0342_daily_bin489.fits outfile=/scratch/kocevski/258122/cmap_HighResolution_366076801_366336001_4FGL_J2219.2-0342_daily_bin489.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258122/ft1_filtered_4FGL_J2219.2-0342_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/258122/ft2_4FGL_J2219.2-0342_daily_bin489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258122/Model_4FGL_J2219.2-0342_daily_bin489.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/258122/ft1_filtered_4FGL_J2219.2-0342_daily_bin489.fits.....................!
real 63.31
user 61.76
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2179       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13369E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22497E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11779E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .43283E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8882       1.0000         .10000E-03   10000.    
    16 'norm      '    9.9045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.4860       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .98261E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .88169       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5727       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .19407       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4339       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=   6615.052     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     3572 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2181        2.4379        .12906E-03   -.56237E-03
   2  Prefactor     .10001E-03    77.538        .18142E-02** at limit **
   3  Prefactor     .10000E-03    98.889        .36285E-02** at limit **
   4  Prefactor     .10000E-03    19.274        .18142E-02** at limit **
   5  Prefactor     3.5270        7.7264        .10764E-02    .21667E-03
   6  Prefactor     .10000E-03    2.4791        .12434E-02** at limit **
   7  Prefactor     .10000E-03    3.6516        .15167E-02** at limit **
   8  Prefactor     .10000E-03    9.0530        .18142E-02** at limit **
   9  Prefactor     18.084        18.839        .94129E-04   -.22344E-04
  10  Prefactor     .10000E-03    4.8330        .17457E-02** at limit **
  11  Prefactor     .10000E-03    3.7778        .15425E-02** at limit **
  12  Prefactor     23.643        27.449        .82377E-04   -.23876E-04
  13  Prefactor     .10011E-03    42.067        .36915E-02** at limit **
  14  Prefactor     .10001E-03    448.69        .21227E-02** at limit **
  15  Prefactor     3.8853        6.1339        .20463E-03   -.99116E-04
  16  norm          9.9066        5.6381        .12733E-03    .13840E-02
  17  Prefactor     .10000E-03    92.808        .18142E-02** at limit **
  18  norm          7.4871        1.8478        .52972E-04    .17539E-02
  19  Prefactor     .10104E-03    174.74        .52176E-02** at limit **
  20  norm          .88126        1.4348        .13100E-02    .56569E-03
  21  Prefactor     9.5742        10.780        .12952E-03    .83034E-04
  22  norm          .10000E-03    12.603        .18142E-02** at limit **
  23  Normalizat    .19374        .26024        .68268E-03    .15158E-03
  24  Prefactor     1.4341        .16044        .16863E-03    .49108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21814
  Prefactor  = 0.000100005
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 3.52697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6431
  Prefactor  = 0.000100108
  Prefactor  = 0.000100009
  Prefactor  = 3.8853
  norm       = 9.90664
  Prefactor  = 0.0001
  norm       = 7.48713
  Prefactor  = 0.000101045
  norm       = 0.881258
  Prefactor  = 9.57416
  norm       = 0.0001
  Normalizat = 0.19374
  Prefactor  = 1.43413
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.052     FROM HESSE     STATUS=OK           375 CALLS     3947 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2181        2.4377        .51622E-05   -1.5410    
   2  Prefactor     .10001E-03    77.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    99.680        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5270        7.7238        .43056E-04   -1.5332    
   6  Prefactor     .10000E-03    2.4797        .24867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6517        .30333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.0538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.084        18.838        .37651E-05   -1.4857    
  10  Prefactor     .10000E-03    4.8331        .34913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7779        .30850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.643        27.447        .32951E-05   -1.4735    
  13  Prefactor     .10011E-03    42.558        .73831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    448.93        .42454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8853        6.1257        .81850E-05   -1.5314    
  16  norm          9.9066        5.6360        .50930E-05   -1.5078    
  17  Prefactor     .10000E-03    92.810        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.4871        1.8475        .10594E-04   -1.5161    
  19  Prefactor     .10104E-03    175.24        .20870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .88126        1.4154        .52402E-04   -1.5520    
  21  Prefactor     9.5742        10.777        .51809E-05   -1.5089    
  22  norm          .10000E-03    12.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .19374        .25947        .27307E-04   -1.2987    
  24  Prefactor     1.4341        .16006        .33725E-04   -.79401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54469e-09
Minuit parameter uncertainties:
  1  2.43782
  2  0.00128462
  3  0.00131266
  4  1.8009e-05
  5  7.72603
  6  6.58534e-06
  7  1.66755e-05
  8  1.60351e-05
  9  18.844
  10  1.77938e-05
  11  7.17159e-08
  12  27.4619
  13  0.00428397
  14  0.00398433
  15  6.1267
  16  5.63626
  17  4.57349e-05
  18  1.84752
  19  0.0271416
  20  1.41548
  21  10.7794
  22  5.37817e-05
  23  0.261112
  24  0.160114
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.001e-04  4.284e-03  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.434e+00  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.937e-01  2.611e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258122/likelihoodResults_366076801_366336001_4FGL_J2219.2-0342_daily_bin489.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) = 6615.05186252
delta logL = -0.000112272442493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6615.0517535
delta logL = -3.25215023622e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77511E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7803       1.0000          .0000       10.000    
     3 'Normalizat'    .19374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4342       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=   6615.052     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      231 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    36.778        .80114E-01** at limit **
   2  Index         2.7991        5.1512        .50000       -.30422E-04
   3  Normalizat    .19374        .11886E-01    .15612        .15700E-03
   4  Prefactor     1.4341        .76827E-02    .30605E-01    .36002E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100111
  Index      = 2.79913
  Normalizat = 0.193741
  Prefactor  = 1.43413
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.052     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      274 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    62.460        .64994E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7991        5.8563        .50000       -.45579    
   3  Normalizat    .19374        .13572E-01    .68266E-03   -1.2987    
   4  Prefactor     1.4341        .86775E-02    .16863E-03   -.79401    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.31894e-09
Minuit parameter uncertainties:
  1  0.00526848
  2  11.6189
  3  0.0135724
  4  0.00867751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258122': 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) = 6615.05174948
delta logL = 7.73583451519e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.001e-04  5.268e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.799e+00  1.162e+01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.434e+00  8.678e-03  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.937e-01  1.357e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/258122/cmap_HighResolution_366076801_366336001_4FGL_J2219.2-0342_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-28 09:18:06.186777', job_id='258122', GAL2='1.43', fit_tolerance='1e-08', EG2='0.19', EG='0.19', time_epoch_completed='1632845886.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='7.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='489' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:18:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 258122: <4FGL_J2219.2-0342_daily_bin489> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin489> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:27 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:29 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:05:29 2021
Terminated at Tue Sep 28 09:18:06 2021
Results reported at Tue Sep 28 09:18:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin489 334.823 -3.7102 366076801 366336001 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

