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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin789
RA = 334.823, Dec = -3.7102
tmin = 443836801, tmax = 444096001
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='259597', job_status='RUN', time_executed='2021-09-28 09:10:38.768208', time_epoch_executed='1632845438.77' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='789'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259597/ft1_4FGL_J2219.2-0342_daily_bin789.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259597/ft2_4FGL_J2219.2-0342_daily_bin789.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259597/ft1_4FGL_J2219.2-0342_daily_bin789.fits outfile=/scratch/kocevski/259597/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin789.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=443836801.0 tmax=444096001.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.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259597/ft1_filtered_4FGL_J2219.2-0342_daily_bin789.fits" evtable="EVENTS" scfile=/scratch/kocevski/259597/ft2_4FGL_J2219.2-0342_daily_bin789.fits sctable="SC_DATA" outfile=/scratch/kocevski/259597/ltcube_443836801_444096001_4FGL_J2219.2-0342_daily_bin789.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/259597/ft2_4FGL_J2219.2-0342_daily_bin789.fits
.....................!
real 12.04
user 11.71
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259597/ft1_filtered_4FGL_J2219.2-0342_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/259597/ft2_4FGL_J2219.2-0342_daily_bin789.fits sctable="SC_DATA" expcube=/scratch/kocevski/259597/ltcube_443836801_444096001_4FGL_J2219.2-0342_daily_bin789.fits outfile=/scratch/kocevski/259597/expmap_443836801_444096001_4FGL_J2219.2-0342_daily_bin789.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/259597/ltcube_443836801_444096001_4FGL_J2219.2-0342_daily_bin789.fits
.....................!
real 191.89
user 187.14
sys 4.45

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/259597/ft1_filtered_4FGL_J2219.2-0342_daily_bin789.fits scfile=/scratch/kocevski/259597/ft2_4FGL_J2219.2-0342_daily_bin789.fits outfile=/scratch/kocevski/259597/cmap_443836801_444096001_4FGL_J2219.2-0342_daily_bin789.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259597/ft1_filtered_4FGL_J2219.2-0342_daily_bin789.fits scfile=/scratch/kocevski/259597/ft2_4FGL_J2219.2-0342_daily_bin789.fits outfile=/scratch/kocevski/259597/cmap_HighResolution_443836801_444096001_4FGL_J2219.2-0342_daily_bin789.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259597/ft1_filtered_4FGL_J2219.2-0342_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/259597/ft2_4FGL_J2219.2-0342_daily_bin789.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259597/Model_4FGL_J2219.2-0342_daily_bin789.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/259597/ft1_filtered_4FGL_J2219.2-0342_daily_bin789.fits.....................!
real 63.90
user 62.67
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5714       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.748       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3719       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8507       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4761       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8187       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .81432       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    19.107       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2101       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83797       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=   6672.491     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2386 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4091        1.8566        .13458E-05    .17349E-02
   2  Prefactor     1.6175        182.43       -.16536E-03   -.90051E-05
   3  Prefactor     .10000E-03    11.222       -.12338E-05** at limit **
   4  Prefactor     15.493        39.770        .29322E-04    .87577E-04
   5  Prefactor     11.752        8.9351        .36038E-06    .39174E-03
   6  Prefactor     4.3713        4.2109       -.11056E-05    .10964E-03
   7  Prefactor     13.908        13.504       -.25668E-05    .34090E-03
   8  Prefactor     7.9711        25.328       -.14382E-04    .22403E-04
   9  Prefactor     9.8541        11.819       -.24828E-05    .78531E-04
  10  Prefactor     .10000E-03    12.521        .51401E-06** at limit **
  11  Prefactor     .10000E-03    8.7769       -.24752E-06** at limit **
  12  Prefactor     .10000E-03    10.568        .59522E-06** at limit **
  13  Prefactor     8.4769        11.494       -.46161E-05    .83415E-04
  14  Prefactor     1.0392        878.57       -.21688E-03    .87175E-05
  15  Prefactor     2.8168        4.3952       -.69333E-06   -.36236E-03
  16  norm          .10000E-03    1.7256        .10897E-06** at limit **
  17  Prefactor     .10000E-03    22.900       -.11821E-05** at limit **
  18  norm          .81478        .84980       -.14663E-06    .53223E-03
  19  Prefactor     .10000E-03    29.200        .27269E-06** at limit **
  20  norm          .10000E-03    .63545       -.28994E-06** at limit **
  21  Prefactor     .10000E-03    3.6868       -.78336E-07** at limit **
  22  norm          19.096        16.568       -.26965E-04    .68439E-04
  23  Normalizat    1.2104        .21738        .12860E-04    .71200E-03
  24  Prefactor     .83798        .12580        .18888E-05    .16849E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40905
  Prefactor  = 1.6175
  Prefactor  = 0.0001
  Prefactor  = 15.4926
  Prefactor  = 11.752
  Prefactor  = 4.37128
  Prefactor  = 13.9078
  Prefactor  = 7.97105
  Prefactor  = 9.85406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.47694
  Prefactor  = 1.03919
  Prefactor  = 2.81677
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.814782
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0956
  Normalizat = 1.21038
  Prefactor  = 0.837981
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.491     FROM HESSE     STATUS=OK           403 CALLS     2789 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4091        1.8198        .12171E-03   -1.5471    
   2  Prefactor     1.6175        186.81        .33910E-03   -1.5454    
   3  Prefactor     .10000E-03    11.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.493        39.721        .10166E-03   -1.4921    
   5  Prefactor     11.752        8.9213        .11688E-03   -1.5022    
   6  Prefactor     4.3713        4.2179        .15877E-03   -1.5290    
   7  Prefactor     13.908        13.493        .10739E-03   -1.4962    
   8  Prefactor     7.9711        25.354        .14186E-03   -1.5143    
   9  Prefactor     9.8541        11.812        .12767E-03   -1.5080    
  10  Prefactor     .10000E-03    12.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.4769        11.411        .13769E-03   -1.5126    
  14  Prefactor     1.0392        929.53        .37140E-02   -1.5504    
  15  Prefactor     2.8168        4.3515        .19253E-03   -1.5372    
  16  norm          .10000E-03    1.7519        .10464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .81478        .80861        .74172E-03   -1.5527    
  19  Prefactor     .10000E-03    29.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1275        .12625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6904        .15318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          19.096        16.579        .91629E-04   -1.4834    
  23  Normalizat    1.2104        .26212        .28613E-03   -.86283    
  24  Prefactor     .83798        .15303        .20189E-03   -.98343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7879e-09
Minuit parameter uncertainties:
  1  1.81982
  2  34.8766
  3  1.00611e-05
  4  39.7893
  5  8.9223
  6  4.21817
  7  13.4958
  8  25.3882
  9  11.8149
  10  3.17709e-05
  11  7.83835e-05
  12  1.27064e-05
  13  11.4138
  14  63.1658
  15  4.35197
  16  1.50531e-05
  17  1.87815e-05
  18  0.808617
  19  0.000312879
  20  3.34245e-05
  21  9.17437e-06
  22  16.5831
  23  0.262401
  24  0.153112
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.477e+00  1.141e+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.380e-01  1.531e-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.210e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259597/likelihoodResults_443836801_444096001_4FGL_J2219.2-0342_daily_bin789.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) = 6672.28441302
delta logL = 0.206595828029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6672.24366789
delta logL = 0.24734096396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.898       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1276       1.0000          .0000       10.000    
     3 'Normalizat'    1.2295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82634       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=   6672.244     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      255 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.893        12.796        .11614E-03    .11747E-04
   2  Index         2.1272        .66471        .97000E-02   -.64965E-05
   3  Normalizat    1.2294        .25264        .28420E-03    .23201E-05
   4  Prefactor     .82644        .15203        .20306E-03    .23514E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8927
  Index      = 2.12717
  Normalizat = 1.22936
  Prefactor  = 0.826436
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.244     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.893        12.883        .46455E-05   -1.5018    
   2  Index         2.1272        .66932        .38800E-03   -.61207    
   3  Normalizat    1.2294        .25294        .11368E-04   -.85700    
   4  Prefactor     .82644        .15218        .81226E-05   -.98761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45822e-12
Minuit parameter uncertainties:
  1  12.8859
  2  0.672346
  3  0.253195
  4  0.152258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259597': 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) = 6672.24366742
delta logL = 0.247341426983

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.189e+01  1.289e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.127e+00  6.723e-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:  8.264e-01  1.523e-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.229e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.13 +/- 0.67
Photon Flux (Free Index): 3.32e-08 +/- 4.21e-08
Energy Flux (Free Index): 1.72e-05 +/- 2.20e-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/259597/cmap_HighResolution_443836801_444096001_4FGL_J2219.2-0342_daily_bin789.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='1.72e-05', dlogl='2.47e-01', photon_flux2='3.32e-08', job_status='DONE', time_completed='2021-09-28 09:21:20.702997', photon_index_error2='0.67', photon_index2='2.13', ts='0.75', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='2.20e-05', EG='1.21', time_epoch_completed='1632846080.7', return_code='0', job_id='259597', GAL2='0.83', EG2='1.23', return_code2='0', photon_flux_error2='4.21e-08', ts2='1.25', photon_index='2.68' WHERE bin_id='789' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 259597: <4FGL_J2219.2-0342_daily_bin789> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin789 334.823 -3.7102 443836801 444096001 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 :                                   641.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            653 sec.

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

