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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1090
RA = 202.693, Dec = 29.5536
tmin = 521856001, tmax = 522115201
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='722880', job_status='RUN', time_executed='2021-09-08 00:49:49.798387', time_epoch_executed='1631087389.8' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722880

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722880/ft1_4FGL_J1330.7+2933_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722880/ft2_4FGL_J1330.7+2933_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722880/ft1_4FGL_J1330.7+2933_daily_bin1090.fits outfile=/scratch/kocevski/722880/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1090.fits ra=202.693 dec=29.5536 rad=12.0 tmin=521856001.0 tmax=522115201.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.77
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722880/ft1_filtered_4FGL_J1330.7+2933_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/722880/ft2_4FGL_J1330.7+2933_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/722880/ltcube_521856001_522115201_4FGL_J1330.7+2933_daily_bin1090.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/722880/ft2_4FGL_J1330.7+2933_daily_bin1090.fits
.....................!
real 16.57
user 16.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722880/ft1_filtered_4FGL_J1330.7+2933_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/722880/ft2_4FGL_J1330.7+2933_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/722880/ltcube_521856001_522115201_4FGL_J1330.7+2933_daily_bin1090.fits outfile=/scratch/kocevski/722880/expmap_521856001_522115201_4FGL_J1330.7+2933_daily_bin1090.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/722880/ltcube_521856001_522115201_4FGL_J1330.7+2933_daily_bin1090.fits
.....................!
real 192.95
user 186.95
sys 5.49

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/722880/ft1_filtered_4FGL_J1330.7+2933_daily_bin1090.fits scfile=/scratch/kocevski/722880/ft2_4FGL_J1330.7+2933_daily_bin1090.fits outfile=/scratch/kocevski/722880/cmap_521856001_522115201_4FGL_J1330.7+2933_daily_bin1090.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722880/ft1_filtered_4FGL_J1330.7+2933_daily_bin1090.fits scfile=/scratch/kocevski/722880/ft2_4FGL_J1330.7+2933_daily_bin1090.fits outfile=/scratch/kocevski/722880/cmap_HighResolution_521856001_522115201_4FGL_J1330.7+2933_daily_bin1090.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 1.11
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722880/ft1_filtered_4FGL_J1330.7+2933_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/722880/ft2_4FGL_J1330.7+2933_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722880/Model_4FGL_J1330.7+2933_daily_bin1090.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/722880/ft1_filtered_4FGL_J1330.7+2933_daily_bin1090.fits.....................!
real 48.40
user 47.06
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .91816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.786       1.0000         .10000E-03   10000.    
     7 'norm      '    6.5063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13373E-03   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      '    23.520       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8525       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    25.048       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.202       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    95.088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4309       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.654       1.0000         .10000E-03   10000.    
    23 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98197       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0134       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=   5498.234     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3055 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.019        .28332E-06** at limit **
   2  Prefactor     .10000E-03    35.751       -.22627E-06** at limit **
   3  Prefactor     .27297        7.1976       -.21861E-06    .89393E-04
   4  Prefactor     .10000E-03    4.0924       -.16932E-06** at limit **
   5  norm          .91347        5.0390        .37508E-05   -.29530E-04
   6  Prefactor     34.802        29.076       -.11703E-05   -.14619E-03
   7  norm          6.5054        4.4990       -.42048E-08   -.54385E-05
   8  Prefactor     .10000E-03    12.162       -.13982E-05** at limit **
   9  norm          .10002E-03    4.5793        .18772E-05** at limit **
  10  norm          .10000E-03    1.1733        .86475E-07** at limit **
  11  norm          .10000E-03    3.9914        .42205E-06** at limit **
  12  norm          23.519        22.014       -.12037E-06   -.15358E-04
  13  Prefactor     3.8530        3.6609       -.13053E-07   -.59836E-03
  14  Prefactor     .10000E-03    10.170        .69377E-06** at limit **
  15  norm          25.044        8.9367        .10207E-07   -.65327E-05
  16  Prefactor     .10000E-03    24.210        .65122E-06** at limit **
  17  norm          .10000E-03    2.1987        .45568E-08** at limit **
  18  Prefactor     15.193        22.258       -.10521E-05   -.90986E-04
  19  Prefactor     .10000E-03    6.8234       -.63187E-06** at limit **
  20  Prefactor     95.060        79.504       -.29058E-05   -.11348E-03
  21  Prefactor     4.4290        5.4021        .32191E-06   -.16382E-04
  22  Prefactor     11.631        19.617       -.15604E-05   -.12862E-03
  23  norm          .10000E-03    5.4597        .59048E-06** at limit **
  24  Prefactor     .10000E-03    1.9781        .81854E-07** at limit **
  25  Normalizat    .98235        .19599        .46672E-06   -.31087E-03
  26  Prefactor     1.0131        .20868       -.10634E-05   -.19853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.272972
  Prefactor  = 0.0001
  norm       = 0.913473
  Prefactor  = 34.8021
  norm       = 6.50539
  Prefactor  = 0.0001
  norm       = 0.000100022
  norm       = 0.0001
  norm       = 0.0001
  norm       = 23.5187
  Prefactor  = 3.85296
  Prefactor  = 0.0001
  norm       = 25.0444
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1925
  Prefactor  = 0.0001
  Prefactor  = 95.0595
  Prefactor  = 4.42902
  Prefactor  = 11.6312
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.982353
  Prefactor  = 1.01307
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.234     FROM HESSE     STATUS=OK           454 CALLS     3509 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27297        49.582        .37781E-02   -1.5603    
   4  Prefactor     .10000E-03    4.1693        .14656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91347        5.2923        .30807E-03   -1.5517    
   6  Prefactor     34.802        29.289        .67945E-04   -1.4527    
   7  norm          6.5054        4.4848        .12461E-03   -1.5198    
   8  Prefactor     .10000E-03    12.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    10.381        .28257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1783        .78371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.0836        .14455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.519        22.012        .82594E-04   -1.4738    
  13  Prefactor     3.8530        3.6382        .12946E-03   -1.5315    
  14  Prefactor     .10000E-03    10.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.044        8.9390        .80040E-04   -1.4707    
  16  Prefactor     .10000E-03    24.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2007        .10736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.193        22.362        .10272E-03   -1.4928    
  19  Prefactor     .10000E-03    6.8345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     95.060        80.608        .20609E-03   -1.3755    
  21  Prefactor     4.4290        5.4124        .17632E-03   -1.5287    
  22  Prefactor     11.631        19.810        .11735E-03   -1.5026    
  23  norm          .10000E-03    5.6768        .33839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9926        .10183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98235        .23130        .24520E-03   -.93624    
  26  Prefactor     1.0131        .24656        .26978E-03   -.92295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84653e-09
Minuit parameter uncertainties:
  1  4.32538e-06
  2  8.47529e-05
  3  7.36273
  4  1.81716e-05
  5  4.39779
  6  29.3015
  7  4.48505
  8  0.000146181
  9  0.000955101
  10  2.6222e-06
  11  3.43328e-06
  12  22.0193
  13  3.63836
  14  5.71305e-05
  15  8.93953
  16  8.16856e-05
  17  8.83481e-07
  18  22.3748
  19  2.92697e-05
  20  80.7012
  21  5.41302
  22  19.8207
  23  1.79143e-05
  24  4.40068e-07
  25  0.231534
  26  0.246837
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.519e+01  2.237e+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.013e+00  2.468e-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:  9.824e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/722880/likelihoodResults_521856001_522115201_4FGL_J1330.7+2933_daily_bin1090.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) = 5497.66171838
delta logL = 0.572317147245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5497.61738485
delta logL = 0.616650685973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0260       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1693       1.0000          .0000       10.000    
     3 'Normalizat'    1.0104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99797       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=   5497.617     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      221 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9570        10.855        .33352E-02   -.10238E-03
   2  Index         1.1665        .42654        .23602       -.75137E-04
   3  Normalizat    1.0103        .18184        .45739E-01    .81306E-05
   4  Prefactor     .99828        .20396        .46242E-01    .23745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.95697
  Index      = 1.16654
  Normalizat = 1.01026
  Prefactor  = 0.998276
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.617     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9570        17.831        .66704E-03   -1.5109    
   2  Index         1.1665        .76484        .95177E-02   -.87367    
   3  Normalizat    1.0103        .21298        .24201E-03   -.92687    
   4  Prefactor     .99828        .23894        .13577E-02   -.92787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05307e-11
Minuit parameter uncertainties:
  1  17.8418
  2  0.772268
  3  0.213156
  4  0.239197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722880': 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) = 5497.61737772
delta logL = 0.616657811056

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  8.957e+00  1.784e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.167e+00  7.723e-01  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:  9.983e-01  2.392e-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.010e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 202.693 29.554
Photon Index (Free Index): 1.17 +/- 0.77
Photon Flux (Free Index): 5.65e-09 +/- 9.72e-09
Energy Flux (Free Index): 5.21e-05 +/- 8.20e-05

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/722880/cmap_HighResolution_521856001_522115201_4FGL_J1330.7+2933_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='5.21e-05', dlogl='6.17e-01', photon_flux2='5.65e-09', job_status='DONE', time_completed='2021-09-08 01:00:51.498491', photon_index_error2='0.77', photon_index2='1.17', ts='0.56', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='8.20e-05', EG='0.98', time_epoch_completed='1631088051.5', return_code='0', job_id='722880', GAL2='1.00', EG2='1.01', return_code2='0', photon_flux_error2='9.72e-09', ts2='1.78', photon_index='2.45' WHERE bin_id='1090' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:00:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 722880: <4FGL_J1330.7+2933_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1090> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:37 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:39 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:45:39 2021
Terminated at Wed Sep  8 01:00:52 2021
Results reported at Wed Sep  8 01:00:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1090 202.693 29.5536 521856001 522115201 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 :                                   656.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

