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


Performing analysis on: 4FGL_J2142.8+1958_daily_bin730
RA = 325.701, Dec = 19.982
tmin = 428544001, tmax = 428803201
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='695887', job_status='RUN', time_executed='2021-09-27 01:03:41.358420', time_epoch_executed='1632729821.36' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695887/ft1_4FGL_J2142.8+1958_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695887/ft1_4FGL_J2142.8+1958_daily_bin730.fits outfile=/scratch/kocevski/695887/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin730.fits ra=325.701 dec=19.982 rad=12.0 tmin=428544001.0 tmax=428803201.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 7.78
user 5.91
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.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/695887/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.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.71
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/695887/ltcube_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.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/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits
.....................!
real 13.40
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/695887/ltcube_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.fits outfile=/scratch/kocevski/695887/expmap_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.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/695887/ltcube_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.fits
.....................!
real 191.13
user 186.06
sys 4.59

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2142.8+1958 @ 325.701 19.982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.fits scfile=/scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits outfile=/scratch/kocevski/695887/cmap_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.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.701 yref=19.982 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.fits scfile=/scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits outfile=/scratch/kocevski/695887/cmap_HighResolution_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.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.701 yref=19.982 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/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695887/Model_4FGL_J2142.8+1958_daily_bin730.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.fits.....................!
real 66.80
user 65.40
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.fits', '/scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits', expMap='/scratch/kocevski/695887/expmap_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.fits', expCube='/scratch/kocevski/695887/ltcube_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/695887/Model_4FGL_J2142.8+1958_daily_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.8+1958'

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  4.708e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/695887/ft1_filtered_4FGL_J2142.8+1958_daily_bin730.fits
Spacecraft file(s): /scratch/kocevski/695887/ft2_4FGL_J2142.8+1958_daily_bin730.fits
Exposure map: /scratch/kocevski/695887/expmap_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.fits
Exposure cube: /scratch/kocevski/695887/ltcube_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/695887/Model_4FGL_J2142.8+1958_daily_bin730.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) = 3551.71491608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.895       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.010       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8775       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0275       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7552       1.0000         .10000E-03   10000.    
     9 'norm      '    5.3593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    70.609       1.0000         .10000E-03   10000.    
    13 'norm      '    9.3295       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22088E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8600       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8242       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5054       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .49742       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0016       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3551.688     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3539 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.895        29.861        .24169E-06   -.59301E-05
   2  Prefactor     33.005        39.151        .17621E-06   -.24473E-04
   3  Prefactor     .10000E-03    75.019        .46000E-05** at limit **
   4  Prefactor     9.8755        29.303        .62885E-06   -.10185E-04
   5  Prefactor     .10000E-03    46.280        .73081E-06** at limit **
   6  Prefactor     9.0278        10.737       -.17201E-06   -.46285E-04
   7  Prefactor     .10000E-03    18.638       -.13001E-07** at limit **
   8  norm          5.7557        13.886       -.13956E-06   -.16200E-04
   9  norm          5.3595        7.5196        .49229E-07   -.36946E-04
  10  Prefactor     .10000E-03    8.8571        .66057E-07** at limit **
  11  Prefactor     .10000E-03    11.783        .76712E-07** at limit **
  12  Prefactor     70.506        394.29        .15651E-04    .17548E-05
  13  norm          9.3325        6.8247       -.27672E-06   -.10590E-04
  14  Prefactor     .10000E-03    9.0947       -.97042E-08** at limit **
  15  Prefactor     .10000E-03    381.43        .40676E-05** at limit **
  16  norm          2.8589        5.8507        .32800E-05   -.45042E-04
  17  Prefactor     .10000E-03    21.288       -.13542E-07** at limit **
  18  norm          3.8242        2.9277        .93394E-07   -.17979E-04
  19  Prefactor     .10000E-03    62.228       -.38464E-05** at limit **
  20  norm          .10000E-03    1.0861       -.33972E-08** at limit **
  21  Prefactor     6.5078        33.506        .12419E-05    .52466E-05
  22  norm          .10000E-03    3.1894       -.17838E-07** at limit **
  23  Prefactor     .10000E-03    135.38       -.29023E-05** at limit **
  24  Prefactor     .10000E-03    22.393       -.27773E-06** at limit **
  25  Normalizat    .49746        .44312       -.54277E-05   -.47374E-05
  26  Prefactor     1.0016        .16118        .66765E-06    .25137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8945
  Prefactor  = 33.0049
  Prefactor  = 0.0001
  Prefactor  = 9.87552
  Prefactor  = 0.0001
  Prefactor  = 9.02782
  Prefactor  = 0.0001
  norm       = 5.75568
  norm       = 5.35947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.5058
  norm       = 9.33253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85893
  Prefactor  = 0.0001
  norm       = 3.82423
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.50784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.497462
  Prefactor  = 1.00164
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.688     FROM HESSE     STATUS=OK           456 CALLS     3995 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.895        29.781        .12138E-03   -1.5048    
   2  Prefactor     33.005        39.270        .69744E-04   -1.4558    
   3  Prefactor     .10000E-03    75.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8755        29.013        .12750E-03   -1.5079    
   5  Prefactor     .10000E-03    46.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0278        10.662        .13340E-03   -1.5107    
   7  Prefactor     .10000E-03    18.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7557        13.820        .16742E-03   -1.5228    
   9  norm          5.3595        7.5321        .17360E-03   -1.5245    
  10  Prefactor     .10000E-03    8.9462        .17310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     70.506        395.64        .23886E-03   -1.4027    
  13  norm          9.3325        6.7969        .11627E-03   -1.5097    
  14  Prefactor     .10000E-03    9.1132        .17549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    382.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8589        5.8569        .95358E-03   -1.5370    
  17  Prefactor     .10000E-03    21.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8242        2.9125        .84118E-04   -1.5317    
  19  Prefactor     .10000E-03    62.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1134        .12110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5078        33.118        .15735E-03   -1.5198    
  22  norm          .10000E-03    3.1915        .10394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    135.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .49746        .45492        .54283E-03   -1.1253    
  26  Prefactor     1.0016        .17593        .15491E-03   -.92675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9708e-11
Minuit parameter uncertainties:
  1  29.8217
  2  39.3006
  3  0.000183325
  4  29.054
  5  2.50076e-05
  6  10.6638
  7  2.29764e-07
  8  13.828
  9  7.53344
  10  1.90472e-06
  11  1.08226e-05
  12  337.511
  13  6.79746
  14  2.25086e-06
  15  0.000223406
  16  5.85811
  17  3.32722e-05
  18  2.9126
  19  0.000139519
  20  5.29843e-07
  21  29.3872
  22  3.97128e-07
  23  0.00014006
  24  1.38262e-05
  25  0.45838
  26  0.17603
Done.

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

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  7.051e+01  3.375e+02  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.002e+00  1.760e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  4.975e-01  4.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695887/likelihoodResults_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.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) = 3551.68763021
delta logL = 0.000745259741961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3551.68707755
delta logL = 0.00129791440258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.551       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9206       1.0000          .0000       10.000    
     3 'Normalizat'    .49622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0017       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+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=   3551.687     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      278 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.623        8099.0        .52881E-04    .38697E-05
   2  Index         1.9202        6.0841        .20643E-01    .24117E-04
   3  Normalizat    .49577        .39638        .54370E-03   -.19185E-04
   4  Prefactor     1.0019        .14646        .15488E-03    .71934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.6227
  Index      = 1.92018
  Normalizat = 0.495774
  Prefactor  = 1.0019
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.687     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.623        670.10        .10576E-04   -1.4188    
   2  Index         1.9202        2.4485        .82570E-03   -.66361    
   3  Normalizat    .49577        .41946        .21748E-04   -1.1261    
   4  Prefactor     1.0019        .16870        .30977E-04   -.92666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88214e-11
Minuit parameter uncertainties:
  1  398.742
  2  2.64222
  3  0.422167
  4  0.168786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695887': 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) = 3551.68707696
delta logL = 0.00129851356223

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  5.762e+01  3.987e+02  1.000e-04  1.000e+04 ( 1.000e-15)
277        Index:  1.920e+00  2.642e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.002e+00  1.688e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  4.958e-01  4.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 325.701 19.982

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/695887/cmap_HighResolution_428544001_428803201_4FGL_J2142.8+1958_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.78e-07', time_completed='2021-09-27 01:13:38.372384', job_id='695887', GAL2='1.00', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1632730418.37', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.30e-03', ts2='0.06', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='730' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 01:13:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 695887: <4FGL_J2142.8+1958_daily_bin730> in cluster <slac> Done

Job <4FGL_J2142.8+1958_daily_bin730> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Sep 27 01:00:37 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 01:00:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 01:00:57 2021
Terminated at Mon Sep 27 01:13:38 2021
Results reported at Mon Sep 27 01:13:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2142.8+1958_daily_bin730 325.701 19.982 428544001 428803201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2142.8+1958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            781 sec.

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

