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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1269
RA = 202.693, Dec = 29.5536
tmin = 568252801, tmax = 568512001
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='724314', job_status='RUN', time_executed='2021-09-08 00:53:47.100463', time_epoch_executed='1631087627.1' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724314

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724314/ft1_4FGL_J1330.7+2933_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724314/ft1_4FGL_J1330.7+2933_daily_bin1269.fits outfile=/scratch/kocevski/724314/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1269.fits ra=202.693 dec=29.5536 rad=12.0 tmin=568252801.0 tmax=568512001.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.71
user 3.48
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.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/724314/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1269.fits evtable="EVENTS" outfile="/scratch/kocevski/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.fits" evtable="EVENTS" scfile=/scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits sctable="SC_DATA" outfile=/scratch/kocevski/724314/ltcube_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.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/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits
.....................!
real 16.40
user 16.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/724314/ltcube_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.fits outfile=/scratch/kocevski/724314/expmap_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.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/724314/ltcube_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.fits
.....................!
real 194.48
user 188.08
sys 5.39

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 J1330.7+2933 @ 202.693 29.5536

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.fits scfile=/scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits outfile=/scratch/kocevski/724314/cmap_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.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.693 yref=29.5536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.fits scfile=/scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits outfile=/scratch/kocevski/724314/cmap_HighResolution_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.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.693 yref=29.5536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724314/Model_4FGL_J1330.7+2933_daily_bin1269.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/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.fits....................!
real 52.20
user 50.22
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.fits', '/scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits', expMap='/scratch/kocevski/724314/expmap_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.fits', expCube='/scratch/kocevski/724314/ltcube_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/724314/Model_4FGL_J1330.7+2933_daily_bin1269.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.7+2933'

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.755e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/724314/ft1_filtered_4FGL_J1330.7+2933_daily_bin1269.fits
Spacecraft file(s): /scratch/kocevski/724314/ft2_4FGL_J1330.7+2933_daily_bin1269.fits
Exposure map: /scratch/kocevski/724314/expmap_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.fits
Exposure cube: /scratch/kocevski/724314/ltcube_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/724314/Model_4FGL_J1330.7+2933_daily_bin1269.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) = 6362.61322795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.750       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11598E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.633       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0387       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9951       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6261       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.542       1.0000         .10000E-03   10000.    
    17 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.214       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .63058       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3997       1.0000         .10000E-03   10000.    
    23 'norm      '    .96282       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9527       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3618       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .59276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6362.609     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3063 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1898        .15337E-06** at limit **
   2  Prefactor     77.723        70.739       -.24079E-05   -.16011E-03
   3  Prefactor     .10000E-03    2.9432        .64882E-07** at limit **
   4  Prefactor     .10000E-03    3.1489        .13808E-07** at limit **
   5  norm          .10000E-03    2.6051       -.28221E-06** at limit **
   6  Prefactor     .10000E-03    44.802       -.21681E-06** at limit **
   7  norm          .10000E-03    2.3942        .78687E-07** at limit **
   8  Prefactor     10.632        10.915        .53950E-07    .50807E-05
   9  norm          3.0384        3.2230        .55012E-07    .36598E-06
  10  norm          .10000E-03    .81347       -.44911E-08** at limit **
  11  norm          .10000E-03    1.3318        .42959E-08** at limit **
  12  norm          .10000E-03    11.339       -.17021E-06** at limit **
  13  Prefactor     .10000E-03    .91706        .62513E-09** at limit **
  14  Prefactor     2.9940        6.5464        .36523E-06   -.22390E-04
  15  norm          7.6279        7.4610        .19410E-05   -.25149E-03
  16  Prefactor     16.541        21.022       -.54083E-07   -.88320E-05
  17  norm          .10000E-03    5.8677       -.53187E-06** at limit **
  18  Prefactor     .10000E-03    18.246        .32006E-06** at limit **
  19  Prefactor     .10000E-03    5.6849        .24966E-06** at limit **
  20  Prefactor     76.197        73.303       -.16373E-05   -.95158E-04
  21  Prefactor     .62442        2.3717        .36288E-06   -.24439E-03
  22  Prefactor     3.4025        34.254        .12000E-05    .71964E-05
  23  norm          .96395        3.9152        .60740E-06   -.17487E-03
  24  Prefactor     8.9519        4.2484       -.11198E-06   -.96039E-04
  25  Normalizat    1.3620        .17400        .83394E-06   -.22713E-03
  26  Prefactor     .59249        .18473       -.23867E-05   -.16222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 77.7225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.632
  norm       = 3.03838
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99402
  norm       = 7.62791
  Prefactor  = 16.5414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.1967
  Prefactor  = 0.624422
  Prefactor  = 3.40246
  norm       = 0.963953
  Prefactor  = 8.95189
  Normalizat = 1.36204
  Prefactor  = 0.59249
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.609     FROM HESSE     STATUS=OK           454 CALLS     3517 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     77.723        73.560        .45542E-04   -1.3942    
   3  Prefactor     .10000E-03    2.9470        .13365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1767        .13804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6348        .12528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5083        .24096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.632        10.915        .12287E-03   -1.5056    
   9  norm          3.0384        3.2165        .14166E-03   -1.5359    
  10  norm          .10000E-03    .81798        .70229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3353        .89892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .92447        .74493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9940        6.5338        .23456E-03   -1.5362    
  15  norm          7.6279        7.6374        .72608E-03   -1.5156    
  16  Prefactor     16.541        21.022        .98473E-04   -1.4894    
  17  norm          .10000E-03    5.9647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     76.197        75.165        .45995E-04   -1.3960    
  21  Prefactor     .62442        6.7254        .21954E-02   -1.5550    
  22  Prefactor     3.4025        34.246        .21942E-03   -1.5339    
  23  norm          .96395        6.8551        .28872E-02   -1.5512    
  24  Prefactor     8.9519        4.2157        .10655E-03   -1.5109    
  25  Normalizat    1.3620        .20444        .20352E-03   -.81733    
  26  Prefactor     .59249        .21121        .32741E-03   -1.0790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35599e-08
Minuit parameter uncertainties:
  1  1.52148e-05
  2  73.646
  3  2.44672e-06
  4  4.52324e-07
  5  1.22524e-05
  6  0.000140507
  7  7.15179e-07
  8  10.9168
  9  3.21664
  10  7.35702e-07
  11  6.37783e-07
  12  3.08249e-05
  13  1.45449e-08
  14  6.5354
  15  7.63837
  16  21.0316
  17  6.39869e-05
  18  1.5461e-05
  19  2.16509e-05
  20  75.2593
  21  4.0988
  22  21.6048
  23  5.14178
  24  4.21586
  25  0.204564
  26  0.211495
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.546e-05  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  5.925e-01  2.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.362e+00  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724314/likelihoodResults_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6362.60914803
delta logL = -0.0002559266959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6362.60889084
delta logL = 1.25664064399e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3347       1.0000          .0000       10.000    
     3 'Normalizat'    1.3620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6362.609     FROM MIGRAD    STATUS=FAILED       126 CALLS      294 TOTAL
                     EDM=   .22E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20854E-03    7103.8        .46508E-02** at limit **
   2  Index         1.7863        5.5340        .50000       -.13010E-04
   3  Normalizat    1.3620        .33399E-01    .20352E-03    .21116E-04
   4  Prefactor     .59249        .37488E-01    .32741E-03    .68820E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6362.605     FROM SIMPLEX   STATUS=PROGRESS     141 CALLS      435 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3629        7103.8        .15205E-02   -.60680E-02
   2  Index         1.7862        5.5340        .56116E-05   -.13010E-04
   3  Normalizat    1.3620        .33399E-01    .48627E-07    .21116E-04
   4  Prefactor     .59249        .37488E-01    .30300E-07    .68820E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6362.604     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      501 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5423        849.60        .93015E-02    .19022E-03
   2  Index         1.8686        5.9023        .50000        .30510E-05
   3  Normalizat    1.3628        .19270E-01    .81406E-05   -.67034E-04
   4  Prefactor     .59015        .21483E-01    .13097E-04   -.40452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54228
  Index      = 1.8686
  Normalizat = 1.36281
  Prefactor  = 0.590151
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.604     FROM HESSE     STATUS=OK            29 CALLS      530 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5423        42.868        .37206E-03   -1.5460    
   2  Index         1.8686        1.8196        .17402E-01   -.67677    
   3  Normalizat    1.3628        .18817        .16281E-05   -.81710    
   4  Prefactor     .59015        .20965        .26193E-05   -1.0800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19747e-11
Minuit parameter uncertainties:
  1  16.2746
  2  1.89312
  3  0.188265
  4  0.209923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724314': 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) = 6362.60397788
delta logL = 0.00491422273626

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.542e+00  1.627e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.869e+00  1.893e+00  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  5.902e-01  2.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.363e+00  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.693 29.554

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/724314/cmap_HighResolution_568252801_568512001_4FGL_J1330.7+2933_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-08 01:07:16.697028', job_id='724314', GAL2='0.59', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631088436.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='4.91e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1269' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:07:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 724314: <4FGL_J1330.7+2933_daily_bin1269> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1269> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 00:50:44 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:51:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:51:01 2021
Terminated at Wed Sep  8 01:07:17 2021
Results reported at Wed Sep  8 01:07:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1269 202.693 29.5536 568252801 568512001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.7+2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   724.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            993 sec.

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

