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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1451
RA = 334.823, Dec = -3.7102
tmin = 615427201, tmax = 615686401
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='262658', job_status='RUN', time_executed='2021-09-28 09:22:45.951091', time_epoch_executed='1632846165.95' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262658/ft1_4FGL_J2219.2-0342_daily_bin1451.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262658/ft2_4FGL_J2219.2-0342_daily_bin1451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262658/ft1_4FGL_J2219.2-0342_daily_bin1451.fits outfile=/scratch/kocevski/262658/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1451.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=615427201.0 tmax=615686401.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.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262658/ft1_filtered_4FGL_J2219.2-0342_daily_bin1451.fits" evtable="EVENTS" scfile=/scratch/kocevski/262658/ft2_4FGL_J2219.2-0342_daily_bin1451.fits sctable="SC_DATA" outfile=/scratch/kocevski/262658/ltcube_615427201_615686401_4FGL_J2219.2-0342_daily_bin1451.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/262658/ft2_4FGL_J2219.2-0342_daily_bin1451.fits
.....................!
real 12.42
user 12.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262658/ft1_filtered_4FGL_J2219.2-0342_daily_bin1451.fits evtable="EVENTS" scfile=/scratch/kocevski/262658/ft2_4FGL_J2219.2-0342_daily_bin1451.fits sctable="SC_DATA" expcube=/scratch/kocevski/262658/ltcube_615427201_615686401_4FGL_J2219.2-0342_daily_bin1451.fits outfile=/scratch/kocevski/262658/expmap_615427201_615686401_4FGL_J2219.2-0342_daily_bin1451.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/262658/ltcube_615427201_615686401_4FGL_J2219.2-0342_daily_bin1451.fits
.....................!
real 191.39
user 185.56
sys 5.25

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/262658/ft1_filtered_4FGL_J2219.2-0342_daily_bin1451.fits scfile=/scratch/kocevski/262658/ft2_4FGL_J2219.2-0342_daily_bin1451.fits outfile=/scratch/kocevski/262658/cmap_615427201_615686401_4FGL_J2219.2-0342_daily_bin1451.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.58
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262658/ft1_filtered_4FGL_J2219.2-0342_daily_bin1451.fits scfile=/scratch/kocevski/262658/ft2_4FGL_J2219.2-0342_daily_bin1451.fits outfile=/scratch/kocevski/262658/cmap_HighResolution_615427201_615686401_4FGL_J2219.2-0342_daily_bin1451.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.59
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262658/ft1_filtered_4FGL_J2219.2-0342_daily_bin1451.fits evtable="EVENTS" scfile=/scratch/kocevski/262658/ft2_4FGL_J2219.2-0342_daily_bin1451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262658/Model_4FGL_J2219.2-0342_daily_bin1451.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/262658/ft1_filtered_4FGL_J2219.2-0342_daily_bin1451.fits.....................!
real 65.49
user 63.30
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6251       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42945E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0744       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.331       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37907E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.250       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7954       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10156E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0522       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0505       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4072       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7040       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11497E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3342       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4820       1.0000         .10000E-03   10000.    
    22 'norm      '    24.946       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60698       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0983       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=   7121.619     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2804 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6249        2.4264        .47728E-08   -.90675E-04
   2  Prefactor     .10028E-03    206.19        .50754E-05** at limit **
   3  Prefactor     9.6041        24.796       -.14980E-05   -.32277E-04
   4  Prefactor     .10000E-03    24.548        .53476E-06** at limit **
   5  Prefactor     3.0736        3.2328        .23185E-07   -.83488E-05
   6  Prefactor     10.334        7.9368        .31027E-06   -.66993E-05
   7  Prefactor     .10000E-03    6.2145        .11434E-05** at limit **
   8  Prefactor     23.228        21.921       -.68216E-06    .11930E-03
   9  Prefactor     18.642        14.570        .77757E-07   -.83992E-04
  10  Prefactor     .10000E-03    7.2606        .34326E-06** at limit **
  11  Prefactor     6.7992        10.966        .29783E-06   -.14221E-04
  12  Prefactor     .10970E-03    78.555       -.43172E-05** at limit **
  13  Prefactor     8.0539        12.735       -.21079E-07   -.47358E-04
  14  Prefactor     .10000E-03    47.342        .18402E-06** at limit **
  15  Prefactor     .10000E-03    2.2669       -.37455E-06** at limit **
  16  norm          4.0511        4.2292       -.71080E-06   -.40599E-03
  17  Prefactor     7.4243        307.44        .12553E-04    .63731E-05
  18  norm          1.7042        1.0249        .38156E-07    .86290E-05
  19  Prefactor     .10000E-03    70.842        .14437E-05** at limit **
  20  norm          3.3341        1.5548       -.17013E-06   -.85271E-04
  21  Prefactor     9.4829        9.8458        .48663E-06    .33139E-04
  22  norm          24.949        12.004       -.30225E-06   -.82554E-04
  23  Normalizat    .60703        .22208       -.14705E-05   -.54212E-04
  24  Prefactor     1.0980        .12320       -.57087E-06   -.18545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62491
  Prefactor  = 0.000100279
  Prefactor  = 9.60409
  Prefactor  = 0.0001
  Prefactor  = 3.07355
  Prefactor  = 10.3339
  Prefactor  = 0.000100002
  Prefactor  = 23.2277
  Prefactor  = 18.642
  Prefactor  = 0.0001
  Prefactor  = 6.79919
  Prefactor  = 0.000109697
  Prefactor  = 8.05388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.05115
  Prefactor  = 7.42434
  norm       = 1.7042
  Prefactor  = 0.000100002
  norm       = 3.33411
  Prefactor  = 9.48293
  norm       = 24.9491
  Normalizat = 0.607032
  Prefactor  = 1.09805
 **********
 **   18 **HESSE 
 **********

 FCN=   7121.619     FROM HESSE     STATUS=OK           417 CALLS     3221 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6249        2.4029        .10298E-03   -1.5327    
   2  Prefactor     .10028E-03    211.77        .74598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6041        24.771        .12937E-03   -1.5088    
   4  Prefactor     .10000E-03    24.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0736        3.2370        .15165E-03   -1.5357    
   6  Prefactor     10.334        7.9417        .12466E-03   -1.5065    
   7  Prefactor     .10000E-03    19.019        .39690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.228        22.323        .83073E-04   -1.4744    
   9  Prefactor     18.642        14.497        .92753E-04   -1.4844    
  10  Prefactor     .10000E-03    7.2853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7992        10.991        .15392E-03   -1.5186    
  12  Prefactor     .10970E-03    31.568        .11832       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0539        12.724        .14129E-03   -1.5140    
  14  Prefactor     .10000E-03    47.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2701        .12324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0511        4.2522        .78585E-03   -1.5305    
  17  Prefactor     7.4243        309.85        .14736E-03   -1.5163    
  18  norm          1.7042        1.0189        .63936E-04   -1.5447    
  19  Prefactor     .10000E-03    72.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3341        1.5365        .68372E-04   -1.5343    
  21  Prefactor     9.4829        9.8444        .13014E-03   -1.5092    
  22  norm          24.949        11.994        .80203E-04   -1.4709    
  23  Normalizat    .60703        .24445        .37625E-03   -1.0769    
  24  Prefactor     1.0980        .13899        .17757E-03   -.89529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19621e-09
Minuit parameter uncertainties:
  1  2.40297
  2  0.0154257
  3  24.7976
  4  3.03693e-05
  5  3.23716
  6  7.94251
  7  0.000351007
  8  22.331
  9  14.4995
  10  1.47571e-05
  11  10.9943
  12  0.035011
  13  12.7281
  14  5.43698e-05
  15  9.39912e-06
  16  4.25257
  17  96.4633
  18  1.01891
  19  0.000740169
  20  1.53651
  21  9.84612
  22  11.9947
  23  0.244889
  24  0.139037
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.054e+00  1.273e+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.098e+00  1.390e-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:  6.070e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262658/likelihoodResults_615427201_615686401_4FGL_J2219.2-0342_daily_bin1451.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) = 7121.60128743
delta logL = 0.0176239752645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7121.53116859
delta logL = 0.0877428113245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54020       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1545       1.0000          .0000       10.000    
     3 'Normalizat'    .56335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1230       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=   7121.531     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53217        10.224        .11434E-01    .17601E-02
   2  Index         5.1665        3.8271        .20146        .10843E-03
   3  Normalizat    .56330        .36824E-01    .88043E-01    .39663E-04
   4  Prefactor     1.1229        .22949E-01    .36773E-01   -.91103E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.532167
  Index      = 5.16654
  Normalizat = 0.563298
  Prefactor  = 1.12291
 **********
 **   18 **HESSE 
 **********

 FCN=   7121.531     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53217        38.625        .73713E-04   -1.5562    
   2  Index         5.1665        6.8584        .10055E-01    .33315E-01
   3  Normalizat    .56330        .17515        .39004E-03   -1.0957    
   4  Prefactor     1.1229        .10754        .17585E-03   -.88738    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09872e-06
Minuit parameter uncertainties:
  1  9.07274
  2  11.92
  3  0.175318
  4  0.107561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262658': 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): 102
logL (Free Index) = 7121.53116474
delta logL = 0.0877466638312

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.322e-01  9.073e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  5.167e+00  1.192e+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:  1.123e+00  1.076e-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:  5.633e-01  1.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 334.823 -3.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/262658/cmap_HighResolution_615427201_615686401_4FGL_J2219.2-0342_daily_bin1451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-09-28 09:34:24.618181', job_id='262658', GAL2='1.12', fit_tolerance='1e-08', EG2='0.56', EG='0.61', time_epoch_completed='1632846864.62', return_code2='102', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='8.77e-02', ts2='0.73', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1451' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 262658: <4FGL_J2219.2-0342_daily_bin1451> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1451 334.823 -3.7102 615427201 615686401 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 :                                   695.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

