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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin599
RA = 334.823, Dec = -3.7102
tmin = 394588801, tmax = 394848001
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='258281', job_status='RUN', time_executed='2021-09-28 09:07:44.599645', time_epoch_executed='1632845264.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258281/ft1_4FGL_J2219.2-0342_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258281/ft2_4FGL_J2219.2-0342_daily_bin599.fits


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

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

Done.
real 4.59
user 4.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258281/ft1_filtered_4FGL_J2219.2-0342_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/258281/ft2_4FGL_J2219.2-0342_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/258281/ltcube_394588801_394848001_4FGL_J2219.2-0342_daily_bin599.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/258281/ft2_4FGL_J2219.2-0342_daily_bin599.fits
.....................!
real 11.76
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258281/ft1_filtered_4FGL_J2219.2-0342_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/258281/ft2_4FGL_J2219.2-0342_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/258281/ltcube_394588801_394848001_4FGL_J2219.2-0342_daily_bin599.fits outfile=/scratch/kocevski/258281/expmap_394588801_394848001_4FGL_J2219.2-0342_daily_bin599.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/258281/ltcube_394588801_394848001_4FGL_J2219.2-0342_daily_bin599.fits
.....................!
real 189.15
user 184.82
sys 3.99

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/258281/ft1_filtered_4FGL_J2219.2-0342_daily_bin599.fits scfile=/scratch/kocevski/258281/ft2_4FGL_J2219.2-0342_daily_bin599.fits outfile=/scratch/kocevski/258281/cmap_394588801_394848001_4FGL_J2219.2-0342_daily_bin599.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/258281/ft1_filtered_4FGL_J2219.2-0342_daily_bin599.fits scfile=/scratch/kocevski/258281/ft2_4FGL_J2219.2-0342_daily_bin599.fits outfile=/scratch/kocevski/258281/cmap_HighResolution_394588801_394848001_4FGL_J2219.2-0342_daily_bin599.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258281/ft1_filtered_4FGL_J2219.2-0342_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/258281/ft2_4FGL_J2219.2-0342_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258281/Model_4FGL_J2219.2-0342_daily_bin599.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/258281/ft1_filtered_4FGL_J2219.2-0342_daily_bin599.fits.....................!
real 51.40
user 50.08
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.495       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1478       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.994       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7909       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .93666       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9340       1.0000         .10000E-03   10000.    
    20 'norm      '    .10597E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .40219       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2220       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=   5153.319     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2748 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .61661       -.54197E-08** at limit **
   2  Prefactor     60.493        45.707        .52999E-06    .12071E-05
   3  Prefactor     .10000E-03    59.451        .20246E-05** at limit **
   4  Prefactor     .10000E-03    47.716       -.15843E-05** at limit **
   5  Prefactor     .10000E-03    5.6863        .92060E-07** at limit **
   6  Prefactor     6.1471        8.1884        .24024E-05    .16915E-03
   7  Prefactor     32.667        15.613        .13386E-06   -.58192E-05
   8  Prefactor     .10000E-03    5.7540       -.36059E-07** at limit **
   9  Prefactor     .10000E-03    6.3370       -.46713E-07** at limit **
  10  Prefactor     26.993        20.430        .22384E-06   -.11930E-04
  11  Prefactor     .10000E-03    12.353       -.72175E-07** at limit **
  12  Prefactor     40.371        37.216        .64877E-06    .98288E-05
  13  Prefactor     .10000E-03    21.008        .71672E-06** at limit **
  14  Prefactor     8.9247        166.58        .54972E-05   -.98404E-05
  15  Prefactor     .10000E-03    1.8266        .24287E-07** at limit **
  16  norm          1.7906        3.6597        .25338E-07   -.11709E-03
  17  Prefactor     .10000E-03    49.747       -.11864E-05** at limit **
  18  norm          .93668        1.0861       -.11728E-06   -.42253E-03
  19  Prefactor     2.9602        22.619        .44014E-05   -.18072E-03
  20  norm          .10000E-03    1.1665       -.23265E-06** at limit **
  21  Prefactor     .10000E-03    17.879       -.35913E-06** at limit **
  22  norm          .10000E-03    6.0559        .15163E-06** at limit **
  23  Normalizat    .40232        .25634       -.37239E-05   -.13741E-03
  24  Prefactor     1.2220        .15601        .22529E-06   -.27921E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 60.4932
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14709
  Prefactor  = 32.6673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9927
  Prefactor  = 0.0001
  Prefactor  = 40.3713
  Prefactor  = 0.0001
  Prefactor  = 8.92473
  Prefactor  = 0.0001
  norm       = 1.79064
  Prefactor  = 0.0001
  norm       = 0.936677
  Prefactor  = 2.96022
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.402322
  Prefactor  = 1.22195
 **********
 **   18 **HESSE 
 **********

 FCN=   5153.319     FROM HESSE     STATUS=OK           399 CALLS     3147 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .61703        .55034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.493        45.636        .51586E-04   -1.4151    
   3  Prefactor     .10000E-03    60.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7751        .16717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1471        8.0723        .80957E-03   -1.5212    
   7  Prefactor     32.667        15.597        .70108E-04   -1.4564    
   8  Prefactor     .10000E-03    5.7564        .16817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3427        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.993        20.400        .77106E-04   -1.4668    
  11  Prefactor     .10000E-03    12.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.371        37.182        .63086E-04   -1.4436    
  13  Prefactor     .10000E-03    21.759        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9247        165.30        .13404E-03   -1.5110    
  15  Prefactor     .10000E-03    1.8387        .94695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7906        3.6054        .18263E-03   -1.5440    
  17  Prefactor     .10000E-03    49.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .93668        1.0496        .77048E-03   -1.5514    
  19  Prefactor     2.9602        23.900        .11857E-02   -1.5364    
  20  norm          .10000E-03    2.3194        .14057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.0738        .17257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .40232        .26319        .43975E-03   -1.1718    
  24  Prefactor     1.2220        .16354        .16660E-03   -.85658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90417e-10
Minuit parameter uncertainties:
  1  1.74722e-07
  2  45.6622
  3  0.000502173
  4  0.00017938
  5  8.9356e-06
  6  8.0737
  7  15.5991
  8  3.65199e-06
  9  4.9291e-06
  10  20.4051
  11  3.04975e-05
  12  37.2033
  13  0.000109882
  14  77.0654
  15  3.47852e-06
  16  3.60583
  17  0.000132552
  18  1.04966
  19  16.8315
  20  3.98779e-05
  21  0.000141729
  22  8.43338e-06
  23  0.264002
  24  0.163604
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.099e-04  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.222e+00  1.636e-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.023e-01  2.640e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258281/likelihoodResults_394588801_394848001_4FGL_J2219.2-0342_daily_bin599.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) = 5153.31952104
delta logL = -0.000217770840209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5153.3193034
delta logL = -1.2410509953e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7115       1.0000          .0000       10.000    
     3 'Normalizat'    .40223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2220       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=   5153.319     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      227 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.097        .90712E-01** at limit **
   2  Index         2.7418        5.3982        .50000       -.12156E-04
   3  Normalizat    .40233        .12993E-01    .99237E-01    .60695E-04
   4  Prefactor     1.2220        .83165E-02    .34130E-01   -.12958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.7418
  Normalizat = 0.402325
  Prefactor  = 1.22195
 **********
 **   18 **HESSE 
 **********

 FCN=   5153.319     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7160.2        .31877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7418        5.2175        .50000       -.46860    
   3  Normalizat    .40233        .15100        .43975E-03   -1.1718    
   4  Prefactor     1.2220        .96019E-01    .16660E-03   -.85658    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54632e-08
Minuit parameter uncertainties:
  1  0.00153657
  2  66.3177
  3  0.151158
  4  0.0960327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258281': 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) = 5153.31930311
delta logL = 1.65257006302e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.537e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.742e+00  6.632e+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.222e+00  9.603e-02  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.023e-01  1.512e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/258281/cmap_HighResolution_394588801_394848001_4FGL_J2219.2-0342_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-28 09:17:30.517608', job_id='258281', GAL2='1.22', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1632845850.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='599' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:17:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 258281: <4FGL_J2219.2-0342_daily_bin599> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin599> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:41 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:42 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:42 2021
Terminated at Tue Sep 28 09:17:31 2021
Results reported at Tue Sep 28 09:17:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin599 334.823 -3.7102 394588801 394848001 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 :                                   584.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             316.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

