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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin852
RA = 334.823, Dec = -3.7102
tmin = 460166401, tmax = 460425601
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='259695', job_status='RUN', time_executed='2021-09-28 09:14:26.991329', time_epoch_executed='1632845666.99' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259695/ft1_4FGL_J2219.2-0342_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259695/ft2_4FGL_J2219.2-0342_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259695/ft1_4FGL_J2219.2-0342_daily_bin852.fits outfile=/scratch/kocevski/259695/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin852.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=460166401.0 tmax=460425601.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.40
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259695/ft1_filtered_4FGL_J2219.2-0342_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/259695/ft2_4FGL_J2219.2-0342_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/259695/ltcube_460166401_460425601_4FGL_J2219.2-0342_daily_bin852.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/259695/ft2_4FGL_J2219.2-0342_daily_bin852.fits
.....................!
real 11.72
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259695/ft1_filtered_4FGL_J2219.2-0342_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/259695/ft2_4FGL_J2219.2-0342_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/259695/ltcube_460166401_460425601_4FGL_J2219.2-0342_daily_bin852.fits outfile=/scratch/kocevski/259695/expmap_460166401_460425601_4FGL_J2219.2-0342_daily_bin852.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/259695/ltcube_460166401_460425601_4FGL_J2219.2-0342_daily_bin852.fits
.....................!
real 190.57
user 185.44
sys 4.82

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/259695/ft1_filtered_4FGL_J2219.2-0342_daily_bin852.fits scfile=/scratch/kocevski/259695/ft2_4FGL_J2219.2-0342_daily_bin852.fits outfile=/scratch/kocevski/259695/cmap_460166401_460425601_4FGL_J2219.2-0342_daily_bin852.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259695/ft1_filtered_4FGL_J2219.2-0342_daily_bin852.fits scfile=/scratch/kocevski/259695/ft2_4FGL_J2219.2-0342_daily_bin852.fits outfile=/scratch/kocevski/259695/cmap_HighResolution_460166401_460425601_4FGL_J2219.2-0342_daily_bin852.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259695/ft1_filtered_4FGL_J2219.2-0342_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/259695/ft2_4FGL_J2219.2-0342_daily_bin852.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259695/Model_4FGL_J2219.2-0342_daily_bin852.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/259695/ft1_filtered_4FGL_J2219.2-0342_daily_bin852.fits.....................!
real 62.86
user 61.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.790       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9999       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5993       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.247       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3309       1.0000         .10000E-03   10000.    
    16 'norm      '    32.887       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.803       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5851       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.545       1.0000         .10000E-03   10000.    
    20 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6338       1.0000         .10000E-03   10000.    
    22 'norm      '    11.607       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .65643       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94241       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=   6377.123     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     3191 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0534        .69391E-07** at limit **
   2  Prefactor     .10000E-03    16.405        .51557E-06** at limit **
   3  Prefactor     44.900        44.327       -.89178E-06   -.45584E-05
   4  Prefactor     .10000E-03    15.578       -.57625E-06** at limit **
   5  Prefactor     .10000E-03    2.1392        .12217E-07** at limit **
   6  Prefactor     .10000E-03    7.0678        .66376E-07** at limit **
   7  Prefactor     .10000E-03    4.9243        .50436E-07** at limit **
   8  Prefactor     12.282        12.611       -.12235E-06   -.32712E-05
   9  Prefactor     .10000E-03    10.152        .24934E-06** at limit **
  10  Prefactor     47.791        23.765       -.14851E-06   -.11239E-04
  11  Prefactor     .10000E-03    10.243        .65663E-07** at limit **
  12  Prefactor     9.9933        24.412        .20823E-05    .99327E-06
  13  Prefactor     5.5977        12.839       -.58972E-06   -.13704E-04
  14  Prefactor     33.253        49.746       -.12250E-05   -.55554E-05
  15  Prefactor     4.3328        6.7629        .17665E-05   -.14744E-03
  16  norm          32.887        7.3646       -.47359E-06   -.10575E-03
  17  Prefactor     37.699        119.19        .18644E-04   -.33119E-05
  18  norm          1.5851        1.2290        .25642E-07   -.16076E-03
  19  Prefactor     23.539        29.707       -.64156E-06   -.16755E-03
  20  norm          .10000E-03    1.8540        .13144E-06** at limit **
  21  Prefactor     3.6338        13.253       -.25126E-06   -.36802E-04
  22  norm          11.611        13.720       -.82915E-07   -.87594E-05
  23  Normalizat    .65641        .23097       -.10160E-05   -.61942E-04
  24  Prefactor     .94242        .12360       -.19461E-06   -.93720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.9004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2817
  Prefactor  = 0.0001
  Prefactor  = 47.7914
  Prefactor  = 0.0001
  Prefactor  = 9.99328
  Prefactor  = 5.59771
  Prefactor  = 33.253
  Prefactor  = 4.33282
  norm       = 32.8866
  Prefactor  = 37.6986
  norm       = 1.58506
  Prefactor  = 23.5392
  norm       = 0.0001
  Prefactor  = 3.63382
  norm       = 11.6107
  Normalizat = 0.656412
  Prefactor  = 0.942424
 **********
 **   18 **HESSE 
 **********

 FCN=   6377.123     FROM HESSE     STATUS=OK           399 CALLS     3590 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0615        .79978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.900        44.301        .59837E-04   -1.4367    
   4  Prefactor     .10000E-03    15.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1421        .11407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9401        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.282        12.605        .11431E-03   -1.5007    
   9  Prefactor     .10000E-03    10.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.791        23.757        .58004E-04   -1.4324    
  11  Prefactor     .10000E-03    10.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9933        24.416        .12671E-03   -1.5076    
  13  Prefactor     5.5977        12.874        .16977E-03   -1.5235    
  14  Prefactor     33.253        49.725        .69496E-04   -1.4554    
  15  Prefactor     4.3328        6.7910        .96781E-03   -1.5292    
  16  norm          32.887        7.3721        .69874E-04   -1.4560    
  17  Prefactor     37.699        117.65        .65186E-04   -1.4479    
  18  norm          1.5851        1.2139        .73847E-04   -1.5456    
  19  Prefactor     23.539        25.575        .82551E-04   -1.4737    
  20  norm          .10000E-03    2.7374        .17529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.6338        13.188        .21193E-03   -1.5327    
  22  norm          11.611        13.764        .11759E-03   -1.5026    
  23  Normalizat    .65641        .26663        .36494E-03   -1.0564    
  24  Prefactor     .94242        .14442        .18306E-03   -.94674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42109e-10
Minuit parameter uncertainties:
  1  2.59784e-06
  2  8.41514e-06
  3  44.3331
  4  2.18656e-06
  5  9.50882e-07
  6  1.45812e-05
  7  4.45707e-06
  8  12.6081
  9  7.93192e-06
  10  23.7622
  11  1.69648e-05
  12  24.4408
  13  12.88
  14  49.7871
  15  6.79225
  16  7.37232
  17  118.384
  18  1.21394
  19  25.5864
  20  6.61294e-05
  21  13.1987
  22  13.7676
  23  0.267156
  24  0.144476
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.598e+00  1.288e+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:  9.424e-01  1.445e-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:  6.564e-01  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259695/likelihoodResults_460166401_460425601_4FGL_J2219.2-0342_daily_bin852.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) = 6372.86605975
delta logL = 4.2572007665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6370.8947376
delta logL = 6.22852291601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32813E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    .64677E-05   1.0000          .0000       10.000    
     3 'Normalizat'    .65939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94562       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=   6370.895     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      266 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32899E-01    .33464E-01    .31781E-02   -.29427E-02
   2  Index         .78619E-10    .21864        .50000    ** at limit **
   3  Normalizat    .65962        .20382        .82075E-01    .11226E-03
   4  Prefactor     .94572        .12183        .45584E-01    .12962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0328985
  Index      = 7.86193e-11
  Normalizat = 0.659621
  Prefactor  = 0.945715
 **********
 **   18 **HESSE 
 **********

 FCN=   6370.895     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32899E-01    .33238E-01    .11997E-03   -1.5672    
   2  Index         .78619E-10    1.0923        .19270E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .65962        .23516        .36347E-03   -1.0551    
   4  Prefactor     .94572        .14092        .18273E-03   -.94561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35506e-11
Minuit parameter uncertainties:
  1  0.0332384
  2  1.88887e-05
  3  0.235517
  4  0.140979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259695': 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) = 6370.8947258
delta logL = 6.22853471686

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.290e-02  3.324e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  7.862e-11  1.889e-05  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.457e-01  1.410e-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:  6.596e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.74
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.29e-09 +/- 3.32e-09
Energy Flux (Free Index): 1.65e-04 +/- 1.66e-04

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/259695/cmap_HighResolution_460166401_460425601_4FGL_J2219.2-0342_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.65e-04', dlogl='6.23e+00', photon_flux2='3.29e-09', job_status='DONE', time_completed='2021-09-28 09:25:43.093759', photon_index_error2='0.00', photon_index2='0.00', ts='0.29', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.66e-04', EG='0.66', time_epoch_completed='1632846343.09', return_code='0', job_id='259695', GAL2='0.95', EG2='0.66', return_code2='0', photon_flux_error2='3.32e-09', ts2='12.74', photon_index='2.68' WHERE bin_id='852' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 259695: <4FGL_J2219.2-0342_daily_bin852> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin852 334.823 -3.7102 460166401 460425601 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 :                                   677.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

