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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin91
RA = 334.823, Dec = -3.7102
tmin = 262915201, tmax = 263174401
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='255390', job_status='RUN', time_executed='2021-09-28 08:58:50.197754', time_epoch_executed='1632844730.2' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255390

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255390/ft1_4FGL_J2219.2-0342_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255390/ft2_4FGL_J2219.2-0342_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255390/ft1_4FGL_J2219.2-0342_daily_bin91.fits outfile=/scratch/kocevski/255390/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin91.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=262915201.0 tmax=263174401.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.29
user 1.12
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255390/ft1_filtered_4FGL_J2219.2-0342_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/255390/ft2_4FGL_J2219.2-0342_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/255390/ltcube_262915201_263174401_4FGL_J2219.2-0342_daily_bin91.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/255390/ft2_4FGL_J2219.2-0342_daily_bin91.fits
.....................!
real 11.00
user 10.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255390/ft1_filtered_4FGL_J2219.2-0342_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/255390/ft2_4FGL_J2219.2-0342_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/255390/ltcube_262915201_263174401_4FGL_J2219.2-0342_daily_bin91.fits outfile=/scratch/kocevski/255390/expmap_262915201_263174401_4FGL_J2219.2-0342_daily_bin91.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/255390/ltcube_262915201_263174401_4FGL_J2219.2-0342_daily_bin91.fits
.....................!
real 190.36
user 185.83
sys 4.17

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/255390/ft1_filtered_4FGL_J2219.2-0342_daily_bin91.fits scfile=/scratch/kocevski/255390/ft2_4FGL_J2219.2-0342_daily_bin91.fits outfile=/scratch/kocevski/255390/cmap_262915201_263174401_4FGL_J2219.2-0342_daily_bin91.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/255390/ft1_filtered_4FGL_J2219.2-0342_daily_bin91.fits scfile=/scratch/kocevski/255390/ft2_4FGL_J2219.2-0342_daily_bin91.fits outfile=/scratch/kocevski/255390/cmap_HighResolution_262915201_263174401_4FGL_J2219.2-0342_daily_bin91.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255390/ft1_filtered_4FGL_J2219.2-0342_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/255390/ft2_4FGL_J2219.2-0342_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255390/Model_4FGL_J2219.2-0342_daily_bin91.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/255390/ft1_filtered_4FGL_J2219.2-0342_daily_bin91.fits.....................!
real 72.28
user 70.94
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7758       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.072       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1634       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3339       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14001E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5499       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28245E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6396       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5014       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .28727       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.610       1.0000         .10000E-03   10000.    
    20 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5071       1.0000         .10000E-03   10000.    
    22 'norm      '    5.6089       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .59045       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1286       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=   7899.619     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2773 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95775       -.15156E-06** at limit **
   2  Prefactor     6.7854        22.912       -.10124E-05   -.15200E-03
   3  Prefactor     .10000E-03    10.685       -.58044E-07** at limit **
   4  Prefactor     17.101        41.303        .61817E-06    .77298E-04
   5  Prefactor     4.1605        7.8277        .20466E-06    .13669E-03
   6  Prefactor     .10000E-03    3.7321       -.50967E-07** at limit **
   7  Prefactor     9.3442        9.7902       -.23831E-06   -.16076E-03
   8  Prefactor     .10000E-03    4.6360        .69654E-10** at limit **
   9  Prefactor     1.8441        10.262        .29224E-05   -.72307E-03
  10  Prefactor     .10001E-03    8.6077       -.33069E-06** at limit **
  11  Prefactor     9.5463        9.8146        .82228E-07    .62353E-05
  12  Prefactor     .10000E-03    7.6183       -.28364E-07** at limit **
  13  Prefactor     3.3881        8.9182        .47673E-06    .15999E-03
  14  Prefactor     .10001E-03    357.32       -.22664E-05** at limit **
  15  Prefactor     5.6409        3.7393       -.13902E-07   -.12474E-03
  16  norm          2.4941        3.0148        .12467E-07   -.25344E-03
  17  Prefactor     .10000E-03    37.580       -.23249E-06** at limit **
  18  norm          .28721        .38987        .15191E-07    .14516E-05
  19  Prefactor     11.625        12.737       -.23040E-05   -.72705E-03
  20  norm          .10000E-03    .93400        .10304E-05** at limit **
  21  Prefactor     7.5061        7.7272        .30946E-06    .27939E-03
  22  norm          5.6113        7.3217       -.12611E-06   -.16688E-03
  23  Normalizat    .59018        .19158       -.61472E-06   -.18520E-03
  24  Prefactor     1.1286        .11462        .13661E-06   -.28253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.78538
  Prefactor  = 0.0001
  Prefactor  = 17.1012
  Prefactor  = 4.16047
  Prefactor  = 0.0001
  Prefactor  = 9.3442
  Prefactor  = 0.0001
  Prefactor  = 1.84413
  Prefactor  = 0.000100007
  Prefactor  = 9.5463
  Prefactor  = 0.0001
  Prefactor  = 3.38814
  Prefactor  = 0.000100006
  Prefactor  = 5.64089
  norm       = 2.49407
  Prefactor  = 0.0001
  norm       = 0.287208
  Prefactor  = 11.6246
  norm       = 0.0001
  Prefactor  = 7.50613
  norm       = 5.61129
  Normalizat = 0.590184
  Prefactor  = 1.12862
 **********
 **   18 **HESSE 
 **********

 FCN=   7899.619     FROM HESSE     STATUS=OK           411 CALLS     3184 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9132        .16775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.7854        23.123        .15414E-03   -1.5187    
   3  Prefactor     .10000E-03    10.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.101        40.956        .96933E-04   -1.4881    
   5  Prefactor     4.1605        7.7509        .19753E-03   -1.5300    
   6  Prefactor     .10000E-03    3.8009        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3442        9.7694        .13118E-03   -1.5097    
   8  Prefactor     .10000E-03    4.6409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8441        27.539        .15334E-02   -1.5436    
  10  Prefactor     .10001E-03    73.233        .48824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5463        9.8188        .12968E-03   -1.5090    
  12  Prefactor     .10000E-03    7.6288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3881        8.9331        .21995E-03   -1.5340    
  14  Prefactor     .10001E-03    366.82        .39786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6409        3.7201        .12896E-03   -1.5233    
  16  norm          2.4941        2.9992        .15911E-03   -1.5392    
  17  Prefactor     .10000E-03    37.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .28721        .35052        .62976E-03   -1.5601    
  19  Prefactor     11.625        14.508        .11757E-03   -1.5026    
  20  norm          .10000E-03    1.8575        .14777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5061        7.7578        .14637E-03   -1.5160    
  22  norm          5.6113        7.3276        .16963E-03   -1.5234    
  23  Normalizat    .59018        .21431        .35650E-03   -1.0840    
  24  Prefactor     1.1286        .13152        .16790E-03   -.88557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05742e-09
Minuit parameter uncertainties:
  1  2.71255e-05
  2  23.1539
  3  8.58039e-06
  4  41.0235
  5  7.75279
  6  1.25636e-06
  7  9.77103
  8  7.06151e-07
  9  14.2603
  10  0.00148304
  11  9.82047
  12  5.49983e-06
  13  8.93663
  14  0.00296637
  15  3.72025
  16  2.99936
  17  0.000118024
  18  0.350524
  19  14.5128
  20  9.63707e-06
  21  7.75883
  22  7.3288
  23  0.214614
  24  0.13156
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.388e+00  8.937e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.129e+00  1.316e-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:  5.902e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255390/likelihoodResults_262915201_263174401_4FGL_J2219.2-0342_daily_bin91.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) = 7899.60347831
delta logL = 0.0155173082185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7899.60081422
delta logL = 0.0181813959234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8152       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0954       1.0000          .0000       10.000    
     3 'Normalizat'    .58304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1317       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=   7899.601     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      270 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8166        9.7180        .24242E-03    .73346E-03
   2  Index         3.0945        2.5628        .91969E-02    .23091E-03
   3  Normalizat    .58298        .20896        .35859E-03    .65304E-03
   4  Prefactor     1.1317        .13121        .16770E-03    .94984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8166
  Index      = 3.09452
  Normalizat = 0.582983
  Prefactor  = 1.13173
 **********
 **   18 **HESSE 
 **********

 FCN=   7899.601     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8166        8.7079        .96968E-05   -1.5372    
   2  Index         3.0945        2.3201        .36788E-03   -.39098    
   3  Normalizat    .58298        .20889        .14343E-04   -1.0871    
   4  Prefactor     1.1317        .13104        .33540E-04   -.88459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55672e-09
Minuit parameter uncertainties:
  1  8.71183
  2  2.43052
  3  0.20917
  4  0.131081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255390': 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) = 7899.60081401
delta logL = 0.0181816074919

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.817e+00  8.712e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.095e+00  2.431e+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:  1.132e+00  1.311e-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:  5.830e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/255390/cmap_HighResolution_262915201_263174401_4FGL_J2219.2-0342_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 09:10:58.128756', job_id='255390', GAL2='1.13', fit_tolerance='1e-08', EG2='0.58', EG='0.59', time_epoch_completed='1632845458.13', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.82e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='91' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:10:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 255390: <4FGL_J2219.2-0342_daily_bin91> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin91 334.823 -3.7102 262915201 263174401 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 :                                   728.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

