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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1180
RA = 334.823, Dec = -3.7102
tmin = 545184001, tmax = 545443201
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='261251', job_status='RUN', time_executed='2021-09-28 09:18:24.481538', time_epoch_executed='1632845904.48' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261251/ft1_4FGL_J2219.2-0342_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261251/ft2_4FGL_J2219.2-0342_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261251/ft1_4FGL_J2219.2-0342_daily_bin1180.fits outfile=/scratch/kocevski/261251/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1180.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=545184001.0 tmax=545443201.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 3.98
user 3.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261251/ft1_filtered_4FGL_J2219.2-0342_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/261251/ft2_4FGL_J2219.2-0342_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/261251/ltcube_545184001_545443201_4FGL_J2219.2-0342_daily_bin1180.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/261251/ft2_4FGL_J2219.2-0342_daily_bin1180.fits
.....................!
real 11.88
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261251/ft1_filtered_4FGL_J2219.2-0342_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/261251/ft2_4FGL_J2219.2-0342_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/261251/ltcube_545184001_545443201_4FGL_J2219.2-0342_daily_bin1180.fits outfile=/scratch/kocevski/261251/expmap_545184001_545443201_4FGL_J2219.2-0342_daily_bin1180.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/261251/ltcube_545184001_545443201_4FGL_J2219.2-0342_daily_bin1180.fits
.....................!
real 191.39
user 186.02
sys 5.05

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/261251/ft1_filtered_4FGL_J2219.2-0342_daily_bin1180.fits scfile=/scratch/kocevski/261251/ft2_4FGL_J2219.2-0342_daily_bin1180.fits outfile=/scratch/kocevski/261251/cmap_545184001_545443201_4FGL_J2219.2-0342_daily_bin1180.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261251/ft1_filtered_4FGL_J2219.2-0342_daily_bin1180.fits scfile=/scratch/kocevski/261251/ft2_4FGL_J2219.2-0342_daily_bin1180.fits outfile=/scratch/kocevski/261251/cmap_HighResolution_545184001_545443201_4FGL_J2219.2-0342_daily_bin1180.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261251/ft1_filtered_4FGL_J2219.2-0342_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/261251/ft2_4FGL_J2219.2-0342_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261251/Model_4FGL_J2219.2-0342_daily_bin1180.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/261251/ft1_filtered_4FGL_J2219.2-0342_daily_bin1180.fits....................!
real 34.58
user 33.27
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    162.68       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13666E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1673       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10947E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    161.71       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6330       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.092       1.0000         .10000E-03   10000.    
    18 'norm      '    6.6816       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.4976       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0841       1.0000         .10000E-03   10000.    
    22 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .53216       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94333       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=   2821.196     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2705 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2064        4.4003       -.41089E-06    .12582E-05
   2  Prefactor     162.66        96.272       -.10156E-04    .66492E-04
   3  Prefactor     .10000E-03    42.950       -.31219E-04** at limit **
   4  Prefactor     .10000E-03    153.35       -.11771E-03** at limit **
   5  Prefactor     .10000E-03    38.926       -.26311E-04** at limit **
   6  Prefactor     9.1662        8.6462       -.27620E-05   -.13000E-03
   7  Prefactor     .10000E-03    15.751        .28380E-05** at limit **
   8  Prefactor     .10000E-03    30.864        .22153E-04** at limit **
   9  Prefactor     .10000E-03    10.634       -.17470E-06** at limit **
  10  Prefactor     .10000E-03    22.764        .19143E-04** at limit **
  11  Prefactor     46.527        21.256        .22445E-05   -.10126E-03
  12  Prefactor     .10000E-03    91.366        .77322E-04** at limit **
  13  Prefactor     .10000E-03    6.7889       -.13582E-06** at limit **
  14  Prefactor     161.58        144.06       -.95317E-04   -.44956E-04
  15  Prefactor     .10000E-03    2.0717       -.68662E-08** at limit **
  16  norm          4.6302        4.4310        .35516E-05    .11660E-03
  17  Prefactor     63.026        80.732       -.68250E-04   -.95306E-05
  18  norm          6.6816        2.2705        .65459E-06   -.61004E-03
  19  Prefactor     .10000E-03    61.985        .28732E-04** at limit **
  20  norm          7.4985        2.9031       -.16262E-06   -.14369E-02
  21  Prefactor     7.0801        24.924       -.48998E-05   -.73846E-04
  22  norm          .10000E-03    20.419       -.21173E-04** at limit **
  23  Normalizat    .53245        .38027        .32209E-04    .95849E-04
  24  Prefactor     .94318        .20556       -.17945E-05    .30044E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.20636
  Prefactor  = 162.663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.1662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.5272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 161.579
  Prefactor  = 0.0001
  norm       = 4.63025
  Prefactor  = 63.0255
  norm       = 6.68158
  Prefactor  = 0.0001
  norm       = 7.49851
  Prefactor  = 7.08011
  norm       = 0.0001
  Normalizat = 0.532449
  Prefactor  = 0.943176
 **********
 **   18 **HESSE 
 **********

 FCN=   2821.196     FROM HESSE     STATUS=OK           385 CALLS     3090 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2064        4.3896        .10779E-03   -1.5298    
   2  Prefactor     162.66        96.122        .15810E-03   -1.3150    
   3  Prefactor     .10000E-03    42.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    153.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1662        8.6334        .13237E-03   -1.5102    
   7  Prefactor     .10000E-03    15.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.636        .16919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     46.527        21.226        .58781E-04   -1.4343    
  12  Prefactor     .10000E-03    91.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7993        .13516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     161.58        144.08        .15857E-03   -1.3159    
  15  Prefactor     .10000E-03    2.0737        .74660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6302        4.4260        .10315E-03   -1.5278    
  17  Prefactor     63.026        80.738        .25260E-03   -1.4119    
  18  norm          6.6816        2.2693        .44084E-04   -1.5191    
  19  Prefactor     .10000E-03    62.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4985        2.8948        .53259E-04   -1.5160    
  21  Prefactor     7.0801        24.890        .15072E-03   -1.5176    
  22  norm          .10000E-03    20.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .53245        .41643        .43438E-03   -1.1093    
  24  Prefactor     .94318        .22997        .19692E-03   -.94648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40358e-10
Minuit parameter uncertainties:
  1  4.38991
  2  96.2151
  3  0.000223446
  4  4.09929e-05
  5  3.24804e-06
  6  8.63453
  7  9.88029e-05
  8  6.34162e-05
  9  3.26966e-05
  10  0.000155535
  11  21.2296
  12  0.000170121
  13  2.66499e-05
  14  144.398
  15  4.23755e-07
  16  4.4263
  17  80.8784
  18  2.26932
  19  1.60548e-05
  20  2.89481
  21  24.9262
  22  7.05309e-05
  23  0.418908
  24  0.230205
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.665e-05  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.432e-01  2.302e-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.324e-01  4.189e-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.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261251/likelihoodResults_545184001_545443201_4FGL_J2219.2-0342_daily_bin1180.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) = 2821.19659233
delta logL = -0.000698203400134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2821.19589513
delta logL = -1.0037147149e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6678       1.0000          .0000       10.000    
     3 'Normalizat'    .53192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94347       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=   2821.196     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      247 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.353        .13630E-01** at limit **
   2  Index         2.2243        8.2256        .50000       -.63691E-06
   3  Normalizat    .53245        .21748E-01    .43435E-03   -.82055E-05
   4  Prefactor     .94317        .12998E-01    .19693E-03   -.12112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22434
  Normalizat = 0.532451
  Prefactor  = 0.943174
 **********
 **   18 **HESSE 
 **********

 FCN=   2821.196     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      274 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    450.33        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2243        5.7599        .50000       -.58852    
   3  Normalizat    .53245        .67503E-01    .17374E-04   -1.1093    
   4  Prefactor     .94317        .40349E-01    .39385E-04   -.94648    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.44477e-08
Minuit parameter uncertainties:
  1  1.9485e-05
  2  1203.86
  3  0.0675136
  4  0.0403506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261251': 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) = 2821.1958931
delta logL = 1.02407148006e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.432e-01  4.035e-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:  5.325e-01  6.751e-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/261251/cmap_HighResolution_545184001_545443201_4FGL_J2219.2-0342_daily_bin1180.png

Cleaning up...

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

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:26:00.809537', job_id='261251', GAL2='0.94', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1632846360.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1180' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:26:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 261251: <4FGL_J2219.2-0342_daily_bin1180> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1180 334.823 -3.7102 545184001 545443201 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 :                                   456.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            636 sec.

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

