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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin758
RA = 334.823, Dec = -3.7102
tmin = 435801601, tmax = 436060801
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='259553', job_status='RUN', time_executed='2021-09-28 09:14:14.283180', time_epoch_executed='1632845654.28' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259553/ft1_4FGL_J2219.2-0342_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259553/ft2_4FGL_J2219.2-0342_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259553/ft1_4FGL_J2219.2-0342_daily_bin758.fits outfile=/scratch/kocevski/259553/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin758.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=435801601.0 tmax=436060801.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.57
user 5.27
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259553/ft1_filtered_4FGL_J2219.2-0342_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/259553/ft2_4FGL_J2219.2-0342_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/259553/ltcube_435801601_436060801_4FGL_J2219.2-0342_daily_bin758.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/259553/ft2_4FGL_J2219.2-0342_daily_bin758.fits
.....................!
real 12.18
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259553/ft1_filtered_4FGL_J2219.2-0342_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/259553/ft2_4FGL_J2219.2-0342_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/259553/ltcube_435801601_436060801_4FGL_J2219.2-0342_daily_bin758.fits outfile=/scratch/kocevski/259553/expmap_435801601_436060801_4FGL_J2219.2-0342_daily_bin758.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/259553/ltcube_435801601_436060801_4FGL_J2219.2-0342_daily_bin758.fits
.....................!
real 190.84
user 185.20
sys 5.26

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/259553/ft1_filtered_4FGL_J2219.2-0342_daily_bin758.fits scfile=/scratch/kocevski/259553/ft2_4FGL_J2219.2-0342_daily_bin758.fits outfile=/scratch/kocevski/259553/cmap_435801601_436060801_4FGL_J2219.2-0342_daily_bin758.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259553/ft1_filtered_4FGL_J2219.2-0342_daily_bin758.fits scfile=/scratch/kocevski/259553/ft2_4FGL_J2219.2-0342_daily_bin758.fits outfile=/scratch/kocevski/259553/cmap_HighResolution_435801601_436060801_4FGL_J2219.2-0342_daily_bin758.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259553/ft1_filtered_4FGL_J2219.2-0342_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/259553/ft2_4FGL_J2219.2-0342_daily_bin758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259553/Model_4FGL_J2219.2-0342_daily_bin758.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/259553/ft1_filtered_4FGL_J2219.2-0342_daily_bin758.fits.....................!
real 67.04
user 65.64
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4610       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.929       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7369       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6452       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.706       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.505       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2447       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32042       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    226.35       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    159.91       1.0000         .10000E-03   10000.    
    18 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3754       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79439       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=   6583.410     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2752 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4610        1.9840        .84220E-07   -.18716E-03
   2  Prefactor     42.916        34.284       -.14724E-06   -.11544E-04
   3  Prefactor     6.7285        25.747       -.34625E-06   -.27847E-04
   4  Prefactor     .10000E-03    56.576        .14075E-05** at limit **
   5  Prefactor     13.576        7.5761        .46575E-09   -.97233E-04
   6  Prefactor     4.6465        6.7016       -.31913E-06   -.27734E-03
   7  Prefactor     13.704        12.052        .35656E-08   -.11404E-03
   8  Prefactor     14.189        16.163        .34325E-07   -.44884E-04
   9  Prefactor     35.499        24.516       -.56218E-07   -.10447E-03
  10  Prefactor     5.2398        20.439        .14487E-07   -.68019E-04
  11  Prefactor     .29540        186.35       -.14436E-04   -.20507E-05
  12  Prefactor     .10000E-03    19.767        .50628E-06** at limit **
  13  Prefactor     .10000E-03    10.053        .10200E-05** at limit **
  14  Prefactor     226.42        112.53       -.63045E-06   -.36441E-04
  15  Prefactor     .10000E-03    3.5597        .10699E-05** at limit **
  16  norm          .10000E-03    2.3490       -.37790E-06** at limit **
  17  Prefactor     159.89        111.51       -.80059E-06   -.69857E-05
  18  norm          .10000E-03    1.1193       -.24735E-05** at limit **
  19  Prefactor     .10000E-03    20.413       -.66162E-07** at limit **
  20  norm          .10000E-03    1.0992       -.62506E-06** at limit **
  21  Prefactor     .10000E-03    41.238        .19599E-06** at limit **
  22  norm          .10000E-03    18.225        .85978E-07** at limit **
  23  Normalizat    1.3759        .25508       -.13908E-05   -.11262E-03
  24  Prefactor     .79417        .13503        .69600E-07   -.10122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46105
  Prefactor  = 42.9158
  Prefactor  = 6.72852
  Prefactor  = 0.000100001
  Prefactor  = 13.5764
  Prefactor  = 4.6465
  Prefactor  = 13.7037
  Prefactor  = 14.189
  Prefactor  = 35.4994
  Prefactor  = 5.2398
  Prefactor  = 0.295398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 226.419
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 159.885
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.37586
  Prefactor  = 0.794169
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.410     FROM HESSE     STATUS=OK           405 CALLS     3157 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4610        1.9538        .12498E-03   -1.5466    
   2  Prefactor     42.916        34.265        .61185E-04   -1.4397    
   3  Prefactor     6.7285        25.728        .15459E-03   -1.5189    
   4  Prefactor     .10000E-03    56.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.576        7.5768        .10869E-03   -1.4971    
   6  Prefactor     4.6465        6.7412        .18673E-03   -1.5277    
   7  Prefactor     13.704        12.049        .10819E-03   -1.4967    
   8  Prefactor     14.189        16.165        .10632E-03   -1.4954    
   9  Prefactor     35.499        24.285        .67256E-04   -1.4516    
  10  Prefactor     5.2398        20.244        .17552E-03   -1.5250    
  11  Prefactor     .29540        192.08        .48841E-02   -1.5599    
  12  Prefactor     .10000E-03    19.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     226.42        113.28        .13446E-03   -1.2687    
  15  Prefactor     .10000E-03    3.6770        .15083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4077        .12214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     159.89        111.71        .15944E-03   -1.3172    
  18  norm          .10000E-03    1.1526        .12657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6085        .16130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    42.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    18.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3759        .30591        .29912E-03   -.81329    
  24  Prefactor     .79417        .16220        .21827E-03   -.99944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48084e-08
Minuit parameter uncertainties:
  1  1.95388
  2  34.2809
  3  25.7707
  4  0.000527489
  5  7.57733
  6  6.7423
  7  12.0511
  8  16.1702
  9  24.2914
  10  20.2705
  11  15.1114
  12  0.000113632
  13  0.000138511
  14  113.393
  15  9.63808e-05
  16  5.23121e-05
  17  111.862
  18  1.53423e-05
  19  0.000137157
  20  2.45583e-05
  21  6.06547e-05
  22  0.000122383
  23  0.30632
  24  0.162298
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.385e-04  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:  7.942e-01  1.623e-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.376e+00  3.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259553/likelihoodResults_435801601_436060801_4FGL_J2219.2-0342_daily_bin758.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) = 6583.41052127
delta logL = -0.000465994968181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6583.4100554
delta logL = -1.15855073091e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7146       1.0000          .0000       10.000    
     3 'Normalizat'    1.3757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79426       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=   6583.410     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6250.8        .18142E-02** at limit **
   2  Index         2.7494        7.0944        .50000       -.30207E-04
   3  Normalizat    1.3759        .23390        .29911E-03   -.12687E-03
   4  Prefactor     .79417        .13426        .21827E-03   -.32760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.74936
  Normalizat = 1.37587
  Prefactor  = 0.794167
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.410     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    11.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7494        6.3666        .50000       -.46691    
   3  Normalizat    1.3759        .27359        .11964E-04   -.81329    
   4  Prefactor     .79417        .15750        .43654E-04   -.99944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63861e-09
Minuit parameter uncertainties:
  1  0.00070032
  2  4.56956
  3  0.27388
  4  0.157587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259553': 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) = 6583.41005483
delta logL = 4.49610524811e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  7.003e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.749e+00  4.570e+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:  7.942e-01  1.576e-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.376e+00  2.739e-01  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/259553/cmap_HighResolution_435801601_436060801_4FGL_J2219.2-0342_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-28 09:25:30.349939', job_id='259553', GAL2='0.79', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632846330.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='758' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 259553: <4FGL_J2219.2-0342_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin758 334.823 -3.7102 435801601 436060801 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 :                                   676.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

