/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 118 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin46
RA = 334.823, Dec = -3.7102
tmin = 251251201, tmax = 251510401
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='255318', job_status='RUN', time_executed='2021-09-28 08:57:37.033095', time_epoch_executed='1632844657.03' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255318/ft1_4FGL_J2219.2-0342_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255318/ft2_4FGL_J2219.2-0342_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255318/ft1_4FGL_J2219.2-0342_daily_bin46.fits outfile=/scratch/kocevski/255318/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin46.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=251251201.0 tmax=251510401.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 1.47
user 1.29
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255318/ft1_filtered_4FGL_J2219.2-0342_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/255318/ft2_4FGL_J2219.2-0342_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/255318/ltcube_251251201_251510401_4FGL_J2219.2-0342_daily_bin46.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/255318/ft2_4FGL_J2219.2-0342_daily_bin46.fits
.....................!
real 12.83
user 12.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255318/ft1_filtered_4FGL_J2219.2-0342_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/255318/ft2_4FGL_J2219.2-0342_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/255318/ltcube_251251201_251510401_4FGL_J2219.2-0342_daily_bin46.fits outfile=/scratch/kocevski/255318/expmap_251251201_251510401_4FGL_J2219.2-0342_daily_bin46.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/255318/ltcube_251251201_251510401_4FGL_J2219.2-0342_daily_bin46.fits
.....................!
real 189.81
user 184.93
sys 4.53

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/255318/ft1_filtered_4FGL_J2219.2-0342_daily_bin46.fits scfile=/scratch/kocevski/255318/ft2_4FGL_J2219.2-0342_daily_bin46.fits outfile=/scratch/kocevski/255318/cmap_251251201_251510401_4FGL_J2219.2-0342_daily_bin46.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255318/ft1_filtered_4FGL_J2219.2-0342_daily_bin46.fits scfile=/scratch/kocevski/255318/ft2_4FGL_J2219.2-0342_daily_bin46.fits outfile=/scratch/kocevski/255318/cmap_HighResolution_251251201_251510401_4FGL_J2219.2-0342_daily_bin46.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255318/ft1_filtered_4FGL_J2219.2-0342_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/255318/ft2_4FGL_J2219.2-0342_daily_bin46.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255318/Model_4FGL_J2219.2-0342_daily_bin46.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/255318/ft1_filtered_4FGL_J2219.2-0342_daily_bin46.fits.....................!
real 78.54
user 77.15
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8475       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.977       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3533       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13432E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.732       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6022       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7032       1.0000         .10000E-03   10000.    
    16 'norm      '    26.478       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6906       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81967       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=   8095.134     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2708 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8479        1.7262        .51938E-07   -.22259E-03
   2  Prefactor     .10000E-03    8.8651        .10347E-06** at limit **
   3  Prefactor     29.974        34.028        .14424E-06   -.14727E-03
   4  Prefactor     9.3763        32.795       -.80834E-05   -.16106E-03
   5  Prefactor     .10000E-03    4.0979        .28776E-05** at limit **
   6  Prefactor     .10000E-03    3.5427        .17460E-05** at limit **
   7  Prefactor     .10000E-03    4.8783        .54492E-07** at limit **
   8  Prefactor     15.186        16.171       -.25383E-06   -.28061E-03
   9  Prefactor     .10000E-03    8.3682       -.41167E-06** at limit **
  10  Prefactor     13.732        13.030        .16039E-06   -.26623E-03
  11  Prefactor     .10000E-03    2.8275       -.13977E-07** at limit **
  12  Prefactor     51.784        30.605        .22028E-06   -.12264E-03
  13  Prefactor     9.5989        11.256        .20090E-06   -.14181E-03
  14  Prefactor     .10002E-03    31.871        .17191E-05** at limit **
  15  Prefactor     3.7048        4.7863        .95729E-07   -.39795E-03
  16  norm          26.477        5.7767        .12070E-06   -.26076E-03
  17  Prefactor     .10002E-03    36.592       -.17568E-05** at limit **
  18  norm          .10000E-03    .19288       -.99970E-08** at limit **
  19  Prefactor     .10000E-03    4.3318       -.36244E-07** at limit **
  20  norm          .10000E-03    .30072       -.13139E-07** at limit **
  21  Prefactor     .10000E-03    9.3878        .29887E-06** at limit **
  22  norm          1.6893        13.503        .12604E-04   -.26069E-03
  23  Normalizat    1.0908        .18654       -.10480E-05   -.74153E-03
  24  Prefactor     .81969        .10756       -.67038E-06   -.11443E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84788
  Prefactor  = 0.0001
  Prefactor  = 29.9737
  Prefactor  = 9.37626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1859
  Prefactor  = 0.000100001
  Prefactor  = 13.7319
  Prefactor  = 0.0001
  Prefactor  = 51.7843
  Prefactor  = 9.5989
  Prefactor  = 0.000100017
  Prefactor  = 3.70482
  norm       = 26.4766
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.68928
  Normalizat = 1.09082
  Prefactor  = 0.819694
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.134     FROM HESSE     STATUS=OK           393 CALLS     3101 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8479        1.7167        .10996E-03   -1.5436    
   2  Prefactor     .10000E-03    8.8714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.974        34.014        .73178E-04   -1.4612    
   4  Prefactor     9.3763        33.474        .13104E-03   -1.5095    
   5  Prefactor     .10000E-03    13.461        .33140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3772        .31857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.186        16.169        .10278E-03   -1.4928    
   9  Prefactor     .10000E-03    8.4268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.732        13.031        .54045E-03   -1.4967    
  11  Prefactor     .10000E-03    2.8320        .14774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.784        30.601        .55733E-04   -1.4267    
  13  Prefactor     9.5989        11.176        .12932E-03   -1.5088    
  14  Prefactor     .10002E-03    32.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7048        4.7356        .19465E-03   -1.5323    
  16  norm          26.477        5.8024        .77852E-04   -1.4678    
  17  Prefactor     .10002E-03    36.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .19441        .38582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .30336        .48173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.5312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6893        13.840        .16187E-02   -1.5448    
  23  Normalizat    1.0908        .21807        .29249E-03   -.90047    
  24  Prefactor     .81969        .12675        .19976E-03   -.99006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34331e-09
Minuit parameter uncertainties:
  1  1.71674
  2  2.40232e-05
  3  34.0356
  4  33.5407
  5  0.000152041
  6  2.78197e-05
  7  1.54135e-05
  8  16.1737
  9  0.000158905
  10  13.034
  11  8.44178e-07
  12  30.61
  13  11.1787
  14  0.00147144
  15  4.73604
  16  5.80256
  17  0.00151618
  18  1.73188e-07
  19  6.51471e-06
  20  2.75342e-07
  21  0.000138992
  22  9.67332
  23  0.218247
  24  0.126796
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.599e+00  1.118e+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:  8.197e-01  1.268e-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.091e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 5.14e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/255318/likelihoodResults_251251201_251510401_4FGL_J2219.2-0342_daily_bin46.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) = 8095.05270628
delta logL = 0.0812988929429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8095.05005921
delta logL = 0.0839459595563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4305       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1143       1.0000          .0000       10.000    
     3 'Normalizat'    1.0758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82650       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=   8095.050     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      293 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4319        12.704        .14713E-03    .84146E-04
   2  Index         3.1142        1.3643        .10944E-01    .20266E-04
   3  Normalizat    1.0757        .21360        .29422E-03    .66699E-03
   4  Prefactor     .82647        .12712        .19900E-03    .10441E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.43192
  Index      = 3.11422
  Normalizat = 1.07573
  Prefactor  = 0.826474
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.050     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4319        10.910        .58852E-05   -1.5163    
   2  Index         3.1142        1.1747        .43775E-03   -.38672    
   3  Normalizat    1.0757        .21342        .58844E-04   -.90535    
   4  Prefactor     .82647        .12681        .39801E-04   -.98760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86555e-10
Minuit parameter uncertainties:
  1  10.9134
  2  1.18768
  3  0.213592
  4  0.126852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255318': 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) = 8095.05005892
delta logL = 0.0839462518497

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  7.432e+00  1.091e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.114e+00  1.188e+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:  8.265e-01  1.269e-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.076e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.11 +/- 1.19
Photon Flux (Free Index): 5.49e-08 +/- 5.70e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.06e-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/255318/cmap_HighResolution_251251201_251510401_4FGL_J2219.2-0342_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='1.04e-05', photon_flux_error='5.14e-08', dlogl='8.39e-02', energy_flux='1.08e-05', photon_flux2='5.49e-08', job_status='DONE', time_completed='2021-09-28 09:09:59.895733', photon_index_error2='1.19', photon_index2='3.11', ts='1.10', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.06e-05', EG='1.09', time_epoch_completed='1632845399.9', return_code='0', job_id='255318', GAL2='0.83', EG2='1.08', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.70e-08', ts2='1.28', photon_index='2.68' WHERE bin_id='46' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:09:59 PDT 2021


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

Job <4FGL_J2219.2-0342_daily_bin46> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:27 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:55:28 2021
Terminated at Tue Sep 28 09:10:00 2021
Results reported at Tue Sep 28 09:10:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin46 334.823 -3.7102 251251201 251510401 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

