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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1274
RA = 334.823, Dec = -3.7102
tmin = 569548801, tmax = 569808001
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='261399', job_status='RUN', time_executed='2021-09-28 09:15:53.919068', time_epoch_executed='1632845753.92' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261399

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261399/ft1_4FGL_J2219.2-0342_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261399/ft2_4FGL_J2219.2-0342_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261399/ft1_4FGL_J2219.2-0342_daily_bin1274.fits outfile=/scratch/kocevski/261399/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1274.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=569548801.0 tmax=569808001.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.67
user 3.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261399/ft1_filtered_4FGL_J2219.2-0342_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/261399/ft2_4FGL_J2219.2-0342_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/261399/ltcube_569548801_569808001_4FGL_J2219.2-0342_daily_bin1274.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/261399/ft2_4FGL_J2219.2-0342_daily_bin1274.fits
.....................!
real 11.65
user 11.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261399/ft1_filtered_4FGL_J2219.2-0342_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/261399/ft2_4FGL_J2219.2-0342_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/261399/ltcube_569548801_569808001_4FGL_J2219.2-0342_daily_bin1274.fits outfile=/scratch/kocevski/261399/expmap_569548801_569808001_4FGL_J2219.2-0342_daily_bin1274.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/261399/ltcube_569548801_569808001_4FGL_J2219.2-0342_daily_bin1274.fits
.....................!
real 190.67
user 184.93
sys 5.27

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/261399/ft1_filtered_4FGL_J2219.2-0342_daily_bin1274.fits scfile=/scratch/kocevski/261399/ft2_4FGL_J2219.2-0342_daily_bin1274.fits outfile=/scratch/kocevski/261399/cmap_569548801_569808001_4FGL_J2219.2-0342_daily_bin1274.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/261399/ft1_filtered_4FGL_J2219.2-0342_daily_bin1274.fits scfile=/scratch/kocevski/261399/ft2_4FGL_J2219.2-0342_daily_bin1274.fits outfile=/scratch/kocevski/261399/cmap_HighResolution_569548801_569808001_4FGL_J2219.2-0342_daily_bin1274.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261399/ft1_filtered_4FGL_J2219.2-0342_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/261399/ft2_4FGL_J2219.2-0342_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261399/Model_4FGL_J2219.2-0342_daily_bin1274.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/261399/ft1_filtered_4FGL_J2219.2-0342_daily_bin1274.fits.....................!
real 57.11
user 55.73
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9135       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22314E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43073E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.984       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11073E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11862E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15763E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46616E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11758E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.814       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34632E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.6229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37000E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.418       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2702       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.394       1.0000         .10000E-03   10000.    
    22 'norm      '    7.5167       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86520       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0025       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=   5796.596     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2431 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9115        2.7136        .17937E-06    .79200E-04
   2  Prefactor     .10000E-03    13.902       -.63014E-08** at limit **
   3  Prefactor     .10000E-03    12.342        .17237E-06** at limit **
   4  Prefactor     20.490        45.477       -.44832E-05   -.24896E-04
   5  Prefactor     .10000E-03    5.5644        .14842E-05** at limit **
   6  Prefactor     .10000E-03    7.4067       -.15415E-06** at limit **
   7  Prefactor     .10000E-03    5.6088        .38286E-07** at limit **
   8  Prefactor     .10000E-03    15.140       -.50487E-06** at limit **
   9  Prefactor     .10000E-03    14.218       -.49732E-06** at limit **
  10  Prefactor     .10000E-03    6.7089       -.49505E-07** at limit **
  11  Prefactor     12.480        15.870        .26749E-06   -.10498E-04
  12  Prefactor     19.033        34.298        .31151E-05    .13314E-04
  13  Prefactor     .10000E-03    9.5113       -.16851E-06** at limit **
  14  Prefactor     .10000E-03    44.172        .54088E-06** at limit **
  15  Prefactor     .10000E-03    3.6997       -.91559E-07** at limit **
  16  norm          7.6280        4.8586       -.48613E-08   -.14572E-04
  17  Prefactor     .10000E-03    41.671        .14646E-06** at limit **
  18  norm          .10000E-03    .43960        .44137E-06** at limit **
  19  Prefactor     44.776        64.014        .65941E-05    .32044E-05
  20  norm          2.2448        4.7779       -.22873E-05   -.14729E-03
  21  Prefactor     10.435        10.514       -.21629E-06   -.15028E-04
  22  norm          7.4359        12.862        .91021E-07    .90917E-05
  23  Normalizat    .86626        .24994       -.50970E-05    .45114E-04
  24  Prefactor     1.0025        .14138        .22810E-05   -.25176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.48
  Prefactor  = 19.0335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.62804
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.7762
  norm       = 2.24477
  Prefactor  = 10.4354
  norm       = 7.43591
  Normalizat = 0.866256
  Prefactor  = 1.00249
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.596     FROM HESSE     STATUS=OK           393 CALLS     2824 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9115        2.7068        .11704E-03   -1.5367    
   2  Prefactor     .10000E-03    13.908        .20128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.344        .19401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.490        45.778        .87437E-04   -1.4802    
   5  Prefactor     .10000E-03    5.7189        .17693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6368        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.201        .20431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.345        .21192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.480        15.903        .11190E-03   -1.5001    
  12  Prefactor     19.033        34.340        .91436E-04   -1.4835    
  13  Prefactor     .10000E-03    9.6652        .21328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7982        .28555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.6280        4.8646        .12586E-03   -1.5156    
  17  Prefactor     .10000E-03    41.688        .19589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .45476        .98638E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.776        64.320        .60155E-04   -1.4369    
  20  norm          2.2448        4.8214        .10096E-03   -1.5408    
  21  Prefactor     10.435        10.510        .12428E-03   -1.5062    
  22  norm          7.4359        12.860        .14628E-03   -1.5163    
  23  Normalizat    .86626        .27804        .32832E-03   -.97656    
  24  Prefactor     1.0025        .15922        .18398E-03   -.92647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64374e-10
Minuit parameter uncertainties:
  1  2.70688
  2  1.21163e-05
  3  3.40633e-06
  4  45.8566
  5  6.66643e-05
  6  1.74067e-05
  7  3.81812e-06
  8  2.67374e-05
  9  2.49657e-06
  10  1.61165e-06
  11  15.9084
  12  34.3754
  13  1.49261e-05
  14  2.46996e-05
  15  9.3331e-06
  16  4.86485
  17  1.93439e-05
  18  2.77267e-06
  19  64.42
  20  4.82227
  21  10.5115
  22  12.8653
  23  0.2785
  24  0.159297
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.493e-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.002e+00  1.593e-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:  8.663e-01  2.785e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261399/likelihoodResults_569548801_569808001_4FGL_J2219.2-0342_daily_bin1274.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) = 5796.59673265
delta logL = -0.000493065116643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5796.59623963
delta logL = -4.52364474768e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6755       1.0000          .0000       10.000    
     3 'Normalizat'    .86619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0025       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=   5796.596     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      240 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    269.32        .18142E-02** at limit **
   2  Index         2.6417        8.5550        .50000        .44829E-05
   3  Normalizat    .86625        .29937E-01    .32833E-03    .23684E-04
   4  Prefactor     1.0025        .18045E-01    .18398E-03    .37533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100276
  Index      = 2.64173
  Normalizat = 0.866252
  Prefactor  = 1.00249
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.596     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10028E-03    1042.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6417        6.0802        .50000       -.49116    
   3  Normalizat    .86625        .67757E-01    .13133E-04   -.97656    
   4  Prefactor     1.0025        .40845E-01    .36796E-04   -.92646    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.72373e-09
Minuit parameter uncertainties:
  1  0.0345498
  2  1696.54
  3  0.0677638
  4  0.0408458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261399': 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) = 5796.59623955
delta logL = 3.50291884388e-08

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.003e-04  3.455e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.642e+00  1.697e+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.002e+00  4.085e-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:  8.663e-01  6.776e-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/261399/cmap_HighResolution_569548801_569808001_4FGL_J2219.2-0342_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 09:25:54.954331', job_id='261399', GAL2='1.00', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632846354.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1274' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 261399: <4FGL_J2219.2-0342_daily_bin1274> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1274 334.823 -3.7102 569548801 569808001 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 :                                   600.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            618 sec.

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

