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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1142
RA = 202.819, Dec = -13.4282
tmin = 535334401, tmax = 535593601
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='732921', job_status='RUN', time_executed='2021-09-08 01:21:47.828780', time_epoch_executed='1631089307.83' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732921

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732921/ft1_4FGL_J1331.2-1325_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732921/ft1_4FGL_J1331.2-1325_daily_bin1142.fits outfile=/scratch/kocevski/732921/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1142.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=535334401.0 tmax=535593601.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 4.28
user 4.02
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.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/732921/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1142.fits evtable="EVENTS" outfile="/scratch/kocevski/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.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.46
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/732921/ltcube_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.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/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits
.....................!
real 11.87
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/732921/ltcube_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.fits outfile=/scratch/kocevski/732921/expmap_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.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/732921/ltcube_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.fits
.....................!
real 156.33
user 151.79
sys 3.90

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.fits scfile=/scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits outfile=/scratch/kocevski/732921/cmap_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.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=202.819 yref=-13.4282 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.76
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.fits scfile=/scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits outfile=/scratch/kocevski/732921/cmap_HighResolution_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.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=202.819 yref=-13.4282 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.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/732921/Model_4FGL_J1331.2-1325_daily_bin1142.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/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.fits.....................!
real 61.85
user 59.78
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.fits', '/scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits', expMap='/scratch/kocevski/732921/expmap_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.fits', expCube='/scratch/kocevski/732921/ltcube_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/732921/Model_4FGL_J1331.2-1325_daily_bin1142.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/732921/ft1_filtered_4FGL_J1331.2-1325_daily_bin1142.fits
Spacecraft file(s): /scratch/kocevski/732921/ft2_4FGL_J1331.2-1325_daily_bin1142.fits
Exposure map: /scratch/kocevski/732921/expmap_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.fits
Exposure cube: /scratch/kocevski/732921/ltcube_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/732921/Model_4FGL_J1331.2-1325_daily_bin1142.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) = 9961.20572956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0043       1.0000         .10000E-03   10000.    
     2 'norm      '    15.018       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2717       1.0000         .10000E-03   10000.    
     6 'norm      '    8.8887       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80276E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.998       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0225       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5904       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.737       1.0000         .10000E-03   10000.    
    21 'norm      '    8.3180       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93502       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9961.202     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2724 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0042        .52859        .16223E-07    .61782E-03
   2  norm          15.018        7.7768       -.10027E-06   -.11130E-04
   3  norm          .10000E-03    1.9606        .80123E-07** at limit **
   4  Prefactor     .10000E-03    66.232       -.14073E-04** at limit **
   5  norm          4.2720        2.4797       -.40170E-08   -.13173E-04
   6  norm          8.8877        8.0351        .34531E-06    .79055E-04
   7  norm          .10000E-03    5.0017        .23101E-07** at limit **
   8  Prefactor     .45455        4.9840       -.52984E-05   -.84282E-06
   9  Prefactor     .10000E-03    45.003        .17939E-04** at limit **
  10  Prefactor     17.993        17.458       -.38435E-06   -.15025E-03
  11  norm          1.0224        .91723        .13246E-07   -.81462E-05
  12  norm          7.5894        4.2679       -.24267E-06   -.35725E-03
  13  norm          2.4320        5.9262        .46271E-06    .29308E-04
  14  Prefactor     .10000E-03    17.998        .16435E-05** at limit **
  15  Prefactor     .10000E-03    8.6748       -.11185E-08** at limit **
  16  norm          .10000E-03    25.418       -.55163E-05** at limit **
  17  Prefactor     .10000E-03    2.7804        .77488E-07** at limit **
  18  norm          .10000E-03    1.3848        .46964E-07** at limit **
  19  Prefactor     3.4233        3.8059       -.11637E-06   -.11141E-03
  20  Prefactor     34.737        39.723       -.19656E-06   -.25411E-04
  21  norm          8.3182        5.4933        .27427E-06   -.71834E-04
  22  norm          .10000E-03    1.3097        .10951E-06** at limit **
  23  Normalizat    .93499        .20800        .51561E-07   -.18226E-03
  24  Prefactor     1.0846        .10940       -.36120E-06   -.38955E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.00419
  norm       = 15.0184
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.27195
  norm       = 8.88774
  norm       = 0.0001
  Prefactor  = 0.454546
  Prefactor  = 0.0001
  Prefactor  = 17.9925
  norm       = 1.02238
  norm       = 7.58944
  norm       = 2.43198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.42332
  Prefactor  = 34.7371
  norm       = 8.31824
  norm       = 0.0001
  Normalizat = 0.934992
  Prefactor  = 1.08458
 **********
 **   18 **HESSE 
 **********

 FCN=   9961.202     FROM HESSE     STATUS=OK           403 CALLS     3127 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0042        .52967        .22762E-04   -1.5261    
   2  norm          15.018        7.7739        .10335E-03   -1.4933    
   3  norm          .10000E-03    1.9710        .13647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    65.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2720        2.4856        .11544E-03   -1.5295    
   6  norm          8.8877        8.0398        .13444E-03   -1.5112    
   7  norm          .10000E-03    5.0236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .45455        4.9869        .43256E-03   -1.5573    
   9  Prefactor     .10000E-03    43.863        .36431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.993        17.445        .94408E-04   -1.4859    
  11  norm          1.0224        .93327        .86959E-04   -1.5506    
  12  norm          7.5894        4.2470        .12254E-03   -1.5157    
  13  norm          2.4320        5.8553        .26249E-03   -1.5396    
  14  Prefactor     .10000E-03    18.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    25.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7914        .16250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3935        .11467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4233        3.7855        .19254E-03   -1.5338    
  20  Prefactor     34.737        39.723        .67993E-04   -1.4529    
  21  norm          8.3182        5.4850        .13900E-03   -1.5131    
  22  norm          .10000E-03    1.3608        .22290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93499        .23468        .38275E-03   -.95241    
  24  Prefactor     1.0846        .12585        .19460E-03   -.89961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58143e-10
Minuit parameter uncertainties:
  1  0.529674
  2  7.77445
  3  3.58054e-06
  4  0.00035815
  5  2.48564
  6  8.04076
  7  3.79859e-06
  8  3.01115
  9  1.44224e-05
  10  17.45
  11  0.933279
  12  4.24718
  13  5.85669
  14  2.0823e-05
  15  1.18454e-05
  16  8.95744e-05
  17  4.78072e-06
  18  2.91114e-06
  19  3.78579
  20  39.7534
  21  5.48531
  22  4.00514e-06
  23  0.23494
  24  0.125884
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.799e+01  1.745e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  1.085e+00  1.259e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.350e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 5.97e-08 +/- 5.78e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.52e-05

TS (Fixed Index): 2.05
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/732921/likelihoodResults_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.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) = 9960.97408032
delta logL = 0.22801798935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9960.96134454
delta logL = 0.240753771488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.153       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0637       1.0000          .0000       10.000    
     3 'Normalizat'    .96604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+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=   9960.961     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      283 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.153        22.872        .78333E-04    .20382E-03
   2  Index         2.0636        .71362        .98079E-02    .81534E-04
   3  Normalizat    .96600        .22856        .37733E-03   -.61644E-04
   4  Prefactor     1.0744        .12332        .19541E-03   -.18572E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1526
  Index      = 2.06358
  Normalizat = 0.966002
  Prefactor  = 1.07439
 **********
 **   18 **HESSE 
 **********

 FCN=   9960.961     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.153        22.805        .15667E-04   -1.4685    
   2  Index         2.0636        .71076        .39231E-03   -.62770    
   3  Normalizat    .96600        .22855        .15093E-04   -.94178    
   4  Prefactor     1.0744        .12336        .39083E-04   -.90289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98788e-10
Minuit parameter uncertainties:
  1  22.8124
  2  0.714463
  3  0.22878
  4  0.123396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732921': 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) = 9960.96134448
delta logL = 0.240753830345

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.615e+01  2.281e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.064e+00  7.145e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  1.074e+00  1.234e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.660e-01  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 2.06 +/- 0.71
Photon Flux (Free Index): 3.57e-08 +/- 4.79e-08
Energy Flux (Free Index): 2.13e-05 +/- 2.25e-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/732921/cmap_HighResolution_535334401_535593601_4FGL_J1331.2-1325_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='5.97e-08', energy_flux2='2.13e-05', photon_flux_error='5.78e-08', dlogl='2.41e-01', energy_flux='1.57e-05', photon_flux2='3.57e-08', job_status='DONE', time_completed='2021-09-08 01:34:31.309827', photon_index_error2='0.71', photon_index2='2.06', ts='2.05', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='2.25e-05', EG='0.93', time_epoch_completed='1631090071.31', return_code='0', job_id='732921', GAL2='1.07', EG2='0.97', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.79e-08', ts2='2.53', photon_index='2.60' WHERE bin_id='1142' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:34:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 732921: <4FGL_J1331.2-1325_daily_bin1142> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1142> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:20:33 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:20:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:20:50 2021
Terminated at Wed Sep  8 01:34:32 2021
Results reported at Wed Sep  8 01:34:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1142 202.819 -13.4282 535334401 535593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1331.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.56 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            839 sec.

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

