/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 153 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin31
RA = 334.823, Dec = -3.7102
tmin = 247363201, tmax = 247622401
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='255296', job_status='RUN', time_executed='2021-09-28 08:58:08.948310', time_epoch_executed='1632844688.95' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255296

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255296/ft1_4FGL_J2219.2-0342_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255296/ft2_4FGL_J2219.2-0342_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255296/ft1_4FGL_J2219.2-0342_daily_bin31.fits outfile=/scratch/kocevski/255296/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin31.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=247363201.0 tmax=247622401.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 1.44
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255296/ft1_filtered_4FGL_J2219.2-0342_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/255296/ft2_4FGL_J2219.2-0342_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/255296/ltcube_247363201_247622401_4FGL_J2219.2-0342_daily_bin31.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/255296/ft2_4FGL_J2219.2-0342_daily_bin31.fits
.....................!
real 12.46
user 12.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255296/ft1_filtered_4FGL_J2219.2-0342_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/255296/ft2_4FGL_J2219.2-0342_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/255296/ltcube_247363201_247622401_4FGL_J2219.2-0342_daily_bin31.fits outfile=/scratch/kocevski/255296/expmap_247363201_247622401_4FGL_J2219.2-0342_daily_bin31.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/255296/ltcube_247363201_247622401_4FGL_J2219.2-0342_daily_bin31.fits
.....................!
real 190.81
user 185.12
sys 5.36

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/255296/ft1_filtered_4FGL_J2219.2-0342_daily_bin31.fits scfile=/scratch/kocevski/255296/ft2_4FGL_J2219.2-0342_daily_bin31.fits outfile=/scratch/kocevski/255296/cmap_247363201_247622401_4FGL_J2219.2-0342_daily_bin31.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/255296/ft1_filtered_4FGL_J2219.2-0342_daily_bin31.fits scfile=/scratch/kocevski/255296/ft2_4FGL_J2219.2-0342_daily_bin31.fits outfile=/scratch/kocevski/255296/cmap_HighResolution_247363201_247622401_4FGL_J2219.2-0342_daily_bin31.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255296/ft1_filtered_4FGL_J2219.2-0342_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/255296/ft2_4FGL_J2219.2-0342_daily_bin31.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255296/Model_4FGL_J2219.2-0342_daily_bin31.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/255296/ft1_filtered_4FGL_J2219.2-0342_daily_bin31.fits.....................!
real 63.56
user 62.23
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.067       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.327       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7017       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.436       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.492       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8999       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.599       1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.744       1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1838       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82214       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=   6659.080     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2738 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1712       -.10006E-06** at limit **
   2  Prefactor     .10000E-03    17.543       -.24981E-05** at limit **
   3  Prefactor     32.074        39.109        .24637E-05    .13250E-03
   4  Prefactor     19.269        35.483        .15207E-05    .54624E-04
   5  Prefactor     .10000E-03    4.3076        .19638E-06** at limit **
   6  Prefactor     .10000E-03    3.7696       -.11991E-06** at limit **
   7  Prefactor     .10000E-03    20.639        .19697E-05** at limit **
   8  Prefactor     10.327        16.875       -.17878E-06   -.16232E-04
   9  Prefactor     9.6999        14.847       -.88929E-07   -.30023E-04
  10  Prefactor     .10000E-03    19.488        .15737E-06** at limit **
  11  Prefactor     12.437        12.081       -.14436E-06    .19009E-05
  12  Prefactor     30.492        24.727       -.18239E-07    .96620E-07
  13  Prefactor     .10000E-03    3.2258       -.14851E-06** at limit **
  14  Prefactor     8.0552        182.35        .38677E-05    .21798E-04
  15  Prefactor     .10000E-03    2.6436        .27685E-06** at limit **
  16  norm          4.9001        4.2891        .16566E-06    .17252E-03
  17  Prefactor     .10000E-03    25.788        .13588E-05** at limit **
  18  norm          .12728        .57900        .14071E-06   -.22502E-03
  19  Prefactor     13.553        14.302        .63991E-06    .45588E-03
  20  norm          .10000E-03    1.0742       -.11483E-05** at limit **
  21  Prefactor     24.739        16.580        .68961E-06    .26871E-03
  22  norm          .10000E-03    10.585        .44321E-06** at limit **
  23  Normalizat    1.1838        .20358        .71084E-06    .16215E-03
  24  Prefactor     .82215        .11697       -.38581E-06    .22445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 32.0744
  Prefactor  = 19.2694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.327
  Prefactor  = 9.69989
  Prefactor  = 0.0001
  Prefactor  = 12.4372
  Prefactor  = 30.4925
  Prefactor  = 0.0001
  Prefactor  = 8.05517
  Prefactor  = 0.0001
  norm       = 4.90008
  Prefactor  = 0.0001
  norm       = 0.127285
  Prefactor  = 13.5525
  norm       = 0.000100001
  Prefactor  = 24.739
  norm       = 0.0001
  Normalizat = 1.1838
  Prefactor  = 0.822148
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.080     FROM HESSE     STATUS=OK           397 CALLS     3135 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2007        .86309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.074        39.589        .70759E-04   -1.4575    
   4  Prefactor     19.269        35.519        .91249E-04   -1.4830    
   5  Prefactor     .10000E-03    4.3392        .16509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8188        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.327        16.876        .12469E-03   -1.5065    
   9  Prefactor     9.6999        14.848        .12866E-03   -1.5085    
  10  Prefactor     .10000E-03    19.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.437        12.099        .11359E-03   -1.5002    
  12  Prefactor     30.492        24.724        .72559E-04   -1.4603    
  13  Prefactor     .10000E-03    3.2382        .14313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0552        181.78        .14131E-03   -1.5140    
  15  Prefactor     .10000E-03    5.8025        .25220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9001        4.2733        .14275E-03   -1.5265    
  17  Prefactor     .10000E-03    25.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .12728        .97892        .11803E-02   -1.5637    
  19  Prefactor     13.553        14.915        .10862E-03   -1.4972    
  20  norm          .10000E-03    1.5861        .13630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.739        16.694        .80530E-04   -1.4713    
  22  norm          .10000E-03    10.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1838        .24197        .27646E-03   -.87105    
  24  Prefactor     .82215        .13881        .19646E-03   -.98917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80177e-08
Minuit parameter uncertainties:
  1  6.99092e-06
  2  0.000266688
  3  39.6212
  4  35.5578
  5  1.05465e-06
  6  8.20349e-06
  7  0.000158513
  8  16.8838
  9  14.8533
  10  6.02259e-06
  11  12.1009
  12  24.7321
  13  9.10832e-06
  14  76.797
  15  0.000104759
  16  4.27361
  17  0.000160895
  18  0.705718
  19  14.919
  20  9.22355e-05
  21  16.6973
  22  3.02418e-05
  23  0.242198
  24  0.138864
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  9.108e-06  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.221e-01  1.389e-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.184e+00  2.422e-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: 6.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255296/likelihoodResults_247363201_247622401_4FGL_J2219.2-0342_daily_bin31.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) = 6659.08165553
delta logL = -0.00146914998732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6659.08018638
delta logL = 3.39787220582e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6736       1.0000          .0000       10.000    
     3 'Normalizat'    1.1838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82216       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=   6659.080     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.100        .14357E-01** at limit **
   2  Index         2.2318        6.8420        .50000        .18808E-06
   3  Normalizat    1.1838        .18461E-01    .27646E-03    .11029E-03
   4  Prefactor     .82215        .11208E-01    .19646E-03    .17105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.23175
  Normalizat = 1.1838
  Prefactor  = 0.822148
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.080     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    564.35        .14974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2318        6.0410        .50000       -.58674    
   3  Normalizat    1.1838        .84654E-01    .11058E-04   -.87105    
   4  Prefactor     .82215        .51401E-01    .39292E-04   -.98917    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12111e-08
Minuit parameter uncertainties:
  1  0.00123223
  2  1496.33
  3  0.0846636
  4  0.0514042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255296': 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) = 6659.08018501
delta logL = 1.37425377034e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.232e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.232e+00  1.496e+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.221e-01  5.140e-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.184e+00  8.466e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/255296/cmap_HighResolution_247363201_247622401_4FGL_J2219.2-0342_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-28 09:09:09.126894', job_id='255296', GAL2='0.82', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632845349.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='31' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:09:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 255296: <4FGL_J2219.2-0342_daily_bin31> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin31 334.823 -3.7102 247363201 247622401 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 :                                   660.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

