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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin724
RA = 334.823, Dec = -3.7102
tmin = 426988801, tmax = 427248001
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='259505', job_status='RUN', time_executed='2021-09-28 09:12:50.889632', time_epoch_executed='1632845570.89' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259505

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259505/ft1_4FGL_J2219.2-0342_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259505/ft2_4FGL_J2219.2-0342_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259505/ft1_4FGL_J2219.2-0342_daily_bin724.fits outfile=/scratch/kocevski/259505/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin724.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=426988801.0 tmax=427248001.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.77
user 5.52
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259505/ft1_filtered_4FGL_J2219.2-0342_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/259505/ft2_4FGL_J2219.2-0342_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/259505/ltcube_426988801_427248001_4FGL_J2219.2-0342_daily_bin724.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/259505/ft2_4FGL_J2219.2-0342_daily_bin724.fits
.....................!
real 11.94
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259505/ft1_filtered_4FGL_J2219.2-0342_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/259505/ft2_4FGL_J2219.2-0342_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/259505/ltcube_426988801_427248001_4FGL_J2219.2-0342_daily_bin724.fits outfile=/scratch/kocevski/259505/expmap_426988801_427248001_4FGL_J2219.2-0342_daily_bin724.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/259505/ltcube_426988801_427248001_4FGL_J2219.2-0342_daily_bin724.fits
.....................!
real 191.80
user 186.44
sys 5.05

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/259505/ft1_filtered_4FGL_J2219.2-0342_daily_bin724.fits scfile=/scratch/kocevski/259505/ft2_4FGL_J2219.2-0342_daily_bin724.fits outfile=/scratch/kocevski/259505/cmap_426988801_427248001_4FGL_J2219.2-0342_daily_bin724.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259505/ft1_filtered_4FGL_J2219.2-0342_daily_bin724.fits scfile=/scratch/kocevski/259505/ft2_4FGL_J2219.2-0342_daily_bin724.fits outfile=/scratch/kocevski/259505/cmap_HighResolution_426988801_427248001_4FGL_J2219.2-0342_daily_bin724.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259505/ft1_filtered_4FGL_J2219.2-0342_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/259505/ft2_4FGL_J2219.2-0342_daily_bin724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259505/Model_4FGL_J2219.2-0342_daily_bin724.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/259505/ft1_filtered_4FGL_J2219.2-0342_daily_bin724.fits.....................!
real 53.39
user 52.02
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53828       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2636       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48992E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0631       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.479       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.283       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.635       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.015       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4091       1.0000         .10000E-03   10000.    
    16 'norm      '    13.975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1802       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.169       1.0000         .10000E-03   10000.    
    22 'norm      '    94.430       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0650       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95239       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=   4834.487     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2719 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53809        1.7893        .73459E-06   -.12588E-03
   2  Prefactor     .10000E-03    36.539        .18581E-05** at limit **
   3  Prefactor     9.2680        36.313        .67172E-06    .61842E-05
   4  Prefactor     .10000E-03    209.40       -.32538E-05** at limit **
   5  Prefactor     3.0631        9.6544        .68252E-06   -.25665E-04
   6  Prefactor     8.4960        8.8245        .21274E-05   -.38656E-03
   7  Prefactor     .10000E-03    20.566        .22721E-05** at limit **
   8  Prefactor     20.476        19.110        .14987E-06    .22394E-04
   9  Prefactor     .10000E-03    30.486       -.21358E-05** at limit **
  10  Prefactor     15.285        23.644        .13203E-06   -.11612E-04
  11  Prefactor     3.0336        17.574        .19038E-06   -.28011E-04
  12  Prefactor     .10000E-03    20.084       -.14207E-05** at limit **
  13  Prefactor     23.635        21.316       -.49798E-09   -.76116E-05
  14  Prefactor     28.027        52.698        .20398E-05    .89551E-04
  15  Prefactor     6.4112        11.341        .44705E-06   -.11013E-05
  16  norm          13.975        7.6210        .63204E-07    .48841E-04
  17  Prefactor     .10000E-03    140.22       -.25954E-06** at limit **
  18  norm          1.1802        1.2813        .27719E-07   -.23144E-04
  19  Prefactor     .10000E-03    11.743        .30017E-07** at limit **
  20  norm          .10000E-03    .76775        .12189E-07** at limit **
  21  Prefactor     15.171        16.010       -.43873E-07   -.20690E-04
  22  norm          94.420        40.119       -.34704E-06   -.15591E-03
  23  Normalizat    1.0650        .29205       -.11150E-05   -.38185E-04
  24  Prefactor     .95244        .16151       -.46540E-06   -.59080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.538086
  Prefactor  = 0.000100002
  Prefactor  = 9.26805
  Prefactor  = 0.000100004
  Prefactor  = 3.06306
  Prefactor  = 8.496
  Prefactor  = 0.000100002
  Prefactor  = 20.476
  Prefactor  = 0.000100002
  Prefactor  = 15.2847
  Prefactor  = 3.03361
  Prefactor  = 0.000100001
  Prefactor  = 23.635
  Prefactor  = 28.0267
  Prefactor  = 6.41116
  norm       = 13.9753
  Prefactor  = 0.0001
  norm       = 1.18021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1714
  norm       = 94.4201
  Normalizat = 1.06496
  Prefactor  = 0.952435
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.487     FROM HESSE     STATUS=OK           401 CALLS     3120 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53809        1.7553        .16267E-03   -1.5561    
   2  Prefactor     .10000E-03    37.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2680        36.191        .13168E-03   -1.5099    
   4  Prefactor     .10000E-03    212.21        .21167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0631        9.6450        .23178E-03   -1.5358    
   6  Prefactor     8.4960        9.0547        .68759E-03   -1.5125    
   7  Prefactor     .10000E-03    21.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.476        19.107        .88508E-04   -1.4803    
   9  Prefactor     .10000E-03    31.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.285        23.697        .10245E-03   -1.4926    
  11  Prefactor     3.0336        17.558        .23312E-03   -1.5360    
  12  Prefactor     .10000E-03    20.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.635        21.202        .82393E-04   -1.4735    
  14  Prefactor     28.027        53.385        .75691E-04   -1.4649    
  15  Prefactor     6.4112        11.237        .15854E-03   -1.5202    
  16  norm          13.975        7.6157        .10714E-03   -1.4960    
  17  Prefactor     .10000E-03    140.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1802        1.2706        .79748E-04   -1.5491    
  19  Prefactor     .10000E-03    11.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .76986        .59490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.171        16.013        .10284E-03   -1.4929    
  22  norm          94.420        40.439        .41359E-04   -1.3761    
  23  Normalizat    1.0650        .35308        .33635E-03   -.90885    
  24  Prefactor     .95244        .19601        .20493E-03   -.94332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76572e-10
Minuit parameter uncertainties:
  1  1.75545
  2  0.000496337
  3  36.277
  4  0.00195049
  5  9.64984
  6  9.05616
  7  0.000452446
  8  19.113
  9  0.00054251
  10  23.7111
  11  14.6028
  12  0.000295823
  13  21.2084
  14  53.4766
  15  11.2407
  16  7.61624
  17  0.000178225
  18  1.2706
  19  3.21864e-06
  20  2.82992e-07
  21  16.0177
  22  40.4508
  23  0.353863
  24  0.196157
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.364e+01  2.121e+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:  9.524e-01  1.962e-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.065e+00  3.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 9.76e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 2.39e-05

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

Saving results to:
/scratch/kocevski/259505/likelihoodResults_426988801_427248001_4FGL_J2219.2-0342_daily_bin724.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) = 4834.48653646
delta logL = 0.00034763061285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4834.48648093
delta logL = 0.000403155645472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.783       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6610       1.0000          .0000       10.000    
     3 'Normalizat'    1.0667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95179       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=   4834.486     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      224 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.821        588.72        .20535E-02    .30012E-03
   2  Index         2.6624        6.0858        .22147        .18631E-04
   3  Normalizat    1.0666        .14065        .75947E-01    .11029E-04
   4  Prefactor     .95173        .92615E-01    .45662E-01   -.42747E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8207
  Index      = 2.66238
  Normalizat = 1.06657
  Prefactor  = 0.951727
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.486     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.821        20.576        .41069E-03   -1.4731    
   2  Index         2.6624        .69687        .80763E-02   -.48649    
   3  Normalizat    1.0666        .33602        .33613E-03   -.90832    
   4  Prefactor     .95173        .19355        .20500E-03   -.94356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79296e-10
Minuit parameter uncertainties:
  1  20.5818
  2  0.699793
  3  0.336689
  4  0.193688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259505': 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) = 4834.48647512
delta logL = 0.000408963642258

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.382e+01  2.058e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.662e+00  6.998e-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:  9.517e-01  1.937e-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.067e+00  3.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.66 +/- 0.70
Photon Flux (Free Index): 1.08e-07 +/- 9.79e-08
Energy Flux (Free Index): 2.67e-05 +/- 2.21e-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/259505/cmap_HighResolution_426988801_427248001_4FGL_J2219.2-0342_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-02', comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='2.67e-05', photon_flux_error='9.76e-08', dlogl='4.09e-04', energy_flux='2.66e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-28 09:22:27.752838', photon_index_error2='0.70', photon_index2='2.66', ts='2.12', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.89e-07', energy_flux_error2='2.21e-05', EG='1.06', time_epoch_completed='1632846147.75', return_code='0', job_id='259505', GAL2='0.95', EG2='1.07', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='9.79e-08', ts2='2.12', photon_index='2.68' WHERE bin_id='724' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:22:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 259505: <4FGL_J2219.2-0342_daily_bin724> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin724 334.823 -3.7102 426988801 427248001 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 :                                   576.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            729 sec.

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

