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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1072
RA = 334.823, Dec = -3.7102
tmin = 517190401, tmax = 517449601
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='260037', job_status='RUN', time_executed='2021-09-28 09:14:26.964025', time_epoch_executed='1632845666.96' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260037/ft1_4FGL_J2219.2-0342_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260037/ft2_4FGL_J2219.2-0342_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260037/ft1_4FGL_J2219.2-0342_daily_bin1072.fits outfile=/scratch/kocevski/260037/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1072.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=517190401.0 tmax=517449601.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.60
user 4.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260037/ft2_4FGL_J2219.2-0342_daily_bin1072.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/260037/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1072.fits evtable="EVENTS" outfile="/scratch/kocevski/260037/ft1_filtered_4FGL_J2219.2-0342_daily_bin1072.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260037/ft1_filtered_4FGL_J2219.2-0342_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/260037/ft2_4FGL_J2219.2-0342_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/260037/ltcube_517190401_517449601_4FGL_J2219.2-0342_daily_bin1072.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/260037/ft2_4FGL_J2219.2-0342_daily_bin1072.fits
.....................!
real 11.90
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260037/ft1_filtered_4FGL_J2219.2-0342_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/260037/ft2_4FGL_J2219.2-0342_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/260037/ltcube_517190401_517449601_4FGL_J2219.2-0342_daily_bin1072.fits outfile=/scratch/kocevski/260037/expmap_517190401_517449601_4FGL_J2219.2-0342_daily_bin1072.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/260037/ltcube_517190401_517449601_4FGL_J2219.2-0342_daily_bin1072.fits
.....................!
real 190.15
user 185.07
sys 4.78

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/260037/ft1_filtered_4FGL_J2219.2-0342_daily_bin1072.fits scfile=/scratch/kocevski/260037/ft2_4FGL_J2219.2-0342_daily_bin1072.fits outfile=/scratch/kocevski/260037/cmap_517190401_517449601_4FGL_J2219.2-0342_daily_bin1072.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260037/ft1_filtered_4FGL_J2219.2-0342_daily_bin1072.fits scfile=/scratch/kocevski/260037/ft2_4FGL_J2219.2-0342_daily_bin1072.fits outfile=/scratch/kocevski/260037/cmap_HighResolution_517190401_517449601_4FGL_J2219.2-0342_daily_bin1072.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260037/ft1_filtered_4FGL_J2219.2-0342_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/260037/ft2_4FGL_J2219.2-0342_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260037/Model_4FGL_J2219.2-0342_daily_bin1072.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/260037/ft1_filtered_4FGL_J2219.2-0342_daily_bin1072.fits.....................!
real 68.40
user 66.99
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25162E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6670       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1080       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1564       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1446       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8749       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1330       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7470       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9797       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1763       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.667       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90472       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94172       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=   7254.324     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2371 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1137        .21152E-07** at limit **
   2  Prefactor     .10000E-03    12.195       -.14685E-08** at limit **
   3  Prefactor     .10000E-03    85.171       -.32464E-06** at limit **
   4  Prefactor     .10000E-03    121.66       -.56306E-06** at limit **
   5  Prefactor     4.6585        5.9629        .36364E-06    .39886E-04
   6  Prefactor     6.1090        6.2110        .57649E-06    .11023E-03
   7  Prefactor     .10000E-03    7.3902       -.19771E-07** at limit **
   8  Prefactor     5.1546        8.9420        .11706E-05   -.66892E-03
   9  Prefactor     7.1477        15.302       -.17099E-06   -.44152E-04
  10  Prefactor     .10000E-03    43.423        .10405E-05** at limit **
  11  Prefactor     16.286        13.125       -.29549E-07    .15592E-05
  12  Prefactor     .10000E-03    25.027        .29382E-05** at limit **
  13  Prefactor     3.8753        7.3444       -.14339E-06   -.11609E-03
  14  Prefactor     .10000E-03    28.412       -.29992E-05** at limit **
  15  Prefactor     2.1330        2.2542        .20756E-07    .56272E-04
  16  norm          8.3785        3.7297        .32529E-06   -.14048E-02
  17  Prefactor     8.7372        54.532       -.10480E-04   -.10086E-03
  18  norm          1.9796        .94284        .80932E-10    .53413E-04
  19  Prefactor     .10000E-03    21.848       -.81621E-06** at limit **
  20  norm          3.1733        1.3812        .25713E-09    .11769E-03
  21  Prefactor     .10000E-03    3.7497        .62256E-08** at limit **
  22  norm          15.667        12.173       -.19545E-07   -.21688E-04
  23  Normalizat    .90453        .19668       -.37514E-06   -.73685E-06
  24  Prefactor     .94184        .11498        .12028E-06   -.25172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6585
  Prefactor  = 6.10901
  Prefactor  = 0.0001
  Prefactor  = 5.15461
  Prefactor  = 7.14773
  Prefactor  = 0.0001
  Prefactor  = 16.2856
  Prefactor  = 0.000100001
  Prefactor  = 3.87526
  Prefactor  = 0.000100001
  Prefactor  = 2.13304
  norm       = 8.37854
  Prefactor  = 8.73723
  norm       = 1.97961
  Prefactor  = 0.0001
  norm       = 3.17334
  Prefactor  = 0.0001
  norm       = 15.6672
  Normalizat = 0.90453
  Prefactor  = 0.941841
 **********
 **   18 **HESSE 
 **********

 FCN=   7254.324     FROM HESSE     STATUS=OK           401 CALLS     2772 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1010        .17441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    86.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    123.23        .21462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6585        5.9502        .18629E-03   -1.5276    
   6  Prefactor     6.1090        6.2109        .16245E-03   -1.5214    
   7  Prefactor     .10000E-03    7.4773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1546        11.767        .88520E-03   -1.5254    
   9  Prefactor     7.1477        15.281        .15007E-03   -1.5173    
  10  Prefactor     .10000E-03    44.827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.286        13.201        .99249E-04   -1.4901    
  12  Prefactor     .10000E-03    25.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8753        7.3418        .20499E-03   -1.5314    
  14  Prefactor     .10000E-03    28.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1330        2.2561        .12654E-03   -1.5416    
  16  norm          8.3785        3.9989        .55146E-03   -1.5129    
  17  Prefactor     8.7372        56.634        .13553E-03   -1.5117    
  18  norm          1.9796        .94403        .55440E-04   -1.5427    
  19  Prefactor     .10000E-03    21.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1733        1.3758        .63890E-04   -1.5352    
  21  Prefactor     .10000E-03    3.7573        .16108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.667        12.192        .10119E-03   -1.4916    
  23  Normalizat    .90453        .23521        .31224E-03   -.96301    
  24  Prefactor     .94184        .13769        .18665E-03   -.94694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89021e-09
Minuit parameter uncertainties:
  1  3.09355e-06
  2  1.65265e-06
  3  8.52534e-05
  4  0.000348088
  5  5.95091
  6  6.21156
  7  2.68238e-06
  8  11.7722
  9  15.2893
  10  0.000143028
  11  13.2029
  12  0.000312387
  13  7.34346
  14  0.000350368
  15  2.25624
  16  3.99908
  17  44.5507
  18  0.944036
  19  7.65055e-05
  20  1.3758
  21  4.27549e-07
  22  12.194
  23  0.235479
  24  0.137746
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.875e+00  7.343e+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.418e-01  1.377e-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:  9.045e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260037/likelihoodResults_517190401_517449601_4FGL_J2219.2-0342_daily_bin1072.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) = 7254.11534652
delta logL = 0.209050542187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7254.09750898
delta logL = 0.226888080283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2899       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0467       1.0000          .0000       10.000    
     3 'Normalizat'    .91337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93688       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=   7254.098     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2944        10.078        .43688E-02    .20598E-02
   2  Index         2.0470        .82599        .25527       -.29480E-04
   3  Normalizat    .91344        .18613        .70257E-01    .14976E-04
   4  Prefactor     .93682        .11420        .45473E-01   -.85231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.29436
  Index      = 2.04698
  Normalizat = 0.913436
  Prefactor  = 0.936818
 **********
 **   18 **HESSE 
 **********

 FCN=   7254.098     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2944        7.9807        .87376E-03   -1.5248    
   2  Index         2.0470        .82714        .12988E-01   -.63181    
   3  Normalizat    .91344        .22080        .31085E-03   -.95990    
   4  Prefactor     .93682        .13543        .18704E-03   -.94866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02619e-09
Minuit parameter uncertainties:
  1  7.98231
  2  0.833046
  3  0.221018
  4  0.135477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260037': 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) = 7254.09750873
delta logL = 0.22688833075

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.294e+00  7.982e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.047e+00  8.330e-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.368e-01  1.355e-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:  9.134e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 334.823 -3.710

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/260037/cmap_HighResolution_517190401_517449601_4FGL_J2219.2-0342_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 09:25:31.222013', job_id='260037', GAL2='0.94', fit_tolerance='1e-08', EG2='0.91', EG='0.90', time_epoch_completed='1632846331.22', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.27e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1072' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 260037: <4FGL_J2219.2-0342_daily_bin1072> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1072> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:11:02 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:11:04 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:11:04 2021
Terminated at Tue Sep 28 09:25:32 2021
Results reported at Tue Sep 28 09:25:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1072 334.823 -3.7102 517190401 517449601 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

