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


Performing analysis on: 4FGL_J1944.9-2143_daily_bin1589
RA = 296.229, Dec = -21.7216
tmin = 651196801, tmax = 651456001
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='171602', job_status='RUN', time_executed='2021-09-23 13:02:39.461277', time_epoch_executed='1632427359.46' WHERE source_name='4FGL J1944.9-2143' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171602/ft1_4FGL_J1944.9-2143_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171602/ft1_4FGL_J1944.9-2143_daily_bin1589.fits outfile=/scratch/kocevski/171602/ft1_filteredMKT_4FGL_J1944.9-2143_daily_bin1589.fits ra=296.229 dec=-21.7216 rad=12.0 tmin=651196801.0 tmax=651456001.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 2.89
user 2.62
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.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/171602/ft1_filteredMKT_4FGL_J1944.9-2143_daily_bin1589.fits evtable="EVENTS" outfile="/scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.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.47
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.fits" evtable="EVENTS" scfile=/scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits sctable="SC_DATA" outfile=/scratch/kocevski/171602/ltcube_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.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/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits
.....................!
real 9.72
user 9.33
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/171602/ltcube_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.fits outfile=/scratch/kocevski/171602/expmap_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.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/171602/ltcube_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.fits
.....................!
real 145.83
user 142.03
sys 3.45

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
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Added 262 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1944.9-2143 @ 296.229 -21.7216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.fits scfile=/scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits outfile=/scratch/kocevski/171602/cmap_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.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=296.229 yref=-21.7216 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.48
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.fits scfile=/scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits outfile=/scratch/kocevski/171602/cmap_HighResolution_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.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=296.229 yref=-21.7216 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.46
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171602/Model_4FGL_J1944.9-2143_daily_bin1589.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 FGES J1838.9-0704
adding source GAL_V02
adding source HESS J1813-178
adding source HESS J1825-137
adding source W 41
Working on...
/scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.fits.....................!
real 68.91
user 67.66
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.fits', '/scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits', expMap='/scratch/kocevski/171602/expmap_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.fits', expCube='/scratch/kocevski/171602/ltcube_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171602/Model_4FGL_J1944.9-2143_daily_bin1589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1944.9-2143'

4FGL J1944.9-2143
   Spectrum: PowerLaw
643    Prefactor:  7.284e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
644        Index:  1.814e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
645        Scale:  3.627e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171602/ft1_filtered_4FGL_J1944.9-2143_daily_bin1589.fits
Spacecraft file(s): /scratch/kocevski/171602/ft2_4FGL_J1944.9-2143_daily_bin1589.fits
Exposure map: /scratch/kocevski/171602/expmap_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.fits
Exposure cube: /scratch/kocevski/171602/ltcube_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171602/Model_4FGL_J1944.9-2143_daily_bin1589.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) = 8748.26610838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1384       1.0000         .10000E-03   10000.    
     3 'norm      '    .10524E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9484       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.689       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.034       1.0000         .10000E-03   10000.    
    19 'norm      '    22.892       1.0000         .10000E-03   10000.    
    20 'norm      '    .10639E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18912E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2265       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8748.189     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2734 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.679        .43030E-07** at limit **
   2  norm          4.1379        5.6839        .31799E-05   -.29828E-03
   3  norm          .10000E-03    .46259        .52928E-07** at limit **
   4  Prefactor     .10000E-03    14.221       -.26930E-06** at limit **
   5  Prefactor     .10000E-03    30.602       -.14030E-04** at limit **
   6  Prefactor     .10000E-03    7.3717       -.25868E-05** at limit **
   7  norm          .10000E-03    2.0838       -.33816E-07** at limit **
   8  norm          .10000E-03    2.5356       -.34338E-06** at limit **
   9  Prefactor     .10000E-03    7.1847        .28082E-05** at limit **
  10  Prefactor     .10000E-03    6.5320        .28528E-06** at limit **
  11  Prefactor     6.9273        56.369        .68047E-04   -.90594E-05
  12  Prefactor     .10000E-03    1.2300       -.10738E-06** at limit **
  13  Prefactor     .10000E-03    28.231        .18046E-04** at limit **
  14  Prefactor     .10000E-03    3.7025       -.13429E-06** at limit **
  15  Prefactor     43.688        34.248        .12865E-05   -.79941E-05
  16  Prefactor     .10000E-03    17.390        .30000E-05** at limit **
  17  Prefactor     3.0459        2.5202        .14658E-05   -.25042E-03
  18  Prefactor     25.041        22.213       -.10942E-04   -.54449E-04
  19  norm          22.884        18.461        .33844E-05   -.40265E-04
  20  norm          .10000E-03    17.174       -.87188E-07** at limit **
  21  Prefactor     .10001E-03    868.37       -.11007E-03** at limit **
  22  Prefactor     .10000E-03    22.407       -.52889E-05** at limit **
  23  Normalizat    1.2263        .33871        .25682E-05   -.14816E-03
  24  Prefactor     .90887        .79750E-01   -.15677E-05    .24539E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.13789
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.92733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6882
  Prefactor  = 0.0001
  Prefactor  = 3.04585
  Prefactor  = 25.041
  norm       = 22.8844
  norm       = 0.000100002
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Normalizat = 1.22632
  Prefactor  = 0.908874
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.189     FROM HESSE     STATUS=OK           387 CALLS     3121 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1379        5.6710        .19814E-03   -1.5301    
   3  norm          .10000E-03    2.6760        .12154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0851        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5535        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9273        56.207        .15220E-03   -1.5182    
  12  Prefactor     .10000E-03    1.2327        .10130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7298        .17571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.688        34.246        .60653E-04   -1.4385    
  16  Prefactor     .10000E-03    17.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0459        2.5037        .11873E-03   -1.5359    
  18  Prefactor     25.041        22.165        .80063E-04   -1.4707    
  19  norm          22.884        18.472        .83719E-04   -1.4751    
  20  norm          .10000E-03    17.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    874.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2263        .38295        .52544E-03   -.85793    
  24  Prefactor     .90887        .90066E-01    .14305E-03   -.95832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47711e-10
Minuit parameter uncertainties:
  1  3.80809e-05
  2  5.67171
  3  6.35682e-05
  4  1.17303e-05
  5  6.82817e-05
  6  1.792e-05
  7  1.80308e-06
  8  8.96694e-07
  9  2.23572e-05
  10  4.00832e-06
  11  39.515
  12  2.18769e-06
  13  3.70056e-06
  14  1.12382e-06
  15  34.2617
  16  2.82083e-05
  17  2.50382
  18  22.1724
  19  18.4761
  20  0.000383726
  21  0.00660754
  22  1.9642e-06
  23  0.383837
  24  0.0900807
Done.

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

Extracting fit parameters...

4FGL J1944.9-2143
   Spectrum: PowerLaw
643    Prefactor:  6.927e+00  3.952e+01  1.000e-04  1.000e+04 ( 1.000e-14)
644        Index:  1.814e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
645        Scale:  3.627e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
928    Prefactor:  9.089e-01  9.008e-02  0.000e+00  1.000e+01 ( 1.000e+00)
929        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
930        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
924   Normalization:  1.226e+00  3.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 296.229 -21.722
Photon Flux Upper Limit: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171602/likelihoodResults_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.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) = 8748.16693515
delta logL = 0.0222634522743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8748.16675313
delta logL = 0.0224454671297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0925       1.0000          .0000       10.000    
     3 'Normalizat'    1.2228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9410E+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=   8748.167     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      263 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1717        39.126        .14987E-03    .86175E-04
   2  Index         2.0913        1.3653        .10536E-01    .78447E-04
   3  Normalizat    1.2228        .36782        .52609E-03    .56245E-03
   4  Prefactor     .90867        .88580E-01    .14306E-03    .22027E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.17166
  Index      = 2.09126
  Normalizat = 1.22279
  Prefactor  = 0.90867
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.167     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1717        32.898        .59947E-05   -1.5172    
   2  Index         2.0913        1.2563        .42146E-03   -.62088    
   3  Normalizat    1.2228        .36791        .10522E-03   -.85901    
   4  Prefactor     .90867        .88594E-01    .28612E-04   -.95839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48695e-09
Minuit parameter uncertainties:
  1  30.748
  2  1.27715
  3  0.368695
  4  0.0886079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171602': 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) = 8748.16675208
delta logL = 0.0224465180727

Extracting fit parameters...

4FGL J1944.9-2143
   Spectrum: PowerLaw
643    Prefactor:  7.172e+00  3.075e+01  1.000e-04  1.000e+04 ( 1.000e-14)
644        Index:  2.091e+00  1.277e+00  0.000e+00  1.000e+01 (-1.000e+00)
645        Scale:  3.627e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
928    Prefactor:  9.087e-01  8.861e-02  0.000e+00  1.000e+01 ( 1.000e+00)
929        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
930        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
924   Normalization:  1.223e+00  3.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 296.229 -21.722

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/171602/cmap_HighResolution_651196801_651456001_4FGL_J1944.9-2143_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-23 13:17:16.133945', job_id='171602', GAL2='0.91', fit_tolerance='1e-08', EG2='1.22', EG='1.23', time_epoch_completed='1632428236.13', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.24e-02', ts2='0.08', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1589' AND source_name='4FGL J1944.9-2143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:17:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 171602: <4FGL_J1944.9-2143_daily_bin1589> in cluster <slac> Done

Job <4FGL_J1944.9-2143_daily_bin1589> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 23 13:02:15 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 13:02:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 13:02:16 2021
Terminated at Thu Sep 23 13:17:16 2021
Results reported at Thu Sep 23 13:17:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1944.9-2143_daily_bin1589 296.229 -21.7216 651196801 651456001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1944.9-2143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   872.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             353.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

