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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1661
RA = 334.823, Dec = -3.7102
tmin = 669859201, tmax = 670118401
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='86701', job_status='RUN', time_executed='2022-03-28 00:45:31.597523', time_epoch_executed='1648453531.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86701

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86701/ft1_4FGL_J2219.2-0342_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86701/ft2_4FGL_J2219.2-0342_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86701/ft1_4FGL_J2219.2-0342_daily_bin1661.fits outfile=/scratch/kocevski/86701/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1661.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=669859201.0 tmax=670118401.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.77
user 3.49
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86701/ft2_4FGL_J2219.2-0342_daily_bin1661.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/86701/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1661.fits evtable="EVENTS" outfile="/scratch/kocevski/86701/ft1_filtered_4FGL_J2219.2-0342_daily_bin1661.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.52
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 577

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86701/ft1_filtered_4FGL_J2219.2-0342_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/86701/ft2_4FGL_J2219.2-0342_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/86701/ltcube_669859201_670118401_4FGL_J2219.2-0342_daily_bin1661.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/86701/ft2_4FGL_J2219.2-0342_daily_bin1661.fits
.....................!
real 12.41
user 12.06
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86701/ft1_filtered_4FGL_J2219.2-0342_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/86701/ft2_4FGL_J2219.2-0342_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/86701/ltcube_669859201_670118401_4FGL_J2219.2-0342_daily_bin1661.fits outfile=/scratch/kocevski/86701/expmap_669859201_670118401_4FGL_J2219.2-0342_daily_bin1661.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/86701/ltcube_669859201_670118401_4FGL_J2219.2-0342_daily_bin1661.fits
.....................!
real 192.00
user 186.58
sys 5.00

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/86701/ft1_filtered_4FGL_J2219.2-0342_daily_bin1661.fits scfile=/scratch/kocevski/86701/ft2_4FGL_J2219.2-0342_daily_bin1661.fits outfile=/scratch/kocevski/86701/cmap_669859201_670118401_4FGL_J2219.2-0342_daily_bin1661.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86701/ft1_filtered_4FGL_J2219.2-0342_daily_bin1661.fits scfile=/scratch/kocevski/86701/ft2_4FGL_J2219.2-0342_daily_bin1661.fits outfile=/scratch/kocevski/86701/cmap_HighResolution_669859201_670118401_4FGL_J2219.2-0342_daily_bin1661.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/86701/ft1_filtered_4FGL_J2219.2-0342_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/86701/ft2_4FGL_J2219.2-0342_daily_bin1661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86701/Model_4FGL_J2219.2-0342_daily_bin1661.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/86701/ft1_filtered_4FGL_J2219.2-0342_daily_bin1661.fits.....................!
real 64.40
user 62.38
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.862       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.548       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41267E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.122       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.257       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0847       1.0000         .10000E-03   10000.    
    16 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15618       1.0000         .10000E-03   10000.    
    18 'norm      '    .73209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.408       1.0000         .10000E-03   10000.    
    20 'norm      '    .11533E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.832       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4836       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73441       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=   6399.369     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1954 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8462        2.2671        .37332E-08    .55744E-04
   2  Prefactor     12.846        8.6632       -.13728E-06   -.35764E-02
   3  Prefactor     .10000E-03    19.390       -.69220E-07** at limit **
   4  Prefactor     .10000E-03    30.720       -.34158E-06** at limit **
   5  Prefactor     .10000E-03    3.9140       -.16896E-06** at limit **
   6  Prefactor     2.0866        6.7723       -.20345E-05   -.46926E-03
   7  Prefactor     3.9893        2.9654        .40831E-08   -.53520E-02
   8  Prefactor     10.547        1.5933       -.84506E-07    .22747E-02
   9  Prefactor     .10000E-03    4.9675       -.44007E-06** at limit **
  10  Prefactor     .10000E-03    8.1071       -.70742E-06** at limit **
  11  Prefactor     .10003E-03    24.951       -.20784E-05** at limit **
  12  Prefactor     36.097        17.740        .13161E-06   -.70457E-02
  13  Prefactor     33.254        1.5223       -.13348E-07   -.17456E-02
  14  Prefactor     .10000E-03    44.289        .56739E-06** at limit **
  15  Prefactor     1.0868        5.6786        .77340E-06    .77384E-04
  16  norm          .10000E-03    2.1711        .27650E-07** at limit **
  17  Prefactor     .15199E-03    7477.5       -.85410E-04** at limit **
  18  norm          .73221        .77238       -.59151E-07   -.23509E-03
  19  Prefactor     14.422        19.115       -.16051E-05   -.47044E-02
  20  norm          .10000E-03    1.7781       -.54849E-06** at limit **
  21  Prefactor     .10000E-03    4.1105       -.31671E-06** at limit **
  22  norm          22.818        12.796        .32920E-06   -.79901E-02
  23  Normalizat    1.4835        .25609        .10836E-05    .93084E-04
  24  Prefactor     .73462        .14654       -.24505E-06    .92169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.84616
  Prefactor  = 12.8464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0866
  Prefactor  = 3.98925
  Prefactor  = 10.547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 36.0974
  Prefactor  = 33.2539
  Prefactor  = 0.000100001
  Prefactor  = 1.08679
  norm       = 0.0001
  Prefactor  = 0.000151995
  norm       = 0.732211
  Prefactor  = 14.4224
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.8182
  Normalizat = 1.48354
  Prefactor  = 0.734623
 **********
 **   18 **HESSE 
 **********

 FCN=   6399.369     FROM HESSE     STATUS=OK           463 CALLS     2417 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8462        2.2790        .60251E-02   -1.5371    
   2  Prefactor     12.846        27.495        .27923E-02   -1.4991    
   3  Prefactor     .10000E-03    19.380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0866        6.8652        .71469E-02   -1.5419    
   7  Prefactor     3.9893        9.3592        .50453E-02   -1.5308    
   8  Prefactor     10.547        13.713        .30842E-02   -1.5058    
   9  Prefactor     .10000E-03    4.9637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    6.1221        .10625       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.097        25.387        .16670E-02   -1.4506    
  13  Prefactor     33.254        15.239        .17371E-02   -1.4554    
  14  Prefactor     .10000E-03    44.286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0868        7.1482        .11530E-01   -1.5499    
  16  norm          .10000E-03    2.1453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .15199E-03    134.57        .21082       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .73221        .77900        .12184E-01   -1.5537    
  19  Prefactor     14.422        25.585        .26380E-02   -1.4948    
  20  norm          .10000E-03    1.3034        .28997E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.818        17.084        .20957E-02   -1.4752    
  23  Normalizat    1.4835        .22584        .62346E-01   -.78242    
  24  Prefactor     .73462        .12540        .42857E-01   -1.0219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17338e-07
Minuit parameter uncertainties:
  1  2.27904
  2  27.5217
  3  0.000181997
  4  7.69446e-05
  5  8.57585e-06
  6  6.8678
  7  9.36264
  8  13.7167
  9  2.675e-05
  10  5.57428e-05
  11  0.000845955
  12  25.3947
  13  15.2408
  14  0.000389577
  15  5.57514
  16  1.53181e-06
  17  0.16767
  18  0.779011
  19  25.6046
  20  1.68112e-05
  21  1.72577e-05
  22  17.0873
  23  0.225995
  24  0.125447
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.325e+01  1.524e+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.346e-01  1.254e-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.484e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.50
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 7.01e-08
Energy Flux (Fixed Index): 3.74e-05 +/- 1.71e-05

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) = 6399.35771898
delta logL = 0.0116175880239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6399.35294196
delta logL = 0.0163946110097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.954       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7795       1.0000          .0000       10.000    
     3 'Normalizat'    1.4714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73953       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6399.353     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      250 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.951        16.207        .70883E-04    .83882E-04
   2  Index         2.7801        .56183        .64249E-02    .30323E-03
   3  Normalizat    1.4713        .26330        .27664E-03    .11507E-04
   4  Prefactor     .73958        .14872        .21729E-03    .88003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9514
  Index      = 2.78014
  Normalizat = 1.47127
  Prefactor  = 0.739576
 **********
 **   18 **HESSE 
 **********

 FCN=   6399.353     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.951        15.856        .28353E-05   -1.4577    
   2  Index         2.7801        .54912        .12850E-02   -.46003    
   3  Normalizat    1.4713        .26331        .11065E-04   -.78589    
   4  Prefactor     .73958        .14874        .86916E-05   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32229e-11
Minuit parameter uncertainties:
  1  15.858
  2  0.550506
  3  0.26356
  4  0.14882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86701': 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) = 6399.35294112
delta logL = 0.0163954509917

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.195e+01  1.586e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.780e+00  5.505e-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.396e-01  1.488e-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.471e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.52
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.78 +/- 0.55
Photon Flux (Free Index): 1.63e-07 +/- 8.65e-08
Energy Flux (Free Index): 3.70e-05 +/- 1.58e-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/86701/cmap_HighResolution_669859201_670118401_4FGL_J2219.2-0342_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='3.70e-05', photon_flux_error='7.01e-08', dlogl='1.64e-02', energy_flux='3.74e-05', photon_flux2='1.63e-07', job_status='DONE', time_completed='2022-03-28 00:54:55.367927', photon_index_error2='0.55', photon_index2='2.78', ts='10.50', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.48', time_epoch_completed='1648454095.37', return_code='0', job_id='86701', GAL2='0.74', EG2='1.47', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='8.65e-08', ts2='10.52', photon_index='2.68' WHERE bin_id='1661' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:54:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 86701: <4FGL_J2219.2-0342_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1661> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 28 00:45:14 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:45:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:45:15 2022
Terminated at Mon Mar 28 00:55:08 2022
Results reported at Mon Mar 28 00:55:08 2022

Your job looked like:

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

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

