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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1443
RA = 334.823, Dec = -3.7102
tmin = 613353601, tmax = 613612801
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='261661', job_status='RUN', time_executed='2021-09-28 09:18:33.080812', time_epoch_executed='1632845913.08' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261661/ft1_4FGL_J2219.2-0342_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261661/ft2_4FGL_J2219.2-0342_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261661/ft1_4FGL_J2219.2-0342_daily_bin1443.fits outfile=/scratch/kocevski/261661/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1443.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=613353601.0 tmax=613612801.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 2.69
user 2.50
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261661/ft2_4FGL_J2219.2-0342_daily_bin1443.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/261661/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/261661/ft1_filtered_4FGL_J2219.2-0342_daily_bin1443.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/261661/ft1_filtered_4FGL_J2219.2-0342_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/261661/ft2_4FGL_J2219.2-0342_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/261661/ltcube_613353601_613612801_4FGL_J2219.2-0342_daily_bin1443.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/261661/ft2_4FGL_J2219.2-0342_daily_bin1443.fits
.....................!
real 12.16
user 11.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261661/ft1_filtered_4FGL_J2219.2-0342_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/261661/ft2_4FGL_J2219.2-0342_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/261661/ltcube_613353601_613612801_4FGL_J2219.2-0342_daily_bin1443.fits outfile=/scratch/kocevski/261661/expmap_613353601_613612801_4FGL_J2219.2-0342_daily_bin1443.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/261661/ltcube_613353601_613612801_4FGL_J2219.2-0342_daily_bin1443.fits
.....................!
real 189.99
user 185.53
sys 4.15

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/261661/ft1_filtered_4FGL_J2219.2-0342_daily_bin1443.fits scfile=/scratch/kocevski/261661/ft2_4FGL_J2219.2-0342_daily_bin1443.fits outfile=/scratch/kocevski/261661/cmap_613353601_613612801_4FGL_J2219.2-0342_daily_bin1443.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261661/ft1_filtered_4FGL_J2219.2-0342_daily_bin1443.fits scfile=/scratch/kocevski/261661/ft2_4FGL_J2219.2-0342_daily_bin1443.fits outfile=/scratch/kocevski/261661/cmap_HighResolution_613353601_613612801_4FGL_J2219.2-0342_daily_bin1443.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/261661/ft1_filtered_4FGL_J2219.2-0342_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/261661/ft2_4FGL_J2219.2-0342_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261661/Model_4FGL_J2219.2-0342_daily_bin1443.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/261661/ft1_filtered_4FGL_J2219.2-0342_daily_bin1443.fits.....................!
real 77.59
user 76.25
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3155       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0489       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15610E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9849       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4134       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1975       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1304       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2343       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.770       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3067       1.0000         .10000E-03   10000.    
    19 'Prefactor '    103.02       1.0000         .10000E-03   10000.    
    20 'norm      '    .52579E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8358       1.0000         .10000E-03   10000.    
    22 'norm      '    120.40       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74071       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0579       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=   8328.793     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2819 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3158        2.6831        .15669E-06   -.13360E-03
   2  Prefactor     .10000E-03    21.230       -.81380E-06** at limit **
   3  Prefactor     3.0333        82.798       -.78438E-06   -.28935E-04
   4  Prefactor     .10000E-03    104.31       -.54646E-05** at limit **
   5  Prefactor     .10000E-03    2.5313       -.10254E-06** at limit **
   6  Prefactor     15.081        8.6771        .50841E-06    .93117E-04
   7  Prefactor     .10207E-03    5.8971        .26937E-05** at limit **
   8  Prefactor     .10000E-03    29.615       -.42764E-05** at limit **
   9  Prefactor     1.9849        28.146        .20751E-05   -.67932E-04
  10  Prefactor     9.3941        17.456       -.71869E-07   -.12930E-03
  11  Prefactor     .10000E-03    5.2361        .57056E-07** at limit **
  12  Prefactor     .10000E-03    24.876        .30563E-05** at limit **
  13  Prefactor     6.1960        10.438        .13118E-06   -.13094E-03
  14  Prefactor     39.849        85.734       -.30379E-05   -.38858E-04
  15  Prefactor     3.1302        3.2579       -.56159E-07   -.21020E-03
  16  norm          1.2288        3.6554        .32711E-05    .27410E-03
  17  Prefactor     15.839        127.82        .15066E-05    .30792E-04
  18  norm          2.3066        1.2338        .13604E-07   -.40286E-03
  19  Prefactor     103.02        35.219       -.74188E-06   -.57104E-03
  20  norm          .10000E-03    1.1701        .33118E-06** at limit **
  21  Prefactor     9.8352        10.723        .35508E-07   -.75492E-04
  22  norm          120.39        20.648        .11772E-06   -.46740E-04
  23  Normalizat    .74073        .21526       -.34075E-05   -.37865E-03
  24  Prefactor     1.0579        .11956        .54509E-06   -.82775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31581
  Prefactor  = 0.0001
  Prefactor  = 3.03328
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 15.081
  Prefactor  = 0.000102071
  Prefactor  = 0.000100002
  Prefactor  = 1.9849
  Prefactor  = 9.39413
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.19601
  Prefactor  = 39.8486
  Prefactor  = 3.13022
  norm       = 1.22885
  Prefactor  = 15.8387
  norm       = 2.30661
  Prefactor  = 103.022
  norm       = 0.0001
  Prefactor  = 9.83524
  norm       = 120.394
  Normalizat = 0.740727
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   8328.793     FROM HESSE     STATUS=OK           401 CALLS     3220 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3158        2.6683        .12747E-03   -1.5344    
   2  Prefactor     .10000E-03    21.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0333        82.735        .23236E-03   -1.5360    
   4  Prefactor     .10000E-03    104.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5400        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.081        8.6877        .10313E-03   -1.4931    
   7  Prefactor     .10207E-03    63.058        .38419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9849        26.945        .29414E-03   -1.5426    
  10  Prefactor     9.3941        17.127        .13062E-03   -1.5095    
  11  Prefactor     .10000E-03    5.2503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1960        10.383        .16126E-03   -1.5210    
  14  Prefactor     39.849        85.749        .63510E-04   -1.4445    
  15  Prefactor     3.1302        3.2334        .15387E-03   -1.5354    
  16  norm          1.2288        3.6561        .26635E-03   -1.5486    
  17  Prefactor     15.839        129.31        .10086E-03   -1.4912    
  18  norm          2.3066        1.2306        .71085E-04   -1.5404    
  19  Prefactor     103.02        28.568        .39615E-04   -1.3674    
  20  norm          .10000E-03    11.786        .15028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.8352        10.710        .12777E-03   -1.5081    
  22  norm          120.39        20.640        .36676E-04   -1.3509    
  23  Normalizat    .74073        .24232        .36921E-03   -1.0231    
  24  Prefactor     1.0579        .13731        .18971E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08552e-08
Minuit parameter uncertainties:
  1  2.66844
  2  8.35141e-05
  3  31.7315
  4  0.00118623
  5  1.23202e-06
  6  8.68838
  7  0.0228803
  8  0.000431889
  9  14.6341
  10  17.1357
  11  5.26646e-06
  12  0.000470878
  13  10.3863
  14  86.016
  15  3.23358
  16  3.65672
  17  90.7803
  18  1.23063
  19  28.5715
  20  3.52432e-05
  21  10.7119
  22  20.6408
  23  0.242673
  24  0.137357
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.196e+00  1.039e+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.058e+00  1.374e-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:  7.407e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261661/likelihoodResults_613353601_613612801_4FGL_J2219.2-0342_daily_bin1443.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) = 8328.54876001
delta logL = 0.244427919652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8328.52425513
delta logL = 0.26893280536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3212       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5996       1.0000          .0000       10.000    
     3 'Normalizat'    .70342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0718       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8328.524     FROM MIGRAD    STATUS=FAILED        96 CALLS      260 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3187        13.412        .96173E-03   -.69177E-04
   2  Index         3.6004        2.3096        .11117E-01    .41316E-03
   3  Normalizat    .70346        .23442        .37829E-03   -.54095E-04
   4  Prefactor     1.0718        .13910        .18861E-03   -.58009E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8328.524     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      335 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3187        13.412        .21965E-03   -1.5292    
   2  Index         3.6004        2.3096        .11945E-02   -.28371    
   3  Normalizat    .70346        .23442        .40430E-03   -1.0376    
   4  Prefactor     1.0718        .13910        .23540E-03   -.90373    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8328.524     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      372 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3187        8.2747        .38469E-04   -.11230E-04
   2  Index         3.6004        1.4603        .22233E-02    .93063E-06
   3  Normalizat    .70346        .23410        .15132E-04   -.30053E-06
   4  Prefactor     1.0718        .13832        .37722E-04   -.36165E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31866
  Index      = 3.6004
  Normalizat = 0.703463
  Prefactor  = 1.07179
 **********
 **   18 **HESSE 
 **********

 FCN=   8328.524     FROM HESSE     STATUS=OK            23 CALLS      395 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3187        7.9272        .15388E-05   -1.5292    
   2  Index         3.6004        1.3998        .88933E-04   -.28371    
   3  Normalizat    .70346        .23418        .30263E-05   -1.0376    
   4  Prefactor     1.0718        .13830        .75445E-05   -.90373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06e-13
Minuit parameter uncertainties:
  1  7.92915
  2  1.42047
  3  0.234517
  4  0.138345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261661': 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) = 8328.52425488
delta logL = 0.268933047142

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.319e+00  7.929e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.600e+00  1.420e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.072e+00  1.383e-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:  7.035e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.60 +/- 1.42
Photon Flux (Free Index): 5.71e-08 +/- 6.53e-08
Energy Flux (Free Index): 9.27e-06 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261661/cmap_HighResolution_613353601_613612801_4FGL_J2219.2-0342_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='9.27e-06', dlogl='2.69e-01', photon_flux2='5.71e-08', job_status='DONE', time_completed='2021-09-28 09:31:22.935756', photon_index_error2='1.42', photon_index2='3.60', ts='0.46', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.03e-05', EG='0.74', time_epoch_completed='1632846682.94', return_code='0', job_id='261661', GAL2='1.07', EG2='0.70', return_code2='0', photon_flux_error2='6.53e-08', ts2='1.05', photon_index='2.68' WHERE bin_id='1443' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:31:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 261661: <4FGL_J2219.2-0342_daily_bin1443> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1443> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:16:00 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:16:02 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:16:02 2021
Terminated at Tue Sep 28 09:31:23 2021
Results reported at Tue Sep 28 09:31:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1443 334.823 -3.7102 613353601 613612801 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 :                                   769.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

