/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 1 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin261
RA = 202.693, Dec = 29.5536
tmin = 306979201, tmax = 307238401
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='707355', job_status='RUN', time_executed='2021-09-07 23:52:08.417220', time_epoch_executed='1631083928.42' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707355/ft1_4FGL_J1330.7+2933_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707355/ft1_4FGL_J1330.7+2933_daily_bin261.fits outfile=/scratch/kocevski/707355/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin261.fits ra=202.693 dec=29.5536 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.21
user 13.67
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.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/707355/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin261.fits evtable="EVENTS" outfile="/scratch/kocevski/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.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.54
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/707355/ltcube_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.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/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits
.....................!
real 14.79
user 14.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/707355/ltcube_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.fits outfile=/scratch/kocevski/707355/expmap_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.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/707355/ltcube_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.fits
.....................!
real 192.80
user 187.71
sys 4.54

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/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.fits scfile=/scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits outfile=/scratch/kocevski/707355/cmap_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.fits scfile=/scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits outfile=/scratch/kocevski/707355/cmap_HighResolution_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707355/Model_4FGL_J1330.7+2933_daily_bin261.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/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.fits.....................!
real 31.47
user 30.07
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.fits', '/scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits', expMap='/scratch/kocevski/707355/expmap_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.fits', expCube='/scratch/kocevski/707355/ltcube_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707355/Model_4FGL_J1330.7+2933_daily_bin261.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/707355/ft1_filtered_4FGL_J1330.7+2933_daily_bin261.fits
Spacecraft file(s): /scratch/kocevski/707355/ft2_4FGL_J1330.7+2933_daily_bin261.fits
Exposure map: /scratch/kocevski/707355/expmap_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.fits
Exposure cube: /scratch/kocevski/707355/ltcube_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707355/Model_4FGL_J1330.7+2933_daily_bin261.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) = 2977.12980424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3094       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4924       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.895       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.934       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.959       1.0000         .10000E-03   10000.    
    15 'norm      '    20.355       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.765       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8813       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15762E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5242       1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.032       1.0000         .10000E-03   10000.    
    23 'norm      '    .12849E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.8247       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79641       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4701       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=   2977.125     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3082 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3112        24.456       -.71184E-06   -.34404E-04
   2  Prefactor     31.046        94.462        .10802E-05    .10540E-04
   3  Prefactor     9.4938        17.213        .27509E-07   -.34409E-04
   4  Prefactor     .10000E-03    7.4846       -.37194E-06** at limit **
   5  norm          .10000E-03    2.5575        .22861E-07** at limit **
   6  Prefactor     .10000E-03    32.915        .32737E-06** at limit **
   7  norm          .10000E-03    7.3488        .13371E-06** at limit **
   8  Prefactor     .10000E-03    8.2634        .26580E-06** at limit **
   9  norm          .10000E-03    4.1946        .15289E-07** at limit **
  10  norm          13.895        7.0815        .10906E-06    .29927E-04
  11  norm          .10000E-03    6.8612        .39214E-07** at limit **
  12  norm          23.921        55.166       -.35824E-05   -.11415E-03
  13  Prefactor     .10000E-03    2.3340        .55704E-08** at limit **
  14  Prefactor     10.961        18.165       -.51989E-06   -.70337E-04
  15  norm          20.360        16.968        .11007E-06   -.10769E-03
  16  Prefactor     .10000E-03    25.253       -.23919E-06** at limit **
  17  norm          .10000E-03    9.7910       -.13754E-06** at limit **
  18  Prefactor     17.770        25.548       -.78269E-06   -.78147E-04
  19  Prefactor     4.8804        57.666       -.40370E-06   -.17505E-04
  20  Prefactor     .10000E-03    229.11       -.15809E-05** at limit **
  21  Prefactor     8.5256        7.5429        .13251E-05   -.54676E-03
  22  Prefactor     51.041        47.272        .12961E-05    .10408E-03
  23  norm          .10000E-03    6.8666        .22141E-06** at limit **
  24  Prefactor     8.8262        6.7960       -.63584E-08   -.22493E-07
  25  Normalizat    .79621        .27426       -.22729E-06   -.13710E-04
  26  Prefactor     1.4701        .31140       -.23889E-06   -.85913E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.31119
  Prefactor  = 31.0464
  Prefactor  = 9.49383
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.8948
  norm       = 0.0001
  norm       = 23.921
  Prefactor  = 0.0001
  Prefactor  = 10.9609
  norm       = 20.3603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7696
  Prefactor  = 4.88039
  Prefactor  = 0.000100001
  Prefactor  = 8.52564
  Prefactor  = 51.0413
  norm       = 0.0001
  Prefactor  = 8.82616
  Normalizat = 0.796211
  Prefactor  = 1.47007
 **********
 **   18 **HESSE 
 **********

 FCN=   2977.125     FROM HESSE     STATUS=OK           456 CALLS     3538 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3112        24.640        .17442E-03   -1.5247    
   2  Prefactor     31.046        94.498        .71912E-04   -1.4593    
   3  Prefactor     9.4938        17.233        .13007E-03   -1.5092    
   4  Prefactor     .10000E-03    7.5493        .14564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5598        .85188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.4555        .14471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.2840        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.2182        .10911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.895        7.0776        .95806E-04   -1.4962    
  11  norm          .10000E-03    6.8724        .13926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.921        57.962        .81877E-04   -1.4729    
  13  Prefactor     .10000E-03    2.3433        .81280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.961        18.240        .12102E-03   -1.5046    
  15  norm          20.360        16.953        .88777E-04   -1.4805    
  16  Prefactor     .10000E-03    25.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.8039        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.770        25.596        .95025E-04   -1.4865    
  19  Prefactor     4.8804        57.400        .18206E-03   -1.5266    
  20  Prefactor     .10000E-03    230.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.5256        8.1836        .68650E-03   -1.5124    
  22  Prefactor     51.041        47.840        .56140E-04   -1.4278    
  23  norm          .10000E-03    15.084        .27600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.8262        6.7821        .12012E-03   -1.5114    
  25  Normalizat    .79621        .32747        .29241E-03   -1.0021    
  26  Prefactor     1.4701        .37236        .26415E-03   -.78382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32031e-10
Minuit parameter uncertainties:
  1  22.895
  2  94.9587
  3  17.2419
  4  2.47417e-05
  5  1.1566e-07
  6  5.79351e-05
  7  4.76223e-05
  8  2.79513e-05
  9  7.71451e-07
  10  7.07802
  11  6.86071e-07
  12  58.0985
  13  3.12422e-06
  14  18.2495
  15  16.9567
  16  4.1736e-05
  17  2.86183e-06
  18  25.6117
  19  33.5145
  20  0.000960121
  21  8.18468
  22  47.8759
  23  0.000108683
  24  6.78268
  25  0.328285
  26  0.373049
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.777e+01  2.561e+01  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:  1.470e+00  3.730e-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:  7.962e-01  3.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/707355/likelihoodResults_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.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) = 2977.120831
delta logL = 0.00391355022202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2977.11802095
delta logL = 0.00672359522468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.533       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5759       1.0000          .0000       10.000    
     3 'Normalizat'    .79221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4735       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.

 FCN=   2977.118     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      236 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.533        990.91        .25406E-02    .29107E-03
   2  Index         2.5759        5.6075        .15318        .11810E-03
   3  Normalizat    .79225        .11947        .66242E-01    .55977E-05
   4  Prefactor     1.4735        .12058        .59679E-01   -.47646E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5327
  Index      = 2.57586
  Normalizat = 0.792246
  Prefactor  = 1.47349
 **********
 **   18 **HESSE 
 **********

 FCN=   2977.118     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.533        32.501        .10163E-03   -1.4920    
   2  Index         2.5759        1.2125        .81151E-02   -.50617    
   3  Normalizat    .79225        .31395        .29307E-03   -1.0036    
   4  Prefactor     1.4735        .37072        .26390E-03   -.78285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7015e-10
Minuit parameter uncertainties:
  1  32.5384
  2  1.22861
  3  0.314668
  4  0.371403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707355': 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) = 2977.11802094
delta logL = 0.00672360348199

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.553e+01  3.254e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.576e+00  1.229e+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:  1.473e+00  3.714e-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:  7.922e-01  3.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
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/707355/cmap_HighResolution_306979201_307238401_4FGL_J1330.7+2933_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2021-09-08 00:01:32.730535', job_id='707355', GAL2='1.47', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1631084492.73', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='6.72e-03', ts2='0.77', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='261' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:01:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 707355: <4FGL_J1330.7+2933_daily_bin261> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin261> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 23:50:22 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:51:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 23:51:59 2021
Terminated at Wed Sep  8 00:01:33 2021
Results reported at Wed Sep  8 00:01:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin261 202.693 29.5536 306979201 307238401 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 :                                   556.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            671 sec.

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

