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


Performing analysis on: 4FGL_J1944.9-2143_daily_bin1226
RA = 296.229, Dec = -21.7216
tmin = 557107201, tmax = 557366401
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='168812', job_status='RUN', time_executed='2021-09-23 12:52:44.645736', time_epoch_executed='1632426764.65' WHERE source_name='4FGL J1944.9-2143' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168812

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168812/ft1_4FGL_J1944.9-2143_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168812/ft1_4FGL_J1944.9-2143_daily_bin1226.fits outfile=/scratch/kocevski/168812/ft1_filteredMKT_4FGL_J1944.9-2143_daily_bin1226.fits ra=296.229 dec=-21.7216 rad=12.0 tmin=557107201.0 tmax=557366401.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.82
user 2.61
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.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/168812/ft1_filteredMKT_4FGL_J1944.9-2143_daily_bin1226.fits evtable="EVENTS" outfile="/scratch/kocevski/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.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.41
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/168812/ltcube_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.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/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits
.....................!
real 9.36
user 9.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/168812/ltcube_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.fits outfile=/scratch/kocevski/168812/expmap_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.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/168812/ltcube_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.fits
.....................!
real 145.45
user 141.12
sys 4.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
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/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.fits scfile=/scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits outfile=/scratch/kocevski/168812/cmap_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.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.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.fits scfile=/scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits outfile=/scratch/kocevski/168812/cmap_HighResolution_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.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.45
user 0.29
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168812/Model_4FGL_J1944.9-2143_daily_bin1226.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/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.fits.....................!
real 51.70
user 50.59
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.fits', '/scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits', expMap='/scratch/kocevski/168812/expmap_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.fits', expCube='/scratch/kocevski/168812/ltcube_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/168812/Model_4FGL_J1944.9-2143_daily_bin1226.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/168812/ft1_filtered_4FGL_J1944.9-2143_daily_bin1226.fits
Spacecraft file(s): /scratch/kocevski/168812/ft2_4FGL_J1944.9-2143_daily_bin1226.fits
Exposure map: /scratch/kocevski/168812/expmap_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.fits
Exposure cube: /scratch/kocevski/168812/ltcube_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/168812/Model_4FGL_J1944.9-2143_daily_bin1226.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) = 5959.56403979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0291       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5298       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.852       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9482       1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    368.67       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.9481       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77080       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=   5959.516     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2756 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.216       -.11819E-04** at limit **
   2  norm          2.0288        4.0318        .28616E-06   -.46286E-03
   3  norm          .10000E-03    .42894       -.83852E-07** at limit **
   4  Prefactor     .10000E-03    10.169        .15763E-06** at limit **
   5  Prefactor     3.5556        213.79        .40795E-04    .62537E-05
   6  Prefactor     11.856        10.697        .41653E-05   -.20343E-04
   7  norm          .10000E-03    4.2603       -.13914E-06** at limit **
   8  norm          .10000E-03    2.4986       -.21336E-06** at limit **
   9  Prefactor     .10000E-03    5.0008        .35734E-06** at limit **
  10  Prefactor     .10770E-03    32.827       -.37949E-05** at limit **
  11  Prefactor     .10000E-03    111.65       -.17683E-05** at limit **
  12  Prefactor     .10001E-03    8.4074       -.16068E-05** at limit **
  13  Prefactor     .10000E-03    36.295        .53978E-05** at limit **
  14  Prefactor     .10000E-03    4.1174       -.40859E-09** at limit **
  15  Prefactor     7.9463        29.935        .32344E-05   -.15841E-04
  16  Prefactor     54.344        86.920        .11340E-03    .13853E-04
  17  Prefactor     .10000E-03    1.3199       -.22030E-06** at limit **
  18  Prefactor     .10000E-03    23.694        .49768E-06** at limit **
  19  norm          .10000E-03    41.403        .73904E-05** at limit **
  20  norm          .10000E-03    10.031       -.26562E-06** at limit **
  21  Prefactor     368.62        350.43       -.30206E-04   -.34620E-05
  22  Prefactor     .10000E-03    62.184       -.92694E-06** at limit **
  23  Normalizat    1.9482        .41719       -.88838E-05    .94834E-04
  24  Prefactor     .77081        .90853E-01   -.19634E-05    .31292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.0288
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.55559
  Prefactor  = 11.8562
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000107698
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.94625
  Prefactor  = 54.3442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 368.619
  Prefactor  = 0.0001
  Normalizat = 1.94816
  Prefactor  = 0.770809
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.516     FROM HESSE     STATUS=OK           397 CALLS     3153 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0288        4.0106        .21145E-03   -1.5423    
   3  norm          .10000E-03    .65701        .97037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5556        212.66        .21516E-03   -1.5331    
   6  Prefactor     11.856        10.607        .11636E-03   -1.5019    
   7  norm          .10000E-03    4.2728        .15559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5022        .11916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0965        .16845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10770E-03    39.290        .10792       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    112.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    8.7388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1518        .15296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9463        29.923        .14222E-03   -1.5144    
  16  Prefactor     54.344        86.875        .27249E-03   -1.4232    
  17  Prefactor     .10000E-03    1.3288        .86581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    42.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     368.62        350.63        .10614E-03   -1.1844    
  22  Prefactor     .10000E-03    62.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.9482        .50932        .46140E-03   -.65856    
  24  Prefactor     .77081        .11157        .14892E-03   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87778e-09
Minuit parameter uncertainties:
  1  6.99176e-05
  2  4.01112
  3  4.50766e-06
  4  8.26674e-06
  5  55.2023
  6  10.6086
  7  1.37483e-05
  8  1.84264e-06
  9  8.77403e-05
  10  0.0348062
  11  0.000543487
  12  0.000576105
  13  0.000366922
  14  2.54722e-05
  15  29.9799
  16  87.0788
  17  2.10879e-05
  18  0.000128187
  19  0.000260747
  20  5.50641e-05
  21  352.683
  22  7.08128e-05
  23  0.510738
  24  0.111604
Done.

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

Extracting fit parameters...

4FGL J1944.9-2143
   Spectrum: PowerLaw
643    Prefactor:  1.000e-04  5.435e-04  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:  7.708e-01  1.116e-01  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.948e+00  5.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 296.229 -21.722
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168812/likelihoodResults_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.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) = 5959.51588466
delta logL = -4.22991852247e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5959.38229717
delta logL = 0.133545191757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5239       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8012       1.0000          .0000       10.000    
     3 'Normalizat'    1.8903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77671       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=   5959.382     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      389 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5270        712.88        .21535E-03    .30630E-03
   2  Index         2.8016        5.1730        .85078E-02    .12635E-03
   3  Normalizat    1.8896        .49602        .46687E-03   -.13987E-03
   4  Prefactor     .77677        .10655        .14838E-03   -.60153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52696
  Index      = 2.8016
  Normalizat = 1.88959
  Prefactor  = 0.776769
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.382     FROM HESSE     STATUS=OK            25 CALLS      414 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5270        15.308        .86138E-05   -1.5332    
   2  Index         2.8016        1.3760        .34031E-03   -.45524    
   3  Normalizat    1.8896        .51689        .18675E-04   -.67348    
   4  Prefactor     .77677        .11085        .29677E-04   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2573e-10
Minuit parameter uncertainties:
  1  14.7018
  2  1.39845
  3  0.51841
  4  0.110879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168812': 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) = 5959.38229555
delta logL = 0.133546815075

Extracting fit parameters...

4FGL J1944.9-2143
   Spectrum: PowerLaw
643    Prefactor:  3.527e+00  1.470e+01  1.000e-04  1.000e+04 ( 1.000e-14)
644        Index:  2.802e+00  1.398e+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:  7.768e-01  1.109e-01  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.890e+00  5.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/168812/cmap_HighResolution_557107201_557366401_4FGL_J1944.9-2143_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-23 13:04:09.770629', job_id='168812', GAL2='0.78', fit_tolerance='1e-08', EG2='1.89', EG='1.95', time_epoch_completed='1632427449.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.34e-01', ts2='0.28', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1226' AND source_name='4FGL J1944.9-2143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:04:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 168812: <4FGL_J1944.9-2143_daily_bin1226> in cluster <slac> Done

Job <4FGL_J1944.9-2143_daily_bin1226> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 12:51:57 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 12:51:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 12:51:59 2021
Terminated at Thu Sep 23 13:04:10 2021
Results reported at Thu Sep 23 13:04:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1944.9-2143_daily_bin1226 296.229 -21.7216 557107201 557366401 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 :                                   683.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             361.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

