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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1541
RA = 334.823, Dec = -3.7102
tmin = 638755201, tmax = 639014401
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='262794', job_status='RUN', time_executed='2021-09-28 09:24:29.059448', time_epoch_executed='1632846269.06' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262794/ft1_4FGL_J2219.2-0342_daily_bin1541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262794/ft2_4FGL_J2219.2-0342_daily_bin1541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262794/ft1_4FGL_J2219.2-0342_daily_bin1541.fits outfile=/scratch/kocevski/262794/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1541.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=638755201.0 tmax=639014401.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 5.35
user 5.06
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262794/ft1_filtered_4FGL_J2219.2-0342_daily_bin1541.fits" evtable="EVENTS" scfile=/scratch/kocevski/262794/ft2_4FGL_J2219.2-0342_daily_bin1541.fits sctable="SC_DATA" outfile=/scratch/kocevski/262794/ltcube_638755201_639014401_4FGL_J2219.2-0342_daily_bin1541.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/262794/ft2_4FGL_J2219.2-0342_daily_bin1541.fits
.....................!
real 11.55
user 11.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262794/ft1_filtered_4FGL_J2219.2-0342_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/262794/ft2_4FGL_J2219.2-0342_daily_bin1541.fits sctable="SC_DATA" expcube=/scratch/kocevski/262794/ltcube_638755201_639014401_4FGL_J2219.2-0342_daily_bin1541.fits outfile=/scratch/kocevski/262794/expmap_638755201_639014401_4FGL_J2219.2-0342_daily_bin1541.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/262794/ltcube_638755201_639014401_4FGL_J2219.2-0342_daily_bin1541.fits
.....................!
real 191.49
user 185.78
sys 5.39

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/262794/ft1_filtered_4FGL_J2219.2-0342_daily_bin1541.fits scfile=/scratch/kocevski/262794/ft2_4FGL_J2219.2-0342_daily_bin1541.fits outfile=/scratch/kocevski/262794/cmap_638755201_639014401_4FGL_J2219.2-0342_daily_bin1541.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262794/ft1_filtered_4FGL_J2219.2-0342_daily_bin1541.fits scfile=/scratch/kocevski/262794/ft2_4FGL_J2219.2-0342_daily_bin1541.fits outfile=/scratch/kocevski/262794/cmap_HighResolution_638755201_639014401_4FGL_J2219.2-0342_daily_bin1541.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262794/ft1_filtered_4FGL_J2219.2-0342_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/262794/ft2_4FGL_J2219.2-0342_daily_bin1541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262794/Model_4FGL_J2219.2-0342_daily_bin1541.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/262794/ft1_filtered_4FGL_J2219.2-0342_daily_bin1541.fits.....................!
real 66.40
user 64.78
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8328       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45604E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.389       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.759       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9019       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11179E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .82210       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.663       1.0000         .10000E-03   10000.    
    20 'norm      '    .13640E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9304       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5125       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64387       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=   6751.627     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2779 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7825        .25358E-06** at limit **
   2  Prefactor     2.2380        205.99       -.53753E-05    .44328E-05
   3  Prefactor     .10000E-03    13.055       -.19316E-05** at limit **
   4  Prefactor     .10000E-03    97.333       -.10113E-03** at limit **
   5  Prefactor     8.8324        7.5012        .54422E-07    .55670E-03
   6  Prefactor     .10017E-03    3.3597        .14114E-05** at limit **
   7  Prefactor     .10000E-03    6.3666        .93315E-07** at limit **
   8  Prefactor     34.034        28.190        .38120E-05    .27174E-03
   9  Prefactor     19.389        14.673       -.84532E-08    .23917E-04
  10  Prefactor     .10000E-03    9.0529        .85059E-06** at limit **
  11  Prefactor     41.768        16.502       -.11609E-05   -.45280E-03
  12  Prefactor     2.1680        110.75       -.61290E-04   -.15464E-04
  13  Prefactor     5.8989        11.945       -.12403E-05   -.29461E-03
  14  Prefactor     .10000E-03    66.889        .86162E-04** at limit **
  15  Prefactor     .10009E-03    2.2714        .74954E-06** at limit **
  16  norm          .10000E-03    1.7492        .11023E-06** at limit **
  17  Prefactor     .10000E-03    29.554       -.19003E-04** at limit **
  18  norm          .82211        .87734       -.14973E-06   -.13222E-02
  19  Prefactor     40.698        23.376       -.22277E-05   -.84321E-03
  20  norm          .10000E-03    1.0589        .66675E-06** at limit **
  21  Prefactor     8.9312        9.4610       -.22223E-06   -.95530E-04
  22  norm          .10000E-03    3.5305       -.66103E-07** at limit **
  23  Normalizat    1.5123        .21943        .87160E-06   -.33625E-03
  24  Prefactor     .64407        .11829        .60199E-06   -.20982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.23804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.83241
  Prefactor  = 0.000100175
  Prefactor  = 0.0001
  Prefactor  = 34.0337
  Prefactor  = 19.3889
  Prefactor  = 0.0001
  Prefactor  = 41.7681
  Prefactor  = 2.16804
  Prefactor  = 5.89889
  Prefactor  = 0.0001
  Prefactor  = 0.000100094
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.822106
  Prefactor  = 40.6981
  norm       = 0.000100002
  Prefactor  = 8.93121
  norm       = 0.0001
  Normalizat = 1.51226
  Prefactor  = 0.644069
 **********
 **   18 **HESSE 
 **********

 FCN=   6751.627     FROM HESSE     STATUS=OK           395 CALLS     3174 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8222        .21345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2380        205.90        .27459E-03   -1.5409    
   3  Prefactor     .10000E-03    13.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    97.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8324        7.4944        .13487E-03   -1.5113    
   6  Prefactor     .10017E-03    21.596        .28542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.034        28.138        .68687E-04   -1.4541    
   9  Prefactor     19.389        14.667        .90959E-04   -1.4827    
  10  Prefactor     .10000E-03    9.0689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.768        16.544        .62033E-04   -1.4414    
  12  Prefactor     2.1680        111.35        .27762E-03   -1.5413    
  13  Prefactor     5.8989        11.530        .16530E-03   -1.5222    
  14  Prefactor     .10000E-03    66.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    19.800        .22688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7857        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .82211        .83767        .76638E-03   -1.5527    
  19  Prefactor     40.698        19.307        .62860E-04   -1.4431    
  20  norm          .10000E-03    3.1373        .13399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9312        9.4573        .13412E-03   -1.5110    
  22  norm          .10000E-03    3.5346        .15078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5123        .25806        .26650E-03   -.77434    
  24  Prefactor     .64407        .13964        .22309E-03   -1.0576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43304e-08
Minuit parameter uncertainties:
  1  1.02449e-06
  2  43.0861
  3  3.18827e-06
  4  0.000347276
  5  7.49517
  6  0.00388942
  7  3.9041e-06
  8  28.149
  9  14.6695
  10  4.3926e-07
  11  16.5455
  12  31.1355
  13  11.5339
  14  0.000130864
  15  0.00273251
  16  6.3942e-06
  17  1.1475e-05
  18  0.837678
  19  19.3104
  20  0.000139863
  21  9.45892
  22  2.15599e-06
  23  0.25828
  24  0.139713
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  6.441e-01  1.397e-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.512e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262794/likelihoodResults_638755201_639014401_4FGL_J2219.2-0342_daily_bin1541.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): 0
logL (Free Index) = 6751.56478156
delta logL = 0.0626720871041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6751.55943298
delta logL = 0.0680206684465

Fit tolerance = 1e-08

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

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

 FCN=   6751.559     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      223 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0617        273.84        .44660E-02    .23636E-03
   2  Index         3.2012        6.2936        .24431        .60796E-04
   3  Normalizat    1.4953        .60298E-01    .60545E-01    .52377E-05
   4  Prefactor     .65020        .34716E-01    .41736E-01    .20541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.06168
  Index      = 3.2012
  Normalizat = 1.4953
  Prefactor  = 0.650204
 **********
 **   18 **HESSE 
 **********

 FCN=   6751.559     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0617        11.857        .17864E-03   -1.5258    
   2  Index         3.2012        1.7185        .14028E-01   -.36801    
   3  Normalizat    1.4953        .24773        .26776E-03   -.77910    
   4  Prefactor     .65020        .13931        .22212E-03   -1.0551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30508e-11
Minuit parameter uncertainties:
  1  11.8623
  2  1.75997
  3  0.247927
  4  0.139384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262794': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6751.55943153
delta logL = 0.0680221181383

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.062e+00  1.186e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.201e+00  1.760e+00  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:  6.502e-01  1.394e-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.495e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/262794/cmap_HighResolution_638755201_639014401_4FGL_J2219.2-0342_daily_bin1541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-28 09:35:54.743208', job_id='262794', GAL2='0.65', fit_tolerance='1e-08', EG2='1.50', EG='1.51', time_epoch_completed='1632846954.74', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='6.80e-02', ts2='0.45', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1541' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 262794: <4FGL_J2219.2-0342_daily_bin1541> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1541> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:25 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:27 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:27 2021
Terminated at Tue Sep 28 09:35:55 2021
Results reported at Tue Sep 28 09:35:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1541 334.823 -3.7102 638755201 639014401 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 :                                   684.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             259.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

