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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin936
RA = 334.823, Dec = -3.7102
tmin = 481939201, tmax = 482198401
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='259816', job_status='RUN', time_executed='2021-09-28 09:14:18.529732', time_epoch_executed='1632845658.53' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259816/ft1_4FGL_J2219.2-0342_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259816/ft2_4FGL_J2219.2-0342_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259816/ft1_4FGL_J2219.2-0342_daily_bin936.fits outfile=/scratch/kocevski/259816/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin936.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=481939201.0 tmax=482198401.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.62
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259816/ft2_4FGL_J2219.2-0342_daily_bin936.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/259816/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin936.fits evtable="EVENTS" outfile="/scratch/kocevski/259816/ft1_filtered_4FGL_J2219.2-0342_daily_bin936.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259816/ft1_filtered_4FGL_J2219.2-0342_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/259816/ft2_4FGL_J2219.2-0342_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/259816/ltcube_481939201_482198401_4FGL_J2219.2-0342_daily_bin936.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/259816/ft2_4FGL_J2219.2-0342_daily_bin936.fits
.....................!
real 13.10
user 12.78
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259816/ft1_filtered_4FGL_J2219.2-0342_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/259816/ft2_4FGL_J2219.2-0342_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/259816/ltcube_481939201_482198401_4FGL_J2219.2-0342_daily_bin936.fits outfile=/scratch/kocevski/259816/expmap_481939201_482198401_4FGL_J2219.2-0342_daily_bin936.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/259816/ltcube_481939201_482198401_4FGL_J2219.2-0342_daily_bin936.fits
.....................!
real 189.54
user 184.97
sys 4.09

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/259816/ft1_filtered_4FGL_J2219.2-0342_daily_bin936.fits scfile=/scratch/kocevski/259816/ft2_4FGL_J2219.2-0342_daily_bin936.fits outfile=/scratch/kocevski/259816/cmap_481939201_482198401_4FGL_J2219.2-0342_daily_bin936.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259816/ft1_filtered_4FGL_J2219.2-0342_daily_bin936.fits scfile=/scratch/kocevski/259816/ft2_4FGL_J2219.2-0342_daily_bin936.fits outfile=/scratch/kocevski/259816/cmap_HighResolution_481939201_482198401_4FGL_J2219.2-0342_daily_bin936.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/259816/ft1_filtered_4FGL_J2219.2-0342_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/259816/ft2_4FGL_J2219.2-0342_daily_bin936.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259816/Model_4FGL_J2219.2-0342_daily_bin936.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/259816/ft1_filtered_4FGL_J2219.2-0342_daily_bin936.fits.....................!
real 60.97
user 59.64
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5729       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4038       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42948E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.644       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.260       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9173       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6714       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.171       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1465       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.667       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1436       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.575       1.0000         .10000E-03   10000.    
    22 'norm      '    8.1845       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2620       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85145       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=   6403.430     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2708 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .57466       -.20920E-07** at limit **
   2  Prefactor     .10000E-03    20.007        .21965E-06** at limit **
   3  Prefactor     .10000E-03    10.094       -.84052E-07** at limit **
   4  Prefactor     .10000E-03    16.161       -.41857E-07** at limit **
   5  Prefactor     2.8145        6.2831        .11513E-05    .23645E-03
   6  Prefactor     6.5736        6.0766       -.28204E-06   -.17913E-03
   7  Prefactor     11.523        11.426       -.12216E-06    .18674E-03
   8  Prefactor     2.4034        28.325        .48377E-06    .19029E-04
   9  Prefactor     .10065E-03    17.550       -.49406E-05** at limit **
  10  Prefactor     28.645        20.831       -.59524E-06    .29483E-03
  11  Prefactor     7.8789        16.162        .41906E-06   -.22161E-04
  12  Prefactor     26.261        33.211        .43120E-07    .17098E-05
  13  Prefactor     2.9184        9.8024        .47178E-05    .32392E-03
  14  Prefactor     .10000E-03    32.944       -.11545E-05** at limit **
  15  Prefactor     .10000E-03    1.6269        .22927E-06** at limit **
  16  norm          5.6722        4.8048        .29662E-06    .81686E-04
  17  Prefactor     53.169        67.981        .80715E-06    .23875E-04
  18  norm          3.1462        1.6481        .21426E-06    .21754E-04
  19  Prefactor     31.733        66.775       -.10665E-04   -.26542E-03
  20  norm          5.1401        4.9287        .13877E-05   -.12741E-02
  21  Prefactor     27.574        17.466        .43488E-06    .13671E-04
  22  norm          8.1847        10.395        .40283E-06    .53536E-04
  23  Normalizat    1.2616        .24691       -.27529E-05    .10405E-03
  24  Prefactor     .85162        .13526        .14109E-05    .24943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.81448
  Prefactor  = 6.57362
  Prefactor  = 11.5225
  Prefactor  = 2.40342
  Prefactor  = 0.000100653
  Prefactor  = 28.6454
  Prefactor  = 7.87891
  Prefactor  = 26.2614
  Prefactor  = 2.91841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.67216
  Prefactor  = 53.169
  norm       = 3.14624
  Prefactor  = 31.7335
  norm       = 5.14012
  Prefactor  = 27.5741
  norm       = 8.18469
  Normalizat = 1.26163
  Prefactor  = 0.851623
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.430     FROM HESSE     STATUS=OK           401 CALLS     3109 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .57631        .59237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8145        6.2928        .24243E-03   -1.5372    
   6  Prefactor     6.5736        6.0855        .15653E-03   -1.5195    
   7  Prefactor     11.523        11.366        .11802E-03   -1.5029    
   8  Prefactor     2.4034        28.266        .26409E-03   -1.5398    
   9  Prefactor     .10065E-03    67.572        .51034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.645        19.963        .74857E-04   -1.4637    
  11  Prefactor     7.8789        16.245        .14288E-03   -1.5147    
  12  Prefactor     26.261        33.193        .78174E-04   -1.4683    
  13  Prefactor     2.9184        10.045        .11893E-02   -1.5366    
  14  Prefactor     .10000E-03    32.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6387        .99693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6722        4.8173        .14958E-03   -1.5232    
  17  Prefactor     53.169        67.982        .55004E-04   -1.4248    
  18  norm          3.1462        1.6469        .70340E-04   -1.5353    
  19  Prefactor     31.733        67.247        .71204E-04   -1.4581    
  20  norm          5.1401        4.9591        .83580E-04   -1.5254    
  21  Prefactor     27.574        17.470        .76291E-04   -1.4657    
  22  norm          8.1847        10.396        .70069E-03   -1.5136    
  23  Normalizat    1.2616        .28847        .30078E-03   -.84719    
  24  Prefactor     .85162        .15937        .21216E-03   -.97853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0077e-08
Minuit parameter uncertainties:
  1  3.42762e-07
  2  2.67602e-05
  3  6.64102e-06
  4  1.1788e-05
  5  6.29425
  6  6.08608
  7  11.3677
  8  16.494
  9  0.013299
  10  19.9681
  11  16.2545
  12  33.2164
  13  10.051
  14  0.000168513
  15  5.75114e-06
  16  4.8176
  17  68.0819
  18  1.64688
  19  67.4083
  20  4.95947
  21  17.4733
  22  10.3985
  23  0.288839
  24  0.159452
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.516e-01  1.595e-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.262e+00  2.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259816/likelihoodResults_481939201_482198401_4FGL_J2219.2-0342_daily_bin936.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6403.41953289
delta logL = 0.0105435994819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6403.23005068
delta logL = 0.200025806379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32784E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9858       1.0000          .0000       10.000    
     3 'Normalizat'    1.2184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87280       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6403.230     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      399 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32059E-03    .53993E-03    .24655E-05** at limit **
   2  Index        10.0000        6.8231        .50000    ** at limit **
   3  Normalizat    1.2182        .27515        .30535E-03   -.17685E-04
   4  Prefactor     .87288        .15972        .20986E-03   -.38679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000320588
  Index      = 10
  Normalizat = 1.21821
  Prefactor  = 0.872875
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.230     FROM HESSE     STATUS=OK            31 CALLS      430 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32059E-03    .53768E-03    .98622E-07   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.8107        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2182        .27551        .12214E-04   -.86042    
   4  Prefactor     .87288        .15991        .83945E-05   -.97095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60851e-11
Minuit parameter uncertainties:
  1  0.000537678
  2  6.43661e-05
  3  0.275841
  4  0.159994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259816': 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): 0
logL (Free Index) = 6403.23001056
delta logL = 0.200065924606

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.206e-04  5.377e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.000e+01  6.437e-05  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.729e-01  1.600e-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.218e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/259816/cmap_HighResolution_481939201_482198401_4FGL_J2219.2-0342_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-28 09:25:23.385170', job_id='259816', GAL2='0.87', fit_tolerance='1e-08', EG2='1.22', EG='1.26', time_epoch_completed='1632846323.39', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.00e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='936' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 259816: <4FGL_J2219.2-0342_daily_bin936> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin936 334.823 -3.7102 481939201 482198401 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            878 sec.

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

