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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin284
RA = 334.823, Dec = -3.7102
tmin = 312940801, tmax = 313200001
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='256774', job_status='RUN', time_executed='2021-09-28 09:00:38.797535', time_epoch_executed='1632844838.8' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256774

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256774/ft1_4FGL_J2219.2-0342_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256774/ft2_4FGL_J2219.2-0342_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256774/ft1_4FGL_J2219.2-0342_daily_bin284.fits outfile=/scratch/kocevski/256774/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin284.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=312940801.0 tmax=313200001.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256774/ft1_filtered_4FGL_J2219.2-0342_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/256774/ft2_4FGL_J2219.2-0342_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/256774/ltcube_312940801_313200001_4FGL_J2219.2-0342_daily_bin284.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/256774/ft2_4FGL_J2219.2-0342_daily_bin284.fits
.....................!
real 11.79
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256774/ft1_filtered_4FGL_J2219.2-0342_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/256774/ft2_4FGL_J2219.2-0342_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/256774/ltcube_312940801_313200001_4FGL_J2219.2-0342_daily_bin284.fits outfile=/scratch/kocevski/256774/expmap_312940801_313200001_4FGL_J2219.2-0342_daily_bin284.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/256774/ltcube_312940801_313200001_4FGL_J2219.2-0342_daily_bin284.fits
.....................!
real 191.66
user 186.55
sys 4.77

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/256774/ft1_filtered_4FGL_J2219.2-0342_daily_bin284.fits scfile=/scratch/kocevski/256774/ft2_4FGL_J2219.2-0342_daily_bin284.fits outfile=/scratch/kocevski/256774/cmap_312940801_313200001_4FGL_J2219.2-0342_daily_bin284.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256774/ft1_filtered_4FGL_J2219.2-0342_daily_bin284.fits scfile=/scratch/kocevski/256774/ft2_4FGL_J2219.2-0342_daily_bin284.fits outfile=/scratch/kocevski/256774/cmap_HighResolution_312940801_313200001_4FGL_J2219.2-0342_daily_bin284.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.756       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4312       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19570E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8299       1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0467       1.0000         .10000E-03   10000.    
    22 'norm      '    .13789       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1679       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74480       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=   6684.867     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2788 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .57797       -.14244E-08** at limit **
   2  Prefactor     .10000E-03    18.750        .47220E-07** at limit **
   3  Prefactor     .10000E-03    34.257        .82997E-06** at limit **
   4  Prefactor     .10000E-03    12.224        .30174E-08** at limit **
   5  Prefactor     .10000E-03    3.0845        .26644E-08** at limit **
   6  Prefactor     .10000E-03    3.9006        .49501E-08** at limit **
   7  Prefactor     2.8682        11.362        .27483E-05   -.15606E-04
   8  Prefactor     15.838        21.016        .36991E-05    .13130E-03
   9  Prefactor     .18848        24.553        .60372E-06    .82356E-04
  10  Prefactor     16.888        26.693       -.34700E-05   -.24760E-03
  11  Prefactor     3.4354        4.3999        .13893E-05   -.17237E-02
  12  Prefactor     .10000E-03    28.224        .32313E-05** at limit **
  13  Prefactor     6.6691        10.359        .15321E-05    .50319E-04
  14  Prefactor     .10000E-03    84.643       -.41693E-05** at limit **
  15  Prefactor     .10000E-03    2.3595       -.10148E-07** at limit **
  16  norm          10.043        4.2502       -.75757E-08    .24241E-05
  17  Prefactor     .10000E-03    29.545       -.38247E-05** at limit **
  18  norm          1.0095        .83894       -.28992E-07   -.64671E-04
  19  Prefactor     8.8278        19.644        .24213E-05    .22919E-03
  20  norm          .10000E-03    1.1315       -.17074E-06** at limit **
  21  Prefactor     7.0426        12.575       -.10888E-05   -.46763E-04
  22  norm          .26918        6.6032       -.12900E-06    .59327E-04
  23  Normalizat    1.1676        .19826       -.57323E-06   -.41426E-04
  24  Prefactor     .74482        .11192       -.28940E-06   -.70201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86816
  Prefactor  = 15.8378
  Prefactor  = 0.188476
  Prefactor  = 16.8875
  Prefactor  = 3.43544
  Prefactor  = 0.0001
  Prefactor  = 6.66907
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.0429
  Prefactor  = 0.000100001
  norm       = 1.00953
  Prefactor  = 8.82782
  norm       = 0.000100001
  Prefactor  = 7.04258
  norm       = 0.269182
  Normalizat = 1.1676
  Prefactor  = 0.744825
 **********
 **   18 **HESSE 
 **********

 FCN=   6684.867     FROM HESSE     STATUS=OK           411 CALLS     3199 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .58018        .60697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1064        .14022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9672        .15762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8682        11.188        .24076E-03   -1.5369    
   8  Prefactor     15.838        20.971        .10060E-03   -1.4912    
   9  Prefactor     .18848        34.857        .86749E-01   -1.5621    
  10  Prefactor     16.888        28.725        .97844E-04   -1.4886    
  11  Prefactor     3.4354        6.8618        .10918E-02   -1.5337    
  12  Prefactor     .10000E-03    28.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6691        10.282        .15551E-03   -1.5191    
  14  Prefactor     .10000E-03    84.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4116        .24471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.043        4.2687        .10333E-03   -1.5074    
  17  Prefactor     .10000E-03    29.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0095        .81665        .65669E-04   -1.5507    
  19  Prefactor     8.8278        17.492        .13489E-03   -1.5114    
  20  norm          .10000E-03    1.6488        .14537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.0426        12.534        .15112E-03   -1.5177    
  22  norm          .26918        75.848        .40104E-02   -1.5604    
  23  Normalizat    1.1676        .23868        .26770E-03   -.87610    
  24  Prefactor     .74482        .13391        .19491E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91847e-09
Minuit parameter uncertainties:
  1  3.27129e-08
  2  3.18375e-06
  3  7.89418e-05
  4  2.95779e-06
  5  2.24369e-06
  6  4.39672e-06
  7  11.1962
  8  20.9808
  9  5.12797
  10  28.7488
  11  6.86335
  12  0.000188
  13  10.2844
  14  0.000523988
  15  8.58023e-06
  16  4.26886
  17  0.000302633
  18  0.816663
  19  17.5022
  20  6.95227e-05
  21  12.5386
  22  9.0469
  23  0.238904
  24  0.133969
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.669e+00  1.028e+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:  7.448e-01  1.340e-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.168e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256774/likelihoodResults_312940801_313200001_4FGL_J2219.2-0342_daily_bin284.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) = 6684.86598646
delta logL = 0.0011581365552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6684.86562866
delta logL = 0.00151593015926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9577       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6145       1.0000          .0000       10.000    
     3 'Normalizat'    1.1693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74393       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=   6684.866     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      240 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9577        470.44        .38023E-02    .67181E-03
   2  Index         2.6145        5.3338        .26120        .78981E-04
   3  Normalizat    1.1693        .66602E-01    .60489E-01    .22750E-04
   4  Prefactor     .74393        .44079E-01    .42983E-01    .53796E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95773
  Index      = 2.61454
  Normalizat = 1.16928
  Prefactor  = 0.743925
 **********
 **   18 **HESSE 
 **********

 FCN=   6684.866     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9577        12.073        .15209E-03   -1.5180    
   2  Index         2.6145        1.2363        .14147E-01   -.49734    
   3  Normalizat    1.1693        .22530        .26753E-03   -.87558    
   4  Prefactor     .74393        .13383        .19501E-03   -1.0183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3453e-10
Minuit parameter uncertainties:
  1  12.0774
  2  1.2532
  3  0.225489
  4  0.133886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256774': 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) = 6684.86562866
delta logL = 0.00151593032842

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.958e+00  1.208e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.615e+00  1.253e+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:  7.439e-01  1.339e-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.169e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/256774/cmap_HighResolution_312940801_313200001_4FGL_J2219.2-0342_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-28 09:11:55.603601', job_id='256774', GAL2='0.74', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632845515.6', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.52e-03', ts2='0.50', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='284' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:11:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 256774: <4FGL_J2219.2-0342_daily_bin284> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin284> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:00:30 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:00:31 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:00:31 2021
Terminated at Tue Sep 28 09:11:56 2021
Results reported at Tue Sep 28 09:11:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin284 334.823 -3.7102 312940801 313200001 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 :                                   674.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            686 sec.

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

