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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1394
RA = 334.823, Dec = -3.7102
tmin = 600652801, tmax = 600912001
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='261584', job_status='RUN', time_executed='2021-09-28 09:18:08.789840', time_epoch_executed='1632845888.79' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261584/ft1_4FGL_J2219.2-0342_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261584/ft2_4FGL_J2219.2-0342_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261584/ft1_4FGL_J2219.2-0342_daily_bin1394.fits outfile=/scratch/kocevski/261584/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1394.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=600652801.0 tmax=600912001.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.72
user 3.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261584/ft1_filtered_4FGL_J2219.2-0342_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/261584/ft2_4FGL_J2219.2-0342_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/261584/ltcube_600652801_600912001_4FGL_J2219.2-0342_daily_bin1394.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/261584/ft2_4FGL_J2219.2-0342_daily_bin1394.fits
.....................!
real 11.42
user 11.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261584/ft1_filtered_4FGL_J2219.2-0342_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/261584/ft2_4FGL_J2219.2-0342_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/261584/ltcube_600652801_600912001_4FGL_J2219.2-0342_daily_bin1394.fits outfile=/scratch/kocevski/261584/expmap_600652801_600912001_4FGL_J2219.2-0342_daily_bin1394.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/261584/ltcube_600652801_600912001_4FGL_J2219.2-0342_daily_bin1394.fits
.....................!
real 190.71
user 185.17
sys 5.15

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/261584/ft1_filtered_4FGL_J2219.2-0342_daily_bin1394.fits scfile=/scratch/kocevski/261584/ft2_4FGL_J2219.2-0342_daily_bin1394.fits outfile=/scratch/kocevski/261584/cmap_600652801_600912001_4FGL_J2219.2-0342_daily_bin1394.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261584/ft1_filtered_4FGL_J2219.2-0342_daily_bin1394.fits scfile=/scratch/kocevski/261584/ft2_4FGL_J2219.2-0342_daily_bin1394.fits outfile=/scratch/kocevski/261584/cmap_HighResolution_600652801_600912001_4FGL_J2219.2-0342_daily_bin1394.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261584/ft1_filtered_4FGL_J2219.2-0342_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/261584/ft2_4FGL_J2219.2-0342_daily_bin1394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261584/Model_4FGL_J2219.2-0342_daily_bin1394.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/261584/ft1_filtered_4FGL_J2219.2-0342_daily_bin1394.fits.....................!
real 58.99
user 57.58
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7063       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.512       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7416       1.0000         .10000E-03   10000.    
    14 'Prefactor '    82.910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3470       1.0000         .10000E-03   10000.    
    17 'Prefactor '    124.70       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0134       1.0000         .10000E-03   10000.    
    20 'norm      '    35.216       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0904       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89841       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=   5921.425     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2653 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7063        1.8889        .13183E-06   -.32448E-04
   2  Prefactor     .10000E-03    14.032        .27754E-06** at limit **
   3  Prefactor     .10000E-03    12.950        .61684E-07** at limit **
   4  Prefactor     39.518        91.929       -.30228E-05    .87486E-05
   5  Prefactor     10.484        15.956        .12583E-05   -.22242E-04
   6  Prefactor     .10000E-03    5.0995        .31901E-06** at limit **
   7  Prefactor     .10000E-03    25.425        .96027E-06** at limit **
   8  Prefactor     .10000E-03    4.5538        .14136E-06** at limit **
   9  Prefactor     .10000E-03    6.7351        .17702E-06** at limit **
  10  Prefactor     .10000E-03    7.8283        .23123E-06** at limit **
  11  Prefactor     .10000E-03    4.2924        .10098E-06** at limit **
  12  Prefactor     .10000E-03    8.0390        .14487E-06** at limit **
  13  Prefactor     3.7416        9.6943        .61458E-06    .20057E-04
  14  Prefactor     82.982        113.73       -.68430E-07    .18371E-04
  15  Prefactor     .10000E-03    3.4789       -.10912E-05** at limit **
  16  norm          1.3497        5.3874       -.11937E-05    .31925E-04
  17  Prefactor     124.59        120.47        .90332E-06    .35233E-05
  18  norm          1.6902        1.2741       -.42437E-06   -.63867E-05
  19  Prefactor     8.6116        343.12        .51668E-04   -.15376E-04
  20  norm          35.239        9.9670       -.31589E-05   -.30701E-03
  21  Prefactor     .10000E-03    7.2222       -.94729E-07** at limit **
  22  norm          .10000E-03    5.4699       -.60885E-09** at limit **
  23  Normalizat    1.0903        .23293        .22972E-05   -.13061E-03
  24  Prefactor     .89851        .13484       -.24316E-05    .16407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.518
  Prefactor  = 10.4842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74157
  Prefactor  = 82.982
  Prefactor  = 0.0001
  norm       = 1.3497
  Prefactor  = 124.585
  norm       = 1.6902
  Prefactor  = 8.61164
  norm       = 35.2389
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09035
  Prefactor  = 0.898511
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.425     FROM HESSE     STATUS=OK           395 CALLS     3048 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7063        1.8719        .10821E-03   -1.5447    
   2  Prefactor     .10000E-03    14.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.518        91.153        .63830E-04   -1.4450    
   5  Prefactor     10.484        15.824        .12358E-03   -1.5060    
   6  Prefactor     .10000E-03    5.1371        .16965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5553        .16037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2960        .15570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7416        9.6761        .20874E-03   -1.5321    
  14  Prefactor     82.982        112.10        .22057E-03   -1.3884    
  15  Prefactor     .10000E-03    3.5186        .13962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3497        5.2194        .30142E-03   -1.5476    
  17  Prefactor     124.59        118.99        .18023E-03   -1.3471    
  18  norm          1.6902        1.2721        .72897E-04   -1.5448    
  19  Prefactor     8.6116        357.59        .13350E-03   -1.5121    
  20  norm          35.239        10.081        .59426E-04   -1.4520    
  21  Prefactor     .10000E-03    7.2395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.4865        .17576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0903        .27175        .31500E-03   -.90062    
  24  Prefactor     .89851        .15679        .20514E-03   -.96193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28557e-10
Minuit parameter uncertainties:
  1  1.87195
  2  2.48512e-07
  3  2.47316e-06
  4  91.4768
  5  15.8303
  6  1.15856e-06
  7  2.55401e-05
  8  1.07321e-06
  9  6.10057e-08
  10  1.81819e-07
  11  1.07339e-06
  12  1.12081e-07
  13  9.68013
  14  112.389
  15  2.00615e-05
  16  5.2212
  17  119.224
  18  1.27216
  19  111.706
  20  10.0812
  21  2.02151e-05
  22  1.71256e-06
  23  0.272096
  24  0.156865
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.985e-01  1.569e-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.090e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261584/likelihoodResults_600652801_600912001_4FGL_J2219.2-0342_daily_bin1394.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) = 5921.41759013
delta logL = 0.00750558154778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5921.4169049
delta logL = 0.00819081060399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0782       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4809       1.0000          .0000       10.000    
     3 'Normalizat'    1.0932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89725       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=   5921.417     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      255 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0776        10.230        .19964E-03    .26821E-04
   2  Index         2.4809        1.4765        .13224E-01    .32269E-04
   3  Normalizat    1.0932        .25879        .31462E-03   -.20593E-03
   4  Prefactor     .89724        .15500        .20527E-03   -.34199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.07761
  Index      = 2.48092
  Normalizat = 1.09318
  Prefactor  = 0.897244
 **********
 **   18 **HESSE 
 **********

 FCN=   5921.417     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0776        10.168        .79858E-05   -1.5304    
   2  Index         2.4809        1.4681        .52898E-03   -.52801    
   3  Normalizat    1.0932        .25899        .12585E-04   -.89971    
   4  Prefactor     .89724        .15509        .41053E-04   -.96237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35789e-10
Minuit parameter uncertainties:
  1  10.1721
  2  1.49796
  3  0.259288
  4  0.155169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261584': 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) = 5921.4169049
delta logL = 0.00819081286954

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.078e+00  1.017e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.481e+00  1.498e+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:  8.972e-01  1.552e-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.093e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/261584/cmap_HighResolution_600652801_600912001_4FGL_J2219.2-0342_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-28 09:28:35.275240', job_id='261584', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632846515.28', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='8.19e-03', ts2='0.19', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1394' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:28:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 261584: <4FGL_J2219.2-0342_daily_bin1394> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1394 334.823 -3.7102 600652801 600912001 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 :                                   624.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

