/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 161 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_bin1508
RA = 334.823, Dec = -3.7102
tmin = 630201601, tmax = 630460801
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='262743', job_status='RUN', time_executed='2021-09-28 09:23:10.205543', time_epoch_executed='1632846190.21' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262743

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262743/ft1_4FGL_J2219.2-0342_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262743/ft2_4FGL_J2219.2-0342_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262743/ft1_4FGL_J2219.2-0342_daily_bin1508.fits outfile=/scratch/kocevski/262743/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1508.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=630201601.0 tmax=630460801.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.70
user 3.49
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262743/ft1_filtered_4FGL_J2219.2-0342_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/262743/ft2_4FGL_J2219.2-0342_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/262743/ltcube_630201601_630460801_4FGL_J2219.2-0342_daily_bin1508.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/262743/ft2_4FGL_J2219.2-0342_daily_bin1508.fits
.....................!
real 12.00
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262743/ft1_filtered_4FGL_J2219.2-0342_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/262743/ft2_4FGL_J2219.2-0342_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/262743/ltcube_630201601_630460801_4FGL_J2219.2-0342_daily_bin1508.fits outfile=/scratch/kocevski/262743/expmap_630201601_630460801_4FGL_J2219.2-0342_daily_bin1508.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/262743/ltcube_630201601_630460801_4FGL_J2219.2-0342_daily_bin1508.fits
.....................!
real 190.47
user 185.10
sys 5.06

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/262743/ft1_filtered_4FGL_J2219.2-0342_daily_bin1508.fits scfile=/scratch/kocevski/262743/ft2_4FGL_J2219.2-0342_daily_bin1508.fits outfile=/scratch/kocevski/262743/cmap_630201601_630460801_4FGL_J2219.2-0342_daily_bin1508.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/262743/ft1_filtered_4FGL_J2219.2-0342_daily_bin1508.fits scfile=/scratch/kocevski/262743/ft2_4FGL_J2219.2-0342_daily_bin1508.fits outfile=/scratch/kocevski/262743/cmap_HighResolution_630201601_630460801_4FGL_J2219.2-0342_daily_bin1508.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.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262743/ft1_filtered_4FGL_J2219.2-0342_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/262743/ft2_4FGL_J2219.2-0342_daily_bin1508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262743/Model_4FGL_J2219.2-0342_daily_bin1508.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/262743/ft1_filtered_4FGL_J2219.2-0342_daily_bin1508.fits.....................!
real 80.54
user 79.20
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11771       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37683E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18573E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67547E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15165E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.504       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7538       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29331E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1421       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.242       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45642E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.646       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.778       1.0000         .10000E-03   10000.    
    18 'norm      '    .95440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    91.637       1.0000         .10000E-03   10000.    
    20 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    48.373       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99341       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90954       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=   8949.662     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2530 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12191        .94189       -.33826E-06   -.21217E-03
   2  Prefactor     .10000E-03    27.772        .12365E-04** at limit **
   3  Prefactor     .10000E-03    26.368       -.76855E-05** at limit **
   4  Prefactor     .10000E-03    36.860        .38894E-05** at limit **
   5  Prefactor     .10000E-03    9.7917        .39528E-08** at limit **
   6  Prefactor     11.447        6.0034       -.65299E-06   -.19621E-02
   7  Prefactor     4.8517        9.0804       -.14498E-05   -.96504E-04
   8  Prefactor     .10000E-03    6.0417       -.12684E-07** at limit **
   9  Prefactor     10.663        13.054       -.10422E-05    .12038E-04
  10  Prefactor     8.2359        16.682        .17852E-05   -.69029E-04
  11  Prefactor     13.198        10.636        .74488E-06   -.99470E-04
  12  Prefactor     .10000E-03    7.4771       -.15919E-07** at limit **
  13  Prefactor     11.757        9.7286        .14578E-05   -.93307E-04
  14  Prefactor     45.167        44.074       -.74569E-05    .11950E-03
  15  Prefactor     .10000E-03    1.6000       -.36161E-06** at limit **
  16  norm          .10000E-03    1.3666        .27541E-06** at limit **
  17  Prefactor     58.337        52.809        .61815E-06   -.15315E-04
  18  norm          .95544        .78218        .70184E-08   -.34332E-03
  19  Prefactor     91.436        26.600        .31868E-06    .98503E-04
  20  norm          .10000E-03    .92878       -.90294E-07** at limit **
  21  Prefactor     .10000E-03    2.7293       -.52917E-08** at limit **
  22  norm          48.355        15.180        .82565E-06   -.14542E-03
  23  Normalizat    .99363        .19094       -.46722E-06    .20484E-04
  24  Prefactor     .90917        .10746        .18255E-06    .20403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.121912
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4466
  Prefactor  = 4.8517
  Prefactor  = 0.0001
  Prefactor  = 10.6629
  Prefactor  = 8.23591
  Prefactor  = 13.1976
  Prefactor  = 0.0001
  Prefactor  = 11.7571
  Prefactor  = 45.1674
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.3369
  norm       = 0.955436
  Prefactor  = 91.4362
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 48.355
  Normalizat = 0.993634
  Prefactor  = 0.909167
 **********
 **   18 **HESSE 
 **********

 FCN=   8949.662     FROM HESSE     STATUS=OK           401 CALLS     2931 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12191        5.0720        .17791E-02   -1.5638    
   2  Prefactor     .10000E-03    27.260        .19567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.870        .18757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.447        6.2977        .59056E-03   -1.5031    
   7  Prefactor     4.8517        9.1130        .18454E-03   -1.5267    
   8  Prefactor     .10000E-03    6.0547        .21399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.663        12.992        .12262E-03   -1.5055    
  10  Prefactor     8.2359        16.564        .14051E-03   -1.5134    
  11  Prefactor     13.198        10.687        .11008E-03   -1.4981    
  12  Prefactor     .10000E-03    7.4888        .21202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.757        9.4349        .11739E-03   -1.5022    
  14  Prefactor     45.167        43.552        .59666E-04   -1.4363    
  15  Prefactor     .10000E-03    12.019        .22001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.7163        .20464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.337        52.240        .52778E-04   -1.4179    
  18  norm          .95544        .76209        .72916E-04   -1.5512    
  19  Prefactor     91.436        21.716        .41979E-04   -1.3793    
  20  norm          .10000E-03    3.0573        .14342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7327        .15263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          48.355        15.159        .57655E-04   -1.4316    
  23  Normalizat    .99363        .22481        .31312E-03   -.93244    
  24  Prefactor     .90917        .12860        .19651E-03   -.95821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39807e-08
Minuit parameter uncertainties:
  1  1.57219
  2  0.000520704
  3  0.000343145
  4  0.000188472
  5  7.67949e-07
  6  6.2981
  7  9.11559
  8  1.1579e-06
  9  12.9953
  10  16.5731
  11  10.6883
  12  3.42061e-08
  13  9.43613
  14  43.5827
  15  6.89114e-05
  16  7.21163e-05
  17  52.2808
  18  0.762097
  19  21.7182
  20  1.82224e-05
  21  2.26992e-07
  22  15.1606
  23  0.225027
  24  0.128647
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.176e+01  9.436e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.092e-01  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  9.936e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.06e-05

TS (Fixed Index): 2.16
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262743/likelihoodResults_630201601_630460801_4FGL_J2219.2-0342_daily_bin1508.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) = 8949.63075383
delta logL = 0.0313285757238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8949.61729653
delta logL = 0.0447858772932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.094       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9546       1.0000          .0000       10.000    
     3 'Normalizat'    .97950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91562       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.

 FCN=   8949.617     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.090        170.89        .31530E-02    .14904E-03
   2  Index         2.9549        6.4666        .22213        .89540E-04
   3  Normalizat    .97950        .70343E-01    .71236E-01    .59876E-04
   4  Prefactor     .91563        .37862E-01    .45204E-01    .64862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0904
  Index      = 2.95489
  Normalizat = 0.979497
  Prefactor  = 0.915628
 **********
 **   18 **HESSE 
 **********

 FCN=   8949.617     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.090        11.848        .12612E-03   -1.5073    
   2  Index         2.9549        1.0848        .10324E-01   -.42138    
   3  Normalizat    .97950        .21607        .31517E-03   -.93721    
   4  Prefactor     .91563        .12828        .19590E-03   -.95597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22529e-11
Minuit parameter uncertainties:
  1  11.8511
  2  1.09529
  3  0.216259
  4  0.128327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262743': 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) = 8949.61729646
delta logL = 0.0447859437372

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.009e+01  1.185e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.955e+00  1.095e+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.156e-01  1.283e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  9.795e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.95 +/- 1.10
Photon Flux (Free Index): 6.23e-08 +/- 5.26e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/262743/cmap_HighResolution_630201601_630460801_4FGL_J2219.2-0342_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='1.27e-05', photon_flux_error='4.34e-08', dlogl='4.48e-02', energy_flux='1.32e-05', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-09-28 09:36:16.642520', photon_index_error2='1.10', photon_index2='2.95', ts='2.16', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.03e-05', EG='0.99', time_epoch_completed='1632846976.64', return_code='0', job_id='262743', GAL2='0.92', EG2='0.98', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='5.26e-08', ts2='2.25', photon_index='2.68' WHERE bin_id='1508' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:36:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 262743: <4FGL_J2219.2-0342_daily_bin1508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1508 334.823 -3.7102 630201601 630460801 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 :                                   785.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

