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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1251
RA = 325.645, Dec = -25.8777
tmin = 563587201, tmax = 563846401
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='691230', job_status='RUN', time_executed='2021-09-27 00:47:59.995405', time_epoch_executed='1632728880.0' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691230/ft1_4FGL_J2142.5-2552_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691230/ft1_4FGL_J2142.5-2552_daily_bin1251.fits outfile=/scratch/kocevski/691230/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1251.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=563587201.0 tmax=563846401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.82
user 2.58
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.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/691230/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1251.fits evtable="EVENTS" outfile="/scratch/kocevski/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.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/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/691230/ltcube_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.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/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits
.....................!
real 14.77
user 14.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/691230/ltcube_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.fits outfile=/scratch/kocevski/691230/expmap_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.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/691230/ltcube_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.fits
.....................!
real 191.19
user 185.75
sys 4.27

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/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.fits scfile=/scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits outfile=/scratch/kocevski/691230/cmap_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.fits scfile=/scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits outfile=/scratch/kocevski/691230/cmap_HighResolution_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691230/Model_4FGL_J2142.5-2552_daily_bin1251.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/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.fits.....................!
real 72.70
user 71.14
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.fits', '/scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits', expMap='/scratch/kocevski/691230/expmap_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.fits', expCube='/scratch/kocevski/691230/ltcube_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/691230/Model_4FGL_J2142.5-2552_daily_bin1251.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/691230/ft1_filtered_4FGL_J2142.5-2552_daily_bin1251.fits
Spacecraft file(s): /scratch/kocevski/691230/ft2_4FGL_J2142.5-2552_daily_bin1251.fits
Exposure map: /scratch/kocevski/691230/expmap_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.fits
Exposure cube: /scratch/kocevski/691230/ltcube_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/691230/Model_4FGL_J2142.5-2552_daily_bin1251.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) = 8737.23059285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.80       1.0000         .10000E-03   10000.    
     2 'norm      '    18.586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    88.547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10143       1.0000         .10000E-03   10000.    
     9 'norm      '    10.119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .94719       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0953       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1871       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0608       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=   8737.225     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2065 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.78        107.80        .14435E-04    .15979E-03
   2  norm          18.587        20.514       -.25603E-06    .37461E-04
   3  Prefactor     88.543        25.783        .14496E-05    .26843E-03
   4  Prefactor     .10000E-03    5.9139        .62885E-07** at limit **
   5  norm          2.8152        3.2193        .52026E-06   -.11707E-02
   6  Prefactor     .10000E-03    5.0749       -.18079E-06** at limit **
   7  Prefactor     1.8069        9.1925       -.40839E-06    .19423E-03
   8  Prefactor     .10002E-03    10.746       -.82334E-06** at limit **
   9  norm          10.118        7.9942        .29853E-06    .92777E-04
  10  Prefactor     .10000E-03    6.1935       -.96762E-07** at limit **
  11  Prefactor     .10000E-03    6.2377       -.15677E-07** at limit **
  12  Prefactor     .10000E-03    34.182        .41492E-05** at limit **
  13  norm          .10000E-03    2.0243       -.74767E-07** at limit **
  14  Prefactor     .89917        79.498        .27679E-04   -.71488E-04
  15  norm          3.0953        .53863        .11247E-07   -.96513E-04
  16  Prefactor     .10000E-03    3.9322        .85497E-07** at limit **
  17  Prefactor     .10000E-03    16.117       -.24060E-06** at limit **
  18  norm          .10000E-03    9.8034       -.37335E-06** at limit **
  19  Normalizat    1.1874        .19051       -.27626E-06   -.14702E-04
  20  Prefactor     1.0607        .12243       -.48355E-06    .31360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.781
  norm       = 18.5874
  Prefactor  = 88.5427
  Prefactor  = 0.0001
  norm       = 2.81524
  Prefactor  = 0.0001
  Prefactor  = 1.8069
  Prefactor  = 0.000100024
  norm       = 10.1184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.899171
  norm       = 3.0953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.18737
  Prefactor  = 1.06066
 **********
 **   18 **HESSE 
 **********

 FCN=   8737.225     FROM HESSE     STATUS=OK           295 CALLS     2360 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.78        110.23        .39849E-04   -1.3687    
   2  norm          18.587        20.519        .92902E-04   -1.4845    
   3  Prefactor     88.543        25.862        .42698E-04   -1.3823    
   4  Prefactor     .10000E-03    6.0214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8152        3.4243        .93196E-03   -1.5372    
   6  Prefactor     .10000E-03    5.1806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8069        9.4709        .31072E-03   -1.5439    
   8  Prefactor     .10002E-03    12.467        .85919E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.118        7.9841        .12596E-03   -1.5072    
  10  Prefactor     .10000E-03    6.2256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0494        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .89917        80.708        .59733E-02   -1.5518    
  15  norm          3.0953        .53952        .27553E-04   -1.5356    
  16  Prefactor     .10000E-03    3.9614        .18100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.8109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1874        .21848        .31300E-03   -.86994    
  20  Prefactor     1.0607        .14093        .21348E-03   -.90734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90654e-08
Minuit parameter uncertainties:
  1  110.453
  2  20.5265
  3  25.8655
  4  9.86907e-05
  5  3.42451
  6  3.13738e-06
  7  8.27539
  8  0.00108414
  9  7.98499
  10  8.27728e-06
  11  3.02183e-06
  12  0.00029496
  13  5.22771e-06
  14  17.0605
  15  0.539517
  16  2.40381e-06
  17  1.33175e-05
  18  1.52722e-05
  19  0.218645
  20  0.140974
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  1.084e-03  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.061e+00  1.410e-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:  1.187e+00  2.186e-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: 7.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691230/likelihoodResults_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.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) = 8737.22469753
delta logL = -1.9477940441e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8735.94743401
delta logL = 1.27724404749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38047E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4239       1.0000          .0000       10.000    
     3 'Normalizat'    1.0765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1014       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.

 FCN=   8735.947     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      304 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37613E-01    .30302        .27320E-02   -.15709E-01
   2  Index         5.4291        1.7851        .11864       -.26851E-03
   3  Normalizat    1.0762        .43278E-01    .73732E-01   -.22999E-03
   4  Prefactor     1.1016        .28199E-01    .37535E-01   -.25883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0376129
  Index      = 5.42908
  Normalizat = 1.07616
  Prefactor  = 1.10156
 **********
 **   18 **HESSE 
 **********

 FCN=   8735.947     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      337 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37613E-01    .88514        .12432E-03   -1.5669    
   2  Index         5.4291        3.6634        .41378E-02    .85922E-01
   3  Normalizat    1.0762        .16905        .32629E-03   -.90521    
   4  Prefactor     1.1016        .10801        .20985E-03   -.89417    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.96428e-10
Minuit parameter uncertainties:
  1  0.364446
  2  4.11599
  3  0.169131
  4  0.108033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691230': 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) = 8735.94742964
delta logL = 1.27724841902

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  3.761e-02  3.644e-01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  5.429e+00  4.116e+00  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.102e+00  1.080e-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:  1.076e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.76
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 5.43 +/- 4.12
Photon Flux (Free Index): 9.39e-08 +/- 6.26e-08
Energy Flux (Free Index): 1.21e-05 +/- 8.95e-06

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/691230/cmap_HighResolution_563587201_563846401_4FGL_J2142.5-2552_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='1.28e+00', photon_flux2='9.39e-08', job_status='DONE', time_completed='2021-09-27 00:59:29.131476', photon_index_error2='4.12', photon_index2='5.43', ts='-0.00', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='7.98e-08', energy_flux_error2='8.95e-06', EG='1.19', time_epoch_completed='1632729569.13', return_code='0', job_id='691230', GAL2='1.10', EG2='1.08', return_code2='102', photon_flux_error2='6.26e-08', ts2='2.76', photon_index='2.21' WHERE bin_id='1251' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 691230: <4FGL_J2142.5-2552_daily_bin1251> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1251> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:45:41 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:47:17 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:47:17 2021
Terminated at Mon Sep 27 00:59:29 2021
Results reported at Mon Sep 27 00:59:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1251 325.645 -25.8777 563587201 563846401 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 :                                   682.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            828 sec.

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

