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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1446
RA = 334.823, Dec = -3.7102
tmin = 614131201, tmax = 614390401
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='262650', job_status='RUN', time_executed='2021-09-28 09:23:31.665462', time_epoch_executed='1632846211.67' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262650

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262650/ft1_4FGL_J2219.2-0342_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262650/ft2_4FGL_J2219.2-0342_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262650/ft1_4FGL_J2219.2-0342_daily_bin1446.fits outfile=/scratch/kocevski/262650/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1446.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=614131201.0 tmax=614390401.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.86
user 4.54
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262650/ft1_filtered_4FGL_J2219.2-0342_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/262650/ft2_4FGL_J2219.2-0342_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/262650/ltcube_614131201_614390401_4FGL_J2219.2-0342_daily_bin1446.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/262650/ft2_4FGL_J2219.2-0342_daily_bin1446.fits
.....................!
real 14.81
user 14.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262650/ft1_filtered_4FGL_J2219.2-0342_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/262650/ft2_4FGL_J2219.2-0342_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/262650/ltcube_614131201_614390401_4FGL_J2219.2-0342_daily_bin1446.fits outfile=/scratch/kocevski/262650/expmap_614131201_614390401_4FGL_J2219.2-0342_daily_bin1446.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/262650/ltcube_614131201_614390401_4FGL_J2219.2-0342_daily_bin1446.fits
.....................!
real 193.07
user 187.30
sys 5.30

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/262650/ft1_filtered_4FGL_J2219.2-0342_daily_bin1446.fits scfile=/scratch/kocevski/262650/ft2_4FGL_J2219.2-0342_daily_bin1446.fits outfile=/scratch/kocevski/262650/cmap_614131201_614390401_4FGL_J2219.2-0342_daily_bin1446.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.62
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262650/ft1_filtered_4FGL_J2219.2-0342_daily_bin1446.fits scfile=/scratch/kocevski/262650/ft2_4FGL_J2219.2-0342_daily_bin1446.fits outfile=/scratch/kocevski/262650/cmap_HighResolution_614131201_614390401_4FGL_J2219.2-0342_daily_bin1446.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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262650/ft1_filtered_4FGL_J2219.2-0342_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/262650/ft2_4FGL_J2219.2-0342_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262650/Model_4FGL_J2219.2-0342_daily_bin1446.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/262650/ft1_filtered_4FGL_J2219.2-0342_daily_bin1446.fits.....................!
real 56.51
user 55.15
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12312E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4424       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.664       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.387       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.002       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.658       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7414       1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.937       1.0000         .10000E-03   10000.    
    18 'norm      '    .23428       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.373       1.0000         .10000E-03   10000.    
    20 'norm      '    .11964E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    106.32       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74676       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0831       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=   5553.444     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2764 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6520        .10101E-06** at limit **
   2  Prefactor     4.4360        56.268        .62460E-06    .24434E-04
   3  Prefactor     38.680        53.987       -.17493E-05   -.43031E-04
   4  Prefactor     .10000E-03    59.704        .66029E-06** at limit **
   5  Prefactor     .10000E-03    2.4854       -.83427E-07** at limit **
   6  Prefactor     10.388        9.1095       -.74761E-07    .68219E-04
   7  Prefactor     .10000E-03    3.1827       -.30385E-07** at limit **
   8  Prefactor     .10000E-03    6.0294       -.47624E-07** at limit **
   9  Prefactor     17.994        19.110        .86565E-06    .40640E-03
  10  Prefactor     .10000E-03    40.919       -.28134E-05** at limit **
  11  Prefactor     11.656        13.309       -.16500E-06   -.73563E-05
  12  Prefactor     3.8760        34.643       -.36968E-06    .19994E-04
  13  Prefactor     19.742        14.079       -.13874E-06    .16844E-03
  14  Prefactor     .10000E-03    33.621        .15298E-05** at limit **
  15  Prefactor     .10000E-03    1.6812       -.22436E-06** at limit **
  16  norm          4.7410        4.8452       -.15753E-06   -.14470E-04
  17  Prefactor     87.910        103.04        .16801E-05    .61151E-04
  18  norm          .23208        1.1203       -.84173E-06   -.92756E-03
  19  Prefactor     17.420        25.524        .27420E-05   -.43433E-04
  20  norm          .10000E-03    3.7182        .31822E-05** at limit **
  21  Prefactor     .10000E-03    9.0171       -.95310E-07** at limit **
  22  norm          106.33        25.745       -.12598E-06    .24822E-04
  23  Normalizat    .74674        .26727        .97541E-06    .27682E-03
  24  Prefactor     1.0832        .14792        .47206E-06    .57208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.43605
  Prefactor  = 38.6799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9941
  Prefactor  = 0.000100001
  Prefactor  = 11.6558
  Prefactor  = 3.87601
  Prefactor  = 19.7423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.74101
  Prefactor  = 87.91
  norm       = 0.232082
  Prefactor  = 17.4198
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 106.325
  Normalizat = 0.746741
  Prefactor  = 1.08317
 **********
 **   18 **HESSE 
 **********

 FCN=   5553.444     FROM HESSE     STATUS=OK           397 CALLS     3161 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7582        .23618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4360        56.116        .19105E-03   -1.5287    
   3  Prefactor     38.680        54.112        .64459E-04   -1.4463    
   4  Prefactor     .10000E-03    59.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4897        .11476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.388        9.1442        .12432E-03   -1.5063    
   7  Prefactor     .10000E-03    3.1859        .12984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0338        .17872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.994        19.277        .94396E-04   -1.4859    
  10  Prefactor     .10000E-03    41.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.656        13.312        .11733E-03   -1.5025    
  12  Prefactor     3.8760        34.612        .20497E-03   -1.5314    
  13  Prefactor     19.742        14.092        .90147E-04   -1.4819    
  14  Prefactor     .10000E-03    33.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6938        .94501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7410        4.8441        .15209E-03   -1.5272    
  17  Prefactor     87.910        103.00        .42845E-04   -1.3830    
  18  norm          .23208        1.8683        .14446E-02   -1.5612    
  19  Prefactor     17.420        25.669        .96091E-04   -1.4873    
  20  norm          .10000E-03    4.0432        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          106.33        25.770        .39000E-04   -1.3642    
  23  Normalizat    .74674        .30767        .36857E-03   -1.0208    
  24  Prefactor     1.0832        .17168        .18775E-03   -.90006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68619e-09
Minuit parameter uncertainties:
  1  1.06648e-05
  2  31.5915
  3  54.1811
  4  2.13276e-05
  5  9.31744e-06
  6  9.14538
  7  4.80885e-06
  8  9.74538e-06
  9  19.2836
  10  0.000493905
  11  13.3154
  12  23.1829
  13  14.0949
  14  0.000236165
  15  2.08518e-05
  16  4.84447
  17  103.205
  18  1.31673
  19  25.6851
  20  0.000200854
  21  2.96842e-05
  22  25.773
  23  0.308383
  24  0.171764
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.083e+00  1.718e-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.467e-01  3.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.10e-08 +/- 6.49e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.59e-05

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

Saving results to:
/scratch/kocevski/262650/likelihoodResults_614131201_614390401_4FGL_J2219.2-0342_daily_bin1446.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) = 5553.25941108
delta logL = 0.184666492374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5553.25568504
delta logL = 0.188392535678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.030       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1184       1.0000          .0000       10.000    
     3 'Normalizat'    .71169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0970       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=   5553.256     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      295 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.036        14.395        .10003E-03    .99101E-04
   2  Index         3.1191        .78487        .70411E-02    .24792E-03
   3  Normalizat    .71136        .28994        .37696E-03    .35407E-04
   4  Prefactor     1.0972        .17168        .18667E-03   -.11017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0357
  Index      = 3.11908
  Normalizat = 0.711362
  Prefactor  = 1.09717
 **********
 **   18 **HESSE 
 **********

 FCN=   5553.256     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.036        13.821        .40014E-05   -1.4907    
   2  Index         3.1191        .75286        .14082E-02   -.38567    
   3  Normalizat    .71136        .28995        .15078E-04   -1.0345    
   4  Prefactor     1.0972        .17167        .37334E-04   -.89557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3319e-10
Minuit parameter uncertainties:
  1  13.8241
  2  0.756216
  3  0.290575
  4  0.171754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262650': 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) = 5553.25568345
delta logL = 0.188394119841

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.604e+01  1.382e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.119e+00  7.562e-01  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.097e+00  1.718e-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.114e-01  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.93
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.12 +/- 0.76
Photon Flux (Free Index): 1.19e-07 +/- 8.62e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.48e-05

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/262650/cmap_HighResolution_614131201_614390401_4FGL_J2219.2-0342_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-02', comment='SUCCESS', photon_flux='9.10e-08', energy_flux2='2.25e-05', photon_flux_error='6.49e-08', dlogl='1.88e-01', energy_flux='2.22e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-28 09:34:09.433019', photon_index_error2='0.76', photon_index2='3.12', ts='3.51', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='2.25e-07', energy_flux_error2='1.48e-05', EG='0.75', time_epoch_completed='1632846849.43', return_code='0', job_id='262650', GAL2='1.10', EG2='0.71', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='8.62e-08', ts2='3.93', photon_index='2.68' WHERE bin_id='1446' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 262650: <4FGL_J2219.2-0342_daily_bin1446> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1446> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:12 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:20:13 2021
Terminated at Tue Sep 28 09:34:09 2021
Results reported at Tue Sep 28 09:34:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1446 334.823 -3.7102 614131201 614390401 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 :                                   636.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

