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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin811
RA = 334.823, Dec = -3.7102
tmin = 449539201, tmax = 449798401
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='259629', job_status='RUN', time_executed='2021-09-28 09:13:59.240007', time_epoch_executed='1632845639.24' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259629/ft1_4FGL_J2219.2-0342_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259629/ft2_4FGL_J2219.2-0342_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259629/ft1_4FGL_J2219.2-0342_daily_bin811.fits outfile=/scratch/kocevski/259629/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin811.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=449539201.0 tmax=449798401.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.75
user 5.46
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259629/ft1_filtered_4FGL_J2219.2-0342_daily_bin811.fits" evtable="EVENTS" scfile=/scratch/kocevski/259629/ft2_4FGL_J2219.2-0342_daily_bin811.fits sctable="SC_DATA" outfile=/scratch/kocevski/259629/ltcube_449539201_449798401_4FGL_J2219.2-0342_daily_bin811.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/259629/ft2_4FGL_J2219.2-0342_daily_bin811.fits
.....................!
real 17.55
user 17.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259629/ft1_filtered_4FGL_J2219.2-0342_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/259629/ft2_4FGL_J2219.2-0342_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/259629/ltcube_449539201_449798401_4FGL_J2219.2-0342_daily_bin811.fits outfile=/scratch/kocevski/259629/expmap_449539201_449798401_4FGL_J2219.2-0342_daily_bin811.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/259629/ltcube_449539201_449798401_4FGL_J2219.2-0342_daily_bin811.fits
.....................!
real 195.63
user 189.58
sys 5.56

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/259629/ft1_filtered_4FGL_J2219.2-0342_daily_bin811.fits scfile=/scratch/kocevski/259629/ft2_4FGL_J2219.2-0342_daily_bin811.fits outfile=/scratch/kocevski/259629/cmap_449539201_449798401_4FGL_J2219.2-0342_daily_bin811.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259629/ft1_filtered_4FGL_J2219.2-0342_daily_bin811.fits scfile=/scratch/kocevski/259629/ft2_4FGL_J2219.2-0342_daily_bin811.fits outfile=/scratch/kocevski/259629/cmap_HighResolution_449539201_449798401_4FGL_J2219.2-0342_daily_bin811.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259629/ft1_filtered_4FGL_J2219.2-0342_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/259629/ft2_4FGL_J2219.2-0342_daily_bin811.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259629/Model_4FGL_J2219.2-0342_daily_bin811.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/259629/ft1_filtered_4FGL_J2219.2-0342_daily_bin811.fits.....................!
real 70.05
user 68.50
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.278       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.444       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.492       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.844       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9655       1.0000         .10000E-03   10000.    
    16 'norm      '    10.654       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.442       1.0000         .10000E-03   10000.    
    18 'norm      '    .78694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5850       1.0000         .10000E-03   10000.    
    22 'norm      '    21.496       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0588       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91517       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=   6498.632     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2708 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0531        .84093E-07** at limit **
   2  Prefactor     .10000E-03    38.955        .24498E-05** at limit **
   3  Prefactor     56.979        47.923       -.38982E-05   -.40306E-04
   4  Prefactor     24.272        41.022       -.62260E-05   -.32015E-04
   5  Prefactor     .10000E-03    5.5518        .16628E-06** at limit **
   6  Prefactor     11.910        6.2477        .17616E-05    .14387E-03
   7  Prefactor     .10000E-03    3.8523        .45637E-07** at limit **
   8  Prefactor     22.449        28.412        .37972E-05    .26016E-04
   9  Prefactor     13.493        12.623        .23143E-07   -.34941E-05
  10  Prefactor     16.847        16.277       -.77563E-07   -.69320E-05
  11  Prefactor     19.840        14.864       -.40608E-07   -.85102E-05
  12  Prefactor     .10000E-03    18.193       -.15143E-07** at limit **
  13  Prefactor     .10000E-03    13.004        .55189E-06** at limit **
  14  Prefactor     .10000E-03    53.525       -.21319E-05** at limit **
  15  Prefactor     3.9681        5.8790       -.85464E-06   -.11224E-03
  16  norm          10.658        5.4309       -.14901E-05   -.17915E-03
  17  Prefactor     42.447        68.087        .54531E-05    .11874E-04
  18  norm          .78668        1.4663        .14572E-06    .44108E-04
  19  Prefactor     .10000E-03    18.178       -.86977E-06** at limit **
  20  norm          .10000E-03    .95576       -.21270E-07** at limit **
  21  Prefactor     1.5844        4.4742        .14468E-05   -.95631E-03
  22  norm          21.504        28.248        .53901E-05    .41123E-04
  23  Normalizat    1.0577        .24592        .58872E-07   -.33499E-04
  24  Prefactor     .91575        .13242       -.17145E-06   -.19137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.9791
  Prefactor  = 24.2718
  Prefactor  = 0.0001
  Prefactor  = 11.9096
  Prefactor  = 0.0001
  Prefactor  = 22.4487
  Prefactor  = 13.4934
  Prefactor  = 16.8471
  Prefactor  = 19.8403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.96808
  norm       = 10.6581
  Prefactor  = 42.4472
  norm       = 0.786675
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.58438
  norm       = 21.5038
  Normalizat = 1.05775
  Prefactor  = 0.915752
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.632     FROM HESSE     STATUS=OK           403 CALLS     3111 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0773        .16123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.979        48.207        .53142E-04   -1.4197    
   4  Prefactor     24.272        40.979        .81296E-04   -1.4722    
   5  Prefactor     .10000E-03    5.6300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.910        6.2652        .11610E-03   -1.5018    
   7  Prefactor     .10000E-03    3.8620        .15450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.449        28.437        .84549E-04   -1.4760    
   9  Prefactor     13.493        12.618        .10905E-03   -1.4973    
  10  Prefactor     16.847        16.272        .97589E-04   -1.4887    
  11  Prefactor     19.840        14.993        .89957E-04   -1.4817    
  12  Prefactor     .10000E-03    18.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9681        5.8623        .20255E-03   -1.5310    
  16  norm          10.658        5.4345        .12275E-03   -1.5055    
  17  Prefactor     42.447        68.076        .61534E-04   -1.4404    
  18  norm          .78668        1.3656        .12606E-02   -1.5531    
  19  Prefactor     .10000E-03    18.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2343        .15286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5844        19.097        .16861E-02   -1.5456    
  22  norm          21.504        28.288        .86391E-04   -1.4780    
  23  Normalizat    1.0577        .29449        .32506E-03   -.91120    
  24  Prefactor     .91575        .15882        .20224E-03   -.95593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99028e-09
Minuit parameter uncertainties:
  1  1.05741e-05
  2  0.000119829
  3  48.2401
  4  41.0264
  5  6.35963e-05
  6  6.26552
  7  3.37991e-06
  8  28.4537
  9  12.6209
  10  16.2763
  11  14.9963
  12  2.41738e-05
  13  5.55956e-05
  14  2.46843e-05
  15  5.86315
  16  5.4348
  17  68.2007
  18  1.36563
  19  2.29752e-06
  20  1.47706e-05
  21  11.0052
  22  28.3059
  23  0.294948
  24  0.158896
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.560e-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:  9.158e-01  1.589e-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.058e+00  2.949e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259629/likelihoodResults_449539201_449798401_4FGL_J2219.2-0342_daily_bin811.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) = 6498.63257777
delta logL = -0.000361020274795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6498.63221672
delta logL = 3.54293661076e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7094       1.0000          .0000       10.000    
     3 'Normalizat'    1.0577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91577       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=   6498.627     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      329 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16592        29.440        .28884E-01   -.10929E-02
   2  Index         4.5184        7.2363        .50000        .96683E-05
   3  Normalizat    1.0498        .28882E-01    .32506E-03   -.20106E-03
   4  Prefactor     .91845        .16716E-01    .20224E-03   -.19145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.16592
  Index      = 4.51841
  Normalizat = 1.04976
  Prefactor  = 0.918448
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.627     FROM HESSE     STATUS=OK            31 CALLS      360 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16592        5.2054        .17431E-02   -1.5789    
   2  Index         4.5184        7.2116        .21495E-01   -.96468E-01
   3  Normalizat    1.0498        .27654        .13003E-04   -.91382    
   4  Prefactor     .91845        .15859        .40448E-04   -.95499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00394e-08
Minuit parameter uncertainties:
  1  1.8583
  2  6.3649
  3  0.276915
  4  0.15867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259629': 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) = 6498.62675931
delta logL = 0.00545743616294

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.659e-01  1.858e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  4.518e+00  6.365e+00  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:  9.184e-01  1.587e-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.050e+00  2.769e-01  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/259629/cmap_HighResolution_449539201_449798401_4FGL_J2219.2-0342_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-28 09:25:45.764441', job_id='259629', GAL2='0.92', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1632846345.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.46e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='811' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 259629: <4FGL_J2219.2-0342_daily_bin811> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin811 334.823 -3.7102 449539201 449798401 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 :                                   706.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

