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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1262
RA = 334.823, Dec = -3.7102
tmin = 566438401, tmax = 566697601
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='261378', job_status='RUN', time_executed='2021-09-28 09:15:53.457385', time_epoch_executed='1632845753.46' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261378

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261378/ft1_4FGL_J2219.2-0342_daily_bin1262.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261378/ft2_4FGL_J2219.2-0342_daily_bin1262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261378/ft1_4FGL_J2219.2-0342_daily_bin1262.fits outfile=/scratch/kocevski/261378/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1262.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=566438401.0 tmax=566697601.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.19
user 2.01
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261378/ft2_4FGL_J2219.2-0342_daily_bin1262.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/261378/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1262.fits evtable="EVENTS" outfile="/scratch/kocevski/261378/ft1_filtered_4FGL_J2219.2-0342_daily_bin1262.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/261378/ft1_filtered_4FGL_J2219.2-0342_daily_bin1262.fits" evtable="EVENTS" scfile=/scratch/kocevski/261378/ft2_4FGL_J2219.2-0342_daily_bin1262.fits sctable="SC_DATA" outfile=/scratch/kocevski/261378/ltcube_566438401_566697601_4FGL_J2219.2-0342_daily_bin1262.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/261378/ft2_4FGL_J2219.2-0342_daily_bin1262.fits
.....................!
real 12.71
user 12.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261378/ft1_filtered_4FGL_J2219.2-0342_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/261378/ft2_4FGL_J2219.2-0342_daily_bin1262.fits sctable="SC_DATA" expcube=/scratch/kocevski/261378/ltcube_566438401_566697601_4FGL_J2219.2-0342_daily_bin1262.fits outfile=/scratch/kocevski/261378/expmap_566438401_566697601_4FGL_J2219.2-0342_daily_bin1262.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/261378/ltcube_566438401_566697601_4FGL_J2219.2-0342_daily_bin1262.fits
.....................!
real 190.73
user 185.74
sys 4.67

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.897       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.132       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14231E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8026       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0697       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.225       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1951       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9850       1.0000         .10000E-03   10000.    
    16 'norm      '    6.5436       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3629       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3719       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9030       1.0000         .10000E-03   10000.    
    22 'norm      '    13.597       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .43374       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0613       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=   8411.292     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2701 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .50916        .42276E-07** at limit **
   2  Prefactor     53.898        31.695        .32319E-06    .96555E-05
   3  Prefactor     .10000E-03    8.9419        .99621E-07** at limit **
   4  Prefactor     31.065        33.005        .41931E-06   -.87607E-05
   5  Prefactor     .10000E-03    3.6527       -.15260E-05** at limit **
   6  Prefactor     9.1256        6.4845        .32027E-06    .46030E-05
   7  Prefactor     9.7972        10.799        .45643E-06    .18538E-04
   8  Prefactor     3.0736        15.361        .14260E-05    .12362E-04
   9  Prefactor     .10000E-03    10.635        .10653E-07** at limit **
  10  Prefactor     18.222        17.344        .50624E-06    .10531E-04
  11  Prefactor     3.1935        7.5976        .87848E-06    .12299E-04
  12  Prefactor     21.438        17.585        .25167E-06    .36515E-05
  13  Prefactor     10.941        10.579        .21849E-06   -.63510E-05
  14  Prefactor     .10000E-03    23.792        .71590E-08** at limit **
  15  Prefactor     2.9860        3.8672        .61301E-06    .40981E-04
  16  norm          6.5428        3.3578        .95547E-07    .33211E-05
  17  Prefactor     .10000E-03    59.518        .39016E-06** at limit **
  18  norm          3.3628        1.0666       -.82551E-07    .59939E-04
  19  Prefactor     4.2987        72.653       -.33546E-05    .98338E-06
  20  norm          6.0962        3.0181        .31964E-06    .30224E-04
  21  Prefactor     7.9017        8.5136       -.15724E-06    .12036E-04
  22  norm          13.596        9.4388        .33005E-06    .67473E-05
  23  Normalizat    .43411        .20053       -.30508E-05   -.14799E-04
  24  Prefactor     1.0611        .11372        .14207E-06   -.18810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.8977
  Prefactor  = 0.0001
  Prefactor  = 31.0653
  Prefactor  = 0.0001
  Prefactor  = 9.12558
  Prefactor  = 9.7972
  Prefactor  = 3.07357
  Prefactor  = 0.0001
  Prefactor  = 18.2224
  Prefactor  = 3.19352
  Prefactor  = 21.4383
  Prefactor  = 10.9413
  Prefactor  = 0.0001
  Prefactor  = 2.98596
  norm       = 6.54282
  Prefactor  = 0.0001
  norm       = 3.36282
  Prefactor  = 4.29867
  norm       = 6.09621
  Prefactor  = 7.90169
  norm       = 13.5958
  Normalizat = 0.434115
  Prefactor  = 1.06114
 **********
 **   18 **HESSE 
 **********

 FCN=   8411.292     FROM HESSE     STATUS=OK           407 CALLS     3108 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .51094        .63908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.898        31.682        .54635E-04   -1.4238    
   3  Prefactor     .10000E-03    8.9469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.065        33.090        .71811E-04   -1.4593    
   5  Prefactor     .10000E-03    3.6893        .33905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1256        6.4707        .13266E-03   -1.5104    
   7  Prefactor     9.7972        10.780        .12799E-03   -1.5082    
   8  Prefactor     3.0736        15.358        .23152E-03   -1.5357    
   9  Prefactor     .10000E-03    10.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.222        17.286        .93818E-04   -1.4854    
  11  Prefactor     3.1935        7.5831        .22668E-03   -1.5351    
  12  Prefactor     21.438        17.567        .86503E-04   -1.4782    
  13  Prefactor     10.941        10.469        .12109E-03   -1.5046    
  14  Prefactor     .10000E-03    23.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9860        3.8327        .17875E-03   -1.5362    
  16  norm          6.5428        3.3438        .11184E-03   -1.5196    
  17  Prefactor     .10000E-03    59.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3628        1.0646        .51225E-04   -1.5341    
  19  Prefactor     4.2987        74.426        .19263E-03   -1.5293    
  20  norm          6.0962        3.0463        .60201E-04   -1.5214    
  21  Prefactor     7.9017        8.5033        .14263E-03   -1.5146    
  22  norm          13.596        9.4329        .10862E-03   -1.4970    
  23  Normalizat    .43411        .21107        .41150E-03   -1.1557    
  24  Prefactor     1.0611        .12286        .17000E-03   -.90718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01404e-12
Minuit parameter uncertainties:
  1  4.26379e-07
  2  31.6918
  3  3.33276e-06
  4  33.1095
  5  8.77023e-06
  6  6.47117
  7  10.7825
  8  13.7466
  9  3.74806e-06
  10  17.2909
  11  7.58538
  12  17.5709
  13  10.4712
  14  7.60317e-06
  15  3.833
  16  3.34391
  17  6.68806e-05
  18  1.06461
  19  35.8252
  20  3.04634
  21  8.50461
  22  9.43397
  23  0.211461
  24  0.122893
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.094e+01  1.047e+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:  1.061e+00  1.229e-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:  4.341e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/261378/likelihoodResults_566438401_566697601_4FGL_J2219.2-0342_daily_bin1262.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) = 8410.59189285
delta logL = 0.700483584364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8410.54966002
delta logL = 0.74271641968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4129       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3625       1.0000          .0000       10.000    
     3 'Normalizat'    .37443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0902       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=   8410.550     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4162        24.189        .65885E-02    .75225E-03
   2  Index         4.3622        3.3397        .18591        .14464E-03
   3  Normalizat    .37471        .48490E-01    .99699E-01    .76691E-04
   4  Prefactor     1.0901        .30452E-01    .37973E-01   -.27366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41622
  Index      = 4.36221
  Normalizat = 0.374712
  Prefactor  = 1.09009
 **********
 **   18 **HESSE 
 **********

 FCN=   8410.550     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4162        49.060        .88035E-04   -1.5397    
   2  Index         4.3622        7.1595        .66059E-02   -.12791    
   3  Normalizat    .37471        .18477        .44166E-03   -1.1863    
   4  Prefactor     1.0901        .11823        .16796E-03   -.89784    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.86785e-10
Minuit parameter uncertainties:
  1  21.7953
  2  6.50374
  3  0.185074
  4  0.118258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261378': 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): 102
logL (Free Index) = 8410.54965532
delta logL = 0.742721112896

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.416e+00  2.180e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  4.362e+00  6.504e+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:  1.090e+00  1.183e-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:  3.747e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.31
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 4.36 +/- 6.50
Photon Flux (Free Index): 8.52e-08 +/- 6.48e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.66e-05

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/261378/cmap_HighResolution_566438401_566697601_4FGL_J2219.2-0342_daily_bin1262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='1.21e-05', photon_flux_error='4.82e-08', dlogl='7.43e-01', energy_flux='1.23e-05', photon_flux2='8.52e-08', job_status='DONE', time_completed='2021-09-28 09:28:30.114523', photon_index_error2='6.50', photon_index2='4.36', ts='1.61', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.66e-05', EG='0.43', time_epoch_completed='1632846510.11', return_code='0', job_id='261378', GAL2='1.09', EG2='0.37', return_code2='102', energy_flux_error='1.18e-05', photon_flux_error2='6.48e-08', ts2='3.31', photon_index='2.68' WHERE bin_id='1262' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:28:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 261378: <4FGL_J2219.2-0342_daily_bin1262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1262 334.823 -3.7102 566438401 566697601 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 :                                   755.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

