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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin934
RA = 334.823, Dec = -3.7102
tmin = 481420801, tmax = 481680001
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='259812', job_status='RUN', time_executed='2021-09-28 09:13:24.167174', time_epoch_executed='1632845604.17' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259812

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259812/ft1_4FGL_J2219.2-0342_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259812/ft2_4FGL_J2219.2-0342_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259812/ft1_4FGL_J2219.2-0342_daily_bin934.fits outfile=/scratch/kocevski/259812/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin934.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=481420801.0 tmax=481680001.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.79
user 3.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259812/ft1_filtered_4FGL_J2219.2-0342_daily_bin934.fits" evtable="EVENTS" scfile=/scratch/kocevski/259812/ft2_4FGL_J2219.2-0342_daily_bin934.fits sctable="SC_DATA" outfile=/scratch/kocevski/259812/ltcube_481420801_481680001_4FGL_J2219.2-0342_daily_bin934.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/259812/ft2_4FGL_J2219.2-0342_daily_bin934.fits
.....................!
real 11.65
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259812/ft1_filtered_4FGL_J2219.2-0342_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/259812/ft2_4FGL_J2219.2-0342_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/259812/ltcube_481420801_481680001_4FGL_J2219.2-0342_daily_bin934.fits outfile=/scratch/kocevski/259812/expmap_481420801_481680001_4FGL_J2219.2-0342_daily_bin934.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/259812/ltcube_481420801_481680001_4FGL_J2219.2-0342_daily_bin934.fits
.....................!
real 190.85
user 185.12
sys 5.43

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/259812/ft1_filtered_4FGL_J2219.2-0342_daily_bin934.fits scfile=/scratch/kocevski/259812/ft2_4FGL_J2219.2-0342_daily_bin934.fits outfile=/scratch/kocevski/259812/cmap_481420801_481680001_4FGL_J2219.2-0342_daily_bin934.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259812/ft1_filtered_4FGL_J2219.2-0342_daily_bin934.fits scfile=/scratch/kocevski/259812/ft2_4FGL_J2219.2-0342_daily_bin934.fits outfile=/scratch/kocevski/259812/cmap_HighResolution_481420801_481680001_4FGL_J2219.2-0342_daily_bin934.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259812/ft1_filtered_4FGL_J2219.2-0342_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/259812/ft2_4FGL_J2219.2-0342_daily_bin934.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259812/Model_4FGL_J2219.2-0342_daily_bin934.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/259812/ft1_filtered_4FGL_J2219.2-0342_daily_bin934.fits.....................!
real 67.73
user 66.43
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12151E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6324       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.808       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8386       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22931E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14951E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    16.779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7118       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.745       1.0000         .10000E-03   10000.    
    20 'norm      '    .13439E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4189       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88304       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=   6774.376     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2422 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8198        .49093E-07** at limit **
   2  Prefactor     .10000E-03    19.348       -.26942E-06** at limit **
   3  Prefactor     .10000E-03    51.777       -.22895E-04** at limit **
   4  Prefactor     .10000E-03    42.373        .11018E-04** at limit **
   5  Prefactor     .10000E-03    7.1756        .14976E-05** at limit **
   6  Prefactor     8.6322        7.8325        .22789E-06   -.10294E-03
   7  Prefactor     .10000E-03    6.2131        .33502E-07** at limit **
   8  Prefactor     .10000E-03    7.1785       -.11497E-05** at limit **
   9  Prefactor     45.820        20.814       -.57815E-06   -.19702E-04
  10  Prefactor     8.8362        14.400        .26162E-07   -.37622E-04
  11  Prefactor     .10000E-03    7.7244       -.61688E-06** at limit **
  12  Prefactor     .10000E-03    15.544        .33061E-07** at limit **
  13  Prefactor     2.4256        11.103       -.13299E-05   -.32961E-03
  14  Prefactor     .10000E-03    137.82       -.15072E-04** at limit **
  15  Prefactor     .10058E-03    2.6543        .62049E-06** at limit **
  16  norm          16.778        6.0308       -.48049E-06   -.22377E-02
  17  Prefactor     .10000E-03    73.740        .16726E-04** at limit **
  18  norm          1.7119        1.2163       -.96450E-09   -.18614E-03
  19  Prefactor     24.678        31.794       -.18573E-06   -.56448E-04
  20  norm          .10000E-03    2.1679        .84729E-07** at limit **
  21  Prefactor     .10000E-03    5.6733       -.13327E-07** at limit **
  22  norm          .10000E-03    8.2281        .13163E-07** at limit **
  23  Normalizat    1.4189        .23561        .43627E-06   -.11203E-03
  24  Prefactor     .88303        .13218        .14430E-06   -.11827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.63222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.8201
  Prefactor  = 8.83621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.42565
  Prefactor  = 0.0001
  Prefactor  = 0.00010058
  norm       = 16.7776
  Prefactor  = 0.0001
  norm       = 1.71189
  Prefactor  = 24.6781
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.4189
  Prefactor  = 0.883026
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.376     FROM HESSE     STATUS=OK           405 CALLS     2827 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7860        .21440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6322        7.8524        .13643E-03   -1.5120    
   7  Prefactor     .10000E-03    6.2347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.820        20.796        .59240E-04   -1.4353    
  10  Prefactor     8.8362        14.385        .13482E-03   -1.5113    
  11  Prefactor     .10000E-03    7.7686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4256        11.210        .26306E-03   -1.5396    
  14  Prefactor     .10000E-03    137.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10058E-03    7.1531        .40708E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.778        6.2263        .48889E-03   -1.4889    
  17  Prefactor     .10000E-03    73.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7119        1.2099        .73694E-04   -1.5446    
  19  Prefactor     24.678        25.492        .80528E-04   -1.4714    
  20  norm          .10000E-03    3.2431        .18708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.2747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4189        .28275        .29867E-03   -.80083    
  24  Prefactor     .88303        .15835        .21603E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52289e-09
Minuit parameter uncertainties:
  1  7.73578e-06
  2  3.90374e-06
  3  2.99837e-05
  4  4.6068e-05
  5  2.2496e-05
  6  7.85333
  7  1.28692e-06
  8  1.38593e-06
  9  20.7994
  10  14.3908
  11  6.40952e-07
  12  4.08693e-06
  13  10.432
  14  0.000152938
  15  0.00407317
  16  6.22654
  17  1.58136e-05
  18  1.20993
  19  25.5036
  20  3.31258e-07
  21  4.27771e-07
  22  3.59851e-06
  23  0.283059
  24  0.15843
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.426e+00  1.043e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.830e-01  1.584e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.419e+00  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259812/likelihoodResults_481420801_481680001_4FGL_J2219.2-0342_daily_bin934.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) = 6774.37313168
delta logL = 0.00332140879709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6774.372879
delta logL = 0.00357408499622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6565       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5112       1.0000          .0000       10.000    
     3 'Normalizat'    1.4205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88220       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=   6774.373     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      254 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6508        513.30        .62524E-02    .21359E-03
   2  Index         2.5116        6.1255        .50000       -.49931E-05
   3  Normalizat    1.4205        .44265E-01    .67482E-01    .75859E-05
   4  Prefactor     .88221        .26629E-01    .44778E-01    .10950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65077
  Index      = 2.5116
  Normalizat = 1.42052
  Prefactor  = 0.882208
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.373     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6508        10.663        .25010E-03   -1.5382    
   2  Index         2.5116        1.8770        .15308E-01   -.52092    
   3  Normalizat    1.4205        .26712        .29853E-03   -.80037    
   4  Prefactor     .88221        .15733        .21611E-03   -.96766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9198e-12
Minuit parameter uncertainties:
  1  10.636
  2  1.94115
  3  0.267383
  4  0.157415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259812': 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) = 6774.37287882
delta logL = 0.00357426602386

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.651e+00  1.064e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.512e+00  1.941e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.822e-01  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.421e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/259812/cmap_HighResolution_481420801_481680001_4FGL_J2219.2-0342_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-28 09:24:20.060090', job_id='259812', GAL2='0.88', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632846260.06', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.57e-03', ts2='0.07', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='934' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 259812: <4FGL_J2219.2-0342_daily_bin934> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin934> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:45 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:48 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:10:48 2021
Terminated at Tue Sep 28 09:24:20 2021
Results reported at Tue Sep 28 09:24:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin934 334.823 -3.7102 481420801 481680001 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

