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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1207
RA = 202.819, Dec = -13.4282
tmin = 552182401, tmax = 552441601
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='733023', job_status='RUN', time_executed='2021-09-08 01:22:38.849488', time_epoch_executed='1631089358.85' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733023/ft1_4FGL_J1331.2-1325_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733023/ft1_4FGL_J1331.2-1325_daily_bin1207.fits outfile=/scratch/kocevski/733023/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1207.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=552182401.0 tmax=552441601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.51
user 3.51
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.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/733023/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1207.fits evtable="EVENTS" outfile="/scratch/kocevski/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.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 2.32
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/733023/ltcube_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.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/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits
.....................!
real 16.05
user 14.84
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/733023/ltcube_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.fits outfile=/scratch/kocevski/733023/expmap_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.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/733023/ltcube_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.fits
.....................!
real 197.67
user 187.28
sys 5.13

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/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.fits scfile=/scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits outfile=/scratch/kocevski/733023/cmap_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.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.64
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.fits scfile=/scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits outfile=/scratch/kocevski/733023/cmap_HighResolution_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.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.76
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733023/Model_4FGL_J1331.2-1325_daily_bin1207.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/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.fits......................!
real 31.76
user 30.37
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.fits', '/scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits', expMap='/scratch/kocevski/733023/expmap_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.fits', expCube='/scratch/kocevski/733023/ltcube_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733023/Model_4FGL_J1331.2-1325_daily_bin1207.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/733023/ft1_filtered_4FGL_J1331.2-1325_daily_bin1207.fits
Spacecraft file(s): /scratch/kocevski/733023/ft2_4FGL_J1331.2-1325_daily_bin1207.fits
Exposure map: /scratch/kocevski/733023/expmap_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.fits
Exposure cube: /scratch/kocevski/733023/ltcube_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733023/Model_4FGL_J1331.2-1325_daily_bin1207.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) = 2801.27846176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6428       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.4204       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11308E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14194E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8806       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9048       1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.947       1.0000         .10000E-03   10000.    
    16 'norm      '    450.51       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.955       1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39003       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.6756       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77703       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1201       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=   2801.086     FROM MIGRAD    STATUS=CONVERGED   1033 CALLS     3372 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6427        1.8430        .49193E-04    .93020E-04
   2  norm          .10000E-03    5.5151        .12126E-02** at limit **
   3  norm          7.4212        7.6135        .14274E-03    .21425E-04
   4  Prefactor     .10000E-03    1052.6        .18142E-02** at limit **
   5  norm          .10000E-03    2.6314        .16560E-03** at limit **
   6  norm          .10000E-03    27.878        .18142E-02** at limit **
   7  norm          .10000E-03    83.481        .18142E-02** at limit **
   8  Prefactor     .10014E-03    191.27        .45426E-02** at limit **
   9  Prefactor     2.1978        90.188        .28343E-03   -.42719E-05
  10  Prefactor     9.9240        55.607        .12748E-03   -.22429E-04
  11  norm          .10000E-03    2.7796        .86121E-03** at limit **
  12  norm          .10000E-03    5.5271        .12104E-02** at limit **
  13  norm          18.051        18.358        .94243E-04   -.60315E-04
  14  Prefactor     3.8612        108.31        .20417E-03   -.36193E-06
  15  Prefactor     46.944        48.789        .58520E-04   -.41768E-05
  16  norm          450.82        505.26        .96425E-04   -.44213E-05
  17  Prefactor     14.981        30.424        .10357E-03    .18496E-04
  18  norm          .10000E-03    5.8351        .12442E-02** at limit **
  19  Prefactor     .10064E-03    15.146        .54363E-01** at limit **
  20  Prefactor     .82806        147.20        .16648        .48866E-04
  21  norm          .10000E-03    10.324        .16593E-02** at limit **
  22  norm          6.6741        10.252        .15531E-03    .10980E-05
  23  Normalizat    .77716        .57127        .46094E-03    .29264E-04
  24  Prefactor     1.1200        .24585        .18097E-03    .87893E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64267
  norm       = 0.0001
  norm       = 7.4212
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100135
  Prefactor  = 2.19784
  Prefactor  = 9.92399
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.0509
  Prefactor  = 3.86118
  Prefactor  = 46.9445
  norm       = 450.819
  Prefactor  = 14.9807
  norm       = 0.0001
  Prefactor  = 0.000100644
  Prefactor  = 0.828063
  norm       = 0.0001
  norm       = 6.67407
  Normalizat = 0.777158
  Prefactor  = 1.12001
 **********
 **   18 **HESSE 
 **********

 FCN=   2801.086     FROM HESSE     STATUS=OK           393 CALLS     3765 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6427        1.8430        .19677E-05   -1.5326    
   2  norm          .10000E-03    5.5153        .24253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.4212        7.6135        .57095E-05   -1.5163    
   4  Prefactor     .10000E-03    1052.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6314        .33121E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    27.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    83.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10014E-03    193.64        .90851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1978        89.974        .11337E-04   -1.5411    
  10  Prefactor     9.9240        55.465        .50992E-05   -1.5078    
  11  norm          .10000E-03    2.7797        .17224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.5272        .24209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.051        18.350        .37697E-05   -1.4858    
  14  Prefactor     3.8612        107.49        .81670E-05   -1.5315    
  15  Prefactor     46.944        48.790        .23408E-05   -1.4337    
  16  norm          450.82        505.27        .19285E-04   -1.1429    
  17  Prefactor     14.981        30.328        .41428E-05   -1.4934    
  18  norm          .10000E-03    5.8356        .24884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10064E-03    14.368        .56452E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .82806        153.13        .16233       -1.5526    
  21  norm          .10000E-03    10.324        .33186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.6741        10.252        .62123E-05   -1.5191    
  23  Normalizat    .77716        .57131        .18437E-04   -1.0092    
  24  Prefactor     1.1200        .24601        .36194E-04   -.88830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07805e-09
Minuit parameter uncertainties:
  1  1.84301
  2  2.80404e-06
  3  7.6145
  4  0.00423209
  5  5.65943e-07
  6  1.43922e-05
  7  0.000291949
  8  0.0102653
  9  28.1694
  10  46.9892
  11  2.59156e-06
  12  7.63292e-06
  13  18.3557
  14  40.825
  15  48.8317
  16  510.404
  17  30.3593
  18  1.55959e-05
  19  0.00608429
  20  22.5789
  21  7.99317e-06
  22  10.2551
  23  0.575793
  24  0.24626
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.924e+00  4.699e+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.120e+00  2.463e-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:  7.772e-01  5.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733023/likelihoodResults_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.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) = 2800.98539986
delta logL = 0.100497103574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2800.9715862
delta logL = 0.114310758424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0317       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3333       1.0000          .0000       10.000    
     3 'Normalizat'    .71988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1354       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2800.972     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      272 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0053        43.695        .75642E-03    .61178E-04
   2  Index         3.3363        2.2113        .76186E-02    .25691E-03
   3  Normalizat    .71920        .53531        .47767E-03   -.51170E-06
   4  Prefactor     1.1357        .24320        .17982E-03   -.34457E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00531
  Index      = 3.33634
  Normalizat = 0.719203
  Prefactor  = 1.13575
 **********
 **   18 **HESSE 
 **********

 FCN=   2800.972     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0053        24.135        .15128E-03   -1.5179    
   2  Index         3.3363        1.5562        .15237E-02   -.33920    
   3  Normalizat    .71920        .53600        .19107E-04   -1.0314    
   4  Prefactor     1.1357        .24343        .71927E-05   -.88332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26143e-11
Minuit parameter uncertainties:
  1  24.1685
  2  1.58591
  3  0.539976
  4  0.243665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733023': 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) = 2800.97158309
delta logL = 0.11431387352

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  7.005e+00  2.417e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.336e+00  1.586e+00  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.136e+00  2.437e-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:  7.192e-01  5.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 202.819 -13.428

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/733023/cmap_HighResolution_552182401_552441601_4FGL_J1331.2-1325_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-02', job_status='DONE', photon_flux_upper_limit='3.68e-07', time_completed='2021-09-08 01:31:05.299780', job_id='733023', GAL2='1.14', fit_tolerance='1e-08', EG2='0.72', EG='0.78', time_epoch_completed='1631089865.3', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.14e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1207' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 733023: <4FGL_J1331.2-1325_daily_bin1207> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1207> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:20:42 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:21:47 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:21:47 2021
Terminated at Wed Sep  8 01:31:06 2021
Results reported at Wed Sep  8 01:31:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1207 202.819 -13.4282 552182401 552441601 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 :                                   492.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             305.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            624 sec.

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

