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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1373
RA = 334.823, Dec = -3.7102
tmin = 595209601, tmax = 595468801
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='261553', job_status='RUN', time_executed='2021-09-28 09:16:03.733077', time_epoch_executed='1632845763.73' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261553/ft1_4FGL_J2219.2-0342_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261553/ft2_4FGL_J2219.2-0342_daily_bin1373.fits


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

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

Done.
real 2.91
user 2.70
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261553/ft1_filtered_4FGL_J2219.2-0342_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/261553/ft2_4FGL_J2219.2-0342_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/261553/ltcube_595209601_595468801_4FGL_J2219.2-0342_daily_bin1373.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/261553/ft2_4FGL_J2219.2-0342_daily_bin1373.fits
.....................!
real 12.29
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261553/ft1_filtered_4FGL_J2219.2-0342_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/261553/ft2_4FGL_J2219.2-0342_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/261553/ltcube_595209601_595468801_4FGL_J2219.2-0342_daily_bin1373.fits outfile=/scratch/kocevski/261553/expmap_595209601_595468801_4FGL_J2219.2-0342_daily_bin1373.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/261553/ltcube_595209601_595468801_4FGL_J2219.2-0342_daily_bin1373.fits
.....................!
real 191.00
user 185.75
sys 4.90

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261553/ft1_filtered_4FGL_J2219.2-0342_daily_bin1373.fits scfile=/scratch/kocevski/261553/ft2_4FGL_J2219.2-0342_daily_bin1373.fits outfile=/scratch/kocevski/261553/cmap_HighResolution_595209601_595468801_4FGL_J2219.2-0342_daily_bin1373.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261553/ft1_filtered_4FGL_J2219.2-0342_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/261553/ft2_4FGL_J2219.2-0342_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261553/Model_4FGL_J2219.2-0342_daily_bin1373.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/261553/ft1_filtered_4FGL_J2219.2-0342_daily_bin1373.fits.....................!
real 78.55
user 77.20
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61983       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.136       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.430       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.138       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9896       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.507       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66691E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11816E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .50225       1.0000         .10000E-03   10000.    
    16 'norm      '    .44646       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13897E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8459       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.423       1.0000         .10000E-03   10000.    
    20 'norm      '    19.482       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6665       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4423       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67674       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=   8184.704     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2805 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62094        1.9883        .10455E-05   -.12365E-03
   2  Prefactor     29.114        35.273       -.10742E-05   -.99752E-04
   3  Prefactor     .10000E-03    12.536       -.31831E-07** at limit **
   4  Prefactor     36.479        46.156        .66990E-06    .12217E-03
   5  Prefactor     .10000E-03    8.0456        .17484E-05** at limit **
   6  Prefactor     .10000E-03    1.4408        .14711E-07** at limit **
   7  Prefactor     7.6566        6.6461        .21454E-07   -.55287E-05
   8  Prefactor     12.181        20.316       -.40743E-07   -.66181E-04
   9  Prefactor     15.136        12.901        .94967E-09   -.27687E-04
  10  Prefactor     9.9866        15.105        .50288E-07   -.63317E-05
  11  Prefactor     .10000E-03    2.7040        .49642E-08** at limit **
  12  Prefactor     25.478        29.599        .52396E-07   -.99366E-05
  13  Prefactor     .10000E-03    5.8549       -.11191E-05** at limit **
  14  Prefactor     .10000E-03    204.56        .16353E-05** at limit **
  15  Prefactor     .50442        3.6704        .34378E-05   -.75136E-04
  16  norm          .45055        1.7306       -.10494E-06   -.23168E-03
  17  Prefactor     .10000E-03    47.203       -.14918E-06** at limit **
  18  norm          1.8461        1.0391        .36464E-07    .82802E-05
  19  Prefactor     47.375        66.822       -.48638E-05   -.88563E-04
  20  norm          19.476        5.9055        .66133E-06   -.31409E-03
  21  Prefactor     4.6669        6.7564        .32641E-07    .39834E-05
  22  norm          .10000E-03    6.9603        .19100E-07** at limit **
  23  Normalizat    1.4419        .19891        .69662E-06   -.10687E-03
  24  Prefactor     .67704        .11181       -.97706E-06    .19478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.620945
  Prefactor  = 29.1143
  Prefactor  = 0.0001
  Prefactor  = 36.4785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65663
  Prefactor  = 12.1809
  Prefactor  = 15.1363
  Prefactor  = 9.98656
  Prefactor  = 0.0001
  Prefactor  = 25.478
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 0.504421
  norm       = 0.450549
  Prefactor  = 0.0001
  norm       = 1.84606
  Prefactor  = 47.3747
  norm       = 19.4762
  Prefactor  = 4.6669
  norm       = 0.0001
  Normalizat = 1.44188
  Prefactor  = 0.677042
 **********
 **   18 **HESSE 
 **********

 FCN=   8184.704     FROM HESSE     STATUS=OK           401 CALLS     3206 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62094        1.9618        .21020E-03   -1.5550    
   2  Prefactor     29.114        34.953        .74224E-04   -1.4628    
   3  Prefactor     .10000E-03    12.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.479        46.534        .66399E-04   -1.4499    
   5  Prefactor     .10000E-03    8.1037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4469        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6566        6.6441        .14493E-03   -1.5154    
   8  Prefactor     12.181        20.326        .11483E-03   -1.5010    
   9  Prefactor     15.136        12.883        .10294E-03   -1.4930    
  10  Prefactor     9.9866        15.088        .12678E-03   -1.5076    
  11  Prefactor     .10000E-03    2.7121        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.478        29.583        .79317E-04   -1.4698    
  13  Prefactor     .10000E-03    23.090        .40847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    208.24        .20649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50442        3.7637        .33002E-03   -1.5566    
  16  norm          .45055        6.8599        .21391E-02   -1.5574    
  17  Prefactor     .10000E-03    47.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8461        1.0389        .30694E-04   -1.5436    
  19  Prefactor     47.375        68.897        .58227E-04   -1.4330    
  20  norm          19.476        6.0769        .61930E-04   -1.4825    
  21  Prefactor     4.6669        6.7492        .18630E-03   -1.5276    
  22  norm          .10000E-03    7.0343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4419        .23355        .27442E-03   -.79425    
  24  Prefactor     .67704        .13114        .22484E-03   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62003e-10
Minuit parameter uncertainties:
  1  1.96204
  2  34.9773
  3  5.88697e-06
  4  46.5802
  5  4.38074e-05
  6  1.68773e-07
  7  6.64474
  8  20.3378
  9  12.8858
  10  15.0939
  11  2.32502e-07
  12  29.6
  13  0.000395328
  14  0.00193881
  15  2.75568
  16  3.51617
  17  4.42102e-05
  18  1.03887
  19  69.0131
  20  6.07708
  21  6.7503
  22  1.7333e-06
  23  0.233726
  24  0.131199
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  3.953e-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:  6.770e-01  1.312e-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.442e+00  2.337e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261553/likelihoodResults_595209601_595468801_4FGL_J2219.2-0342_daily_bin1373.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) = 8184.70405223
delta logL = -0.000204665678211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8184.70384769
delta logL = -1.21781340567e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14983E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7800       1.0000          .0000       10.000    
     3 'Normalizat'    1.4421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67694       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=   8184.506     FROM MIGRAD    STATUS=CONVERGED    185 CALLS      347 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41124E-01    5.5542        .28237E-04   -.42295E-02
   2  Index         6.6699        6.1690        .45323E-02   -.56160E-04
   3  Normalizat    1.3951        .19654        .27830E-03   -.24678E-03
   4  Prefactor     .69459        .11270        .22228E-03   -.27398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0411242
  Index      = 6.66992
  Normalizat = 1.39511
  Prefactor  = 0.694585
 **********
 **   18 **HESSE 
 **********

 FCN=   8184.506     FROM HESSE     STATUS=OK            23 CALLS      370 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41124E-01    3.1732        .11295E-05   -1.5667    
   2  Index         6.6699        7.8746        .18129E-03    .34053    
   3  Normalizat    1.3951        .23326        .55660E-04   -.80770    
   4  Prefactor     .69459        .13319        .88913E-05   -1.0374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26288e-10
Minuit parameter uncertainties:
  1  0.721638
  2  11.9137
  3  0.233437
  4  0.133247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261553': 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) = 8184.50615632
delta logL = 0.197691250769

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.112e-02  7.216e-01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  6.670e+00  1.191e+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:  6.946e-01  1.332e-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.395e+00  2.334e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261553/cmap_HighResolution_595209601_595468801_4FGL_J2219.2-0342_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-28 09:28:56.186522', job_id='261553', GAL2='0.69', fit_tolerance='1e-08', EG2='1.40', EG='1.44', time_epoch_completed='1632846536.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.98e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1373' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:28:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 261553: <4FGL_J2219.2-0342_daily_bin1373> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1373> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:52 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:53 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:15:53 2021
Terminated at Tue Sep 28 09:28:56 2021
Results reported at Tue Sep 28 09:28:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1373 334.823 -3.7102 595209601 595468801 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 :                                   772.00 sec.
    Max Memory :                                 1138 MB
    Average Memory :                             325.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

