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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin693
RA = 334.823, Dec = -3.7102
tmin = 418953601, tmax = 419212801
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='259460', job_status='RUN', time_executed='2021-09-28 09:10:28.598923', time_epoch_executed='1632845428.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259460/ft1_4FGL_J2219.2-0342_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259460/ft2_4FGL_J2219.2-0342_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259460/ft1_4FGL_J2219.2-0342_daily_bin693.fits outfile=/scratch/kocevski/259460/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin693.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=418953601.0 tmax=419212801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.52
user 5.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259460/ft1_filtered_4FGL_J2219.2-0342_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/259460/ft2_4FGL_J2219.2-0342_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/259460/ltcube_418953601_419212801_4FGL_J2219.2-0342_daily_bin693.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/259460/ft2_4FGL_J2219.2-0342_daily_bin693.fits
.....................!
real 12.03
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259460/ft1_filtered_4FGL_J2219.2-0342_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/259460/ft2_4FGL_J2219.2-0342_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/259460/ltcube_418953601_419212801_4FGL_J2219.2-0342_daily_bin693.fits outfile=/scratch/kocevski/259460/expmap_418953601_419212801_4FGL_J2219.2-0342_daily_bin693.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/259460/ltcube_418953601_419212801_4FGL_J2219.2-0342_daily_bin693.fits
.....................!
real 191.42
user 185.33
sys 5.78

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/259460/ft1_filtered_4FGL_J2219.2-0342_daily_bin693.fits scfile=/scratch/kocevski/259460/ft2_4FGL_J2219.2-0342_daily_bin693.fits outfile=/scratch/kocevski/259460/cmap_418953601_419212801_4FGL_J2219.2-0342_daily_bin693.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.59
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11390E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10974E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    160.65       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.896       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12684E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.048       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.090       1.0000         .10000E-03   10000.    
    16 'norm      '    15.505       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9744       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7336       1.0000         .10000E-03   10000.    
    22 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1275       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84454       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=   3718.619     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2746 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    3.8885       -.25140E-05** at limit **
   2  Prefactor     .10000E-03    57.106       -.11155E-05** at limit **
   3  Prefactor     5.9874        143.22        .61161E-05    .93511E-04
   4  Prefactor     160.56        111.66       -.29618E-05   -.15969E-04
   5  Prefactor     .10000E-03    7.4045       -.15055E-05** at limit **
   6  Prefactor     15.896        9.7049       -.35895E-06    .48265E-04
   7  Prefactor     .10000E-03    42.623       -.73685E-06** at limit **
   8  Prefactor     18.237        32.486       -.39862E-06    .16570E-04
   9  Prefactor     14.540        26.654       -.31883E-06    .48170E-04
  10  Prefactor     .10000E-03    41.330        .23033E-06** at limit **
  11  Prefactor     14.605        16.726       -.51463E-06    .10736E-04
  12  Prefactor     .10000E-03    36.497       -.44102E-07** at limit **
  13  Prefactor     .10000E-03    7.3748        .10480E-06** at limit **
  14  Prefactor     69.085        72.458        .13346E-05    .56147E-04
  15  Prefactor     10.088        8.8318       -.17254E-06    .64548E-04
  16  norm          15.505        8.2296       -.14986E-06    .84699E-04
  17  Prefactor     .10000E-03    334.73        .46633E-05** at limit **
  18  norm          4.9745        2.1231       -.67460E-07   -.89209E-05
  19  Prefactor     .10000E-03    14.604        .85584E-07** at limit **
  20  norm          .10000E-03    1.6524        .11118E-06** at limit **
  21  Prefactor     1.7373        48.189        .85467E-06    .50274E-05
  22  norm          .10000E-03    16.390        .26893E-06** at limit **
  23  Normalizat    1.1275        .31491        .32692E-05    .43113E-03
  24  Prefactor     .84451        .17827        .37107E-06    .64801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 5.9874
  Prefactor  = 160.557
  Prefactor  = 0.0001
  Prefactor  = 15.8964
  Prefactor  = 0.0001
  Prefactor  = 18.2368
  Prefactor  = 14.5403
  Prefactor  = 0.0001
  Prefactor  = 14.605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.0845
  Prefactor  = 10.088
  norm       = 15.5048
  Prefactor  = 0.000100002
  norm       = 4.9745
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.73731
  norm       = 0.0001
  Normalizat = 1.12752
  Prefactor  = 0.844513
 **********
 **   18 **HESSE 
 **********

 FCN=   3718.619     FROM HESSE     STATUS=OK           395 CALLS     3141 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    8.8266        .18834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9874        148.23        .16281E-03   -1.5219    
   4  Prefactor     160.56        111.75        .15908E-03   -1.3167    
   5  Prefactor     .10000E-03    7.3872        .16127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.896        9.7308        .10046E-03   -1.4910    
   7  Prefactor     .10000E-03    43.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.237        32.515        .93784E-04   -1.4854    
   9  Prefactor     14.540        26.636        .10502E-03   -1.4945    
  10  Prefactor     .10000E-03    41.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.605        16.749        .10479E-03   -1.4943    
  12  Prefactor     .10000E-03    36.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3782        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     69.085        72.563        .24153E-03   -1.4044    
  15  Prefactor     10.088        8.8337        .12615E-03   -1.5073    
  16  norm          15.505        8.2359        .10172E-03   -1.4920    
  17  Prefactor     .10000E-03    334.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9745        2.1239        .56404E-04   -1.5262    
  19  Prefactor     .10000E-03    14.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7126        .15270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7373        48.298        .31878E-03   -1.5444    
  22  norm          .10000E-03    16.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1275        .37387        .32503E-03   -.88873    
  24  Prefactor     .84451        .21389        .21352E-03   -.98108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98273e-09
Minuit parameter uncertainties:
  1  0.000991968
  2  5.51112e-05
  3  59.748
  4  111.898
  5  2.99032e-05
  6  9.73178
  7  0.000132907
  8  32.5463
  9  26.6575
  10  7.28282e-06
  11  16.7543
  12  3.40367e-05
  13  2.61112e-06
  14  72.656
  15  8.83486
  16  8.23654
  17  0.00153119
  18  2.12397
  19  9.40579e-06
  20  5.2431e-06
  21  18.3362
  22  1.43906e-05
  23  0.374759
  24  0.214103
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.611e-06  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.445e-01  2.141e-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:  1.128e+00  3.748e-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.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259460/likelihoodResults_418953601_419212801_4FGL_J2219.2-0342_daily_bin693.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) = 3718.61982409
delta logL = -0.000644285908038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3718.61917978
delta logL = 2.22062226385e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6699       1.0000          .0000       10.000    
     3 'Normalizat'    1.1275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84451       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=   3718.619     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.60        .16269E-01** at limit **
   2  Index         1.9946        7.7795        .50000       -.47874E-07
   3  Normalizat    1.1275        .28210E-01    .32503E-03    .12800E-03
   4  Prefactor     .84451        .16383E-01    .21352E-03    .21577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9946
  Normalizat = 1.12752
  Prefactor  = 0.844512
 **********
 **   18 **HESSE 
 **********

 FCN=   3718.619     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    917.07        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9946        8.0970        .50000       -.64485    
   3  Normalizat    1.1275        .90954E-01    .13001E-04   -.88873    
   4  Prefactor     .84451        .52826E-01    .42703E-04   -.98108    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45897e-10
Minuit parameter uncertainties:
  1  0.000118489
  2  1475.99
  3  0.0909668
  4  0.0528287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259460': 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) = 3718.61917858
delta logL = 1.22127039504e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.185e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.995e+00  1.476e+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:  8.445e-01  5.283e-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:  1.128e+00  9.097e-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/259460/cmap_HighResolution_418953601_419212801_4FGL_J2219.2-0342_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-28 09:19:01.889799', job_id='259460', GAL2='0.84', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632845941.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='693' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:19:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 259460: <4FGL_J2219.2-0342_daily_bin693> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin693 334.823 -3.7102 418953601 419212801 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 :                                   513.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            525 sec.

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

