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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin729
RA = 334.823, Dec = -3.7102
tmin = 428284801, tmax = 428544001
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='259512', job_status='RUN', time_executed='2021-09-28 09:13:22.279591', time_epoch_executed='1632845602.28' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259512/ft1_4FGL_J2219.2-0342_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259512/ft2_4FGL_J2219.2-0342_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259512/ft1_4FGL_J2219.2-0342_daily_bin729.fits outfile=/scratch/kocevski/259512/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin729.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=428284801.0 tmax=428544001.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 6.10
user 5.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259512/ft1_filtered_4FGL_J2219.2-0342_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/259512/ft2_4FGL_J2219.2-0342_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/259512/ltcube_428284801_428544001_4FGL_J2219.2-0342_daily_bin729.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/259512/ft2_4FGL_J2219.2-0342_daily_bin729.fits
.....................!
real 12.01
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259512/ft1_filtered_4FGL_J2219.2-0342_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/259512/ft2_4FGL_J2219.2-0342_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/259512/ltcube_428284801_428544001_4FGL_J2219.2-0342_daily_bin729.fits outfile=/scratch/kocevski/259512/expmap_428284801_428544001_4FGL_J2219.2-0342_daily_bin729.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/259512/ltcube_428284801_428544001_4FGL_J2219.2-0342_daily_bin729.fits
.....................!
real 189.83
user 185.35
sys 4.16

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/259512/ft1_filtered_4FGL_J2219.2-0342_daily_bin729.fits scfile=/scratch/kocevski/259512/ft2_4FGL_J2219.2-0342_daily_bin729.fits outfile=/scratch/kocevski/259512/cmap_428284801_428544001_4FGL_J2219.2-0342_daily_bin729.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259512/ft1_filtered_4FGL_J2219.2-0342_daily_bin729.fits scfile=/scratch/kocevski/259512/ft2_4FGL_J2219.2-0342_daily_bin729.fits outfile=/scratch/kocevski/259512/cmap_HighResolution_428284801_428544001_4FGL_J2219.2-0342_daily_bin729.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259512/ft1_filtered_4FGL_J2219.2-0342_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/259512/ft2_4FGL_J2219.2-0342_daily_bin729.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259512/Model_4FGL_J2219.2-0342_daily_bin729.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/259512/ft1_filtered_4FGL_J2219.2-0342_daily_bin729.fits......................!
real 35.17
user 33.92
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9076       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8996       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5118       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.481       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    79.029       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.9551       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6329       1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.070       1.0000         .10000E-03   10000.    
    20 'norm      '    .10799E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .42770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93094       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=   2563.462     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2681 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9069        2.8707        .19550E-06   -.36161E-04
   2  Prefactor     6.6086        141.92       -.63759E-05    .89135E-05
   3  Prefactor     32.793        41.658       -.33397E-06    .32819E-04
   4  Prefactor     7.9600        429.42       -.24909E-04   -.75841E-05
   5  Prefactor     2.5074        21.523        .58018E-05    .16992E-04
   6  Prefactor     18.737        14.178       -.75339E-06   -.18975E-04
   7  Prefactor     .10000E-03    9.5824       -.23569E-06** at limit **
   8  Prefactor     .10000E-03    21.974       -.33149E-06** at limit **
   9  Prefactor     .10000E-03    17.444       -.63300E-06** at limit **
  10  Prefactor     .10000E-03    15.015       -.48889E-06** at limit **
  11  Prefactor     11.494        26.690       -.10827E-05   -.14303E-04
  12  Prefactor     .10000E-03    73.307       -.10847E-05** at limit **
  13  Prefactor     .10000E-03    11.454       -.60031E-06** at limit **
  14  Prefactor     79.252        147.16       -.24774E-05    .20970E-04
  15  Prefactor     .10000E-03    5.6073       -.60144E-06** at limit **
  16  norm          4.9570        5.5648       -.68994E-07   -.57077E-04
  17  Prefactor     .10000E-03    43.759       -.17548E-06** at limit **
  18  norm          1.6333        1.7487        .24583E-06   -.35267E-03
  19  Prefactor     82.119        43.137       -.30350E-05   -.38962E-03
  20  norm          .10000E-03    3.4709        .42022E-05** at limit **
  21  Prefactor     .10000E-03    25.726        .43479E-06** at limit **
  22  norm          .10000E-03    8.7919       -.55056E-06** at limit **
  23  Normalizat    .42766        .37815        .69168E-05   -.56730E-04
  24  Prefactor     .93094        .19453       -.12033E-05   -.48485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90686
  Prefactor  = 6.60857
  Prefactor  = 32.7928
  Prefactor  = 7.96005
  Prefactor  = 2.50743
  Prefactor  = 18.7367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.2519
  Prefactor  = 0.0001
  norm       = 4.95699
  Prefactor  = 0.0001
  norm       = 1.63327
  Prefactor  = 82.119
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.427656
  Prefactor  = 0.930942
 **********
 **   18 **HESSE 
 **********

 FCN=   2563.462     FROM HESSE     STATUS=OK           395 CALLS     3076 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9069        2.8530        .79948E-04   -1.5367    
   2  Prefactor     6.6086        137.56        .15693E-03   -1.5194    
   3  Prefactor     32.793        41.559        .35017E-03   -1.4562    
   4  Prefactor     7.9600        399.87        .14266E-03   -1.5144    
   5  Prefactor     2.5074        20.203        .25781E-03   -1.5391    
   6  Prefactor     18.737        14.105        .92523E-04   -1.4842    
   7  Prefactor     .10000E-03    9.5972        .15307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.494        26.569        .11823E-03   -1.5030    
  12  Prefactor     .10000E-03    73.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.479        .16735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     79.252        145.68        .22588E-03   -1.3925    
  15  Prefactor     .10000E-03    5.6596        .11703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9570        5.5507        .11979E-03   -1.5263    
  17  Prefactor     .10000E-03    43.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6333        1.7434        .65280E-04   -1.5452    
  19  Prefactor     82.119        44.590        .22168E-03   -1.3893    
  20  norm          .10000E-03    3.5498        .18276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.8051        .14662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .42766        .41171        .41441E-03   -1.1590    
  24  Prefactor     .93094        .21971        .16771E-03   -.95068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33848e-10
Minuit parameter uncertainties:
  1  2.85315
  2  60.4596
  3  41.596
  4  113.648
  5  14.2411
  6  14.1074
  7  1.41456e-05
  8  1.65148e-05
  9  8.17218e-07
  10  2.15769e-05
  11  26.5968
  12  0.000137979
  13  6.47618e-06
  14  146.345
  15  2.10117e-06
  16  5.55132
  17  6.16926e-05
  18  1.74348
  19  44.6081
  20  9.00832e-06
  21  1.67675e-05
  22  1.37132e-07
  23  0.414675
  24  0.219923
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  6.476e-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:  9.309e-01  2.199e-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:  4.277e-01  4.147e-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: 2.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259512/likelihoodResults_428284801_428544001_4FGL_J2219.2-0342_daily_bin729.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) = 2563.46244166
delta logL = -0.000414918724346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2563.4620267
delta logL = 3.91764842789e-08

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.6654       1.0000          .0000       10.000    
     3 'Normalizat'    .42766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93095       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=   2563.462     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      254 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.803        .16924E-01** at limit **
   2  Index         2.2833        5.8495        .50000        .43758E-07
   3  Normalizat    .42766        .18311E-01    .41450E-03   -.17595E-04
   4  Prefactor     .93094        .10797E-01    .16770E-03   -.42837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.2833
  Normalizat = 0.427658
  Prefactor  = 0.930941
 **********
 **   18 **HESSE 
 **********

 FCN=   2563.462     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    701.16        .18030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2833        8.5065        .50000       -.57441    
   3  Normalizat    .42766        .58136E-01    .16580E-04   -1.1590    
   4  Prefactor     .93094        .34282E-01    .33541E-04   -.95068    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1983e-09
Minuit parameter uncertainties:
  1  0.00163825
  2  1364.7
  3  0.0581444
  4  0.0342831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259512': 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) = 2563.46202611
delta logL = 6.25521352049e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.638e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.283e+00  1.365e+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:  9.309e-01  3.428e-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:  4.277e-01  5.814e-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/259512/cmap_HighResolution_428284801_428544001_4FGL_J2219.2-0342_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', job_status='DONE', photon_flux_upper_limit='2.01e-07', time_completed='2021-09-28 09:20:53.401336', job_id='259512', GAL2='0.93', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1632846053.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='729' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 259512: <4FGL_J2219.2-0342_daily_bin729> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin729 334.823 -3.7102 428284801 428544001 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 :                                   450.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            633 sec.

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

