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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1223
RA = 325.645, Dec = -25.8777
tmin = 556329601, tmax = 556588801
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='691186', job_status='RUN', time_executed='2021-09-27 00:47:56.775174', time_epoch_executed='1632728876.78' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691186/ft1_4FGL_J2142.5-2552_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691186/ft1_4FGL_J2142.5-2552_daily_bin1223.fits outfile=/scratch/kocevski/691186/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1223.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=556329601.0 tmax=556588801.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.76
user 3.53
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.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/691186/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1223.fits evtable="EVENTS" outfile="/scratch/kocevski/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.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/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/691186/ltcube_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.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/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits
.....................!
real 13.44
user 13.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/691186/ltcube_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.fits outfile=/scratch/kocevski/691186/expmap_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.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/691186/ltcube_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.fits
.....................!
real 191.26
user 185.51
sys 4.73

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

Setting source of interest to:
4FGL J2142.5-2552 @ 325.645 -25.8777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.fits scfile=/scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits outfile=/scratch/kocevski/691186/cmap_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.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=325.645 yref=-25.8777 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.92
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.fits scfile=/scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits outfile=/scratch/kocevski/691186/cmap_HighResolution_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.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=325.645 yref=-25.8777 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691186/Model_4FGL_J2142.5-2552_daily_bin1223.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/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.fits.....................!
real 96.37
user 94.75
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.fits', '/scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits', expMap='/scratch/kocevski/691186/expmap_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.fits', expCube='/scratch/kocevski/691186/ltcube_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/691186/Model_4FGL_J2142.5-2552_daily_bin1223.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.5-2552'

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  2.690e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.208e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/691186/ft1_filtered_4FGL_J2142.5-2552_daily_bin1223.fits
Spacecraft file(s): /scratch/kocevski/691186/ft2_4FGL_J2142.5-2552_daily_bin1223.fits
Exposure map: /scratch/kocevski/691186/expmap_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.fits
Exposure cube: /scratch/kocevski/691186/ltcube_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/691186/Model_4FGL_J2142.5-2552_daily_bin1223.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) = 12676.2114486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11293E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .69664       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2149       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .94962       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.6105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.327       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11692E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7924       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1042       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.236       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2263       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.814       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.749       1.0000         .10000E-03   10000.    
    18 'norm      '    20.000       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97490       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12676.13     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1772 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.634       -.16714E-06** at limit **
   2  norm          22.543        16.980        .49957E-06    .39756E-04
   3  Prefactor     14.578        14.216       -.30777E-05   -.26008E-03
   4  Prefactor     .10000E-03    1.3563        .60966E-07** at limit **
   5  norm          .69701        2.6590        .32061E-06   -.47853E-03
   6  Prefactor     2.2161        3.0809        .26882E-06   -.56587E-05
   7  Prefactor     .95224        5.7152        .92480E-06   -.34130E-03
   8  Prefactor     .10000E-03    5.1588       -.82189E-08** at limit **
   9  norm          6.6062        5.2807       -.56089E-06   -.19679E-03
  10  Prefactor     17.322        12.531        .81807E-06    .10228E-03
  11  Prefactor     .10000E-03    3.9655        .26653E-07** at limit **
  12  Prefactor     1.7073        56.546       -.18580E-05   -.27847E-04
  13  norm          1.1031        2.9717        .92722E-06   -.27482E-03
  14  Prefactor     22.237        17.334       -.37000E-06   -.15947E-04
  15  norm          1.2263        .28900       -.32216E-07   -.49588E-03
  16  Prefactor     11.813        5.8185       -.54101E-06   -.22379E-03
  17  Prefactor     13.748        11.293        .23187E-06    .13113E-04
  18  norm          20.003        12.569       -.59959E-06   -.86560E-04
  19  Normalizat    .97497        .14086       -.27284E-06   -.41484E-04
  20  Prefactor     1.0072        .90123E-01    .30260E-06   -.13348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 22.5427
  Prefactor  = 14.5782
  Prefactor  = 0.0001
  norm       = 0.697013
  Prefactor  = 2.21613
  Prefactor  = 0.952239
  Prefactor  = 0.0001
  norm       = 6.60621
  Prefactor  = 17.3218
  Prefactor  = 0.0001
  Prefactor  = 1.70731
  norm       = 1.10314
  Prefactor  = 22.2369
  norm       = 1.22629
  Prefactor  = 11.8127
  Prefactor  = 13.748
  norm       = 20.0028
  Normalizat = 0.974969
  Prefactor  = 1.00717
 **********
 **   18 **HESSE 
 **********

 FCN=   12676.13     FROM HESSE     STATUS=OK           295 CALLS     2067 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.543        16.996        .84351E-04   -1.4758    
   3  Prefactor     14.578        14.448        .10494E-03   -1.4944    
   4  Prefactor     .10000E-03    1.3659        .12804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .69701        3.1170        .38834E-03   -1.5541    
   6  Prefactor     2.2161        3.0696        .22637E-03   -1.5410    
   7  Prefactor     .95224        7.6175        .51946E-03   -1.5513    
   8  Prefactor     .10000E-03    5.2230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.6062        5.2689        .15608E-03   -1.5194    
  10  Prefactor     17.322        12.537        .96218E-04   -1.4875    
  11  Prefactor     .10000E-03    3.9633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7073        56.455        .31239E-03   -1.5447    
  13  norm          1.1031        3.0402        .28689E-03   -1.5498    
  14  Prefactor     22.237        17.353        .84944E-04   -1.4764    
  15  norm          1.2263        .28703        .27093E-04   -1.5486    
  16  Prefactor     11.813        5.8381        .11655E-03   -1.5020    
  17  Prefactor     13.748        11.316        .10802E-03   -1.4966    
  18  norm          20.003        12.592        .89559E-04   -1.4813    
  19  Normalizat    .97497        .16429        .29494E-03   -.93874    
  20  Prefactor     1.0072        .10509        .19379E-03   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43369e-10
Minuit parameter uncertainties:
  1  5.49282e-06
  2  17
  3  14.4518
  4  2.12145e-06
  5  2.94799
  6  3.06979
  7  5.38719
  8  6.27803e-07
  9  5.26929
  10  12.5385
  11  6.459e-06
  12  19.6549
  13  3.04063
  14  17.3568
  15  0.287026
  16  5.83836
  17  11.3175
  18  12.5941
  19  0.16437
  20  0.105107
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  6.278e-07  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.208e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.007e+00  1.051e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  9.750e-01  1.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 3.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691186/likelihoodResults_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.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) = 12676.1338559
delta logL = -0.000912690280529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12676.1329432
delta logL = 3.00224201055e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2218       1.0000          .0000       10.000    
     3 'Normalizat'    .97496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+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=   12676.13     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      252 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10199E-03    .61794E-01    .73963E-01** at limit **
   2  Index         2.3152        8.8381        .50000       -.19387E-04
   3  Normalizat    .97497        .51059E-03    .29494E-03    .22742E-04
   4  Prefactor     1.0072        .34251E-03    .19379E-03    .31797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010199
  Index      = 2.31515
  Normalizat = 0.974969
  Prefactor  = 1.00717
 **********
 **   18 **HESSE 
 **********

 FCN=   12676.13     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10199E-03    23.726        .37811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3152        5.3260        .50000       -.56684    
   3  Normalizat    .97497        .73664E-02    .11798E-04   -.93874    
   4  Prefactor     1.0072        .49415E-02    .77515E-05   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41891e-08
Minuit parameter uncertainties:
  1  0.0137475
  2  247.617
  3  0.00736636
  4  0.0049415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691186': 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) = 12676.1329429
delta logL = 3.35963704856e-07

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.020e-04  1.375e-02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.315e+00  2.476e+02  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.007e+00  4.942e-03  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  9.750e-01  7.366e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.645 -25.878

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/691186/cmap_HighResolution_556329601_556588801_4FGL_J2142.5-2552_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.76e-08', time_completed='2021-09-27 01:01:32.201431', job_id='691186', GAL2='1.01', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632729692.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1223' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:01:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 691186: <4FGL_J2142.5-2552_daily_bin1223> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1223> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:45:36 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:46:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 00:46:53 2021
Terminated at Mon Sep 27 01:01:33 2021
Results reported at Mon Sep 27 01:01:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1223 325.645 -25.8777 556329601 556588801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2142.5-2552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   811.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            957 sec.

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

