/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 61 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2150.7-2810_daily_bin350
RA = 327.698, Dec = -28.1728
tmin = 330048001, tmax = 330307201
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='995622', job_status='RUN', time_executed='2021-09-27 18:52:39.472989', time_epoch_executed='1632793959.47' WHERE source_name='4FGL J2150.7-2810' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995622/ft1_4FGL_J2150.7-2810_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995622/ft1_4FGL_J2150.7-2810_daily_bin350.fits outfile=/scratch/kocevski/995622/ft1_filteredMKT_4FGL_J2150.7-2810_daily_bin350.fits ra=327.698 dec=-28.1728 rad=12.0 tmin=330048001.0 tmax=330307201.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.50
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995622/ft1_filtered_4FGL_J2150.7-2810_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/995622/ltcube_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.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/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits
.....................!
real 14.76
user 14.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995622/ft1_filtered_4FGL_J2150.7-2810_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/995622/ltcube_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.fits outfile=/scratch/kocevski/995622/expmap_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.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/995622/ltcube_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.fits
.....................!
real 191.83
user 185.79
sys 4.85

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/995622/ft1_filtered_4FGL_J2150.7-2810_daily_bin350.fits scfile=/scratch/kocevski/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits outfile=/scratch/kocevski/995622/cmap_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995622/ft1_filtered_4FGL_J2150.7-2810_daily_bin350.fits scfile=/scratch/kocevski/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits outfile=/scratch/kocevski/995622/cmap_HighResolution_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995622/ft1_filtered_4FGL_J2150.7-2810_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995622/Model_4FGL_J2150.7-2810_daily_bin350.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/995622/ft1_filtered_4FGL_J2150.7-2810_daily_bin350.fits.....................!
real 50.22
user 48.81
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/995622/ft1_filtered_4FGL_J2150.7-2810_daily_bin350.fits', '/scratch/kocevski/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits', expMap='/scratch/kocevski/995622/expmap_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.fits', expCube='/scratch/kocevski/995622/ltcube_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/995622/Model_4FGL_J2150.7-2810_daily_bin350.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/995622/ft1_filtered_4FGL_J2150.7-2810_daily_bin350.fits
Spacecraft file(s): /scratch/kocevski/995622/ft2_4FGL_J2150.7-2810_daily_bin350.fits
Exposure map: /scratch/kocevski/995622/expmap_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.fits
Exposure cube: /scratch/kocevski/995622/ltcube_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/995622/Model_4FGL_J2150.7-2810_daily_bin350.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) = 5527.27125161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7094       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11512E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    12.891       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74426E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.962       1.0000         .10000E-03   10000.    
    11 'norm      '    6.8079       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0835       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.735       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.444       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2050       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93155       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.

 FCN=   5527.267     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2424 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7046        20.379       -.76505E-06    .23071E-04
   2  Prefactor     .10014E-03    60.275        .20284E-04** at limit **
   3  norm          12.890        9.4965        .11717E-06    .10434E-03
   4  Prefactor     .10000E-03    4.0143       -.58763E-07** at limit **
   5  Prefactor     .10000E-03    3.8672       -.12410E-06** at limit **
   6  Prefactor     .10000E-03    51.248       -.39432E-05** at limit **
   7  Prefactor     .10000E-03    3.9515       -.54982E-07** at limit **
   8  norm          .10013E-03    8.1950       -.56734E-05** at limit **
   9  Prefactor     .10000E-03    59.941        .29578E-05** at limit **
  10  Prefactor     26.750        72.985        .52639E-05    .70042E-04
  11  norm          6.8122        8.3704        .28797E-05    .53936E-03
  12  norm          1.0835        .56428       -.96923E-07    .55578E-03
  13  Prefactor     .10000E-03    5.9323       -.18137E-06** at limit **
  14  Prefactor     .10000E-03    24.142        .30095E-06** at limit **
  15  Prefactor     .10000E-03    2.9522       -.10665E-06** at limit **
  16  norm          10.735        15.266       -.78054E-07    .15781E-05
  17  Prefactor     41.447        21.757       -.48561E-07   -.10104E-04
  18  norm          .10000E-03    1.6717       -.22379E-07** at limit **
  19  Normalizat    1.2049        .23436       -.20200E-05    .63927E-03
  20  Prefactor     .93161        .15288        .31658E-05    .15407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.7046
  Prefactor  = 0.000100144
  norm       = 12.8903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100126
  Prefactor  = 0.000100002
  Prefactor  = 26.7499
  norm       = 6.8122
  norm       = 1.0835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7353
  Prefactor  = 41.4467
  norm       = 0.0001
  Normalizat = 1.20488
  Prefactor  = 0.931613
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.267     FROM HESSE     STATUS=OK           289 CALLS     2713 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7046        20.336        .15491E-03   -1.5190    
   2  Prefactor     .10014E-03    70.823        .34118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.890        9.5041        .11157E-03   -1.4990    
   4  Prefactor     .10000E-03    4.0378        .14546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8928        .14279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9621        .14434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10013E-03    24.159        .31165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    60.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.750        72.982        .77152E-04   -1.4673    
  11  norm          6.8122        8.3120        .15377E-03   -1.5186    
  12  norm          1.0835        .55924        .17428E-03   -1.5500    
  13  Prefactor     .10000E-03    5.9585        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9571        .12476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.735        15.261        .12228E-03   -1.5053    
  17  Prefactor     41.447        21.823        .62268E-04   -1.4419    
  18  norm          .10000E-03    1.6810        .93856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2049        .26239        .28496E-03   -.86452    
  20  Prefactor     .93161        .16957        .21305E-03   -.95045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83556e-09
Minuit parameter uncertainties:
  1  20.3567
  2  0.00639899
  3  9.50525
  4  8.37703e-06
  5  1.68845e-05
  6  0.000263695
  7  8.88991e-06
  8  0.00348903
  9  0.000766958
  10  73.2271
  11  8.3134
  12  0.559238
  13  8.34181e-06
  14  3.52908e-05
  15  6.12912e-06
  16  15.2668
  17  21.8268
  18  1.85091e-06
  19  0.262673
  20  0.169663
Done.

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

Extracting fit parameters...

4FGL J2150.7-2810
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  7.670e-04  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:  9.316e-01  1.697e-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.205e+00  2.627e-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: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995622/likelihoodResults_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.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) = 5527.26666219
delta logL = -7.87254348324e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5527.2665838
delta logL = -3.37357960234e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23772E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2048       1.0000          .0000       10.000    
     3 'Normalizat'    1.2049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93162       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=   5526.897     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      303 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61558        15.899        .90712E-02    .13177E-02
   2  Index         3.5776        2.5342        .76763E-01    .22775E-03
   3  Normalizat    1.1438        .52551E-01    .65757E-01   -.10736E-03
   4  Prefactor     .95209        .34906E-01    .45407E-01   -.16110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.615583
  Index      = 3.5776
  Normalizat = 1.14377
  Prefactor  = 0.952085
 **********
 **   18 **HESSE 
 **********

 FCN=   5526.897     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      334 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61558        44.801        .69184E-04   -1.5551    
   2  Index         3.5776        6.7798        .48287E-02   -.28846    
   3  Normalizat    1.1438        .23073        .29091E-03   -.88359    
   4  Prefactor     .95209        .14799        .21077E-03   -.94344    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25794e-09
Minuit parameter uncertainties:
  1  10.5104
  2  5.73991
  3  0.230938
  4  0.148054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995622': 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): 102
logL (Free Index) = 5526.89725616
delta logL = 0.369327304096

Extracting fit parameters...

4FGL J2150.7-2810
   Spectrum: PowerLaw
271    Prefactor:  6.156e-01  1.051e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  3.578e+00  5.740e+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:  9.521e-01  1.481e-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.144e+00  2.309e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/995622/cmap_HighResolution_330048001_330307201_4FGL_J2150.7-2810_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-09-27 19:02:06.329176', job_id='995622', GAL2='0.95', fit_tolerance='1e-08', EG2='1.14', EG='1.20', time_epoch_completed='1632794526.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.69e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='350' AND source_name='4FGL J2150.7-2810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:02:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 995622: <4FGL_J2150.7-2810_daily_bin350> in cluster <slac> Done

Job <4FGL_J2150.7-2810_daily_bin350> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep 27 18:50:24 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:51:28 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:51:28 2021
Terminated at Mon Sep 27 19:02:07 2021
Results reported at Mon Sep 27 19:02:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2150.7-2810_daily_bin350 327.698 -28.1728 330048001 330307201 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 :                                   560.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            703 sec.

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

