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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1461
RA = 334.823, Dec = -3.7102
tmin = 618019201, tmax = 618278401
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='262673', job_status='RUN', time_executed='2021-09-28 09:22:21.921435', time_epoch_executed='1632846141.92' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262673

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262673/ft1_4FGL_J2219.2-0342_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262673/ft2_4FGL_J2219.2-0342_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262673/ft1_4FGL_J2219.2-0342_daily_bin1461.fits outfile=/scratch/kocevski/262673/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1461.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=618019201.0 tmax=618278401.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 5.17
user 4.86
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262673/ft1_filtered_4FGL_J2219.2-0342_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/262673/ft2_4FGL_J2219.2-0342_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/262673/ltcube_618019201_618278401_4FGL_J2219.2-0342_daily_bin1461.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/262673/ft2_4FGL_J2219.2-0342_daily_bin1461.fits
.....................!
real 11.83
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262673/ft1_filtered_4FGL_J2219.2-0342_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/262673/ft2_4FGL_J2219.2-0342_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/262673/ltcube_618019201_618278401_4FGL_J2219.2-0342_daily_bin1461.fits outfile=/scratch/kocevski/262673/expmap_618019201_618278401_4FGL_J2219.2-0342_daily_bin1461.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/262673/ltcube_618019201_618278401_4FGL_J2219.2-0342_daily_bin1461.fits
.....................!
real 192.69
user 187.19
sys 5.12

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/262673/ft1_filtered_4FGL_J2219.2-0342_daily_bin1461.fits scfile=/scratch/kocevski/262673/ft2_4FGL_J2219.2-0342_daily_bin1461.fits outfile=/scratch/kocevski/262673/cmap_618019201_618278401_4FGL_J2219.2-0342_daily_bin1461.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262673/ft1_filtered_4FGL_J2219.2-0342_daily_bin1461.fits scfile=/scratch/kocevski/262673/ft2_4FGL_J2219.2-0342_daily_bin1461.fits outfile=/scratch/kocevski/262673/cmap_HighResolution_618019201_618278401_4FGL_J2219.2-0342_daily_bin1461.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.62
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262673/ft1_filtered_4FGL_J2219.2-0342_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/262673/ft2_4FGL_J2219.2-0342_daily_bin1461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262673/Model_4FGL_J2219.2-0342_daily_bin1461.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/262673/ft1_filtered_4FGL_J2219.2-0342_daily_bin1461.fits.....................!
real 53.42
user 51.99
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5713       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11425E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    88.220       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3912       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4614       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.734       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.843       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.839       1.0000         .10000E-03   10000.    
    20 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.389       1.0000         .10000E-03   10000.    
    22 'norm      '    216.75       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .65670       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88986       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=   5160.255     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2774 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5715        3.2946        .47069E-02    .26323E-03
   2  Prefactor     .10000E-03    190.72        .90712E-02** at limit **
   3  Prefactor     88.216        58.051        .10694E-02    .43621E-03
   4  Prefactor     .10000E-03    55.533        .90712E-02** at limit **
   5  Prefactor     6.3897        11.508        .39691E-02    .23439E-02
   6  Prefactor     9.4615        9.2913        .32572E-02    .22835E-03
   7  Prefactor     12.366        19.034        .28473E-02    .61067E-03
   8  Prefactor     .10000E-03    6.9301        .90712E-02** at limit **
   9  Prefactor     70.168        32.952        .11980E-02    .16771E-03
  10  Prefactor     .10000E-03    11.794        .90712E-02** at limit **
  11  Prefactor     10.732        14.397        .30573E-02    .18197E-03
  12  Prefactor     19.843        30.957        .22478E-02   -.34468E-03
  13  Prefactor     17.212        18.131        .24133E-02    .38923E-03
  14  Prefactor     .10000E-03    392.33        .90712E-02** at limit **
  15  Prefactor     .10000E-03    2.1716        .90712E-02** at limit **
  16  norm          .10000E-03    1.9128        .90712E-02** at limit **
  17  Prefactor     .10000E-03    42.118        .90712E-02** at limit **
  18  norm          .10000E-03    .52456        .90712E-02** at limit **
  19  Prefactor     55.792        35.796        .13420E-02    .36441E-03
  20  norm          .10000E-03    2.1728        .32000E-01** at limit **
  21  Prefactor     16.388        17.079        .24733E-02    .48360E-03
  22  norm          216.75        34.644        .68673E-03   -.39374E-03
  23  Normalizat    .65668        .27925        .87467E-01    .14559E-03
  24  Prefactor     .88984        .14705        .44876E-01    .19114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5715
  Prefactor  = 0.000100005
  Prefactor  = 88.2162
  Prefactor  = 0.0001
  Prefactor  = 6.3897
  Prefactor  = 9.46151
  Prefactor  = 12.366
  Prefactor  = 0.0001
  Prefactor  = 70.1679
  Prefactor  = 0.0001
  Prefactor  = 10.7325
  Prefactor  = 19.8434
  Prefactor  = 17.2121
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 55.7915
  norm       = 0.0001
  Prefactor  = 16.3878
  norm       = 216.746
  Normalizat = 0.65668
  Prefactor  = 0.889839
 **********
 **   18 **HESSE 
 **********

 FCN=   5160.255     FROM HESSE     STATUS=OK           387 CALLS     3161 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5715        3.2908        .10607E-03   -1.5280    
   2  Prefactor     .10000E-03    192.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     88.216        58.027        .42777E-04   -1.3827    
   4  Prefactor     .10000E-03    55.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3897        11.495        .79382E-03   -1.5202    
   6  Prefactor     9.4615        9.3162        .13029E-03   -1.5093    
   7  Prefactor     12.366        18.997        .11389E-03   -1.5005    
   8  Prefactor     .10000E-03    6.9323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     70.168        32.903        .47921E-04   -1.4031    
  10  Prefactor     .10000E-03    11.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.732        14.426        .12229E-03   -1.5053    
  12  Prefactor     19.843        30.964        .89913E-04   -1.4817    
  13  Prefactor     17.212        18.150        .96532E-04   -1.4878    
  14  Prefactor     .10000E-03    397.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.1849        .10318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9638        .19394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .53198        .50742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     55.792        30.383        .53681E-04   -1.4213    
  20  norm          .10000E-03    2.7493        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.388        17.068        .98934E-04   -1.4898    
  22  norm          216.75        34.641        .27469E-04   -1.2753    
  23  Normalizat    .65668        .32070        .38747E-03   -1.0563    
  24  Prefactor     .88984        .17124        .19557E-03   -.96497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07295e-09
Minuit parameter uncertainties:
  1  3.29092
  2  0.00191625
  3  58.0646
  4  0.000139486
  5  11.4993
  6  9.31765
  7  19.0058
  8  5.74755e-06
  9  32.9112
  10  3.47698e-05
  11  14.4302
  12  30.9894
  13  18.1554
  14  0.0027932
  15  1.92305e-06
  16  2.15135e-06
  17  6.55882e-05
  18  1.53071e-06
  19  30.3915
  20  2.23163e-05
  21  17.0729
  22  34.6442
  23  0.321617
  24  0.171348
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.721e+01  1.816e+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.898e-01  1.713e-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:  6.567e-01  3.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.93e-08 +/- 8.36e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 2.04e-05

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

Saving results to:
/scratch/kocevski/262673/likelihoodResults_618019201_618278401_4FGL_J2219.2-0342_daily_bin1461.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) = 5159.24682643
delta logL = 1.00799637109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5159.22890315
delta logL = 1.02591964549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3675       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2708       1.0000          .0000       10.000    
     3 'Normalizat'    .54991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93619       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=   5159.229     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      248 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3572        66.481        .43365E-02    .11005E-02
   2  Index         4.2720        3.9651        .14519        .23429E-03
   3  Normalizat    .54996        .88740E-01    .94922E-01    .34197E-04
   4  Prefactor     .93618        .52301E-01    .45465E-01   -.10066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3572
  Index      = 4.27202
  Normalizat = 0.549956
  Prefactor  = 0.936182
 **********
 **   18 **HESSE 
 **********

 FCN=   5159.229     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3572        47.790        .99572E-04   -1.5245    
   2  Index         4.2720        3.8387        .56708E-02   -.14611    
   3  Normalizat    .54996        .30157        .42065E-03   -1.1015    
   4  Prefactor     .93618        .17542        .19102E-03   -.94888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72147e-10
Minuit parameter uncertainties:
  1  32.035
  2  4.39421
  3  0.302474
  4  0.175522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262673': 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) = 5159.22890262
delta logL = 1.02592017628

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.357e+00  3.204e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  4.272e+00  4.394e+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:  9.362e-01  1.755e-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:  5.500e-01  3.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 4.27 +/- 4.39
Photon Flux (Free Index): 1.68e-07 +/- 1.13e-07
Energy Flux (Free Index): 2.41e-05 +/- 2.40e-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/262673/cmap_HighResolution_618019201_618278401_4FGL_J2219.2-0342_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', comment='SUCCESS', photon_flux='7.93e-08', energy_flux2='2.41e-05', photon_flux_error='8.36e-08', dlogl='1.03e+00', energy_flux='1.94e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-28 09:32:20.343439', photon_index_error2='4.39', photon_index2='4.27', ts='1.18', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='2.38e-07', energy_flux_error2='2.40e-05', EG='0.66', time_epoch_completed='1632846740.34', return_code='0', job_id='262673', GAL2='0.94', EG2='0.55', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='1.13e-07', ts2='3.50', photon_index='2.68' WHERE bin_id='1461' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:32:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 262673: <4FGL_J2219.2-0342_daily_bin1461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1461 334.823 -3.7102 618019201 618278401 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 :                                   595.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

