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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1231
RA = 334.823, Dec = -3.7102
tmin = 558403201, tmax = 558662401
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='262647', job_status='RUN', time_executed='2021-09-28 09:20:22.064804', time_epoch_executed='1632846022.06' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262647/ft1_4FGL_J2219.2-0342_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262647/ft2_4FGL_J2219.2-0342_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262647/ft1_4FGL_J2219.2-0342_daily_bin1231.fits outfile=/scratch/kocevski/262647/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1231.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=558403201.0 tmax=558662401.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.85
user 3.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262647/ft2_4FGL_J2219.2-0342_daily_bin1231.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/262647/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1231.fits evtable="EVENTS" outfile="/scratch/kocevski/262647/ft1_filtered_4FGL_J2219.2-0342_daily_bin1231.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.56
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262647/ft1_filtered_4FGL_J2219.2-0342_daily_bin1231.fits" evtable="EVENTS" scfile=/scratch/kocevski/262647/ft2_4FGL_J2219.2-0342_daily_bin1231.fits sctable="SC_DATA" outfile=/scratch/kocevski/262647/ltcube_558403201_558662401_4FGL_J2219.2-0342_daily_bin1231.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/262647/ft2_4FGL_J2219.2-0342_daily_bin1231.fits
.....................!
real 15.50
user 15.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262647/ft1_filtered_4FGL_J2219.2-0342_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/262647/ft2_4FGL_J2219.2-0342_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/262647/ltcube_558403201_558662401_4FGL_J2219.2-0342_daily_bin1231.fits outfile=/scratch/kocevski/262647/expmap_558403201_558662401_4FGL_J2219.2-0342_daily_bin1231.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/262647/ltcube_558403201_558662401_4FGL_J2219.2-0342_daily_bin1231.fits
.....................!
real 193.88
user 188.38
sys 4.17

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/262647/ft1_filtered_4FGL_J2219.2-0342_daily_bin1231.fits scfile=/scratch/kocevski/262647/ft2_4FGL_J2219.2-0342_daily_bin1231.fits outfile=/scratch/kocevski/262647/cmap_558403201_558662401_4FGL_J2219.2-0342_daily_bin1231.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.63
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262647/ft1_filtered_4FGL_J2219.2-0342_daily_bin1231.fits scfile=/scratch/kocevski/262647/ft2_4FGL_J2219.2-0342_daily_bin1231.fits outfile=/scratch/kocevski/262647/cmap_HighResolution_558403201_558662401_4FGL_J2219.2-0342_daily_bin1231.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262647/ft1_filtered_4FGL_J2219.2-0342_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/262647/ft2_4FGL_J2219.2-0342_daily_bin1231.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262647/Model_4FGL_J2219.2-0342_daily_bin1231.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/262647/ft1_filtered_4FGL_J2219.2-0342_daily_bin1231.fits.....................!
real 66.42
user 64.61
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0504       1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.386       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10924E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8924       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.343       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21415       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4855       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24469E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3603       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10708E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    8.4444       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7559       1.0000         .10000E-03   10000.    
    22 'norm      '    .30914       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0489       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87923       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=   6446.406     FROM MIGRAD    STATUS=CONVERGED   1021 CALLS     3168 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0493        2.4598        .10813E-03   -.88320E-05
   2  Prefactor     69.356        47.699        .48189E-04    .44683E-04
   3  Prefactor     .10000E-03    15.541        .18142E-02** at limit **
   4  Prefactor     .10000E-03    36.460        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.5819        .14804E-02** at limit **
   6  Prefactor     4.9786        7.2491        .18032E-03    .87193E-04
   7  Prefactor     .10000E-03    8.2450        .18142E-02** at limit **
   8  Prefactor     4.8915        9.7108        .18185E-03   -.27507E-05
   9  Prefactor     16.365        14.211        .99071E-04    .16180E-04
  10  Prefactor     .10000E-03    7.6032        .18142E-02** at limit **
  11  Prefactor     .10000E-03    20.490        .18142E-02** at limit **
  12  Prefactor     .10000E-03    14.673        .18142E-02** at limit **
  13  Prefactor     .10000E-03    7.4317        .18142E-02** at limit **
  14  Prefactor     .46405E-01    117.44        .21868        .17380E-04
  15  Prefactor     .10000E-03    2.4280        .12095E-02** at limit **
  16  norm          3.5004        4.8623        .18475E-03    .11962E-03
  17  Prefactor     .10000E-03    48.108        .18142E-02** at limit **
  18  norm          3.3603        1.6123        .67536E-04    .25116E-03
  19  Prefactor     .10010E-03    97.021        .11257    ** at limit **
  20  norm          8.4436        4.3608        .68616E-04    .10002E-02
  21  Prefactor     4.7541        10.380        .92249E-03   -.19398E-04
  22  norm          .29800        63.540        .38084E-02    .33096E-03
  23  Normalizat    1.0488        .25196        .30475E-03    .69910E-04
  24  Prefactor     .87926        .14216        .19346E-03   -.13281E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.04927
  Prefactor  = 69.3563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97858
  Prefactor  = 0.0001
  Prefactor  = 4.89152
  Prefactor  = 16.3647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0464047
  Prefactor  = 0.0001
  norm       = 3.50044
  Prefactor  = 0.0001
  norm       = 3.36027
  Prefactor  = 0.000100103
  norm       = 8.44357
  Prefactor  = 4.7541
  norm       = 0.298002
  Normalizat = 1.04884
  Prefactor  = 0.879262
 **********
 **   18 **HESSE 
 **********

 FCN=   6446.406     FROM HESSE     STATUS=OK           397 CALLS     3565 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0493        2.4596        .43250E-05   -1.5359    
   2  Prefactor     69.356        47.694        .96378E-05   -1.4040    
   3  Prefactor     .10000E-03    15.542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5823        .29609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9786        7.2477        .72129E-05   -1.5262    
   7  Prefactor     .10000E-03    8.2487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8915        9.7103        .72740E-05   -1.5266    
   9  Prefactor     16.365        14.210        .39629E-05   -1.4899    
  10  Prefactor     .10000E-03    7.6038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .46405E-01    121.19        .21424       -1.5665    
  15  Prefactor     .10000E-03    2.4288        .24190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5004        4.8617        .73901E-05   -1.5334    
  17  Prefactor     .10000E-03    48.109        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3603        1.6123        .27014E-05   -1.5341    
  19  Prefactor     .10010E-03    96.033        .11320       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.4436        4.3585        .13723E-04   -1.5127    
  21  Prefactor     4.7541        10.379        .36900E-04   -1.5272    
  22  norm          .29800        64.561        .15233E-03   -1.5599    
  23  Normalizat    1.0488        .25202        .12190E-04   -.91412    
  24  Prefactor     .87926        .14229        .77385E-05   -.96870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40379e-09
Minuit parameter uncertainties:
  1  2.45971
  2  47.7205
  3  6.67532e-07
  4  4.4757e-05
  5  9.23823e-06
  6  7.24902
  7  3.40452e-05
  8  9.71341
  9  14.2127
  10  1.71215e-05
  11  9.84006e-05
  12  4.37857e-05
  13  2.58289e-05
  14  4.74747
  15  6.94091e-06
  16  4.86224
  17  1.33797e-05
  18  1.6123
  19  0.00629122
  20  4.35865
  21  10.3827
  22  8.78062
  23  0.252307
  24  0.142348
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.793e-01  1.423e-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.049e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262647/likelihoodResults_558403201_558662401_4FGL_J2219.2-0342_daily_bin1231.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): 102
logL (Free Index) = 6446.4063382
delta logL = -0.000641326834739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6446.40569702
delta logL = -1.50564119394e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6732       1.0000          .0000       10.000    
     3 'Normalizat'    1.0487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87934       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=   6446.406     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10071E-03    253.73        .18142E-02** at limit **
   2  Index         2.6147        5.1760        .50000        .81775E-05
   3  Normalizat    1.0488        .31832E-01    .30474E-03    .13952E-04
   4  Prefactor     .87926        .18787E-01    .19346E-03    .20156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100708
  Index      = 2.61469
  Normalizat = 1.04883
  Prefactor  = 0.879262
 **********
 **   18 **HESSE 
 **********

 FCN=   6446.406     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10071E-03    929.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6147        7.9863        .50000       -.49731    
   3  Normalizat    1.0488        .71870E-01    .12190E-04   -.91412    
   4  Prefactor     .87926        .42418E-01    .77386E-05   -.96870    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.32158e-08
Minuit parameter uncertainties:
  1  0.0521372
  2  1782.21
  3  0.071877
  4  0.0424192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262647': 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) = 6446.40569677
delta logL = 9.95341906673e-08

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.007e-04  5.214e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.615e+00  1.782e+03  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.793e-01  4.242e-02  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.049e+00  7.188e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/262647/cmap_HighResolution_558403201_558662401_4FGL_J2219.2-0342_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-28 09:32:06.479171', job_id='262647', GAL2='0.88', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632846726.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='9.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1231' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:32:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 262647: <4FGL_J2219.2-0342_daily_bin1231> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1231> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:11 2021
Job was executed on host(s) <bullet0278>, 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:32:06 2021
Results reported at Tue Sep 28 09:32:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1231 334.823 -3.7102 558403201 558662401 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 :                                   702.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

