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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1565
RA = 334.823, Dec = -3.7102
tmin = 644976001, tmax = 645235201
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='262829', job_status='RUN', time_executed='2021-09-28 09:23:05.035197', time_epoch_executed='1632846185.04' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262829

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262829/ft1_4FGL_J2219.2-0342_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262829/ft2_4FGL_J2219.2-0342_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262829/ft1_4FGL_J2219.2-0342_daily_bin1565.fits outfile=/scratch/kocevski/262829/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1565.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=644976001.0 tmax=645235201.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 2.99
user 2.75
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262829/ft1_filtered_4FGL_J2219.2-0342_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/262829/ft2_4FGL_J2219.2-0342_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/262829/ltcube_644976001_645235201_4FGL_J2219.2-0342_daily_bin1565.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/262829/ft2_4FGL_J2219.2-0342_daily_bin1565.fits
.....................!
real 12.32
user 11.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262829/ft1_filtered_4FGL_J2219.2-0342_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/262829/ft2_4FGL_J2219.2-0342_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/262829/ltcube_644976001_645235201_4FGL_J2219.2-0342_daily_bin1565.fits outfile=/scratch/kocevski/262829/expmap_644976001_645235201_4FGL_J2219.2-0342_daily_bin1565.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/262829/ltcube_644976001_645235201_4FGL_J2219.2-0342_daily_bin1565.fits
.....................!
real 190.43
user 185.19
sys 4.83

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/262829/ft1_filtered_4FGL_J2219.2-0342_daily_bin1565.fits scfile=/scratch/kocevski/262829/ft2_4FGL_J2219.2-0342_daily_bin1565.fits outfile=/scratch/kocevski/262829/cmap_644976001_645235201_4FGL_J2219.2-0342_daily_bin1565.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262829/ft1_filtered_4FGL_J2219.2-0342_daily_bin1565.fits scfile=/scratch/kocevski/262829/ft2_4FGL_J2219.2-0342_daily_bin1565.fits outfile=/scratch/kocevski/262829/cmap_HighResolution_644976001_645235201_4FGL_J2219.2-0342_daily_bin1565.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1217       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34433E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.664       1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.026       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.084       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1373       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9473       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6593       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.882       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73900       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90286       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=   7446.127     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2793 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7143        2.4687        .69524E-07    .10807E-03
   2  Prefactor     69.095        48.213       -.60731E-06   -.35816E-04
   3  Prefactor     .10000E-03    32.520       -.30115E-05** at limit **
   4  Prefactor     .10000E-03    28.022        .13750E-05** at limit **
   5  Prefactor     .10000E-03    3.1097       -.22274E-07** at limit **
   6  Prefactor     3.2614        4.6355        .70674E-06    .59171E-03
   7  Prefactor     2.1155        12.088       -.67253E-06    .64678E-04
   8  Prefactor     .10000E-03    8.7834       -.65929E-07** at limit **
   9  Prefactor     .10041E-03    17.074       -.48962E-05** at limit **
  10  Prefactor     .10004E-03    8.7393        .10392E-05** at limit **
  11  Prefactor     19.660        11.989       -.23834E-06    .78235E-06
  12  Prefactor     57.033        28.524        .37697E-06    .63434E-04
  13  Prefactor     15.080        9.3455       -.19001E-06    .16984E-04
  14  Prefactor     5.0186        160.19        .26583E-04    .94573E-04
  15  Prefactor     .10000E-03    1.2227       -.22732E-07** at limit **
  16  norm          8.0463        3.5454       -.22866E-06   -.84439E-04
  17  Prefactor     .10000E-03    54.455        .98214E-07** at limit **
  18  norm          1.4292        .87037       -.41690E-07   -.16619E-03
  19  Prefactor     6.0243        18.760        .99669E-06    .66529E-04
  20  norm          2.6518        1.8645        .11559E-07    .82983E-03
  21  Prefactor     .10000E-03    4.7811       -.12220E-07** at limit **
  22  norm          13.879        10.410        .28479E-06    .76417E-04
  23  Normalizat    .73960        .18827       -.32391E-06    .16229E-03
  24  Prefactor     .90252        .10838       -.11950E-06    .32132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71426
  Prefactor  = 69.0951
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26143
  Prefactor  = 2.11555
  Prefactor  = 0.0001
  Prefactor  = 0.000100409
  Prefactor  = 0.000100042
  Prefactor  = 19.6605
  Prefactor  = 57.0332
  Prefactor  = 15.0802
  Prefactor  = 5.0186
  Prefactor  = 0.0001
  norm       = 8.04633
  Prefactor  = 0.0001
  norm       = 1.42923
  Prefactor  = 6.02427
  norm       = 2.65179
  Prefactor  = 0.0001
  norm       = 13.8792
  Normalizat = 0.739603
  Prefactor  = 0.902524
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.127     FROM HESSE     STATUS=OK           403 CALLS     3196 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7143        2.4657        .10503E-03   -1.5322    
   2  Prefactor     69.095        48.222        .48297E-04   -1.4044    
   3  Prefactor     .10000E-03    32.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1250        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2614        4.7345        .10879E-02   -1.5347    
   7  Prefactor     2.1155        11.756        .28313E-03   -1.5417    
   8  Prefactor     .10000E-03    8.8318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10041E-03    46.233        .50008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    70.473        .46558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.660        12.040        .90323E-04   -1.4821    
  12  Prefactor     57.033        28.525        .53123E-04   -1.4196    
  13  Prefactor     15.080        9.3487        .10313E-03   -1.4931    
  14  Prefactor     5.0186        168.34        .17738E-03   -1.5260    
  15  Prefactor     .10000E-03    1.2343        .93066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0463        3.5507        .10086E-03   -1.5141    
  17  Prefactor     .10000E-03    54.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4292        .85911        .60721E-04   -1.5469    
  19  Prefactor     6.0243        20.311        .16466E-03   -1.5217    
  20  norm          2.6518        2.0169        .67269E-04   -1.5382    
  21  Prefactor     .10000E-03    4.8286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.879        10.437        .10750E-03   -1.4963    
  23  Normalizat    .73960        .22076        .32004E-03   -1.0235    
  24  Prefactor     .90252        .12811        .17956E-03   -.96053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00495e-08
Minuit parameter uncertainties:
  1  2.46575
  2  48.2492
  3  0.000404672
  4  0.0002017
  5  2.6891e-06
  6  4.73507
  7  9.97671
  8  2.00362e-06
  9  0.00870643
  10  0.0034543
  11  12.0414
  12  28.5314
  13  9.34958
  14  58.3101
  15  1.29794e-06
  16  3.55078
  17  3.30483e-05
  18  0.859117
  19  20.3344
  20  2.01694
  21  8.55311e-07
  22  10.4382
  23  0.221029
  24  0.128152
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.508e+01  9.350e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.025e-01  1.282e-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:  7.396e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.60
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.95e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.05e-05

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) = 7446.03237528
delta logL = 0.0941547017555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7446.02932076
delta logL = 0.0972092243983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.969       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9618       1.0000          .0000       10.000    
     3 'Normalizat'    .72416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90898       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7446.029     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      308 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.979        10.409        .55614E-03   -.66887E-04
   2  Index         2.9630        .70346        .73480E-02    .32618E-03
   3  Normalizat    .72397        .20905        .32319E-03    .29337E-04
   4  Prefactor     .90895        .12723        .17898E-03   -.26550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9787
  Index      = 2.96301
  Normalizat = 0.723972
  Prefactor  = 0.908951
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.029     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.979        9.8813        .22246E-04   -1.4987    
   2  Index         2.9630        .66764        .14696E-02   -.41960    
   3  Normalizat    .72397        .20913        .12928E-04   -1.0295    
   4  Prefactor     .90895        .12724        .71594E-05   -.95829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08576e-11
Minuit parameter uncertainties:
  1  9.88257
  2  0.670041
  3  0.20936
  4  0.127283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262829': 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) = 7446.02931406
delta logL = 0.0972159277881

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.298e+01  9.883e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.963e+00  6.700e-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:  9.090e-01  1.273e-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:  7.240e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.80
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.96 +/- 0.67
Photon Flux (Free Index): 8.08e-08 +/- 5.16e-08
Energy Flux (Free Index): 1.64e-05 +/- 9.73e-06

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/262829/cmap_HighResolution_644976001_645235201_4FGL_J2219.2-0342_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.95e-08', energy_flux2='1.64e-05', photon_flux_error='4.30e-08', dlogl='9.72e-02', energy_flux='1.70e-05', photon_flux2='8.08e-08', job_status='DONE', time_completed='2021-09-28 09:33:57.420588', photon_index_error2='0.67', photon_index2='2.96', ts='4.60', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='9.73e-06', EG='0.74', time_epoch_completed='1632846837.42', return_code='0', job_id='262829', GAL2='0.91', EG2='0.72', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='5.16e-08', ts2='4.80', photon_index='2.68' WHERE bin_id='1565' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 262829: <4FGL_J2219.2-0342_daily_bin1565> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1565 334.823 -3.7102 644976001 645235201 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 :                                   651.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

