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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1010
RA = 334.823, Dec = -3.7102
tmin = 501120001, tmax = 501379201
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='259939', job_status='RUN', time_executed='2021-09-28 09:12:57.477934', time_epoch_executed='1632845577.48' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259939

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259939/ft1_4FGL_J2219.2-0342_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259939/ft2_4FGL_J2219.2-0342_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259939/ft1_4FGL_J2219.2-0342_daily_bin1010.fits outfile=/scratch/kocevski/259939/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1010.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=501120001.0 tmax=501379201.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.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259939/ft1_filtered_4FGL_J2219.2-0342_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/259939/ft2_4FGL_J2219.2-0342_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/259939/ltcube_501120001_501379201_4FGL_J2219.2-0342_daily_bin1010.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/259939/ft2_4FGL_J2219.2-0342_daily_bin1010.fits
.....................!
real 11.90
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259939/ft1_filtered_4FGL_J2219.2-0342_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/259939/ft2_4FGL_J2219.2-0342_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/259939/ltcube_501120001_501379201_4FGL_J2219.2-0342_daily_bin1010.fits outfile=/scratch/kocevski/259939/expmap_501120001_501379201_4FGL_J2219.2-0342_daily_bin1010.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/259939/ltcube_501120001_501379201_4FGL_J2219.2-0342_daily_bin1010.fits
.....................!
real 190.23
user 185.02
sys 4.91

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/259939/ft1_filtered_4FGL_J2219.2-0342_daily_bin1010.fits scfile=/scratch/kocevski/259939/ft2_4FGL_J2219.2-0342_daily_bin1010.fits outfile=/scratch/kocevski/259939/cmap_501120001_501379201_4FGL_J2219.2-0342_daily_bin1010.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259939/ft1_filtered_4FGL_J2219.2-0342_daily_bin1010.fits scfile=/scratch/kocevski/259939/ft2_4FGL_J2219.2-0342_daily_bin1010.fits outfile=/scratch/kocevski/259939/cmap_HighResolution_501120001_501379201_4FGL_J2219.2-0342_daily_bin1010.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15270E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.448       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7618       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19184E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.733       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13743E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5934       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .19002E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    211.58       1.0000         .10000E-03   10000.    
    20 'norm      '    14.873       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4366       1.0000         .10000E-03   10000.    
    22 'norm      '    19.272       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79135       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1141       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=   6701.122     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2858 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1975        3.7952        .28572E-05    .43367E-03
   2  Prefactor     39.585        63.508       -.10152E-04   -.37427E-04
   3  Prefactor     .10000E-03    21.300        .18710E-06** at limit **
   4  Prefactor     .10000E-03    25.587       -.58385E-06** at limit **
   5  Prefactor     .10000E-03    3.6139        .76050E-07** at limit **
   6  Prefactor     5.1480        8.3197        .14299E-05   -.76942E-05
   7  Prefactor     .10000E-03    36.860        .70380E-07** at limit **
   8  Prefactor     10.852        21.635        .59040E-06    .47504E-05
   9  Prefactor     14.442        20.532        .39462E-06    .42952E-04
  10  Prefactor     .10000E-03    12.576       -.56972E-07** at limit **
  11  Prefactor     7.7639        16.331       -.90999E-06   -.16509E-04
  12  Prefactor     4.9447        80.531        .84019E-06   -.90351E-06
  13  Prefactor     .10003E-03    7.3257       -.10406E-05** at limit **
  14  Prefactor     20.615        89.809        .19557E-04   -.37807E-04
  15  Prefactor     .14218E-02    2.5392        .32284E-06** at limit **
  16  norm          6.5934        4.8917       -.13565E-06    .23107E-04
  17  Prefactor     .10000E-03    34.574        .97775E-06** at limit **
  18  norm          .10605E-03    .60465        .25216E-06** at limit **
  19  Prefactor     211.64        83.453       -.17982E-05    .56486E-04
  20  norm          14.862        6.7554        .27171E-06   -.21176E-03
  21  Prefactor     1.4323        25.137        .12824E-04   -.21442E-04
  22  norm          19.274        13.987        .51197E-07    .93254E-05
  23  Normalizat    .79082        .27140       -.17394E-05    .32352E-04
  24  Prefactor     1.1143        .14735        .78672E-06    .12909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.19749
  Prefactor  = 39.5848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.14799
  Prefactor  = 0.0001
  Prefactor  = 10.8524
  Prefactor  = 14.4424
  Prefactor  = 0.0001
  Prefactor  = 7.76395
  Prefactor  = 4.94474
  Prefactor  = 0.000100028
  Prefactor  = 20.6153
  Prefactor  = 0.00142181
  norm       = 6.59342
  Prefactor  = 0.0001
  norm       = 0.00010605
  Prefactor  = 211.642
  norm       = 14.8617
  Prefactor  = 1.43227
  norm       = 19.2736
  Normalizat = 0.790823
  Prefactor  = 1.11432
 **********
 **   18 **HESSE 
 **********

 FCN=   6701.122     FROM HESSE     STATUS=OK           419 CALLS     3277 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1975        3.6917        .23162E-03   -1.5489    
   2  Prefactor     39.585        62.494        .63763E-04   -1.4449    
   3  Prefactor     .10000E-03    21.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6246        .15197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1480        8.3267        .88605E-03   -1.5254    
   7  Prefactor     .10000E-03    37.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.852        21.584        .60810E-03   -1.5049    
   9  Prefactor     14.442        20.498        .10537E-03   -1.4948    
  10  Prefactor     .10000E-03    12.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7639        16.389        .14393E-03   -1.5151    
  12  Prefactor     4.9447        79.952        .18078E-03   -1.5263    
  13  Prefactor     .10003E-03    42.506        .39530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.615        88.589        .87964E-04   -1.4800    
  15  Prefactor     .14218E-02    6.3122        .39181E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5934        4.8843        .14475E-03   -1.5194    
  17  Prefactor     .10000E-03    34.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10605E-03    1.8385        .21853E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     211.64        84.441        .13898E-03   -1.2788    
  20  norm          14.862        6.8466        .80329E-04   -1.4937    
  21  Prefactor     1.4323        25.089        .18006E-02   -1.5469    
  22  norm          19.274        13.996        .91236E-04   -1.4830    
  23  Normalizat    .79082        .31149        .38869E-03   -1.0041    
  24  Prefactor     1.1143        .17225        .19823E-03   -.89010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90467e-09
Minuit parameter uncertainties:
  1  3.69239
  2  62.5975
  3  2.77596e-05
  4  4.25427e-05
  5  6.1635e-06
  6  8.32862
  7  0.000133571
  8  21.6
  9  20.508
  10  3.2265e-06
  11  16.3989
  12  39.829
  13  0.00218536
  14  85.6857
  15  0.182705
  16  4.88455
  17  4.34199e-05
  18  0.00667016
  19  84.4891
  20  6.84691
  21  11.9946
  22  13.9982
  23  0.312199
  24  0.172332
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.185e-03  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.114e+00  1.723e-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:  7.908e-01  3.122e-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: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259939/likelihoodResults_501120001_501379201_4FGL_J2219.2-0342_daily_bin1010.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): 102
logL (Free Index) = 6701.12196895
delta logL = -0.000111278626719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6701.12185765
delta logL = 2.38078428083e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7057       1.0000          .0000       10.000    
     3 'Normalizat'    .79083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1143       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=   6701.122     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0386        .90712E-01** at limit **
   2  Index         2.7240        5.7456        .50000       -.28926E-05
   3  Normalizat    .79082        .22902E-02    .87760E-01    .95242E-04
   4  Prefactor     1.1143        .13705E-02    .37067E-01    .11071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.72404
  Normalizat = 0.790825
  Prefactor  = 1.11432
 **********
 **   18 **HESSE 
 **********

 FCN=   6701.122     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    169.56        .41461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7240        5.1298        .50000       -.47259    
   3  Normalizat    .79082        .11523E-01    .38870E-03   -1.0041    
   4  Prefactor     1.1143        .69137E-02    .19823E-03   -.89010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14349e-08
Minuit parameter uncertainties:
  1  0.00135837
  2  289.76
  3  0.011523
  4  0.00691374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259939': 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) = 6701.12185763
delta logL = 3.81369318347e-08

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.358e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.724e+00  2.898e+02  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.114e+00  6.914e-03  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:  7.908e-01  1.152e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/259939/cmap_HighResolution_501120001_501379201_4FGL_J2219.2-0342_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-28 09:24:19.358392', job_id='259939', GAL2='1.11', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632846259.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1010' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 259939: <4FGL_J2219.2-0342_daily_bin1010> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1010 334.823 -3.7102 501120001 501379201 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 :                                   681.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            807 sec.

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

