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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1623
RA = 334.823, Dec = -3.7102
tmin = 660009601, tmax = 660268801
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='483706', job_status='RUN', time_executed='2021-12-08 08:31:58.277632', time_epoch_executed='1638981118.28' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483706/ft1_4FGL_J2219.2-0342_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483706/ft2_4FGL_J2219.2-0342_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483706/ft1_4FGL_J2219.2-0342_daily_bin1623.fits outfile=/scratch/kocevski/483706/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1623.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=660009601.0 tmax=660268801.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 4.88
user 4.60
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483706/ft1_filtered_4FGL_J2219.2-0342_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/483706/ft2_4FGL_J2219.2-0342_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/483706/ltcube_660009601_660268801_4FGL_J2219.2-0342_daily_bin1623.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/483706/ft2_4FGL_J2219.2-0342_daily_bin1623.fits
.....................!
real 13.97
user 13.55
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483706/ft1_filtered_4FGL_J2219.2-0342_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/483706/ft2_4FGL_J2219.2-0342_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/483706/ltcube_660009601_660268801_4FGL_J2219.2-0342_daily_bin1623.fits outfile=/scratch/kocevski/483706/expmap_660009601_660268801_4FGL_J2219.2-0342_daily_bin1623.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/483706/ltcube_660009601_660268801_4FGL_J2219.2-0342_daily_bin1623.fits
.....................!
real 192.05
user 186.70
sys 4.70

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/483706/ft1_filtered_4FGL_J2219.2-0342_daily_bin1623.fits scfile=/scratch/kocevski/483706/ft2_4FGL_J2219.2-0342_daily_bin1623.fits outfile=/scratch/kocevski/483706/cmap_660009601_660268801_4FGL_J2219.2-0342_daily_bin1623.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483706/ft1_filtered_4FGL_J2219.2-0342_daily_bin1623.fits scfile=/scratch/kocevski/483706/ft2_4FGL_J2219.2-0342_daily_bin1623.fits outfile=/scratch/kocevski/483706/cmap_HighResolution_660009601_660268801_4FGL_J2219.2-0342_daily_bin1623.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483706/ft1_filtered_4FGL_J2219.2-0342_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/483706/ft2_4FGL_J2219.2-0342_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483706/Model_4FGL_J2219.2-0342_daily_bin1623.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/483706/ft1_filtered_4FGL_J2219.2-0342_daily_bin1623.fits.....................!
real 60.70
user 59.27
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9810       1.0000         .10000E-03   10000.    
     2 'Prefactor '    84.433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5785       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2483       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.4547       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8053       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.318       1.0000         .10000E-03   10000.    
    20 'norm      '    .12092E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7575       1.0000         .10000E-03   10000.    
    22 'norm      '    6.7705       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99543       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0645       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=   6156.635     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2654 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9821        2.4694       -.20057E-05   -.10776E-02
   2  Prefactor     84.449        47.708        .14710E-04   -.72037E-06
   3  Prefactor     34.444        47.400        .31076E-04    .84076E-05
   4  Prefactor     .10000E-03    30.370        .18650E-04** at limit **
   5  Prefactor     7.5754        8.8523       -.42787E-06   -.25967E-03
   6  Prefactor     .10000E-03    2.9716        .71901E-06** at limit **
   7  Prefactor     .10000E-03    3.7501        .15109E-05** at limit **
   8  Prefactor     .10000E-03    10.504        .22697E-05** at limit **
   9  Prefactor     9.2479        13.859        .25444E-06    .75078E-05
  10  Prefactor     .10000E-03    9.1721       -.53732E-05** at limit **
  11  Prefactor     .10000E-03    3.1185       -.11508E-05** at limit **
  12  Prefactor     .10000E-03    7.4114        .32955E-05** at limit **
  13  Prefactor     .10000E-03    4.3176       -.14849E-05** at limit **
  14  Prefactor     .10000E-03    31.215        .52389E-05** at limit **
  15  Prefactor     .10000E-03    1.7384        .86350E-07** at limit **
  16  norm          6.4535        4.4382        .34223E-06   -.20212E-03
  17  Prefactor     .10000E-03    33.125       -.24315E-04** at limit **
  18  norm          3.8050        1.5781        .15401E-06    .20010E-04
  19  Prefactor     15.307        17.875       -.52236E-05   -.10937E-03
  20  norm          .10000E-03    1.1186        .48286E-06** at limit **
  21  Prefactor     5.7541        10.949        .12259E-05   -.67258E-04
  22  norm          6.7682        14.793       -.61898E-06   -.60434E-04
  23  Normalizat    .99537        .22991       -.28385E-05   -.26781E-04
  24  Prefactor     1.0645        .13767       -.79671E-06   -.74894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98214
  Prefactor  = 84.4491
  Prefactor  = 34.4445
  Prefactor  = 0.0001
  Prefactor  = 7.57537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.24786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.4535
  Prefactor  = 0.0001
  norm       = 3.80498
  Prefactor  = 15.3073
  norm       = 0.000100001
  Prefactor  = 5.75411
  norm       = 6.76822
  Normalizat = 0.995372
  Prefactor  = 1.06449
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.635     FROM HESSE     STATUS=OK           391 CALLS     3045 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9821        2.4592        .13046E-03   -1.5426    
   2  Prefactor     84.449        47.707        .43717E-04   -1.3867    
   3  Prefactor     34.444        47.353        .68302E-04   -1.4534    
   4  Prefactor     .10000E-03    30.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5754        8.8568        .14568E-03   -1.5157    
   6  Prefactor     .10000E-03    2.9919        .13209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7576        .14835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2479        13.850        .13179E-03   -1.5100    
  10  Prefactor     .10000E-03    9.1904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1197        .13531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3452        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7533        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.4535        4.4496        .12986E-03   -1.5200    
  17  Prefactor     .10000E-03    33.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8050        1.5791        .61430E-04   -1.5318    
  19  Prefactor     15.307        17.612        .10233E-03   -1.4925    
  20  norm          .10000E-03    1.1317        .15947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7541        10.938        .16739E-03   -1.5228    
  22  norm          6.7682        14.810        .15420E-03   -1.5188    
  23  Normalizat    .99537        .27040        .32347E-03   -.93186    
  24  Prefactor     1.0645        .16247        .19216E-03   -.90610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04419e-09
Minuit parameter uncertainties:
  1  2.45937
  2  47.7289
  3  47.4051
  4  6.85356e-05
  5  8.85829
  6  5.49041e-06
  7  1.02002e-05
  8  1.2619e-05
  9  13.8548
  10  1.12911e-05
  11  3.28554e-06
  12  4.91909e-06
  13  1.32174e-05
  14  1.95605e-05
  15  7.60449e-06
  16  4.44981
  17  2.53973e-05
  18  1.57908
  19  17.6183
  20  5.27001e-05
  21  10.9417
  22  14.8181
  23  0.270775
  24  0.162545
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.322e-05  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.064e+00  1.625e-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:  9.954e-01  2.708e-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: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/483706/likelihoodResults_660009601_660268801_4FGL_J2219.2-0342_daily_bin1623.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) = 6156.63644256
delta logL = -0.00109560802684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6156.63534696
delta logL = -2.85308487946e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6765       1.0000          .0000       10.000    
     3 'Normalizat'    .99537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0645       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=   6156.635     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10040E-03    173.41        .15939E-02** at limit **
   2  Index         2.6232        5.3058        .50000        .85811E-05
   3  Normalizat    .99537        .36908E-01    .32347E-03   -.46884E-04
   4  Prefactor     1.0645        .22737E-01    .19216E-03   -.49010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100402
  Index      = 2.62319
  Normalizat = 0.995371
  Prefactor  = 1.06449
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.635     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10040E-03    623.05        .31878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6232        7.8146        .50000       -.49538    
   3  Normalizat    .99537        .85586E-01    .12939E-04   -.93186    
   4  Prefactor     1.0645        .52725E-01    .38433E-04   -.90610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.80255e-08
Minuit parameter uncertainties:
  1  0.0320001
  2  1846.55
  3  0.085598
  4  0.0527278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483706': 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) = 6156.63534686
delta logL = 9.14333213586e-08

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.004e-04  3.200e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.623e+00  1.847e+03  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.064e+00  5.273e-02  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:  9.954e-01  8.560e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/483706/cmap_HighResolution_660009601_660268801_4FGL_J2219.2-0342_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-12-08 08:42:54.592814', job_id='483706', GAL2='1.06', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1638981774.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1623' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:42:54 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 483706: <4FGL_J2219.2-0342_daily_bin1623> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1623> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 08:30:20 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:30:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:30:57 2021
Terminated at Wed Dec  8 08:42:55 2021
Results reported at Wed Dec  8 08:42:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1623 334.823 -3.7102 660009601 660268801 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 :                                   655.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            755 sec.

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

