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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin585
RA = 334.823, Dec = -3.7102
tmin = 390960001, tmax = 391219201
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='258262', job_status='RUN', time_executed='2021-09-28 09:09:06.038820', time_epoch_executed='1632845346.04' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258262/ft1_4FGL_J2219.2-0342_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258262/ft2_4FGL_J2219.2-0342_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258262/ft1_4FGL_J2219.2-0342_daily_bin585.fits outfile=/scratch/kocevski/258262/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin585.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.47
user 4.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258262/ft1_filtered_4FGL_J2219.2-0342_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/258262/ft2_4FGL_J2219.2-0342_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/258262/ltcube_390960001_391219201_4FGL_J2219.2-0342_daily_bin585.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/258262/ft2_4FGL_J2219.2-0342_daily_bin585.fits
.....................!
real 11.65
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258262/ft1_filtered_4FGL_J2219.2-0342_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/258262/ft2_4FGL_J2219.2-0342_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/258262/ltcube_390960001_391219201_4FGL_J2219.2-0342_daily_bin585.fits outfile=/scratch/kocevski/258262/expmap_390960001_391219201_4FGL_J2219.2-0342_daily_bin585.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/258262/ltcube_390960001_391219201_4FGL_J2219.2-0342_daily_bin585.fits
.....................!
real 189.76
user 185.02
sys 4.41

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.868       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.956       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5092       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .64672       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.338       1.0000         .10000E-03   10000.    
    20 'norm      '    .14526E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.320       1.0000         .10000E-03   10000.    
    22 'norm      '    18.457       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70919       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97588       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=   5102.025     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2821 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95380       -.23733E-06** at limit **
   2  Prefactor     39.038        50.244        .17861E-05   -.98554E-04
   3  Prefactor     .10000E-03    17.013        .24741E-06** at limit **
   4  Prefactor     .10000E-03    16.134       -.52156E-06** at limit **
   5  Prefactor     .10000E-03    3.6205       -.99238E-07** at limit **
   6  Prefactor     11.529        8.8823        .78642E-07   -.52082E-05
   7  Prefactor     11.871        11.062        .12980E-06    .46633E-04
   8  Prefactor     7.3255        20.309        .26876E-06    .16999E-04
   9  Prefactor     .10000E-03    41.926       -.10817E-05** at limit **
  10  Prefactor     .10000E-03    12.913        .41783E-06** at limit **
  11  Prefactor     44.668        22.024       -.53913E-07   -.78188E-05
  12  Prefactor     .10000E-03    13.402       -.21744E-06** at limit **
  13  Prefactor     .10000E-03    9.5807        .46379E-07** at limit **
  14  Prefactor     80.921        112.66       -.59747E-06   -.46703E-04
  15  Prefactor     .10000E-03    1.8265        .10009E-07** at limit **
  16  norm          3.5111        4.4850        .21847E-05    .68614E-03
  17  Prefactor     .10000E-03    36.742        .13395E-05** at limit **
  18  norm          .64727        .85306        .73103E-08   -.22439E-03
  19  Prefactor     19.403        26.736        .25996E-05    .17986E-04
  20  norm          .10001E-03    2.5758        .91503E-06** at limit **
  21  Prefactor     34.320        21.030        .49703E-06   -.12988E-03
  22  norm          18.463        15.586        .96373E-07   -.91792E-05
  23  Normalizat    .70861        .24534       -.14883E-05    .16657E-04
  24  Prefactor     .97621        .13650        .32053E-06    .25397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.0382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5286
  Prefactor  = 11.8715
  Prefactor  = 7.32554
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 44.6676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.9212
  Prefactor  = 0.0001
  norm       = 3.51107
  Prefactor  = 0.000100001
  norm       = 0.647266
  Prefactor  = 19.4029
  norm       = 0.000100008
  Prefactor  = 34.3202
  norm       = 18.4626
  Normalizat = 0.708607
  Prefactor  = 0.976207
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.025     FROM HESSE     STATUS=OK           395 CALLS     3216 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95888        .68129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.038        49.927        .64119E-04   -1.4458    
   3  Prefactor     .10000E-03    17.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6437        .13272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.529        8.8916        .11800E-03   -1.5029    
   7  Prefactor     11.871        11.061        .11628E-03   -1.5019    
   8  Prefactor     7.3255        20.299        .14820E-03   -1.5167    
   9  Prefactor     .10000E-03    42.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.668        22.079        .59993E-04   -1.4370    
  12  Prefactor     .10000E-03    13.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.6485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     80.921        112.28        .44638E-04   -1.3906    
  15  Prefactor     .10000E-03    1.8386        .94231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5111        4.7509        .83845E-03   -1.5333    
  17  Prefactor     .10000E-03    36.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .64727        .80967        .73013E-03   -1.5547    
  19  Prefactor     19.403        27.487        .91079E-04   -1.4827    
  20  norm          .10001E-03    3.3363        .17523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.320        20.971        .68403E-04   -1.4536    
  22  norm          18.463        15.622        .93226E-04   -1.4848    
  23  Normalizat    .70861        .28616        .34749E-03   -1.0355    
  24  Prefactor     .97621        .16104        .18002E-03   -.93527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91788e-09
Minuit parameter uncertainties:
  1  6.44467e-06
  2  49.9808
  3  7.32676e-05
  4  6.73945e-05
  5  5.38413e-06
  6  8.89262
  7  11.0624
  8  20.3177
  9  0.000623191
  10  4.06776e-05
  11  22.0827
  12  4.67944e-05
  13  4.42864e-07
  14  112.573
  15  4.07299e-06
  16  4.75145
  17  0.000406654
  18  0.809685
  19  27.5047
  20  0.000322022
  21  20.9757
  22  15.6255
  23  0.286767
  24  0.161118
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.429e-07  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.762e-01  1.611e-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:  7.086e-01  2.868e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258262/likelihoodResults_390960001_391219201_4FGL_J2219.2-0342_daily_bin585.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) = 5102.02507548
delta logL = -0.000493979883686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5102.02458382
delta logL = -2.31258491112e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6556       1.0000          .0000       10.000    
     3 'Normalizat'    .70807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97652       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=   5102.025     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      279 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    20.369        .91985E-01** at limit **
   2  Index         1.6266        8.1025        .50000       -.84565E-06
   3  Normalizat    .70861        .10741E-01    .34749E-03   -.31107E-03
   4  Prefactor     .97621        .64959E-02    .18002E-03   -.57222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 1.62664
  Normalizat = 0.708606
  Prefactor  = 0.976206
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.025     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      310 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    2183.1        .33299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6266        5.3741        .50000       -.74052    
   3  Normalizat    .70861        .45543E-01    .13900E-04   -1.0355    
   4  Prefactor     .97621        .27566E-01    .36003E-04   -.93527    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.69982e-10
Minuit parameter uncertainties:
  1  0.0129325
  2  534.182
  3  0.0455449
  4  0.0275668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258262': 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) = 5102.0245775
delta logL = 4.00181579607e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.293e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.627e+00  5.342e+02  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.762e-01  2.757e-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:  7.086e-01  4.554e-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/258262/cmap_HighResolution_390960001_391219201_4FGL_J2219.2-0342_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-28 09:18:52.063256', job_id='258262', GAL2='0.98', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632845932.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='585' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:18:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 258262: <4FGL_J2219.2-0342_daily_bin585> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin585> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:40 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:41 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:05:41 2021
Terminated at Tue Sep 28 09:18:52 2021
Results reported at Tue Sep 28 09:18:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin585 334.823 -3.7102 390960001 391219201 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 :                                   587.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             285.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            792 sec.

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

