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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1662
RA = 334.823, Dec = -3.7102
tmin = 670118401, tmax = 670377601
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='124937', job_status='RUN', time_executed='2022-03-31 00:38:43.856746', time_epoch_executed='1648712323.86' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124937/ft1_4FGL_J2219.2-0342_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124937/ft2_4FGL_J2219.2-0342_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124937/ft1_4FGL_J2219.2-0342_daily_bin1662.fits outfile=/scratch/kocevski/124937/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1662.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=670118401.0 tmax=670377601.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.41
user 3.17
sys 0.22

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

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

Number of photons that the gtmktime cut: 573

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124937/ft2_4FGL_J2219.2-0342_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124937/ltcube_670118401_670377601_4FGL_J2219.2-0342_daily_bin1662.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/124937/ft2_4FGL_J2219.2-0342_daily_bin1662.fits
.....................!
real 11.65
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124937/ft2_4FGL_J2219.2-0342_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124937/ltcube_670118401_670377601_4FGL_J2219.2-0342_daily_bin1662.fits outfile=/scratch/kocevski/124937/expmap_670118401_670377601_4FGL_J2219.2-0342_daily_bin1662.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/124937/ltcube_670118401_670377601_4FGL_J2219.2-0342_daily_bin1662.fits
.....................!
real 189.76
user 185.02
sys 4.43

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/124937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1662.fits scfile=/scratch/kocevski/124937/ft2_4FGL_J2219.2-0342_daily_bin1662.fits outfile=/scratch/kocevski/124937/cmap_670118401_670377601_4FGL_J2219.2-0342_daily_bin1662.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1662.fits scfile=/scratch/kocevski/124937/ft2_4FGL_J2219.2-0342_daily_bin1662.fits outfile=/scratch/kocevski/124937/cmap_HighResolution_670118401_670377601_4FGL_J2219.2-0342_daily_bin1662.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124937/ft2_4FGL_J2219.2-0342_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124937/Model_4FGL_J2219.2-0342_daily_bin1662.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/124937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1662.fits.....................!
real 63.08
user 61.80
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.053       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.091       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6429       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7388       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.297       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27174E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5820       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4450       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.285       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8176       1.0000         .10000E-03   10000.    
    19 'Prefactor '    107.19       1.0000         .10000E-03   10000.    
    20 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.014       1.0000         .10000E-03   10000.    
    22 'norm      '    46.595       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87831       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6421.926     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     2352 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2415        .97174E-06** at limit **
   2  Prefactor     16.062        1.5410       -.72944E-06   -.88554E-04
   3  Prefactor     11.751        2.4971       -.50366E-05    .13452E-02
   4  Prefactor     20.083        1.3347       -.15520E-06   -.12987E-02
   5  Prefactor     7.6411        3.0459       -.87826E-05   -.87220E-02
   6  Prefactor     3.7387        3.8453       -.12966E-05   -.31564E-03
   7  Prefactor     12.294        4.5998       -.10718E-04   -.34181E-02
   8  Prefactor     .14930E-03    354.13       -.68723E-04** at limit **
   9  Prefactor     8.5806        2.2995       -.58753E-05   -.10052E-02
  10  Prefactor     .10000E-03    22.350       -.13765E-05** at limit **
  11  Prefactor     14.228        1.0527        .62500E-06    .31209E-03
  12  Prefactor     .10000E-03    11.530       -.12759E-05** at limit **
  13  Prefactor     11.093        1.0422       -.38847E-06   -.72775E-03
  14  Prefactor     .14798E-02    63.674       -.98838E-04** at limit **
  15  Prefactor     4.4449        3.5607       -.39699E-06   -.56946E-03
  16  norm          .10000E-03    1.6178        .21492E-06** at limit **
  17  Prefactor     52.283        1.0776       -.42614E-06    .80111E-03
  18  norm          2.8176        1.3157       -.47833E-06   -.80220E-04
  19  Prefactor     107.16        6.2285        .32366E-05   -.85408E-02
  20  norm          .10000E-03    1.4072        .17413E-06** at limit **
  21  Prefactor     14.016        7.8521        .17420E-04    .70702E-02
  22  norm          46.591        8.4000        .99470E-05    .18588E-03
  23  Normalizat    .87828        .24508       -.40480E-05    .14101E-03
  24  Prefactor     .88780        .14587        .41881E-05    .21379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.0615
  Prefactor  = 11.7514
  Prefactor  = 20.0828
  Prefactor  = 7.64111
  Prefactor  = 3.7387
  Prefactor  = 12.2942
  Prefactor  = 0.000149301
  Prefactor  = 8.58063
  Prefactor  = 0.000100001
  Prefactor  = 14.2282
  Prefactor  = 0.0001
  Prefactor  = 11.0931
  Prefactor  = 0.00147978
  Prefactor  = 4.44488
  norm       = 0.0001
  Prefactor  = 52.283
  norm       = 2.81762
  Prefactor  = 107.155
  norm       = 0.0001
  Prefactor  = 14.016
  norm       = 46.5908
  Normalizat = 0.878283
  Prefactor  = 0.887801
 **********
 **   18 **HESSE 
 **********

 FCN=   6421.926     FROM HESSE     STATUS=OK           463 CALLS     2815 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8704        .38347E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.062        46.550        .24991E-02   -1.4906    
   3  Prefactor     11.751        27.448        .29221E-02   -1.5022    
   4  Prefactor     20.083        37.123        .22340E-02   -1.4811    
   5  Prefactor     7.6411        8.6334        .36264E-02   -1.5155    
   6  Prefactor     3.7387        3.8517        .52205E-02   -1.5321    
   7  Prefactor     12.294        15.709        .28558E-02   -1.5007    
   8  Prefactor     .14930E-03    13.997        .91581E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5806        21.733        .34209E-02   -1.5122    
  10  Prefactor     .10000E-03    22.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.228        13.632        .26546E-02   -1.4953    
  12  Prefactor     .10000E-03    11.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.093        11.066        .30072E-02   -1.5042    
  14  Prefactor     .14798E-02    643.84        .90712E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4449        3.6762        .47749E-02   -1.5286    
  16  norm          .10000E-03    1.5994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.283        70.346        .13867E-02   -1.4261    
  18  norm          2.8176        1.3320        .60578E-02   -1.5372    
  19  Prefactor     107.16        31.887        .97111E-03   -1.3634    
  20  norm          .10000E-03    1.4054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.016        13.064        .26749E-02   -1.4959    
  22  norm          46.591        17.087        .14685E-02   -1.4342    
  23  Normalizat    .87828        .22118        .74052E-01   -.97227    
  24  Prefactor     .88780        .12462        .44849E-01   -.96569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27316e-06
Minuit parameter uncertainties:
  1  3.08324e-05
  2  46.655
  3  27.4775
  4  37.1661
  5  8.6348
  6  3.85194
  7  15.7146
  8  0.05255
  9  21.7529
  10  0.000280668
  11  13.6352
  12  4.79426e-06
  13  11.0682
  14  1.90588
  15  3.67641
  16  1.87759e-05
  17  70.4584
  18  1.33203
  19  31.8925
  20  3.799e-06
  21  13.0669
  22  17.0885
  23  0.221403
  24  0.124663
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.109e+01  1.107e+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.878e-01  1.247e-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.783e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.11e-08 +/- 5.09e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/124937/likelihoodResults_670118401_670377601_4FGL_J2219.2-0342_daily_bin1662.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) = 6421.5022019
delta logL = 0.423442936448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6421.49152816
delta logL = 0.434116678805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.849       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0137       1.0000          .0000       10.000    
     3 'Normalizat'    .91008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87277       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=   6421.492     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.849        12.874        .27937E-02   -.25281E-02
   2  Index         2.0135        .49810        .25177       -.50025E-04
   3  Normalizat    .91003        .20707        .72871E-01    .19993E-04
   4  Prefactor     .87280        .12374        .44657E-01    .57804E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8488
  Index      = 2.01349
  Normalizat = 0.910031
  Prefactor  = 0.872797
 **********
 **   18 **HESSE 
 **********

 FCN=   6421.492     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.849        12.264        .11175E-03   -1.4991    
   2  Index         2.0135        .61200        .86101E-02   -.64013    
   3  Normalizat    .91003        .24415        .32245E-03   -.96109    
   4  Prefactor     .87280        .14573        .19510E-03   -.97098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70129e-09
Minuit parameter uncertainties:
  1  12.2661
  2  0.614405
  3  0.244446
  4  0.145793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124937': 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) = 6421.49152805
delta logL = 0.434116784558

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.285e+01  1.227e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.013e+00  6.144e-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.728e-01  1.458e-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.100e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.01 +/- 0.61
Photon Flux (Free Index): 3.32e-08 +/- 3.83e-08
Energy Flux (Free Index): 2.22e-05 +/- 2.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/124937/cmap_HighResolution_670118401_670377601_4FGL_J2219.2-0342_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='5.11e-08', energy_flux2='2.22e-05', photon_flux_error='5.09e-08', dlogl='4.34e-01', energy_flux='1.25e-05', photon_flux2='3.32e-08', job_status='DONE', time_completed='2022-03-31 00:49:08.104691', photon_index_error2='0.61', photon_index2='2.01', ts='1.50', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='2.59e-05', EG='0.88', time_epoch_completed='1648712948.1', return_code='0', job_id='124937', GAL2='0.87', EG2='0.91', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.83e-08', ts2='2.37', photon_index='2.68' WHERE bin_id='1662' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:49:08 PDT 2022


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

Job <4FGL_J2219.2-0342_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:26 2022
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:27 2022
Terminated at Thu Mar 31 00:49:09 2022
Results reported at Thu Mar 31 00:49:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1662 334.823 -3.7102 670118401 670377601 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

