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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin350
RA = 334.823, Dec = -3.7102
tmin = 330048001, tmax = 330307201
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='257909', job_status='RUN', time_executed='2021-09-28 09:08:11.499839', time_epoch_executed='1632845291.5' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257909/ft1_4FGL_J2219.2-0342_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257909/ft2_4FGL_J2219.2-0342_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257909/ft1_4FGL_J2219.2-0342_daily_bin350.fits outfile=/scratch/kocevski/257909/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin350.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=330048001.0 tmax=330307201.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.49
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257909/ft1_filtered_4FGL_J2219.2-0342_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/257909/ft2_4FGL_J2219.2-0342_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/257909/ltcube_330048001_330307201_4FGL_J2219.2-0342_daily_bin350.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/257909/ft2_4FGL_J2219.2-0342_daily_bin350.fits
.....................!
real 14.12
user 13.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257909/ft1_filtered_4FGL_J2219.2-0342_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/257909/ft2_4FGL_J2219.2-0342_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/257909/ltcube_330048001_330307201_4FGL_J2219.2-0342_daily_bin350.fits outfile=/scratch/kocevski/257909/expmap_330048001_330307201_4FGL_J2219.2-0342_daily_bin350.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/257909/ltcube_330048001_330307201_4FGL_J2219.2-0342_daily_bin350.fits
.....................!
real 191.82
user 186.00
sys 5.44

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/257909/ft1_filtered_4FGL_J2219.2-0342_daily_bin350.fits scfile=/scratch/kocevski/257909/ft2_4FGL_J2219.2-0342_daily_bin350.fits outfile=/scratch/kocevski/257909/cmap_330048001_330307201_4FGL_J2219.2-0342_daily_bin350.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.56
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257909/ft1_filtered_4FGL_J2219.2-0342_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/257909/ft2_4FGL_J2219.2-0342_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257909/Model_4FGL_J2219.2-0342_daily_bin350.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/257909/ft1_filtered_4FGL_J2219.2-0342_daily_bin350.fits.....................!
real 59.69
user 58.19
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61707       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.012       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.794       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5174       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.439       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0438       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.523       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3320       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77320       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=   5811.974     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2720 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61758        2.2524        .16876E-05    .64075E-03
   2  Prefactor     47.568        46.414       -.31876E-05    .94652E-04
   3  Prefactor     .10000E-03    16.366       -.13299E-06** at limit **
   4  Prefactor     39.022        60.574       -.47096E-05   -.23756E-03
   5  Prefactor     .69521        8.2920        .54718E-06   -.99366E-04
   6  Prefactor     26.793        11.536        .22673E-06    .89295E-05
   7  Prefactor     .10000E-03    5.6945        .13665E-06** at limit **
   8  Prefactor     .10000E-03    10.599        .53361E-07** at limit **
   9  Prefactor     .10000E-03    9.6964       -.20435E-06** at limit **
  10  Prefactor     1.5204        28.525        .14967E-04   -.15573E-03
  11  Prefactor     10.434        14.696        .46479E-06   -.21810E-04
  12  Prefactor     .10000E-03    6.8264        .52672E-07** at limit **
  13  Prefactor     7.9787        11.421        .88828E-06   -.41490E-04
  14  Prefactor     .10000E-03    29.250        .64694E-06** at limit **
  15  Prefactor     .10000E-03    2.1064       -.41416E-07** at limit **
  16  norm          10.253        4.8971        .12028E-06    .85649E-04
  17  Prefactor     .10000E-03    25.889       -.68174E-06** at limit **
  18  norm          1.0438        .96837        .21037E-07   -.75354E-04
  19  Prefactor     .10000E-03    11.473        .29064E-06** at limit **
  20  norm          .10000E-03    .57217       -.62919E-07** at limit **
  21  Prefactor     .10000E-03    3.3550       -.21416E-07** at limit **
  22  norm          12.523        9.8408        .12625E-06    .66323E-05
  23  Normalizat    1.3323        .23507       -.24156E-05   -.30873E-03
  24  Prefactor     .77310        .13206        .46582E-06   -.28594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.617582
  Prefactor  = 47.5682
  Prefactor  = 0.0001
  Prefactor  = 39.0218
  Prefactor  = 0.69521
  Prefactor  = 26.7928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52039
  Prefactor  = 10.4342
  Prefactor  = 0.0001
  Prefactor  = 7.97871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2533
  Prefactor  = 0.0001
  norm       = 1.04377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5233
  Normalizat = 1.33229
  Prefactor  = 0.773098
 **********
 **   18 **HESSE 
 **********

 FCN=   5811.974     FROM HESSE     STATUS=OK           393 CALLS     3113 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61758        2.2466        .20898E-03   -1.5551    
   2  Prefactor     47.568        46.231        .58158E-04   -1.4327    
   3  Prefactor     .10000E-03    16.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.022        58.962        .64172E-04   -1.4458    
   5  Prefactor     .69521        17.570        .37109E-02   -1.5541    
   6  Prefactor     26.793        11.581        .77392E-04   -1.4672    
   7  Prefactor     .10000E-03    5.7226        .17767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5204        28.867        .17348E-02   -1.5461    
  11  Prefactor     10.434        14.707        .12401E-03   -1.5062    
  12  Prefactor     .10000E-03    6.8286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9787        11.416        .70969E-03   -1.5143    
  14  Prefactor     .10000E-03    29.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.1226        .10792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.253        4.9129        .11048E-03   -1.5067    
  17  Prefactor     .10000E-03    25.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0438        .95562        .70107E-04   -1.5504    
  19  Prefactor     .10000E-03    11.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .58226        .56292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3556        .13638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.523        9.8425        .11319E-03   -1.5000    
  23  Normalizat    1.3323        .27947        .28258E-03   -.82608    
  24  Prefactor     .77310        .15745        .21083E-03   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54895e-08
Minuit parameter uncertainties:
  1  2.24694
  2  46.2662
  3  4.09471e-05
  4  59.0501
  5  6.99182
  6  11.5817
  7  1.97322e-05
  8  2.71908e-05
  9  8.38861e-05
  10  13.2568
  11  14.712
  12  1.33642e-05
  13  11.4191
  14  0.000225683
  15  3.11174e-06
  16  4.91306
  17  0.000203499
  18  0.955634
  19  0.000104907
  20  2.03278e-06
  21  1.00696e-06
  22  9.84376
  23  0.279793
  24  0.157542
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  7.979e+00  1.142e+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.731e-01  1.575e-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.332e+00  2.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/257909/likelihoodResults_330048001_330307201_4FGL_J2219.2-0342_daily_bin350.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) = 5811.72927194
delta logL = 0.244667728944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5811.69745656
delta logL = 0.276483106302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.098       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8397       1.0000          .0000       10.000    
     3 'Normalizat'    1.3619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75604       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=   5811.697     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      227 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.119        12.530        .30065E-02    .34194E-04
   2  Index         1.8393        .54538        .19392       -.79530E-04
   3  Normalizat    1.3624        .22294        .63264E-01   -.18607E-05
   4  Prefactor     .75582        .13159        .43142E-01   -.66607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1186
  Index      = 1.83932
  Normalizat = 1.36243
  Prefactor  = 0.755817
 **********
 **   18 **HESSE 
 **********

 FCN=   5811.697     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.119        12.897        .12026E-03   -1.5041    
   2  Index         1.8393        .72832        .10307E-01   -.68431    
   3  Normalizat    1.3624        .26381        .27983E-03   -.81722    
   4  Prefactor     .75582        .15558        .21288E-03   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98883e-12
Minuit parameter uncertainties:
  1  12.9005
  2  0.732676
  3  0.264076
  4  0.155668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257909': 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) = 5811.69745201
delta logL = 0.276487662933

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  7.558e-01  1.557e-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.362e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.84 +/- 0.73
Photon Flux (Free Index): 2.61e-08 +/- 3.38e-08
Energy Flux (Free Index): 2.78e-05 +/- 5.09e-05

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/257909/cmap_HighResolution_330048001_330307201_4FGL_J2219.2-0342_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', energy_flux2='2.78e-05', dlogl='2.76e-01', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-28 09:18:51.088256', photon_index_error2='0.73', photon_index2='1.84', ts='0.67', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='5.09e-05', EG='1.33', time_epoch_completed='1632845931.09', return_code='0', job_id='257909', GAL2='0.76', EG2='1.36', return_code2='0', photon_flux_error2='3.38e-08', ts2='1.23', photon_index='2.68' WHERE bin_id='350' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:18:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 257909: <4FGL_J2219.2-0342_daily_bin350> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin350> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:11 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:13 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:05:13 2021
Terminated at Tue Sep 28 09:18:51 2021
Results reported at Tue Sep 28 09:18:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin350 334.823 -3.7102 330048001 330307201 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 :                                   640.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

