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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1170
RA = 334.823, Dec = -3.7102
tmin = 542592001, tmax = 542851201
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='261235', job_status='RUN', time_executed='2021-09-28 09:18:07.683826', time_epoch_executed='1632845887.68' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261235/ft1_4FGL_J2219.2-0342_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261235/ft2_4FGL_J2219.2-0342_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261235/ft1_4FGL_J2219.2-0342_daily_bin1170.fits outfile=/scratch/kocevski/261235/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1170.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.77
user 6.47
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261235/ft2_4FGL_J2219.2-0342_daily_bin1170.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/261235/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/261235/ft1_filtered_4FGL_J2219.2-0342_daily_bin1170.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/261235/ft1_filtered_4FGL_J2219.2-0342_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/261235/ft2_4FGL_J2219.2-0342_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/261235/ltcube_542592001_542851201_4FGL_J2219.2-0342_daily_bin1170.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/261235/ft2_4FGL_J2219.2-0342_daily_bin1170.fits
.....................!
real 11.97
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261235/ft1_filtered_4FGL_J2219.2-0342_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/261235/ft2_4FGL_J2219.2-0342_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/261235/ltcube_542592001_542851201_4FGL_J2219.2-0342_daily_bin1170.fits outfile=/scratch/kocevski/261235/expmap_542592001_542851201_4FGL_J2219.2-0342_daily_bin1170.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/261235/ltcube_542592001_542851201_4FGL_J2219.2-0342_daily_bin1170.fits
.....................!
real 192.33
user 186.64
sys 5.28

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/261235/ft1_filtered_4FGL_J2219.2-0342_daily_bin1170.fits scfile=/scratch/kocevski/261235/ft2_4FGL_J2219.2-0342_daily_bin1170.fits outfile=/scratch/kocevski/261235/cmap_542592001_542851201_4FGL_J2219.2-0342_daily_bin1170.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261235/ft1_filtered_4FGL_J2219.2-0342_daily_bin1170.fits scfile=/scratch/kocevski/261235/ft2_4FGL_J2219.2-0342_daily_bin1170.fits outfile=/scratch/kocevski/261235/cmap_HighResolution_542592001_542851201_4FGL_J2219.2-0342_daily_bin1170.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261235/ft1_filtered_4FGL_J2219.2-0342_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/261235/ft2_4FGL_J2219.2-0342_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261235/Model_4FGL_J2219.2-0342_daily_bin1170.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/261235/ft1_filtered_4FGL_J2219.2-0342_daily_bin1170.fits.....................!
real 54.26
user 52.99
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0683       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3669       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.489       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.729       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2506       1.0000         .10000E-03   10000.    
    14 'Prefactor '    346.63       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0483       1.0000         .10000E-03   10000.    
    16 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1774       1.0000         .10000E-03   10000.    
    18 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    118.22       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3793       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0128       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0393       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=   5222.459     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2843 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .89603       -.38666E-07** at limit **
   2  Prefactor     .10000E-03    31.657        .73720E-06** at limit **
   3  Prefactor     .10000E-03    45.401       -.43388E-06** at limit **
   4  Prefactor     20.993        54.215        .35780E-06    .22999E-04
   5  Prefactor     .71912        19.297       -.83315E-06   -.18496E-03
   6  Prefactor     7.0706        9.1475        .35137E-06    .63911E-05
   7  Prefactor     7.3661        8.6908        .21542E-08   -.29703E-04
   8  Prefactor     .10000E-03    29.188       -.77912E-06** at limit **
   9  Prefactor     .10000E-03    7.0935       -.12800E-06** at limit **
  10  Prefactor     18.495        24.261        .66453E-06    .71421E-04
  11  Prefactor     26.724        19.868       -.56907E-07   -.12541E-03
  12  Prefactor     .10000E-03    13.648       -.13542E-06** at limit **
  13  Prefactor     5.2587        12.647        .27863E-06   -.37242E-04
  14  Prefactor     346.70        149.29        .38959E-05    .36193E-03
  15  Prefactor     1.0459        6.1815        .36493E-06   -.78031E-04
  16  norm          .10000E-03    2.1726        .23873E-06** at limit **
  17  Prefactor     2.1867        667.03        .64447E-05    .10276E-04
  18  norm          .10000E-03    .59211        .55115E-06** at limit **
  19  Prefactor     118.29        76.410       -.85705E-05    .28979E-03
  20  norm          1.7884        6.0541        .58901E-05    .33612E-03
  21  Prefactor     1.3863        25.488        .20458E-05   -.37948E-03
  22  norm          .10000E-03    6.9002        .51582E-07** at limit **
  23  Normalizat    1.0131        .29507       -.40384E-05   -.12955E-03
  24  Prefactor     1.0390        .16136        .15030E-05   -.40648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 20.9929
  Prefactor  = 0.719124
  Prefactor  = 7.07056
  Prefactor  = 7.36609
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.4947
  Prefactor  = 26.724
  Prefactor  = 0.0001
  Prefactor  = 5.25872
  Prefactor  = 346.705
  Prefactor  = 1.04587
  norm       = 0.0001
  Prefactor  = 2.18672
  norm       = 0.0001
  Prefactor  = 118.29
  norm       = 1.78838
  Prefactor  = 1.38633
  norm       = 0.0001
  Normalizat = 1.01311
  Prefactor  = 1.03903
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.459     FROM HESSE     STATUS=OK           401 CALLS     3244 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .89960        .66795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.993        53.583        .87433E-04   -1.4791    
   5  Prefactor     .71912        19.967        .48288E-02   -1.5538    
   6  Prefactor     7.0706        9.1494        .15089E-03   -1.5176    
   7  Prefactor     7.3661        8.6868        .14777E-03   -1.5165    
   8  Prefactor     .10000E-03    29.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.495        24.322        .93146E-04   -1.4848    
  11  Prefactor     26.724        19.993        .77486E-04   -1.4674    
  12  Prefactor     .10000E-03    13.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2587        12.301        .17542E-03   -1.5249    
  14  Prefactor     346.70        154.34        .10934E-03   -1.1962    
  15  Prefactor     1.0459        5.8672        .30975E-03   -1.5503    
  16  norm          .10000E-03    2.1930        .10384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1867        665.22        .27901E-03   -1.5412    
  18  norm          .10000E-03    .85364        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     118.29        77.901        .18505E-03   -1.3528    
  20  norm          1.7884        6.1208        .14648E-03   -1.5441    
  21  Prefactor     1.3863        31.711        .18535E-02   -1.5472    
  22  norm          .10000E-03    6.9359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0131        .34025        .34195E-03   -.92592    
  24  Prefactor     1.0390        .18906        .20207E-03   -.91440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86559e-08
Minuit parameter uncertainties:
  1  1.25521e-06
  2  0.000471649
  3  0.000118211
  4  53.706
  5  7.5808
  6  9.15124
  7  8.68824
  8  0.000246516
  9  2.88271e-05
  10  24.3349
  11  19.9981
  12  1.87308e-05
  13  12.3066
  14  154.523
  15  4.95483
  16  5.10888e-06
  17  77.1591
  18  2.09857e-05
  19  77.9684
  20  6.12297
  21  13.2681
  22  2.90204e-05
  23  0.34098
  24  0.189177
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.259e+00  1.231e+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:  1.039e+00  1.892e-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.013e+00  3.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261235/likelihoodResults_542592001_542851201_4FGL_J2219.2-0342_daily_bin1170.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) = 5222.45337369
delta logL = 0.00517001680237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5222.45225271
delta logL = 0.00629099357047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8257       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4715       1.0000          .0000       10.000    
     3 'Normalizat'    1.0185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0363       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=   5222.452     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      227 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8144        501.37        .41598E-02    .99912E-04
   2  Index         2.4715        6.0984        .44703       -.95093E-05
   3  Normalizat    1.0184        .63265E-01    .77083E-01   -.66546E-04
   4  Prefactor     1.0364        .38911E-01    .40789E-01    .30531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.81439
  Index      = 2.4715
  Normalizat = 1.01843
  Prefactor  = 1.03637
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.452     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8144        13.006        .16639E-03   -1.5226    
   2  Index         2.4715        1.6990        .11037E-01   -.53019    
   3  Normalizat    1.0184        .31033        .34115E-03   -.92415    
   4  Prefactor     1.0364        .18537        .20229E-03   -.91527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74942e-10
Minuit parameter uncertainties:
  1  13.0124
  2  1.74633
  3  0.310885
  4  0.185485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261235': 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) = 5222.45225222
delta logL = 0.00629148376265

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.814e+00  1.301e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.472e+00  1.746e+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:  1.036e+00  1.855e-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.018e+00  3.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/261235/cmap_HighResolution_542592001_542851201_4FGL_J2219.2-0342_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-28 09:28:30.951831', job_id='261235', GAL2='1.04', fit_tolerance='1e-08', EG2='1.02', EG='1.01', time_epoch_completed='1632846510.95', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.29e-03', ts2='0.25', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1170' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:28:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 261235: <4FGL_J2219.2-0342_daily_bin1170> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:24 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:15:25 2021
Terminated at Tue Sep 28 09:28:31 2021
Results reported at Tue Sep 28 09:28:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1170 334.823 -3.7102 542592001 542851201 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 :                                   621.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            787 sec.

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

