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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1295
RA = 325.645, Dec = -25.8777
tmin = 574992001, tmax = 575251201
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='691301', job_status='RUN', time_executed='2021-09-27 00:49:09.368678', time_epoch_executed='1632728949.37' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691301/ft1_4FGL_J2142.5-2552_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691301/ft2_4FGL_J2142.5-2552_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691301/ft1_4FGL_J2142.5-2552_daily_bin1295.fits outfile=/scratch/kocevski/691301/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1295.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=574992001.0 tmax=575251201.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 5.46
user 5.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691301/ft1_filtered_4FGL_J2142.5-2552_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/691301/ft2_4FGL_J2142.5-2552_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/691301/ltcube_574992001_575251201_4FGL_J2142.5-2552_daily_bin1295.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/691301/ft2_4FGL_J2142.5-2552_daily_bin1295.fits
.....................!
real 14.07
user 13.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691301/ft1_filtered_4FGL_J2142.5-2552_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/691301/ft2_4FGL_J2142.5-2552_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/691301/ltcube_574992001_575251201_4FGL_J2142.5-2552_daily_bin1295.fits outfile=/scratch/kocevski/691301/expmap_574992001_575251201_4FGL_J2142.5-2552_daily_bin1295.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/691301/ltcube_574992001_575251201_4FGL_J2142.5-2552_daily_bin1295.fits
.....................!
real 190.58
user 185.79
sys 4.28

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/691301/ft1_filtered_4FGL_J2142.5-2552_daily_bin1295.fits scfile=/scratch/kocevski/691301/ft2_4FGL_J2142.5-2552_daily_bin1295.fits outfile=/scratch/kocevski/691301/cmap_574992001_575251201_4FGL_J2142.5-2552_daily_bin1295.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691301/ft1_filtered_4FGL_J2142.5-2552_daily_bin1295.fits scfile=/scratch/kocevski/691301/ft2_4FGL_J2142.5-2552_daily_bin1295.fits outfile=/scratch/kocevski/691301/cmap_HighResolution_574992001_575251201_4FGL_J2142.5-2552_daily_bin1295.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.81
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691301/ft1_filtered_4FGL_J2142.5-2552_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/691301/ft2_4FGL_J2142.5-2552_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691301/Model_4FGL_J2142.5-2552_daily_bin1295.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/691301/ft1_filtered_4FGL_J2142.5-2552_daily_bin1295.fits.....................!
real 69.75
user 68.34
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.618       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.702       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2249       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.919       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.817       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0302       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6610       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3051       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85615       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=   8617.813     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2354 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.628        75.289        .15366E-04    .33649E-06
   2  norm          .10000E-03    10.506       -.29479E-06** at limit **
   3  Prefactor     39.704        18.444        .12454E-05   -.54956E-05
   4  Prefactor     .10000E-03    5.3703       -.18689E-06** at limit **
   5  norm          .10000E-03    3.0970       -.29951E-09** at limit **
   6  Prefactor     .10000E-03    1.6935       -.14622E-07** at limit **
   7  Prefactor     .10000E-03    3.1045        .11389E-06** at limit **
   8  Prefactor     9.2246        10.610        .14614E-06   -.11416E-05
   9  norm          .10000E-03    2.4067       -.18880E-07** at limit **
  10  Prefactor     23.433        14.362       -.65488E-06   -.57241E-05
  11  Prefactor     .10000E-03    5.4323        .27680E-06** at limit **
  12  Prefactor     20.916        23.768       -.44585E-05    .20302E-04
  13  norm          .10000E-03    2.2690        .32336E-07** at limit **
  14  Prefactor     19.818        16.601        .39340E-06   -.62636E-05
  15  norm          2.0301        .42176        .22005E-07    .29044E-03
  16  Prefactor     .19302        4.1959       -.16856E-05    .44581E-03
  17  Prefactor     .10000E-03    4.7854       -.54302E-07** at limit **
  18  norm          1.6606        11.469       -.15838E-05   -.32619E-03
  19  Normalizat    1.3053        .17253        .23717E-06    .10256E-03
  20  Prefactor     .85604        .11048       -.39570E-06    .17457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6277
  norm       = 0.0001
  Prefactor  = 39.704
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.2246
  norm       = 0.0001
  Prefactor  = 23.4333
  Prefactor  = 0.0001
  Prefactor  = 20.916
  norm       = 0.0001
  Prefactor  = 19.8181
  norm       = 2.03007
  Prefactor  = 0.193018
  Prefactor  = 0.0001
  norm       = 1.66057
  Normalizat = 1.30527
  Prefactor  = 0.856037
 **********
 **   18 **HESSE 
 **********

 FCN=   8617.813     FROM HESSE     STATUS=OK           293 CALLS     2647 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.628        74.819        .67149E-04   -1.4513    
   2  norm          .10000E-03    10.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.704        18.418        .63614E-04   -1.4447    
   4  Prefactor     .10000E-03    5.4765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.1044        .15954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6974        .11797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.473        .31679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2246        10.607        .13195E-03   -1.5100    
   9  norm          .10000E-03    2.4166        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.433        14.372        .82746E-04   -1.4739    
  11  Prefactor     .10000E-03    5.4421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.916        23.700        .87572E-04   -1.4793    
  13  norm          .10000E-03    2.3087        .13629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.818        16.596        .89972E-04   -1.4817    
  15  norm          2.0301        .42255        .26446E-04   -1.5423    
  16  Prefactor     .19302        31.230        .35959E-02   -1.5620    
  17  Prefactor     .10000E-03    4.7936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6606        12.077        .32734E-03   -1.5450    
  19  Normalizat    1.3053        .20102        .27241E-03   -.83409    
  20  Prefactor     .85604        .12905        .21272E-03   -.97695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08083e-09
Minuit parameter uncertainties:
  1  75.0166
  2  3.28791e-05
  3  18.4204
  4  3.34719e-05
  5  8.0307e-07
  6  5.60214e-07
  7  0.000132566
  8  10.6095
  9  5.85326e-07
  10  14.3738
  11  2.3794e-05
  12  23.7111
  13  7.07008e-06
  14  16.5999
  15  0.422552
  16  4.91174
  17  4.39997e-06
  18  8.95891
  19  0.201137
  20  0.129091
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  9.225e+00  1.061e+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:  8.560e-01  1.291e-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.305e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 9.67e-06 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/691301/likelihoodResults_574992001_575251201_4FGL_J2142.5-2552_daily_bin1295.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): 0
logL (Free Index) = 8617.71215154
delta logL = 0.100751454329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8617.70835115
delta logL = 0.104551848714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7987       1.0000          .0000       10.000    
     3 'Normalizat'    1.3160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85280       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=   8617.708     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      260 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.047        12.115        .12644E-03   -.30571E-05
   2  Index         1.7991        .83722        .13555E-01   -.10547E-03
   3  Normalizat    1.3160        .19766        .27147E-03    .31493E-04
   4  Prefactor     .85281        .12831        .21308E-03   -.40657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0468
  Index      = 1.79906
  Normalizat = 1.31599
  Prefactor  = 0.852808
 **********
 **   18 **HESSE 
 **********

 FCN=   8617.708     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.047        12.220        .50576E-05   -1.5074    
   2  Index         1.7991        .84458        .27111E-02   -.69474    
   3  Normalizat    1.3160        .19779        .10859E-04   -.83090    
   4  Prefactor     .85281        .12841        .85230E-05   -.97810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29384e-11
Minuit parameter uncertainties:
  1  12.2233
  2  0.851533
  3  0.197904
  4  0.128452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691301': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8617.70835103
delta logL = 0.104551965815

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.005e+01  1.222e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.799e+00  8.515e-01  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:  8.528e-01  1.285e-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.316e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 1.80 +/- 0.85
Photon Flux (Free Index): 1.26e-08 +/- 2.32e-08
Energy Flux (Free Index): 1.51e-05 +/- 2.48e-05

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/691301/cmap_HighResolution_574992001_575251201_4FGL_J2142.5-2552_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='1.51e-05', photon_flux_error='2.51e-08', dlogl='1.05e-01', energy_flux='9.67e-06', photon_flux2='1.26e-08', job_status='DONE', time_completed='2021-09-27 01:01:06.640036', photon_index_error2='0.85', photon_index2='1.80', ts='1.31', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='8.46e-08', energy_flux_error2='2.48e-05', EG='1.31', time_epoch_completed='1632729666.64', return_code='0', job_id='691301', GAL2='0.85', EG2='1.32', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='2.32e-08', ts2='1.52', photon_index='2.21' WHERE bin_id='1295' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:01:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 691301: <4FGL_J2142.5-2552_daily_bin1295> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1295 325.645 -25.8777 574992001 575251201 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 :                                   712.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            920 sec.

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

