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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin461
RA = 334.823, Dec = -3.7102
tmin = 358819201, tmax = 359078401
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='258081', job_status='RUN', time_executed='2021-09-28 09:09:27.601161', time_epoch_executed='1632845367.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258081

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258081/ft1_4FGL_J2219.2-0342_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258081/ft2_4FGL_J2219.2-0342_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258081/ft1_4FGL_J2219.2-0342_daily_bin461.fits outfile=/scratch/kocevski/258081/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin461.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=358819201.0 tmax=359078401.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.32
user 5.07
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258081/ft2_4FGL_J2219.2-0342_daily_bin461.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/258081/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin461.fits evtable="EVENTS" outfile="/scratch/kocevski/258081/ft1_filtered_4FGL_J2219.2-0342_daily_bin461.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/258081/ft1_filtered_4FGL_J2219.2-0342_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/258081/ft2_4FGL_J2219.2-0342_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/258081/ltcube_358819201_359078401_4FGL_J2219.2-0342_daily_bin461.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/258081/ft2_4FGL_J2219.2-0342_daily_bin461.fits
.....................!
real 11.49
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258081/ft1_filtered_4FGL_J2219.2-0342_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/258081/ft2_4FGL_J2219.2-0342_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/258081/ltcube_358819201_359078401_4FGL_J2219.2-0342_daily_bin461.fits outfile=/scratch/kocevski/258081/expmap_358819201_359078401_4FGL_J2219.2-0342_daily_bin461.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/258081/ltcube_358819201_359078401_4FGL_J2219.2-0342_daily_bin461.fits
.....................!
real 191.43
user 186.46
sys 4.59

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/258081/ft1_filtered_4FGL_J2219.2-0342_daily_bin461.fits scfile=/scratch/kocevski/258081/ft2_4FGL_J2219.2-0342_daily_bin461.fits outfile=/scratch/kocevski/258081/cmap_358819201_359078401_4FGL_J2219.2-0342_daily_bin461.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258081/ft1_filtered_4FGL_J2219.2-0342_daily_bin461.fits scfile=/scratch/kocevski/258081/ft2_4FGL_J2219.2-0342_daily_bin461.fits outfile=/scratch/kocevski/258081/cmap_HighResolution_358819201_359078401_4FGL_J2219.2-0342_daily_bin461.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258081/ft1_filtered_4FGL_J2219.2-0342_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/258081/ft2_4FGL_J2219.2-0342_daily_bin461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258081/Model_4FGL_J2219.2-0342_daily_bin461.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/258081/ft1_filtered_4FGL_J2219.2-0342_daily_bin461.fits.....................!
real 61.22
user 59.65
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.052       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.560       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66856       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3813       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0352       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.572       1.0000         .10000E-03   10000.    
    18 'norm      '    11.620       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .80517       1.0000         .10000E-03   10000.    
    22 'norm      '    22.909       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1187       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74672       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=   6100.559     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2820 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .80265       -.14570E-06** at limit **
   2  Prefactor     .10000E-03    37.328       -.24766E-06** at limit **
   3  Prefactor     31.167        44.951       -.23295E-06   -.57694E-04
   4  Prefactor     .10000E-03    108.85       -.59459E-06** at limit **
   5  Prefactor     5.9198        7.3191        .31277E-05    .21812E-03
   6  Prefactor     .10003E-03    5.5119        .16201E-05** at limit **
   7  Prefactor     20.543        15.751       -.48217E-06   -.16514E-03
   8  Prefactor     27.780        26.878       -.44729E-06   -.73838E-04
   9  Prefactor     .10000E-03    18.792       -.24558E-07** at limit **
  10  Prefactor     .78724        14.602        .11865E-05   -.14862E-03
  11  Prefactor     .10000E-03    4.6310        .47761E-06** at limit **
  12  Prefactor     .10000E-03    43.339        .10033E-05** at limit **
  13  Prefactor     16.423        13.038        .16147E-07   -.80918E-04
  14  Prefactor     .10000E-03    31.391        .25178E-06** at limit **
  15  Prefactor     4.3829        3.8738        .32108E-08   -.61835E-04
  16  norm          2.0400        4.0770        .19335E-07   -.43771E-04
  17  Prefactor     20.378        88.532       -.81388E-06   -.48067E-04
  18  norm          11.621        2.2146        .79914E-09   -.12163E-03
  19  Prefactor     .10000E-03    14.663        .13905E-06** at limit **
  20  norm          .10000E-03    .56416        .49453E-07** at limit **
  21  Prefactor     .80653        8.6957       -.55597E-06    .10996E-03
  22  norm          22.915        14.005        .61214E-07   -.14924E-04
  23  Normalizat    1.1184        .22422        .32942E-06   -.34703E-03
  24  Prefactor     .74674        .12613       -.10925E-05   -.32373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1675
  Prefactor  = 0.000100001
  Prefactor  = 5.9198
  Prefactor  = 0.000100035
  Prefactor  = 20.5433
  Prefactor  = 27.7801
  Prefactor  = 0.0001
  Prefactor  = 0.787237
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.4235
  Prefactor  = 0.0001
  Prefactor  = 4.38294
  norm       = 2.04005
  Prefactor  = 20.3776
  norm       = 11.6211
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.806525
  norm       = 22.9147
  Normalizat = 1.11844
  Prefactor  = 0.746741
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.559     FROM HESSE     STATUS=OK           401 CALLS     3221 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .80551        .68294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.167        44.979        .71903E-04   -1.4591    
   4  Prefactor     .10000E-03    110.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9198        7.3870        .82525E-03   -1.5221    
   6  Prefactor     .10003E-03    18.334        .32882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.543        15.682        .88333E-04   -1.4801    
   8  Prefactor     27.780        26.756        .76034E-04   -1.4653    
   9  Prefactor     .10000E-03    18.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .78724        105.96        .53317E-02   -1.5531    
  11  Prefactor     .10000E-03    13.553        .32529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.423        13.038        .98830E-04   -1.4897    
  14  Prefactor     .10000E-03    31.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3829        3.8597        .13483E-03   -1.5289    
  16  norm          2.0400        4.0453        .20234E-03   -1.5422    
  17  Prefactor     20.378        88.255        .88308E-04   -1.4805    
  18  norm          11.621        2.2161        .48914E-04   -1.5026    
  19  Prefactor     .10000E-03    14.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .58393        .11449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .80653        25.805        .44266E-02   -1.5528    
  22  norm          22.915        14.012        .83686E-04   -1.4750    
  23  Normalizat    1.1184        .26289        .29001E-03   -.89162    
  24  Prefactor     .74674        .14884        .20562E-03   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08798e-09
Minuit parameter uncertainties:
  1  5.88482e-07
  2  0.000112333
  3  45.0283
  4  0.000551282
  5  7.38813
  6  0.00159715
  7  15.6854
  8  26.7677
  9  2.99777e-05
  10  18.2988
  11  0.00027669
  12  0.000182303
  13  13.0399
  14  4.4021e-05
  15  3.85996
  16  4.04585
  17  85.0281
  18  2.21612
  19  1.1272e-05
  20  1.0177e-06
  21  9.1279
  22  14.0136
  23  0.263201
  24  0.14892
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.642e+01  1.304e+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:  7.467e-01  1.489e-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.118e+00  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.57e-08 +/- 6.00e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/258081/likelihoodResults_358819201_359078401_4FGL_J2219.2-0342_daily_bin461.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) = 6100.2874394
delta logL = 0.271836793385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6100.28249547
delta logL = 0.276780721661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.106       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2422       1.0000          .0000       10.000    
     3 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76059       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=   6100.282     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      236 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.122        167.90        .28783E-02    .11153E-03
   2  Index         3.2421        6.5918        .19662        .82670E-04
   3  Normalizat    1.0838        .80308E-01    .66442E-01    .13867E-04
   4  Prefactor     .76064        .46248E-01    .43202E-01    .25361E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1219
  Index      = 3.24212
  Normalizat = 1.08377
  Prefactor  = 0.760638
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.282     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.122        13.093        .11513E-03   -1.5011    
   2  Index         3.2421        .87911        .70487E-02   -.35925    
   3  Normalizat    1.0838        .25598        .29393E-03   -.90274    
   4  Prefactor     .76064        .14881        .20387E-03   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18419e-12
Minuit parameter uncertainties:
  1  13.0963
  2  0.884362
  3  0.256269
  4  0.148888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258081': 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) = 6100.28249351
delta logL = 0.276782679497

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.212e+01  1.310e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.242e+00  8.844e-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:  7.606e-01  1.489e-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.084e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.24 +/- 0.88
Photon Flux (Free Index): 1.04e-07 +/- 7.43e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.30e-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/258081/cmap_HighResolution_358819201_359078401_4FGL_J2219.2-0342_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', photon_flux='7.57e-08', energy_flux2='1.87e-05', photon_flux_error='6.00e-08', dlogl='2.77e-01', energy_flux='1.85e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-28 09:20:23.733481', photon_index_error2='0.88', photon_index2='3.24', ts='2.29', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='1.30e-05', EG='1.12', time_epoch_completed='1632846023.73', return_code='0', job_id='258081', GAL2='0.76', EG2='1.08', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='7.43e-08', ts2='2.89', photon_index='2.68' WHERE bin_id='461' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:20:23 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin461 334.823 -3.7102 358819201 359078401 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 :                                   655.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

