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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1610
RA = 334.823, Dec = -3.7102
tmin = 656640001, tmax = 656899201
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='483688', job_status='RUN', time_executed='2021-12-08 08:34:33.904201', time_epoch_executed='1638981273.9' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483688

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483688/ft1_4FGL_J2219.2-0342_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483688/ft2_4FGL_J2219.2-0342_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483688/ft1_4FGL_J2219.2-0342_daily_bin1610.fits outfile=/scratch/kocevski/483688/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1610.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=656640001.0 tmax=656899201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.63
user 3.38
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483688/ft2_4FGL_J2219.2-0342_daily_bin1610.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/483688/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1610.fits evtable="EVENTS" outfile="/scratch/kocevski/483688/ft1_filtered_4FGL_J2219.2-0342_daily_bin1610.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483688/ft1_filtered_4FGL_J2219.2-0342_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/483688/ft2_4FGL_J2219.2-0342_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/483688/ltcube_656640001_656899201_4FGL_J2219.2-0342_daily_bin1610.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/483688/ft2_4FGL_J2219.2-0342_daily_bin1610.fits
.....................!
real 14.33
user 13.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483688/ft1_filtered_4FGL_J2219.2-0342_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/483688/ft2_4FGL_J2219.2-0342_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/483688/ltcube_656640001_656899201_4FGL_J2219.2-0342_daily_bin1610.fits outfile=/scratch/kocevski/483688/expmap_656640001_656899201_4FGL_J2219.2-0342_daily_bin1610.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/483688/ltcube_656640001_656899201_4FGL_J2219.2-0342_daily_bin1610.fits
.....................!
real 195.91
user 188.68
sys 6.45

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/483688/ft1_filtered_4FGL_J2219.2-0342_daily_bin1610.fits scfile=/scratch/kocevski/483688/ft2_4FGL_J2219.2-0342_daily_bin1610.fits outfile=/scratch/kocevski/483688/cmap_656640001_656899201_4FGL_J2219.2-0342_daily_bin1610.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483688/ft1_filtered_4FGL_J2219.2-0342_daily_bin1610.fits scfile=/scratch/kocevski/483688/ft2_4FGL_J2219.2-0342_daily_bin1610.fits outfile=/scratch/kocevski/483688/cmap_HighResolution_656640001_656899201_4FGL_J2219.2-0342_daily_bin1610.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483688/ft1_filtered_4FGL_J2219.2-0342_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/483688/ft2_4FGL_J2219.2-0342_daily_bin1610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483688/Model_4FGL_J2219.2-0342_daily_bin1610.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/483688/ft1_filtered_4FGL_J2219.2-0342_daily_bin1610.fits.....................!
real 57.59
user 56.06
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.144       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.043       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.571       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5720       1.0000         .10000E-03   10000.    
    16 'norm      '    7.9850       1.0000         .10000E-03   10000.    
    17 'Prefactor '    117.61       1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.035       1.0000         .10000E-03   10000.    
    20 'norm      '    .12095E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.556       1.0000         .10000E-03   10000.    
    22 'norm      '    30.990       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .62398       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94708       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=   5887.728     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2801 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5325       -.12657E-06** at limit **
   2  Prefactor     57.112        41.837       -.65084E-05   -.45003E-03
   3  Prefactor     20.273        35.985       -.42152E-06   -.41085E-04
   4  Prefactor     .10000E-03    21.192       -.21082E-05** at limit **
   5  Prefactor     .10000E-03    2.4005       -.14986E-07** at limit **
   6  Prefactor     16.042        8.7596        .23461E-06    .28191E-04
   7  Prefactor     13.641        10.527        .43188E-06    .36254E-04
   8  Prefactor     .10000E-03    5.3124       -.60410E-07** at limit **
   9  Prefactor     .10000E-03    17.523       -.50827E-06** at limit **
  10  Prefactor     .10000E-03    9.5169       -.38764E-07** at limit **
  11  Prefactor     29.569        13.567       -.28427E-07   -.82841E-04
  12  Prefactor     .10000E-03    43.714       -.16817E-05** at limit **
  13  Prefactor     .10000E-03    19.755        .29275E-05** at limit **
  14  Prefactor     .10001E-03    169.24       -.10010E-04** at limit **
  15  Prefactor     4.5724        4.4954        .79319E-07   -.21876E-03
  16  norm          7.9849        4.6206       -.23298E-06   -.39936E-03
  17  Prefactor     117.62        120.94        .31918E-05    .19473E-04
  18  norm          .10000E-03    .56899        .22561E-06** at limit **
  19  Prefactor     29.978        19.710       -.14623E-05   -.11722E-02
  20  norm          .10001E-03    1.4066        .29390E-05** at limit **
  21  Prefactor     30.551        15.978       -.11396E-05   -.58641E-03
  22  norm          30.988        14.791        .18838E-06    .14976E-04
  23  Normalizat    .62404        .22805       -.13039E-05   -.35350E-03
  24  Prefactor     .94705        .12838        .13742E-06   -.60287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 57.1117
  Prefactor  = 20.2727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0422
  Prefactor  = 13.6415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.5695
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  Prefactor  = 4.57242
  norm       = 7.9849
  Prefactor  = 117.618
  norm       = 0.0001
  Prefactor  = 29.9782
  norm       = 0.000100008
  Prefactor  = 30.5508
  norm       = 30.988
  Normalizat = 0.624043
  Prefactor  = 0.947054
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.728     FROM HESSE     STATUS=OK           391 CALLS     3192 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5566        .92576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     57.112        42.829        .53068E-04   -1.4195    
   3  Prefactor     20.273        35.956        .88948E-04   -1.4807    
   4  Prefactor     .10000E-03    21.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4057        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.042        8.7579        .99995E-04   -1.4907    
   7  Prefactor     13.641        10.535        .10845E-03   -1.4969    
   8  Prefactor     .10000E-03    5.3153        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.569        13.580        .73677E-04   -1.4620    
  12  Prefactor     .10000E-03    44.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    171.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5724        4.4717        .15028E-03   -1.5280    
  16  norm          7.9849        4.6226        .11432E-03   -1.5143    
  17  Prefactor     117.62        121.04        .37104E-04   -1.3535    
  18  norm          .10000E-03    .95092        .11183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.978        21.146        .73107E-04   -1.4612    
  20  norm          .10001E-03    2.0455        .15477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.551        16.034        .72483E-04   -1.4602    
  22  norm          30.988        14.793        .71975E-04   -1.4594    
  23  Normalizat    .62404        .26238        .36550E-03   -1.0697    
  24  Prefactor     .94705        .14985        .18036E-03   -.94516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50802e-09
Minuit parameter uncertainties:
  1  2.36529e-05
  2  42.8518
  3  35.9946
  4  0.000173453
  5  4.4892e-06
  6  8.75864
  7  10.5369
  8  5.86472e-07
  9  2.68396e-05
  10  8.37959e-06
  11  13.5815
  12  0.000171073
  13  0.00023942
  14  0.00261341
  15  4.47202
  16  4.62281
  17  121.297
  18  2.0603e-05
  19  21.151
  20  0.000251321
  21  16.0364
  22  14.7952
  23  0.262904
  24  0.149912
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.394e-04  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.471e-01  1.499e-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.240e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/483688/likelihoodResults_656640001_656899201_4FGL_J2219.2-0342_daily_bin1610.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): 102
logL (Free Index) = 5887.72839963
delta logL = -0.000232638938542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5887.72816703
delta logL = -3.58686520485e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7024       1.0000          .0000       10.000    
     3 'Normalizat'    .62402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94708       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=   5887.728     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      253 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    124.89        .36285E-02** at limit **
   2  Index         2.7471        5.0304        .50000       -.53227E-05
   3  Normalizat    .62404        .12729E-01    .36551E-03    .96702E-04
   4  Prefactor     .94705        .76828E-02    .18036E-03    .24378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010066
  Index      = 2.74711
  Normalizat = 0.624045
  Prefactor  = 0.947054
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.728     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10066E-03    621.30        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7471        6.5901        .50000       -.46741    
   3  Normalizat    .62404        .29273E-01    .14620E-04   -1.0697    
   4  Prefactor     .94705        .17669E-01    .36072E-04   -.94516    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.72084e-09
Minuit parameter uncertainties:
  1  0.0409455
  2  754.327
  3  0.0292741
  4  0.0176693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483688': 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): 102
logL (Free Index) = 5887.7281669
delta logL = 9.14478732739e-08

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.007e-04  4.095e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.747e+00  7.543e+02  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.471e-01  1.767e-02  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.240e-01  2.927e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/483688/cmap_HighResolution_656640001_656899201_4FGL_J2219.2-0342_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.36e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-12-08 08:45:09.512985', job_id='483688', GAL2='0.95', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1638981909.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1610' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:45:09 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 483688: <4FGL_J2219.2-0342_daily_bin1610> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1610> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 08:30:19 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:30:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:30:39 2021
Terminated at Wed Dec  8 08:45:10 2021
Results reported at Wed Dec  8 08:45:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1610 334.823 -3.7102 656640001 656899201 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 :                                   633.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            891 sec.

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

