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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1140
RA = 325.645, Dec = -25.8777
tmin = 534816001, tmax = 535075201
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='691056', job_status='RUN', time_executed='2021-09-27 00:47:42.181624', time_epoch_executed='1632728862.18' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691056/ft1_4FGL_J2142.5-2552_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691056/ft2_4FGL_J2142.5-2552_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691056/ft1_4FGL_J2142.5-2552_daily_bin1140.fits outfile=/scratch/kocevski/691056/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1140.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=534816001.0 tmax=535075201.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.61
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691056/ft2_4FGL_J2142.5-2552_daily_bin1140.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/691056/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1140.fits evtable="EVENTS" outfile="/scratch/kocevski/691056/ft1_filtered_4FGL_J2142.5-2552_daily_bin1140.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691056/ft1_filtered_4FGL_J2142.5-2552_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/691056/ft2_4FGL_J2142.5-2552_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/691056/ltcube_534816001_535075201_4FGL_J2142.5-2552_daily_bin1140.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/691056/ft2_4FGL_J2142.5-2552_daily_bin1140.fits
.....................!
real 15.54
user 15.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691056/ft1_filtered_4FGL_J2142.5-2552_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/691056/ft2_4FGL_J2142.5-2552_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/691056/ltcube_534816001_535075201_4FGL_J2142.5-2552_daily_bin1140.fits outfile=/scratch/kocevski/691056/expmap_534816001_535075201_4FGL_J2142.5-2552_daily_bin1140.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/691056/ltcube_534816001_535075201_4FGL_J2142.5-2552_daily_bin1140.fits
.....................!
real 191.39
user 186.09
sys 4.79

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/691056/ft1_filtered_4FGL_J2142.5-2552_daily_bin1140.fits scfile=/scratch/kocevski/691056/ft2_4FGL_J2142.5-2552_daily_bin1140.fits outfile=/scratch/kocevski/691056/cmap_534816001_535075201_4FGL_J2142.5-2552_daily_bin1140.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691056/ft1_filtered_4FGL_J2142.5-2552_daily_bin1140.fits scfile=/scratch/kocevski/691056/ft2_4FGL_J2142.5-2552_daily_bin1140.fits outfile=/scratch/kocevski/691056/cmap_HighResolution_534816001_535075201_4FGL_J2142.5-2552_daily_bin1140.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70775E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .45619E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .57924E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7960       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65274       1.0000         .10000E-03   10000.    
     9 'norm      '    8.4340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2196       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1647       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3852       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7811       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    34.508       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93418       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92204       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7200.511     FROM MIGRAD    STATUS=FAILED       765 CALLS     2449 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10575E-03    75.275        .21212    ** at limit **
   2  norm          3.8577        30.254        .20564E-03   -.86963E-04
   3  Prefactor     .10061E-03    18.438        .78474E-01** at limit **
   4  Prefactor     .10025E-03    27.028        .25403E-02** at limit **
   5  norm          .10000E-03    8.1717        .36285E-03** at limit **
   6  Prefactor     .10000E-03    1.1823        .90079E-03** at limit **
   7  Prefactor     5.8015        8.1772        .16682E-03   -.15606E-04
   8  Prefactor     .65124        45.910        .47011E-02    .14622E-02
   9  norm          8.4334        6.9420        .13804E-03   -.20384E-03
  10  Prefactor     .10000E-03    17.048        .36285E-03** at limit **
  11  Prefactor     4.2178        11.970        .19617E-03   -.13439E-03
  12  Prefactor     .10000E-03    27.670        .18142E-02** at limit **
  13  norm          1.1664        3.5340        .24961E-03   -.19384E-03
  14  Prefactor     .10000E-03    25.455        .36285E-03** at limit **
  15  norm          1.3852        .38427        .25798E-04   -.14000E-02
  16  Prefactor     5.7815        5.4448        .16704E-03   -.97324E-05
  17  Prefactor     .10000E-03    5.3500        .18142E-02** at limit **
  18  norm          34.511        20.598        .68218E-04   -.28831E-04
  19  Normalizat    .93402        .19734        .27380E-03   -.18897E-03
  20  Prefactor     .92201        .12805        .18248E-03   -.16348E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7200.511     FROM SIMPLEX   STATUS=UNCHANGED    864 CALLS     3313 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10575E-03    75.275        .84267E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8577        30.254        .41357E-06   -1.5315    
   3  Prefactor     .10061E-03    18.438        .63581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10025E-03    27.028        .61808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.1717        .35906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1823        .13503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8015        8.1772        .14558E-06   -1.5226    
   8  Prefactor     .65124        45.910        .16723E-06   -1.5547    
   9  norm          8.4334        6.9420        .14552E-06   -1.5127    
  10  Prefactor     .10000E-03    17.048        .51712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2178        11.970        .14467E-06   -1.5297    
  12  Prefactor     .10000E-03    27.670        .52249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1664        3.5340        .15046E-06   -1.5492    
  14  Prefactor     .10000E-03    25.455        .35073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3852        .38427        .14743E-06   -1.5473    
  16  Prefactor     5.7815        5.4448        .14819E-06   -1.5227    
  17  Prefactor     .10000E-03    5.3500        .32647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          34.511        20.598        .13783E-06   -1.4532    
  19  Normalizat    .93402        .19734        .89696E-07   -.95275    
  20  Prefactor     .92201        .12805        .90669E-07   -.95376    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7200.511     FROM MIGRAD    STATUS=CONVERGED    296 CALLS     3609 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10519E-03    77.637        .20746    ** at limit **
   2  norm          3.8579        30.254        .82255E-05    .46439E-04
   3  Prefactor     .10055E-03    15.909        .85695E-01** at limit **
   4  Prefactor     .10000E-03    27.424        .50805E-03** at limit **
   5  norm          .10000E-03    8.1721        .72569E-04** at limit **
   6  Prefactor     .10000E-03    1.1823        .18016E-03** at limit **
   7  Prefactor     5.8015        8.1758        .66730E-05    .47703E-05
   8  Prefactor     .65127        46.085        .94022E-03    .30350E-05
   9  norm          8.4334        6.9410        .55215E-05    .61770E-05
  10  Prefactor     .10000E-03    17.049        .72569E-04** at limit **
  11  Prefactor     4.2178        11.963        .78469E-05    .20283E-05
  12  Prefactor     .10000E-03    27.671        .36285E-03** at limit **
  13  norm          1.1664        3.5314        .99844E-05    .81983E-05
  14  Prefactor     .10000E-03    25.456        .72569E-04** at limit **
  15  norm          1.3852        .38416        .10319E-05    .22189E-04
  16  Prefactor     5.7815        5.4446        .66817E-05    .20418E-05
  17  Prefactor     .10000E-03    5.3504        .36285E-03** at limit **
  18  norm          34.511        20.599        .27287E-05    .16665E-06
  19  Normalizat    .93402        .19716        .10952E-04    .20408E-03
  20  Prefactor     .92201        .12812        .36496E-04    .32671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105186
  norm       = 3.85795
  Prefactor  = 0.000100553
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.80153
  Prefactor  = 0.651267
  norm       = 8.43339
  Prefactor  = 0.0001
  Prefactor  = 4.21785
  Prefactor  = 0.0001
  norm       = 1.16642
  Prefactor  = 0.0001
  norm       = 1.38516
  Prefactor  = 5.78147
  Prefactor  = 0.0001
  norm       = 34.5112
  Normalizat = 0.934022
  Prefactor  = 0.922014
 **********
 **   18 **HESSE 
 **********

 FCN=   7200.511     FROM HESSE     STATUS=OK           293 CALLS     3902 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10519E-03    77.036        .20860       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8579        30.246        .16451E-05   -1.5315    
   3  Prefactor     .10055E-03    16.963        .82456E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.440        .10161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.1721        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1823        .36032E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8015        8.1729        .13346E-05   -1.5226    
   8  Prefactor     .65127        45.987        .37609E-04   -1.5547    
   9  norm          8.4334        6.9412        .11043E-05   -1.5127    
  10  Prefactor     .10000E-03    17.049        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2178        11.963        .15694E-05   -1.5297    
  12  Prefactor     .10000E-03    27.671        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1664        3.5311        .19969E-05   -1.5492    
  14  Prefactor     .10000E-03    25.455        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3852        .38416        .36890E-06   -1.5473    
  16  Prefactor     5.7815        5.4441        .13363E-05   -1.5227    
  17  Prefactor     .10000E-03    5.3504        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          34.511        20.598        .27287E-05   -1.4532    
  19  Normalizat    .93402        .19706        .21904E-05   -.95275    
  20  Prefactor     .92201        .12815        .72992E-05   -.95376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95549e-10
Minuit parameter uncertainties:
  1  0.0400252
  2  21.6192
  3  0.00612686
  4  8.28879e-05
  5  8.65281e-08
  6  1.76626e-08
  7  8.17448
  8  10.9532
  9  6.9419
  10  4.14525e-07
  11  11.9693
  12  4.64304e-06
  13  3.53175
  14  3.78617e-07
  15  0.384161
  16  5.44454
  17  3.08139e-07
  18  20.6025
  19  0.197217
  20  0.128188
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  6.513e-01  1.095e+01  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:  9.220e-01  1.282e-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.340e-01  1.972e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691056/likelihoodResults_534816001_535075201_4FGL_J2142.5-2552_daily_bin1140.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) = 7200.07769212
delta logL = 0.432897403311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7199.94069447
delta logL = 0.569895047444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40492E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1206       1.0000          .0000       10.000    
     3 'Normalizat'    .87312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94448       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=   7199.941     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      258 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39898E-01    .59304        .36906E-02    .64016E-02
   2  Index         5.1277        2.4493        .10193        .22223E-03
   3  Normalizat    .87280        .34696E-01    .63844E-01    .31002E-04
   4  Prefactor     .94478        .23092E-01    .45569E-01    .18475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0398976
  Index      = 5.12774
  Normalizat = 0.872801
  Prefactor  = 0.944778
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.941     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      293 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39898E-01    1.9238        .16860E-03   -1.5668    
   2  Index         5.1277        7.3561        .56057E-02    .25550E-01
   3  Normalizat    .87280        .13469        .28240E-03   -.97423    
   4  Prefactor     .94478        .88078E-01    .18044E-03   -.94594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34556e-10
Minuit parameter uncertainties:
  1  0.553412
  2  5.92695
  3  0.13474
  4  0.0880916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691056': 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) = 7199.94068815
delta logL = 0.569901372447

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  3.990e-02  5.534e-01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  5.128e+00  5.927e+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:  9.448e-01  8.809e-02  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:  8.728e-01  1.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 5.13 +/- 5.93
Photon Flux (Free Index): 4.93e-08 +/- 4.64e-08
Energy Flux (Free Index): 6.49e-06 +/- 7.05e-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/691056/cmap_HighResolution_534816001_535075201_4FGL_J2142.5-2552_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', comment='SUCCESS', energy_flux2='6.49e-06', dlogl='5.70e-01', photon_flux2='4.93e-08', job_status='DONE', time_completed='2021-09-27 01:00:12.404603', photon_index_error2='5.93', photon_index2='5.13', ts='0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='7.09e-08', energy_flux_error2='7.05e-06', EG='0.93', time_epoch_completed='1632729612.4', return_code='0', job_id='691056', GAL2='0.94', EG2='0.87', return_code2='102', photon_flux_error2='4.64e-08', ts2='1.23', photon_index='2.21' WHERE bin_id='1140' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:00:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 691056: <4FGL_J2142.5-2552_daily_bin1140> in cluster <slac> Done

Job <4FGL_J2142.5-2552_daily_bin1140> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 00:45:25 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 00:45:51 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:45:51 2021
Terminated at Mon Sep 27 01:00:13 2021
Results reported at Mon Sep 27 01:00:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1140 325.645 -25.8777 534816001 535075201 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 :                                   747.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            888 sec.

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

