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


Performing analysis on: 4FGL_J1944.9-2143_daily_bin1566
RA = 296.229, Dec = -21.7216
tmin = 645235201, tmax = 645494401
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='171565', job_status='RUN', time_executed='2021-09-23 13:02:40.784632', time_epoch_executed='1632427360.78' WHERE source_name='4FGL J1944.9-2143' and cadence='daily' and bin_id='1566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171565/ft1_4FGL_J1944.9-2143_daily_bin1566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171565/ft2_4FGL_J1944.9-2143_daily_bin1566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171565/ft1_4FGL_J1944.9-2143_daily_bin1566.fits outfile=/scratch/kocevski/171565/ft1_filteredMKT_4FGL_J1944.9-2143_daily_bin1566.fits ra=296.229 dec=-21.7216 rad=12.0 tmin=645235201.0 tmax=645494401.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.78
user 2.56
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171565/ft1_filtered_4FGL_J1944.9-2143_daily_bin1566.fits" evtable="EVENTS" scfile=/scratch/kocevski/171565/ft2_4FGL_J1944.9-2143_daily_bin1566.fits sctable="SC_DATA" outfile=/scratch/kocevski/171565/ltcube_645235201_645494401_4FGL_J1944.9-2143_daily_bin1566.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/171565/ft2_4FGL_J1944.9-2143_daily_bin1566.fits
.....................!
real 12.62
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171565/ft1_filtered_4FGL_J1944.9-2143_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/171565/ft2_4FGL_J1944.9-2143_daily_bin1566.fits sctable="SC_DATA" expcube=/scratch/kocevski/171565/ltcube_645235201_645494401_4FGL_J1944.9-2143_daily_bin1566.fits outfile=/scratch/kocevski/171565/expmap_645235201_645494401_4FGL_J1944.9-2143_daily_bin1566.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/171565/ltcube_645235201_645494401_4FGL_J1944.9-2143_daily_bin1566.fits
.....................!
real 191.00
user 185.54
sys 4.61

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/171565/ft1_filtered_4FGL_J1944.9-2143_daily_bin1566.fits scfile=/scratch/kocevski/171565/ft2_4FGL_J1944.9-2143_daily_bin1566.fits outfile=/scratch/kocevski/171565/cmap_645235201_645494401_4FGL_J1944.9-2143_daily_bin1566.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171565/ft1_filtered_4FGL_J1944.9-2143_daily_bin1566.fits scfile=/scratch/kocevski/171565/ft2_4FGL_J1944.9-2143_daily_bin1566.fits outfile=/scratch/kocevski/171565/cmap_HighResolution_645235201_645494401_4FGL_J1944.9-2143_daily_bin1566.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171565/ft1_filtered_4FGL_J1944.9-2143_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/171565/ft2_4FGL_J1944.9-2143_daily_bin1566.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171565/Model_4FGL_J1944.9-2143_daily_bin1566.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/171565/ft1_filtered_4FGL_J1944.9-2143_daily_bin1566.fits......................!
real 33.62
user 32.22
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10785E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13141E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .28412E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    173.07       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.642       1.0000         .10000E-03   10000.    
     7 'norm      '    23.184       1.0000         .10000E-03   10000.    
     8 'norm      '    8.8765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.585       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    29.002       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12869E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    87.196       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8774       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67748       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=   2646.675     FROM MIGRAD    STATUS=CONVERGED    993 CALLS     3188 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    211.77        .18142E-02** at limit **
   2  norm          .10001E-03    41.351        .90375E-01** at limit **
   3  norm          .10000E-03    11.339        .17588E-02** at limit **
   4  Prefactor     2.1655        1272.1        .26731E-02    .46102E-05
   5  Prefactor     173.10        237.30        .15336E-03   -.77095E-05
   6  Prefactor     30.624        55.268        .72381E-04    .78534E-07
   7  norm          23.169        41.635        .83190E-04    .12299E-05
   8  norm          8.8697        22.152        .13453E-03    .31098E-04
   9  Prefactor     .10000E-03    6.0847        .12382E-02** at limit **
  10  Prefactor     .10000E-03    53.581        .18142E-02** at limit **
  11  Prefactor     .10000E-03    36.326        .18142E-02** at limit **
  12  Prefactor     .10000E-03    5.1403        .11355E-02** at limit **
  13  Prefactor     42.588        47.570        .61431E-04   -.75321E-05
  14  Prefactor     .10000E-03    9.5423        .15376E-02** at limit **
  15  Prefactor     .10000E-03    27.117        .18142E-02** at limit **
  16  Prefactor     .10000E-03    34.563        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.3862        .16437E-02** at limit **
  18  Prefactor     .10000E-03    29.747        .18142E-02** at limit **
  19  norm          29.014        26.784        .74394E-04   -.48259E-04
  20  norm          .10000E-03    41.454        .18142E-02** at limit **
  21  Prefactor     .10000E-03    584.52        .18142E-02** at limit **
  22  Prefactor     87.145        129.23        .21512E-03    .15696E-04
  23  Normalizat    1.8773        .60450        .40218E-03   -.46141E-04
  24  Prefactor     .67752        .15889        .16652E-03   -.33112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100011
  norm       = 0.0001
  Prefactor  = 2.16547
  Prefactor  = 173.098
  Prefactor  = 30.6239
  norm       = 23.1691
  norm       = 8.86974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.5879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.0137
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 87.1455
  Normalizat = 1.87727
  Prefactor  = 0.677523
 **********
 **   18 **HESSE 
 **********

 FCN=   2646.675     FROM HESSE     STATUS=OK           385 CALLS     3573 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    211.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    38.924        .94264E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.328        .35176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1655        1226.7        .10693E-03   -1.5414    
   5  Prefactor     173.10        237.29        .61345E-05   -1.3069    
   6  Prefactor     30.624        54.562        .28952E-05   -1.4601    
   7  norm          23.169        41.638        .33276E-05   -1.4745    
   8  norm          8.8697        22.137        .53813E-05   -1.5112    
   9  Prefactor     .10000E-03    6.0849        .24764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    53.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1408        .22709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.588        47.569        .12286E-04   -1.4402    
  14  Prefactor     .10000E-03    9.5473        .30751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3941        .32875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          29.014        26.784        .14879E-04   -1.4630    
  20  norm          .10000E-03    41.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    584.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     87.145        129.22        .86050E-05   -1.3838    
  23  Normalizat    1.8773        .60474        .80436E-04   -.67663    
  24  Prefactor     .67752        .15891        .66607E-05   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81558e-11
Minuit parameter uncertainties:
  1  0.000136721
  2  0.00133073
  3  2.53608e-05
  4  105.323
  5  238.618
  6  54.6511
  7  41.6905
  8  22.1576
  9  1.43027e-06
  10  1.20935e-05
  11  1.1775e-05
  12  5.87684e-06
  13  47.6114
  14  1.30838e-05
  15  8.57328e-06
  16  3.62685e-05
  17  9.05292e-06
  18  3.95569e-05
  19  26.7953
  20  9.99004e-05
  21  0.00247291
  22  129.64
  23  0.607197
  24  0.159016
Done.

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

Extracting fit parameters...

4FGL J1944.9-2143
   Spectrum: PowerLaw
643    Prefactor:  1.000e-04  1.178e-05  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:  6.775e-01  1.590e-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.877e+00  6.072e-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.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171565/likelihoodResults_645235201_645494401_4FGL_J1944.9-2143_daily_bin1566.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) = 2646.6751547
delta logL = -0.000130656529109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2646.67502411
delta logL = -6.80124685459e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8765       1.0000          .0000       10.000    
     3 'Normalizat'    1.8773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67752       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=   2646.675     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      279 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1166.4        .18142E-01** at limit **
   2  Index         1.3523        5.5055        .10621       -.94731E-08
   3  Normalizat    1.8773        .75616E-01    .40218E-03    .75757E-05
   4  Prefactor     .67752        .20228E-01    .16652E-03    .25227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.35231
  Normalizat = 1.87727
  Prefactor  = 0.677523
 **********
 **   18 **HESSE 
 **********

 FCN=   2646.675     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.975        .33176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3523        5.1081        .42483E-02   -.81765    
   3  Normalizat    1.8773        .56958        .16087E-04   -.67663    
   4  Prefactor     .67752        .15281        .66606E-05   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67633e-12
Minuit parameter uncertainties:
  1  0.000126294
  2  666.308
  3  0.571626
  4  0.152907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171565': 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) = 2646.67502381
delta logL = 2.27952114074e-07

Extracting fit parameters...

4FGL J1944.9-2143
   Spectrum: PowerLaw
643    Prefactor:  1.000e-04  1.263e-04  1.000e-04  1.000e+04 ( 1.000e-14)
644        Index:  1.352e+00  6.663e+02  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:  6.775e-01  1.529e-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.877e+00  5.716e-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/171565/cmap_HighResolution_645235201_645494401_4FGL_J1944.9-2143_daily_bin1566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-23 13:12:26.729712', job_id='171565', GAL2='0.68', fit_tolerance='1e-08', EG2='1.88', EG='1.88', time_epoch_completed='1632427946.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1566' AND source_name='4FGL J1944.9-2143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 13:12:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 171565: <4FGL_J1944.9-2143_daily_bin1566> in cluster <slac> Done

Job <4FGL_J1944.9-2143_daily_bin1566> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 23 13:02:12 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 13:02:14 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:14 2021
Terminated at Thu Sep 23 13:12:27 2021
Results reported at Thu Sep 23 13:12:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1944.9-2143_daily_bin1566 296.229 -21.7216 645235201 645494401 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 :                                   583.36 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             323.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            615 sec.

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

