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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1363
RA = 325.645, Dec = -25.8777
tmin = 592617601, tmax = 592876801
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='691413', job_status='RUN', time_executed='2021-09-27 00:49:17.783388', time_epoch_executed='1632728957.78' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691413/ft1_4FGL_J2142.5-2552_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691413/ft2_4FGL_J2142.5-2552_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691413/ft1_4FGL_J2142.5-2552_daily_bin1363.fits outfile=/scratch/kocevski/691413/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1363.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=592617601.0 tmax=592876801.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.85
user 3.30
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691413/ft2_4FGL_J2142.5-2552_daily_bin1363.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/691413/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/691413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1363.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/691413/ft2_4FGL_J2142.5-2552_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/691413/ltcube_592617601_592876801_4FGL_J2142.5-2552_daily_bin1363.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/691413/ft2_4FGL_J2142.5-2552_daily_bin1363.fits
.....................!
real 16.03
user 15.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/691413/ft2_4FGL_J2142.5-2552_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/691413/ltcube_592617601_592876801_4FGL_J2142.5-2552_daily_bin1363.fits outfile=/scratch/kocevski/691413/expmap_592617601_592876801_4FGL_J2142.5-2552_daily_bin1363.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/691413/ltcube_592617601_592876801_4FGL_J2142.5-2552_daily_bin1363.fits
.....................!
real 192.30
user 187.32
sys 4.58

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/691413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1363.fits scfile=/scratch/kocevski/691413/ft2_4FGL_J2142.5-2552_daily_bin1363.fits outfile=/scratch/kocevski/691413/cmap_592617601_592876801_4FGL_J2142.5-2552_daily_bin1363.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1363.fits scfile=/scratch/kocevski/691413/ft2_4FGL_J2142.5-2552_daily_bin1363.fits outfile=/scratch/kocevski/691413/cmap_HighResolution_592617601_592876801_4FGL_J2142.5-2552_daily_bin1363.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 1.11
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/691413/ft2_4FGL_J2142.5-2552_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691413/Model_4FGL_J2142.5-2552_daily_bin1363.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/691413/ft1_filtered_4FGL_J2142.5-2552_daily_bin1363.fits.....................!
real 51.57
user 49.76
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72509E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28117       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0454       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    54.835       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0544       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96498       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=   5694.187     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1761 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.340       -.10682E-04** at limit **
   2  norm          .10000E-03    30.512       -.37521E-05** at limit **
   3  Prefactor     .10096E-03    18.916       -.49949E-05** at limit **
   4  Prefactor     .10000E-03    10.759        .41349E-05** at limit **
   5  norm          .10000E-03    3.0777        .58544E-08** at limit **
   6  Prefactor     .32202        7.3630       -.20032E-05    .16788E-03
   7  Prefactor     .10000E-03    8.4978       -.32732E-05** at limit **
   8  Prefactor     .10000E-03    18.152       -.16943E-05** at limit **
   9  norm          .10000E-03    3.1677       -.88161E-07** at limit **
  10  Prefactor     15.268        16.965       -.20888E-06    .83273E-05
  11  Prefactor     .10000E-03    7.5659        .39174E-05** at limit **
  12  Prefactor     .10000E-03    43.186        .16449E-04** at limit **
  13  norm          .10000E-03    3.1458        .86417E-09** at limit **
  14  Prefactor     .10000E-03    6.8522       -.17373E-05** at limit **
  15  norm          1.0455        .37446       -.96897E-08   -.11805E-04
  16  Prefactor     .10000E-03    3.6012       -.96320E-07** at limit **
  17  Prefactor     .10000E-03    10.209       -.26374E-05** at limit **
  18  norm          54.836        30.373        .44809E-06    .21441E-04
  19  Normalizat    1.0545        .19859        .50540E-06    .37515E-03
  20  Prefactor     .96495        .12773        .20005E-06    .62202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100957
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.322019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2685
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.04551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 54.8355
  Normalizat = 1.05446
  Prefactor  = 0.96495
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.187     FROM HESSE     STATUS=OK           283 CALLS     2044 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    30.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10096E-03    87.667        .58927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0817        .12929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32202        45.546        .38559E-02   -1.5594    
   7  Prefactor     .10000E-03    8.5913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1810        .13115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.268        16.958        .10249E-03   -1.4926    
  11  Prefactor     .10000E-03    7.5822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0612        .25321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0455        .37235        .26500E-04   -1.5503    
  16  Prefactor     .10000E-03    3.6165        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          54.836        30.391        .54168E-04   -1.4226    
  19  Normalizat    1.0545        .22918        .28452E-03   -.91228    
  20  Prefactor     .96495        .14978        .19246E-03   -.93907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1567e-08
Minuit parameter uncertainties:
  1  0.000417916
  2  9.86405e-05
  3  0.0183474
  4  6.49199e-05
  5  2.68272e-07
  6  7.6642
  7  5.01951e-05
  8  4.0556e-05
  9  1.67867e-06
  10  16.963
  11  5.39197e-05
  12  0.000552707
  13  6.7519e-05
  14  2.5024e-05
  15  0.372355
  16  2.27956e-06
  17  5.05339e-05
  18  30.3994
  19  0.229398
  20  0.149841
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  4.056e-05  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.649e-01  1.498e-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.054e+00  2.294e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691413/likelihoodResults_592617601_592876801_4FGL_J2142.5-2552_daily_bin1363.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) = 5694.18762361
delta logL = -0.000257758430962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5694.18736473
delta logL = 1.11857661977e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1038       1.0000          .0000       10.000    
     3 'Normalizat'    1.0545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96494       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=   5694.080     FROM MIGRAD    STATUS=FAILED       195 CALLS      357 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8616        1548.1        .55343E-02    .28271E-02
   2  Index         1.3347        8.1193        .37544       -.37442E-04
   3  Normalizat    1.0559        .21682        .28452E-03   -.85110E-05
   4  Prefactor     .96102        .14963        .19246E-03   -.94514E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5694.080     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      452 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8616        1548.1        .15768E-03    .28271E-02
   2  Index         1.3347        8.1193        .10395E-02   -.37442E-04
   3  Normalizat    1.0559        .21682        .16859E-03   -.85110E-05
   4  Prefactor     .96102        .14963        .88656E-04   -.94514E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5694.080     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      487 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8616        12.356        .11069E-02    .10935E-03
   2  Index         1.3347        .87673        .13957E-01   -.11160E-04
   3  Normalizat    1.0559        .22671        .11381E-04   -.59937E-05
   4  Prefactor     .96102        .14852        .76983E-05   -.56118E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.86157
  Index      = 1.33475
  Normalizat = 1.0559
  Prefactor  = 0.961019
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.080     FROM HESSE     STATUS=OK            27 CALLS      514 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8616        12.646        .22137E-03   -1.5267    
   2  Index         1.3347        .89743        .55827E-03   -.82280    
   3  Normalizat    1.0559        .22713        .22761E-05   -.91181    
   4  Prefactor     .96102        .14882        .15397E-05   -.94040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01623e-12
Minuit parameter uncertainties:
  1  12.653
  2  0.908186
  3  0.227336
  4  0.14888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691413': 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) = 5694.08008194
delta logL = 0.107283914874

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  4.862e+00  1.265e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.335e+00  9.082e-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:  9.610e-01  1.489e-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.056e+00  2.273e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/691413/cmap_HighResolution_592617601_592876801_4FGL_J2142.5-2552_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-27 00:58:31.557640', job_id='691413', GAL2='0.96', fit_tolerance='1e-08', EG2='1.06', EG='1.05', time_epoch_completed='1632729511.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.07e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1363' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 00:58:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 691413: <4FGL_J2142.5-2552_daily_bin1363> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1363 325.645 -25.8777 592617601 592876801 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            755 sec.

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

