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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1287
RA = 334.823, Dec = -3.7102
tmin = 572918401, tmax = 573177601
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='261419', job_status='RUN', time_executed='2021-09-28 09:19:27.719004', time_epoch_executed='1632845967.72' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261419/ft1_4FGL_J2219.2-0342_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261419/ft2_4FGL_J2219.2-0342_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261419/ft1_4FGL_J2219.2-0342_daily_bin1287.fits outfile=/scratch/kocevski/261419/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1287.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=572918401.0 tmax=573177601.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 4.93
user 4.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261419/ft2_4FGL_J2219.2-0342_daily_bin1287.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/261419/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1287.fits evtable="EVENTS" outfile="/scratch/kocevski/261419/ft1_filtered_4FGL_J2219.2-0342_daily_bin1287.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.46
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261419/ft1_filtered_4FGL_J2219.2-0342_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/261419/ft2_4FGL_J2219.2-0342_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/261419/ltcube_572918401_573177601_4FGL_J2219.2-0342_daily_bin1287.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/261419/ft2_4FGL_J2219.2-0342_daily_bin1287.fits
.....................!
real 11.47
user 11.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261419/ft1_filtered_4FGL_J2219.2-0342_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/261419/ft2_4FGL_J2219.2-0342_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/261419/ltcube_572918401_573177601_4FGL_J2219.2-0342_daily_bin1287.fits outfile=/scratch/kocevski/261419/expmap_572918401_573177601_4FGL_J2219.2-0342_daily_bin1287.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/261419/ltcube_572918401_573177601_4FGL_J2219.2-0342_daily_bin1287.fits
.....................!
real 190.49
user 185.37
sys 4.65

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/261419/ft1_filtered_4FGL_J2219.2-0342_daily_bin1287.fits scfile=/scratch/kocevski/261419/ft2_4FGL_J2219.2-0342_daily_bin1287.fits outfile=/scratch/kocevski/261419/cmap_572918401_573177601_4FGL_J2219.2-0342_daily_bin1287.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261419/ft1_filtered_4FGL_J2219.2-0342_daily_bin1287.fits scfile=/scratch/kocevski/261419/ft2_4FGL_J2219.2-0342_daily_bin1287.fits outfile=/scratch/kocevski/261419/cmap_HighResolution_572918401_573177601_4FGL_J2219.2-0342_daily_bin1287.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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261419/ft1_filtered_4FGL_J2219.2-0342_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/261419/ft2_4FGL_J2219.2-0342_daily_bin1287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261419/Model_4FGL_J2219.2-0342_daily_bin1287.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/261419/ft1_filtered_4FGL_J2219.2-0342_daily_bin1287.fits....................!
real 61.82
user 60.28
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9923       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0038       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0362       1.0000         .10000E-03   10000.    
    16 'norm      '    14.126       1.0000         .10000E-03   10000.    
    17 'Prefactor '    186.80       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5551       1.0000         .10000E-03   10000.    
    19 'Prefactor '    127.01       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5854       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0969       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3118       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=   6207.004     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2749 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9923        2.9901        .28558E-06   -.93286E-04
   2  Prefactor     .10000E-03    16.404        .11310E-05** at limit **
   3  Prefactor     19.681        29.174        .11654E-06    .48892E-05
   4  Prefactor     .10000E-03    14.942       -.90872E-06** at limit **
   5  Prefactor     2.8274        5.3786        .83478E-06    .16164E-03
   6  Prefactor     6.0036        8.3859        .19657E-06   -.19913E-04
   7  Prefactor     .10000E-03    5.3334        .45340E-07** at limit **
   8  Prefactor     .10000E-03    8.9188        .91388E-07** at limit **
   9  Prefactor     19.449        18.667        .21675E-06   -.35370E-04
  10  Prefactor     .10000E-03    40.410        .18767E-05** at limit **
  11  Prefactor     .10000E-03    11.766        .17249E-06** at limit **
  12  Prefactor     .10000E-03    27.248        .56169E-08** at limit **
  13  Prefactor     .10000E-03    8.4813       -.50886E-07** at limit **
  14  Prefactor     .10000E-03    87.765       -.78520E-06** at limit **
  15  Prefactor     2.0377        7.3137        .14297E-05   -.51664E-04
  16  norm          14.125        8.4279        .25560E-06   -.56535E-04
  17  Prefactor     186.74        171.28       -.53763E-05   -.11907E-03
  18  norm          1.5551        1.3296        .99232E-08    .38386E-04
  19  Prefactor     127.00        47.099       -.23454E-06   -.61949E-04
  20  norm          .10000E-03    2.2464       -.30889E-06** at limit **
  21  Prefactor     .10000E-03    30.611       -.12880E-05** at limit **
  22  norm          5.5845        16.638        .54399E-05   -.16201E-03
  23  Normalizat    1.0970        .29113       -.23081E-07   -.51455E-04
  24  Prefactor     1.3117        .16557       -.55868E-06   -.11716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99231
  Prefactor  = 0.0001
  Prefactor  = 19.6811
  Prefactor  = 0.0001
  Prefactor  = 2.82742
  Prefactor  = 6.00356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4495
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03774
  norm       = 14.1252
  Prefactor  = 186.741
  norm       = 1.55513
  Prefactor  = 126.998
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.58452
  Normalizat = 1.09705
  Prefactor  = 1.31168
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.004     FROM HESSE     STATUS=OK           395 CALLS     3144 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9923        2.9787        .16056E-03   -1.5426    
   2  Prefactor     .10000E-03    16.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.681        29.171        .90286E-04   -1.4820    
   4  Prefactor     .10000E-03    15.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8274        5.3841        .24187E-03   -1.5372    
   6  Prefactor     6.0036        8.3913        .16387E-03   -1.5218    
   7  Prefactor     .10000E-03    5.3427        .17769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.449        18.658        .90818E-04   -1.4826    
  10  Prefactor     .10000E-03    41.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    87.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0377        7.2632        .28985E-03   -1.5422    
  16  norm          14.125        8.4365        .10657E-03   -1.4956    
  17  Prefactor     186.74        177.57        .14772E-03   -1.2966    
  18  norm          1.5551        1.3353        .80854E-04   -1.5459    
  19  Prefactor     127.00        46.741        .35721E-04   -1.3449    
  20  norm          .10000E-03    2.2529        .22774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5845        17.112        .84994E-03   -1.5235    
  23  Normalizat    1.0970        .34568        .38280E-03   -.89847    
  24  Prefactor     1.3117        .19726        .21210E-03   -.82961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87444e-10
Minuit parameter uncertainties:
  1  2.97896
  2  0.000170226
  3  29.1923
  4  0.000147266
  5  5.385
  6  8.39296
  7  6.48925e-07
  8  2.62037e-06
  9  18.6633
  10  0.000349435
  11  1.44191e-05
  12  1.9827e-05
  13  1.75419e-05
  14  0.000321344
  15  7.26633
  16  8.43725
  17  178.085
  18  1.33533
  19  46.7541
  20  1.2255e-05
  21  0.000200026
  22  17.1274
  23  0.346394
  24  0.197372
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.754e-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:  1.312e+00  1.974e-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.097e+00  3.464e-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.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261419/likelihoodResults_572918401_573177601_4FGL_J2219.2-0342_daily_bin1287.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) = 6207.0046551
delta logL = -0.000559817503017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6207.00409599
delta logL = -7.07666004018e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10851E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6936       1.0000          .0000       10.000    
     3 'Normalizat'    1.0968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3118       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=   6207.004     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      266 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .54252        .66752E-01** at limit **
   2  Index         3.2153        6.0912        .50000       -.16112E-06
   3  Normalizat    1.0970        .21866E-02    .38280E-03   -.10712E-03
   4  Prefactor     1.3117        .13173E-02    .21210E-03   -.20972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.21535
  Normalizat = 1.09705
  Prefactor  = 1.31167
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.004     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.960        .35769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2153        7.9106        .50000       -.36498    
   3  Normalizat    1.0970        .21728E-01    .15312E-04   -.89847    
   4  Prefactor     1.3117        .13090E-01    .42420E-04   -.82961    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20256e-12
Minuit parameter uncertainties:
  1  0.000482856
  2  662.982
  3  0.0217279
  4  0.01309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261419': 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) = 6207.00409454
delta logL = 7.33039087208e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.829e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.215e+00  6.630e+02  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.312e+00  1.309e-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.097e+00  2.173e-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/261419/cmap_HighResolution_572918401_573177601_4FGL_J2219.2-0342_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-28 09:30:20.807635', job_id='261419', GAL2='1.31', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632846620.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='7.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1287' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:30:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 261419: <4FGL_J2219.2-0342_daily_bin1287> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1287> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:40 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:42 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:15:42 2021
Terminated at Tue Sep 28 09:30:21 2021
Results reported at Tue Sep 28 09:30:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1287 334.823 -3.7102 572918401 573177601 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 :                                   651.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

