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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1129
RA = 334.823, Dec = -3.7102
tmin = 531964801, tmax = 532224001
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='261171', job_status='RUN', time_executed='2021-09-28 09:17:26.780029', time_epoch_executed='1632845846.78' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261171/ft1_4FGL_J2219.2-0342_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261171/ft2_4FGL_J2219.2-0342_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261171/ft1_4FGL_J2219.2-0342_daily_bin1129.fits outfile=/scratch/kocevski/261171/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1129.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=531964801.0 tmax=532224001.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.49
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261171/ft1_filtered_4FGL_J2219.2-0342_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/261171/ft2_4FGL_J2219.2-0342_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/261171/ltcube_531964801_532224001_4FGL_J2219.2-0342_daily_bin1129.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/261171/ft2_4FGL_J2219.2-0342_daily_bin1129.fits
.....................!
real 11.92
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261171/ft1_filtered_4FGL_J2219.2-0342_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/261171/ft2_4FGL_J2219.2-0342_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/261171/ltcube_531964801_532224001_4FGL_J2219.2-0342_daily_bin1129.fits outfile=/scratch/kocevski/261171/expmap_531964801_532224001_4FGL_J2219.2-0342_daily_bin1129.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/261171/ltcube_531964801_532224001_4FGL_J2219.2-0342_daily_bin1129.fits
.....................!
real 191.17
user 185.80
sys 4.95

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/261171/ft1_filtered_4FGL_J2219.2-0342_daily_bin1129.fits scfile=/scratch/kocevski/261171/ft2_4FGL_J2219.2-0342_daily_bin1129.fits outfile=/scratch/kocevski/261171/cmap_531964801_532224001_4FGL_J2219.2-0342_daily_bin1129.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261171/ft1_filtered_4FGL_J2219.2-0342_daily_bin1129.fits scfile=/scratch/kocevski/261171/ft2_4FGL_J2219.2-0342_daily_bin1129.fits outfile=/scratch/kocevski/261171/cmap_HighResolution_531964801_532224001_4FGL_J2219.2-0342_daily_bin1129.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/261171/ft1_filtered_4FGL_J2219.2-0342_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/261171/ft2_4FGL_J2219.2-0342_daily_bin1129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261171/Model_4FGL_J2219.2-0342_daily_bin1129.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/261171/ft1_filtered_4FGL_J2219.2-0342_daily_bin1129.fits.....................!
real 56.26
user 54.91
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13750E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18203E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15374E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1674       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.861       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.822       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4105       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .53095       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.637       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.242       1.0000         .10000E-03   10000.    
    22 'norm      '    14.588       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83987       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87680       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=   5556.425     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2743 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3402       -.82019E-07** at limit **
   2  Prefactor     40.425        34.407        .10821E-05    .85434E-04
   3  Prefactor     20.891        41.927        .45985E-06    .12744E-04
   4  Prefactor     .10000E-03    28.420        .70029E-06** at limit **
   5  Prefactor     .10000E-03    3.4608        .19583E-06** at limit **
   6  Prefactor     .10000E-03    91.729       -.15077E-04** at limit **
   7  Prefactor     .10000E-03    3.8706        .80873E-07** at limit **
   8  Prefactor     .10000E-03    59.020        .20720E-05** at limit **
   9  Prefactor     2.1628        11.746        .10732E-05    .47623E-04
  10  Prefactor     20.592        20.094       -.36215E-06   -.10894E-03
  11  Prefactor     .10000E-03    9.0343       -.29962E-06** at limit **
  12  Prefactor     18.850        34.162       -.16694E-07   -.80775E-04
  13  Prefactor     20.822        14.422        .88046E-07   -.14263E-04
  14  Prefactor     4.1397        991.01       -.85655E-05   -.38191E-05
  15  Prefactor     7.4107        5.7568        .17500E-06    .10145E-03
  16  norm          6.2678        5.1840       -.82778E-07    .39193E-04
  17  Prefactor     .10000E-03    36.322       -.74547E-06** at limit **
  18  norm          .53094        .83123        .31282E-06    .33314E-03
  19  Prefactor     .10000E-03    78.118        .10142E-05** at limit **
  20  norm          28.634        4.5010        .84310E-07    .22472E-03
  21  Prefactor     13.242        15.197        .21469E-08    .66835E-05
  22  norm          14.587        12.617        .15782E-06   -.15453E-04
  23  Normalizat    .83992        .28256       -.10202E-04   -.38710E-04
  24  Prefactor     .87679        .16150        .55014E-05   -.12988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.4247
  Prefactor  = 20.8907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16284
  Prefactor  = 20.592
  Prefactor  = 0.0001
  Prefactor  = 18.8497
  Prefactor  = 20.822
  Prefactor  = 4.13973
  Prefactor  = 7.41068
  norm       = 6.26777
  Prefactor  = 0.0001
  norm       = 0.530941
  Prefactor  = 0.000100001
  norm       = 28.6341
  Prefactor  = 13.2419
  norm       = 14.5874
  Normalizat = 0.83992
  Prefactor  = 0.876788
 **********
 **   18 **HESSE 
 **********

 FCN=   5556.425     FROM HESSE     STATUS=OK           411 CALLS     3154 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4066        .22139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.425        34.442        .63027E-04   -1.4435    
   3  Prefactor     20.891        41.941        .87550E-04   -1.4794    
   4  Prefactor     .10000E-03    28.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4801        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5833        .53063E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8774        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    60.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1628        11.639        .27974E-03   -1.5414    
  10  Prefactor     20.592        20.036        .88278E-04   -1.4800    
  11  Prefactor     .10000E-03    9.0608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.850        34.212        .92224E-04   -1.4839    
  13  Prefactor     20.822        14.410        .87777E-04   -1.4795    
  14  Prefactor     4.1397        1032.3        .19394E-02   -1.5301    
  15  Prefactor     7.4107        5.7481        .14047E-03   -1.5163    
  16  norm          6.2678        5.1779        .13600E-03   -1.5207    
  17  Prefactor     .10000E-03    36.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .53094        .83358        .22793E-03   -1.5562    
  19  Prefactor     .10000E-03    78.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.634        4.4892        .59585E-04   -1.4637    
  21  Prefactor     13.242        15.195        .11007E-03   -1.4980    
  22  norm          14.587        12.624        .10487E-03   -1.4944    
  23  Normalizat    .83992        .28487        .33365E-03   -.98605    
  24  Prefactor     .87679        .16116        .19581E-03   -.96957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19051e-10
Minuit parameter uncertainties:
  1  2.67482e-05
  2  34.4593
  3  42.0003
  4  8.34439e-05
  5  3.52837e-06
  6  5.03154e-05
  7  2.17265e-06
  8  0.000253692
  9  10.0373
  10  20.0423
  11  6.95629e-05
  12  34.2481
  13  14.4119
  14  133.135
  15  5.74857
  16  5.17823
  17  0.000131198
  18  0.833603
  19  0.000645371
  20  4.48928
  21  15.1999
  22  12.6265
  23  0.285382
  24  0.161249
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.082e+01  1.441e+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.768e-01  1.612e-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:  8.399e-01  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.76
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.59e-08 +/- 6.63e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/261171/likelihoodResults_531964801_532224001_4FGL_J2219.2-0342_daily_bin1129.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) = 5556.42002168
delta logL = 0.00494459116908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5556.41712883
delta logL = 0.00783743889588

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.629       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7656       1.0000          .0000       10.000    
     3 'Normalizat'    .83522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87928       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=   5556.417     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      235 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.628        16.941        .90402E-04    .66234E-03
   2  Index         2.7658        .70975        .71522E-02    .16877E-03
   3  Normalizat    .83524        .26951        .33447E-03   -.12420E-03
   4  Prefactor     .87927        .16128        .19557E-03   -.28360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.628
  Index      = 2.76583
  Normalizat = 0.835239
  Prefactor  = 0.879271
 **********
 **   18 **HESSE 
 **********

 FCN=   5556.417     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.628        16.261        .18080E-04   -1.4822    
   2  Index         2.7658        .68116        .28609E-03   -.46322    
   3  Normalizat    .83524        .26963        .13379E-04   -.98775    
   4  Prefactor     .87927        .16128        .39114E-04   -.96869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48049e-10
Minuit parameter uncertainties:
  1  16.2643
  2  0.68382
  3  0.270065
  4  0.161369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261171': 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) = 5556.41712875
delta logL = 0.00783751729068

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.963e+01  1.626e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.766e+00  6.838e-01  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.793e-01  1.614e-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:  8.352e-01  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.78
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.77 +/- 0.68
Photon Flux (Free Index): 9.87e-08 +/- 6.66e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.59e-05

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/261171/cmap_HighResolution_531964801_532224001_4FGL_J2219.2-0342_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', comment='SUCCESS', photon_flux='9.59e-08', energy_flux2='2.26e-05', photon_flux_error='6.63e-08', dlogl='7.84e-03', energy_flux='2.34e-05', photon_flux2='9.87e-08', job_status='DONE', time_completed='2021-09-28 09:27:39.107013', photon_index_error2='0.68', photon_index2='2.77', ts='3.76', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.23e-07', energy_flux_error2='1.59e-05', EG='0.84', time_epoch_completed='1632846459.11', return_code='0', job_id='261171', GAL2='0.88', EG2='0.84', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='6.66e-08', ts2='3.78', photon_index='2.68' WHERE bin_id='1129' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:27:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 261171: <4FGL_J2219.2-0342_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1129 334.823 -3.7102 531964801 532224001 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 :                                   612.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            740 sec.

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

