/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 106 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin130
RA = 334.823, Dec = -3.7102
tmin = 273024001, tmax = 273283201
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='255454', job_status='RUN', time_executed='2021-09-28 08:57:31.189008', time_epoch_executed='1632844651.19' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255454

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255454/ft1_4FGL_J2219.2-0342_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255454/ft2_4FGL_J2219.2-0342_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255454/ft1_4FGL_J2219.2-0342_daily_bin130.fits outfile=/scratch/kocevski/255454/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin130.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=273024001.0 tmax=273283201.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.91
user 2.67
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255454/ft1_filtered_4FGL_J2219.2-0342_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/255454/ft2_4FGL_J2219.2-0342_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/255454/ltcube_273024001_273283201_4FGL_J2219.2-0342_daily_bin130.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/255454/ft2_4FGL_J2219.2-0342_daily_bin130.fits
.....................!
real 12.13
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255454/ft1_filtered_4FGL_J2219.2-0342_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/255454/ft2_4FGL_J2219.2-0342_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/255454/ltcube_273024001_273283201_4FGL_J2219.2-0342_daily_bin130.fits outfile=/scratch/kocevski/255454/expmap_273024001_273283201_4FGL_J2219.2-0342_daily_bin130.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/255454/ltcube_273024001_273283201_4FGL_J2219.2-0342_daily_bin130.fits
.....................!
real 188.85
user 184.13
sys 4.42

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/255454/ft1_filtered_4FGL_J2219.2-0342_daily_bin130.fits scfile=/scratch/kocevski/255454/ft2_4FGL_J2219.2-0342_daily_bin130.fits outfile=/scratch/kocevski/255454/cmap_273024001_273283201_4FGL_J2219.2-0342_daily_bin130.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255454/ft1_filtered_4FGL_J2219.2-0342_daily_bin130.fits scfile=/scratch/kocevski/255454/ft2_4FGL_J2219.2-0342_daily_bin130.fits outfile=/scratch/kocevski/255454/cmap_HighResolution_273024001_273283201_4FGL_J2219.2-0342_daily_bin130.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255454/ft1_filtered_4FGL_J2219.2-0342_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/255454/ft2_4FGL_J2219.2-0342_daily_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255454/Model_4FGL_J2219.2-0342_daily_bin130.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/255454/ft1_filtered_4FGL_J2219.2-0342_daily_bin130.fits.....................!
real 80.31
user 78.89
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15852E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.607       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8857       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25504       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2671       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9838       1.0000         .10000E-03   10000.    
    16 'norm      '    10.583       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10394E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0362       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.8285       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67850       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0507       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=   9149.456     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2773 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .77860       -.49434E-06** at limit **
   2  Prefactor     25.348        26.484        .97068E-05    .19134E-03
   3  Prefactor     17.159        21.363       -.33826E-05    .36623E-04
   4  Prefactor     57.592        43.172       -.10615E-04   -.70063E-04
   5  Prefactor     .10000E-03    5.1151        .51357E-06** at limit **
   6  Prefactor     8.8846        4.6731       -.18096E-05   -.16175E-03
   7  Prefactor     .10000E-03    2.0771       -.56492E-08** at limit **
   8  Prefactor     .10000E-03    10.534       -.33276E-06** at limit **
   9  Prefactor     .10000E-03    31.441        .53973E-05** at limit **
  10  Prefactor     .21488        7.5342        .17421E-07   -.14724E-03
  11  Prefactor     .10000E-03    3.9146       -.28729E-07** at limit **
  12  Prefactor     3.2667        29.556        .15477E-05   -.47711E-05
  13  Prefactor     1.6776        2.7638        .10918E-05   -.21524E-02
  14  Prefactor     .10000E-03    31.375       -.15535E-05** at limit **
  15  Prefactor     2.9834        2.8324       -.19783E-06   -.92698E-04
  16  norm          10.581        3.5712       -.22145E-06    .16876E-04
  17  Prefactor     .10000E-03    20.243        .96755E-05** at limit **
  18  norm          .10000E-03    .29582        .11822E-07** at limit **
  19  Prefactor     .10000E-03    21.743       -.12398E-04** at limit **
  20  norm          1.0362        .87388        .77582E-07    .15983E-02
  21  Prefactor     .10000E-03    2.4604       -.12622E-07** at limit **
  22  norm          6.8268        9.3515        .51307E-07   -.36314E-03
  23  Normalizat    .67859        .16806        .81558E-06    .11227E-03
  24  Prefactor     1.0507        .10241        .50221E-07    .18953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 25.3477
  Prefactor  = 17.1588
  Prefactor  = 57.5916
  Prefactor  = 0.000100001
  Prefactor  = 8.8846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.214881
  Prefactor  = 0.0001
  Prefactor  = 3.26669
  Prefactor  = 1.67758
  Prefactor  = 0.0001
  Prefactor  = 2.98338
  norm       = 10.5813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03622
  Prefactor  = 0.0001
  norm       = 6.82682
  Normalizat = 0.67859
  Prefactor  = 1.05073
 **********
 **   18 **HESSE 
 **********

 FCN=   9149.456     FROM HESSE     STATUS=OK           407 CALLS     3180 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.245        .15955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.348        26.192        .79639E-04   -1.4701    
   3  Prefactor     17.159        21.236        .96743E-04   -1.4879    
   4  Prefactor     57.592        43.168        .52856E-04   -1.4189    
   5  Prefactor     .10000E-03    5.1965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8846        4.6772        .13446E-03   -1.5112    
   7  Prefactor     .10000E-03    2.0810        .13462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21488        10.378        .80256E-01   -1.5615    
  11  Prefactor     .10000E-03    3.9395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2667        29.610        .22404E-03   -1.5346    
  13  Prefactor     1.6776        7.7861        .16253E-02   -1.5449    
  14  Prefactor     .10000E-03    31.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9834        2.8732        .14902E-03   -1.5363    
  16  norm          10.581        3.5745        .98642E-04   -1.5057    
  17  Prefactor     .10000E-03    20.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0501        .10073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0362        .85611        .79181E-04   -1.5504    
  21  Prefactor     .10000E-03    2.4629        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.8268        9.4380        .76770E-03   -1.5185    
  23  Normalizat    .67859        .19478        .33458E-03   -1.0474    
  24  Prefactor     1.0507        .11928        .17280E-03   -.91057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56014e-08
Minuit parameter uncertainties:
  1  0.000488708
  2  26.2042
  3  21.2451
  4  43.1918
  5  0.000142998
  6  4.67735
  7  1.57732e-06
  8  1.58411e-05
  9  0.000123982
  10  2.98655
  11  5.77473e-06
  12  19.6827
  13  7.22953
  14  9.92443e-06
  15  2.87338
  16  3.57461
  17  8.60032e-05
  18  6.73268e-06
  19  5.38611e-05
  20  0.856117
  21  2.16536e-07
  22  9.44003
  23  0.194977
  24  0.119309
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.678e+00  7.230e+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:  1.051e+00  1.193e-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.786e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255454/likelihoodResults_273024001_273283201_4FGL_J2219.2-0342_daily_bin130.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) = 9149.43659048
delta logL = 0.0193572740354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9149.43621391
delta logL = 0.0197338499966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6183       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0764       1.0000          .0000       10.000    
     3 'Normalizat'    .67420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0521       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=   9149.436     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      299 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6135        7.4838        .16638E-02    .11560E-02
   2  Index         3.0813        2.3037        .12976E-01    .66675E-04
   3  Normalizat    .67429        .18880        .33557E-03   -.13551E-06
   4  Prefactor     1.0522        .11861        .17269E-03    .39499E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61353
  Index      = 3.08133
  Normalizat = 0.674293
  Prefactor  = 1.05216
 **********
 **   18 **HESSE 
 **********

 FCN=   9149.436     FROM HESSE     STATUS=OK            27 CALLS      326 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6135        6.1221        .33275E-03   -1.5454    
   2  Index         3.0813        2.0533        .25951E-02   -.39384    
   3  Normalizat    .67429        .18904        .13423E-04   -1.0492    
   4  Prefactor     1.0522        .11869        .69077E-05   -.91011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98788e-12
Minuit parameter uncertainties:
  1  6.1245
  2  2.12785
  3  0.189218
  4  0.118715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255454': 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) = 9149.43620973
delta logL = 0.0197380217669

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.614e+00  6.124e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.081e+00  2.128e+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:  1.052e+00  1.187e-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.743e-01  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/255454/cmap_HighResolution_273024001_273283201_4FGL_J2219.2-0342_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-28 09:10:46.772205', job_id='255454', GAL2='1.05', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1632845446.77', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.97e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='130' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:10:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 255454: <4FGL_J2219.2-0342_daily_bin130> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin130> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:36 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:37 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:37 2021
Terminated at Tue Sep 28 09:10:47 2021
Results reported at Tue Sep 28 09:10:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin130 334.823 -3.7102 273024001 273283201 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 :                                   795.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

