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


Performing analysis on: 4FGL_J2150.7-2810_daily_bin651
RA = 327.698, Dec = -28.1728
tmin = 408067201, tmax = 408326401
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='997214', job_status='RUN', time_executed='2021-09-27 18:56:17.501724', time_epoch_executed='1632794177.5' WHERE source_name='4FGL J2150.7-2810' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997214/ft1_4FGL_J2150.7-2810_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997214/ft1_4FGL_J2150.7-2810_daily_bin651.fits outfile=/scratch/kocevski/997214/ft1_filteredMKT_4FGL_J2150.7-2810_daily_bin651.fits ra=327.698 dec=-28.1728 rad=12.0 tmin=408067201.0 tmax=408326401.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.89
user 3.64
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.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/997214/ft1_filteredMKT_4FGL_J2150.7-2810_daily_bin651.fits evtable="EVENTS" outfile="/scratch/kocevski/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/997214/ltcube_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.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/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits
.....................!
real 14.11
user 13.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/997214/ltcube_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.fits outfile=/scratch/kocevski/997214/expmap_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.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/997214/ltcube_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.fits
.....................!
real 192.06
user 186.68
sys 4.89

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2150.7-2810 @ 327.698 -28.1728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.fits scfile=/scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits outfile=/scratch/kocevski/997214/cmap_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.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=327.698 yref=-28.1728 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.fits scfile=/scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits outfile=/scratch/kocevski/997214/cmap_HighResolution_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.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=327.698 yref=-28.1728 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997214/Model_4FGL_J2150.7-2810_daily_bin651.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/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.fits.....................!
real 64.14
user 61.81
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.fits', '/scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits', expMap='/scratch/kocevski/997214/expmap_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.fits', expCube='/scratch/kocevski/997214/ltcube_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/997214/Model_4FGL_J2150.7-2810_daily_bin651.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2150.7-2810'

4FGL J2150.7-2810
   Spectrum: PowerLaw
271    Prefactor:  1.009e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.158e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  3.319e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/997214/ft1_filtered_4FGL_J2150.7-2810_daily_bin651.fits
Spacecraft file(s): /scratch/kocevski/997214/ft2_4FGL_J2150.7-2810_daily_bin651.fits
Exposure map: /scratch/kocevski/997214/expmap_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.fits
Exposure cube: /scratch/kocevski/997214/ltcube_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/997214/Model_4FGL_J2150.7-2810_daily_bin651.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) = 7571.91297216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10451E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.188       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4848       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8743       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6073       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .87220       1.0000         .10000E-03   10000.    
     8 'norm      '    7.4075       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6176       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0517       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7336       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0895       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7571.830     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2039 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    11.632        .10367    ** at limit **
   2  Prefactor     11.188        6.1802        .29944E-02    .30202E-03
   3  norm          .10000E-03    1.6611        .90712E-02** at limit **
   4  Prefactor     3.4849        6.9330        .54151E-02    .40716E-03
   5  Prefactor     5.8741        6.0472        .41423E-02   -.20583E-02
   6  Prefactor     6.6071        16.096        .39029E-02    .71319E-04
   7  Prefactor     .88553        6.0373        .63237E-01    .15902E-02
   8  norm          7.4076        6.2050        .36840E-02   -.12730E-02
   9  Prefactor     .10000E-03    5.5359        .90712E-02** at limit **
  10  Prefactor     .10001E-03    22.350        .90712E-02** at limit **
  11  norm          1.6173        3.9455        .83212E-02    .11983E-02
  12  norm          1.0518        .37894        .65732E-02    .15934E-03
  13  Prefactor     .10000E-03    3.1640        .90712E-02** at limit **
  14  Prefactor     .10001E-03    11.604        .90712E-02** at limit **
  15  Prefactor     .10000E-03    5.7934        .90712E-02** at limit **
  16  norm          .10002E-03    12.531        .90712E-02** at limit **
  17  Prefactor     .10001E-03    29.132        .90712E-02** at limit **
  18  norm          2.7345        3.9815        .61568E-02    .70858E-03
  19  Normalizat    1.0896        .18202        .66713E-01   -.14276E-04
  20  Prefactor     1.0314        .12156        .41149E-01   -.38063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100048
  Prefactor  = 11.1876
  norm       = 0.0001
  Prefactor  = 3.48493
  Prefactor  = 5.87414
  Prefactor  = 6.60714
  Prefactor  = 0.885531
  norm       = 7.40756
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 1.61727
  norm       = 1.05177
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.00010001
  norm       = 2.7345
  Normalizat = 1.08958
  Prefactor  = 1.03137
 **********
 **   18 **HESSE 
 **********

 FCN=   7571.830     FROM HESSE     STATUS=OK           299 CALLS     2338 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    93.859        .56488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.188        6.1794        .11977E-03   -1.5039    
   3  norm          .10000E-03    1.6612        .10952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4849        6.9150        .21660E-03   -1.5335    
   5  Prefactor     5.8741        5.9760        .16569E-03   -1.5223    
   6  Prefactor     6.6071        16.085        .15612E-03   -1.5194    
   7  Prefactor     .88553        14.331        .39729E-02   -1.5520    
   8  norm          7.4076        6.1984        .14736E-03   -1.5164    
   9  Prefactor     .10000E-03    5.5389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    22.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6173        3.9114        .23795E-03   -1.5454    
  12  norm          1.0518        .37809        .29007E-04   -1.5503    
  13  Prefactor     .10000E-03    3.1683        .15115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    11.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    12.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    29.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7345        3.9662        .20343E-03   -1.5377    
  19  Normalizat    1.0896        .20740        .29513E-03   -.90087    
  20  Prefactor     1.0314        .13803        .20346E-03   -.91691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50129e-08
Minuit parameter uncertainties:
  1  0.00423972
  2  6.17977
  3  7.65373e-06
  4  6.91655
  5  5.97663
  6  16.0957
  7  7.1264
  8  6.19889
  9  1.66757e-05
  10  0.000945798
  11  3.91203
  12  0.378092
  13  5.4689e-06
  14  0.000814941
  15  8.38828e-06
  16  0.000981419
  17  0.00109655
  18  3.96657
  19  0.207555
  20  0.138078
Done.

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

Extracting fit parameters...

4FGL J2150.7-2810
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  1.668e-05  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.158e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  3.319e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.031e+00  1.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.090e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.698 -28.173
Photon Flux Upper Limit: 4.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997214/likelihoodResults_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.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) = 7571.8313305
delta logL = -0.00085712271084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7571.83047308
delta logL = 2.93855919153e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1268       1.0000          .0000       10.000    
     3 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7571.830     FROM MIGRAD    STATUS=FAILED        91 CALLS      242 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    384.06        .18142E-02** at limit **
   2  Index         2.0957        5.2251        .50000        .42324E-04
   3  Normalizat    1.0896        .41891E-01    .29513E-03    .97842E-05
   4  Prefactor     1.0314        .28357E-01    .20346E-03    .20172E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7571.830     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      411 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    384.06        .47684E-03** at limit **
   2  Index         2.0957        5.2251        .21886E-05    .42324E-04
   3  Normalizat    1.0896        .41891E-01    .49053E-07    .97842E-05
   4  Prefactor     1.0314        .28357E-01    .11441E-07    .20172E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7571.830     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      445 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1104.7        .36285E-03** at limit **
   2  Index         2.0953        5.9040        .50000        .42297E-04
   3  Normalizat    1.0896        .99625E-01    .11805E-04    .11364E-04
   4  Prefactor     1.0314        .67434E-01    .81384E-05    .22351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.09531
  Normalizat = 1.08958
  Prefactor  = 1.03137
 **********
 **   18 **HESSE 
 **********

 FCN=   7571.830     FROM HESSE     STATUS=OK            29 CALLS      474 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.6054        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0953        6.0351        .50000       -.61988    
   3  Normalizat    1.0896        .20112        .23611E-05   -.90087    
   4  Prefactor     1.0314        .13622        .16277E-05   -.91691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73329e-09
Minuit parameter uncertainties:
  1  0.000532638
  2  4.27855
  3  0.201264
  4  0.136261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997214': 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) = 7571.83047269
delta logL = 6.80148332322e-07

Extracting fit parameters...

4FGL J2150.7-2810
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  5.326e-04  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.095e+00  4.279e+00  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  3.319e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.031e+00  1.363e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.090e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.698 -28.173

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/997214/cmap_HighResolution_408067201_408326401_4FGL_J2150.7-2810_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.75e-08', time_completed='2021-09-27 19:07:05.211281', job_id='997214', GAL2='1.03', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632794825.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='6.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='651' AND source_name='4FGL J2150.7-2810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 997214: <4FGL_J2150.7-2810_daily_bin651> in cluster <slac> Done

Job <4FGL_J2150.7-2810_daily_bin651> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 18:55:36 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:56:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 18:56:08 2021
Terminated at Mon Sep 27 19:07:06 2021
Results reported at Mon Sep 27 19:07:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2150.7-2810_daily_bin651 327.698 -28.1728 408067201 408326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2150.7-2810 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   643.53 sec.
    Max Memory :                                 1134 MB
    Average Memory :                             338.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            690 sec.

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

