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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1522
RA = 325.645, Dec = -25.8777
tmin = 633830401, tmax = 634089601
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='691658', job_status='RUN', time_executed='2021-09-27 00:52:09.681663', time_epoch_executed='1632729129.68' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691658

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691658/ft1_4FGL_J2142.5-2552_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691658/ft2_4FGL_J2142.5-2552_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691658/ft1_4FGL_J2142.5-2552_daily_bin1522.fits outfile=/scratch/kocevski/691658/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1522.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=633830401.0 tmax=634089601.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.98
user 3.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691658/ft1_filtered_4FGL_J2142.5-2552_daily_bin1522.fits" evtable="EVENTS" scfile=/scratch/kocevski/691658/ft2_4FGL_J2142.5-2552_daily_bin1522.fits sctable="SC_DATA" outfile=/scratch/kocevski/691658/ltcube_633830401_634089601_4FGL_J2142.5-2552_daily_bin1522.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/691658/ft2_4FGL_J2142.5-2552_daily_bin1522.fits
.....................!
real 14.66
user 14.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691658/ft1_filtered_4FGL_J2142.5-2552_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/691658/ft2_4FGL_J2142.5-2552_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/691658/ltcube_633830401_634089601_4FGL_J2142.5-2552_daily_bin1522.fits outfile=/scratch/kocevski/691658/expmap_633830401_634089601_4FGL_J2142.5-2552_daily_bin1522.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/691658/ltcube_633830401_634089601_4FGL_J2142.5-2552_daily_bin1522.fits
.....................!
real 192.66
user 186.01
sys 5.34

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/691658/ft1_filtered_4FGL_J2142.5-2552_daily_bin1522.fits scfile=/scratch/kocevski/691658/ft2_4FGL_J2142.5-2552_daily_bin1522.fits outfile=/scratch/kocevski/691658/cmap_633830401_634089601_4FGL_J2142.5-2552_daily_bin1522.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691658/ft1_filtered_4FGL_J2142.5-2552_daily_bin1522.fits scfile=/scratch/kocevski/691658/ft2_4FGL_J2142.5-2552_daily_bin1522.fits outfile=/scratch/kocevski/691658/cmap_HighResolution_633830401_634089601_4FGL_J2142.5-2552_daily_bin1522.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691658/ft1_filtered_4FGL_J2142.5-2552_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/691658/ft2_4FGL_J2142.5-2552_daily_bin1522.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691658/Model_4FGL_J2142.5-2552_daily_bin1522.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/691658/ft1_filtered_4FGL_J2142.5-2552_daily_bin1522.fits.....................!
real 59.18
user 57.84
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35885E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5139       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.572       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3650       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0016       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21686E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.274       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2112       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78133       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2753       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=   6747.437     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2029 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.204       -.36419E-06** at limit **
   2  norm          .10000E-03    8.6818       -.10931E-08** at limit **
   3  Prefactor     .10012E-03    18.006        .56667E-05** at limit **
   4  Prefactor     3.5137        5.0973        .31051E-06   -.57373E-04
   5  norm          2.4075        5.3082        .36871E-05   -.84747E-04
   6  Prefactor     19.571        11.136        .33234E-06   -.28149E-04
   7  Prefactor     .10000E-03    12.740        .23473E-06** at limit **
   8  Prefactor     7.3643        9.0347       -.30695E-06   -.43589E-04
   9  norm          3.0020        4.3013        .77705E-06   -.96843E-05
  10  Prefactor     .10000E-03    24.894        .93863E-06** at limit **
  11  Prefactor     .10004E-03    20.943       -.73319E-05** at limit **
  12  Prefactor     30.214        59.053        .75887E-05   -.51809E-04
  13  norm          7.6703        5.4567       -.35653E-06   -.79913E-04
  14  Prefactor     .10000E-03    21.404       -.33993E-06** at limit **
  15  norm          1.4422        .45900       -.37496E-07   -.83941E-03
  16  Prefactor     .10000E-03    3.3515       -.15900E-06** at limit **
  17  Prefactor     1.1309        99.032        .31471E-04   -.41793E-04
  18  norm          .10000E-03    5.4578        .90368E-08** at limit **
  19  Normalizat    .78194        .21905       -.22108E-05    .71033E-06
  20  Prefactor     1.2749        .13959       -.23008E-06   -.27570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100122
  Prefactor  = 3.51366
  norm       = 2.40754
  Prefactor  = 19.571
  Prefactor  = 0.0001
  Prefactor  = 7.36431
  norm       = 3.00203
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 30.2145
  norm       = 7.67033
  Prefactor  = 0.0001
  norm       = 1.44219
  Prefactor  = 0.0001
  Prefactor  = 1.13094
  norm       = 0.0001
  Normalizat = 0.781937
  Prefactor  = 1.27494
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.437     FROM HESSE     STATUS=OK           289 CALLS     2318 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.6837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10012E-03    82.816        .63109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5137        5.0845        .21561E-03   -1.5333    
   5  norm          2.4075        5.3231        .13192E-02   -1.5398    
   6  Prefactor     19.571        11.138        .45267E-03   -1.4823    
   7  Prefactor     .10000E-03    13.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3643        9.0313        .14779E-03   -1.5165    
   9  norm          3.0020        4.2937        .99254E-03   -1.5361    
  10  Prefactor     .10000E-03    25.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    22.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.214        59.149        .72819E-04   -1.4608    
  13  norm          7.6703        5.4635        .14208E-03   -1.5154    
  14  Prefactor     .10000E-03    21.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4422        .46023        .29244E-04   -1.5468    
  16  Prefactor     .10000E-03    3.3585        .14687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1309        102.37        .20551E-02   -1.5495    
  18  norm          .10000E-03    5.4580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .78194        .24604        .35397E-03   -1.0074    
  20  Prefactor     1.2749        .15703        .19103E-03   -.84055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37806e-09
Minuit parameter uncertainties:
  1  4.1183e-05
  2  3.63282e-07
  3  0.00635468
  4  5.08514
  5  5.32417
  6  11.1389
  7  3.42562e-05
  8  9.03302
  9  4.29416
  10  6.96212e-05
  11  0.00181201
  12  59.2644
  13  5.46389
  14  8.01564e-05
  15  0.460227
  16  2.02704e-05
  17  21.5565
  18  2.50575e-08
  19  0.246391
  20  0.157092
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  7.364e+00  9.033e+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

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.275e+00  1.571e-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:  7.819e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 325.645 -25.878
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 2.14e-08
Energy Flux (Fixed Index): 7.72e-06 +/- 9.47e-06

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

Saving results to:
/scratch/kocevski/691658/likelihoodResults_633830401_634089601_4FGL_J2142.5-2552_daily_bin1522.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) = 6747.3045872
delta logL = 0.132521140236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6747.30033239
delta logL = 0.136775954152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6329       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7166       1.0000          .0000       10.000    
     3 'Normalizat'    .78939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2727       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=   6747.300     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      276 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6353        10.346        .13643E-03    .39166E-05
   2  Index         1.7172        .84435        .14358E-01   -.50405E-05
   3  Normalizat    .78937        .22843        .35245E-03   -.14644E-04
   4  Prefactor     1.2727        .15450        .19118E-03    .59288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63532
  Index      = 1.71716
  Normalizat = 0.789371
  Prefactor  = 1.2727
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.300     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6353        10.373        .54571E-05   -1.5120    
   2  Index         1.7172        .84677        .57433E-03   -.71626    
   3  Normalizat    .78937        .22859        .14098E-04   -1.0046    
   4  Prefactor     1.2727        .15461        .76471E-05   -.84122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52559e-11
Minuit parameter uncertainties:
  1  10.3747
  2  0.85405
  3  0.228865
  4  0.154669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691658': 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) = 6747.30033213
delta logL = 0.136776213302

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  8.635e+00  1.037e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.717e+00  8.540e-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:  1.273e+00  1.547e-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:  7.894e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 325.645 -25.878
Photon Index (Free Index): 1.72 +/- 0.85
Photon Flux (Free Index): 9.73e-09 +/- 1.61e-08
Energy Flux (Free Index): 1.50e-05 +/- 2.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/691658/cmap_HighResolution_633830401_634089601_4FGL_J2142.5-2552_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='1.50e-05', photon_flux_error='2.14e-08', dlogl='1.37e-01', energy_flux='7.72e-06', photon_flux2='9.73e-09', job_status='DONE', time_completed='2021-09-27 01:02:15.707306', photon_index_error2='0.85', photon_index2='1.72', ts='1.59', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='8.62e-08', energy_flux_error2='2.96e-05', EG='0.78', time_epoch_completed='1632729735.71', return_code='0', job_id='691658', GAL2='1.27', EG2='0.79', return_code2='0', energy_flux_error='9.47e-06', photon_flux_error2='1.61e-08', ts2='1.86', photon_index='2.21' WHERE bin_id='1522' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:02:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 691658: <4FGL_J2142.5-2552_daily_bin1522> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.5-2552_daily_bin1522 325.645 -25.8777 633830401 634089601 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 :                                   600.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            956 sec.

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

