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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1569
RA = 202.693, Dec = 29.5536
tmin = 646012801, tmax = 646272001
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='725813', job_status='RUN', time_executed='2021-09-08 01:01:18.371252', time_epoch_executed='1631088078.37' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725813/ft1_4FGL_J1330.7+2933_daily_bin1569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725813/ft2_4FGL_J1330.7+2933_daily_bin1569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725813/ft1_4FGL_J1330.7+2933_daily_bin1569.fits outfile=/scratch/kocevski/725813/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1569.fits ra=202.693 dec=29.5536 rad=12.0 tmin=646012801.0 tmax=646272001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.62
user 4.34
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725813/ft1_filtered_4FGL_J1330.7+2933_daily_bin1569.fits" evtable="EVENTS" scfile=/scratch/kocevski/725813/ft2_4FGL_J1330.7+2933_daily_bin1569.fits sctable="SC_DATA" outfile=/scratch/kocevski/725813/ltcube_646012801_646272001_4FGL_J1330.7+2933_daily_bin1569.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/725813/ft2_4FGL_J1330.7+2933_daily_bin1569.fits
.....................!
real 15.51
user 15.07
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725813/ft1_filtered_4FGL_J1330.7+2933_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/725813/ft2_4FGL_J1330.7+2933_daily_bin1569.fits sctable="SC_DATA" expcube=/scratch/kocevski/725813/ltcube_646012801_646272001_4FGL_J1330.7+2933_daily_bin1569.fits outfile=/scratch/kocevski/725813/expmap_646012801_646272001_4FGL_J1330.7+2933_daily_bin1569.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/725813/ltcube_646012801_646272001_4FGL_J1330.7+2933_daily_bin1569.fits
.....................!
real 193.40
user 187.06
sys 5.51

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/725813/ft1_filtered_4FGL_J1330.7+2933_daily_bin1569.fits scfile=/scratch/kocevski/725813/ft2_4FGL_J1330.7+2933_daily_bin1569.fits outfile=/scratch/kocevski/725813/cmap_646012801_646272001_4FGL_J1330.7+2933_daily_bin1569.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.78
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725813/ft1_filtered_4FGL_J1330.7+2933_daily_bin1569.fits scfile=/scratch/kocevski/725813/ft2_4FGL_J1330.7+2933_daily_bin1569.fits outfile=/scratch/kocevski/725813/cmap_HighResolution_646012801_646272001_4FGL_J1330.7+2933_daily_bin1569.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.02
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725813/ft1_filtered_4FGL_J1330.7+2933_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/725813/ft2_4FGL_J1330.7+2933_daily_bin1569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725813/Model_4FGL_J1330.7+2933_daily_bin1569.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/725813/ft1_filtered_4FGL_J1330.7+2933_daily_bin1569.fits.....................!
real 49.28
user 43.42
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26365E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    120.78       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20925       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2592       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.964       1.0000         .10000E-03   10000.    
     7 'norm      '    .90531       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4389       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    23.579       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6222       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9204       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2406       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4938       1.0000         .10000E-03   10000.    
    15 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5054       1.0000         .10000E-03   10000.    
    17 'norm      '    18.298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.812       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.346       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9186       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.632       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.690       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.3952       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86359       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78534       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.

 FCN=   5255.636     FROM MIGRAD    STATUS=CONVERGED   1093 CALLS     4076 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    22.904        .10741    ** at limit **
   2  Prefactor     120.83        107.63        .18310E-03   -.23595E-04
   3  Prefactor     .21117        29.689        .32749E-02    .40017E-03
   4  Prefactor     .10000E-03    3.6740        .13508E-02** at limit **
   5  norm          4.2598        6.0314        .18816E-03   -.68094E-04
   6  Prefactor     37.958        35.109        .65048E-04    .55228E-04
   7  norm          .90190        2.0058        .17821E-02    .13002E-02
   8  Prefactor     6.4498        20.496        .15817E-03    .14663E-04
   9  norm          .10000E-03    6.8627        .18142E-02** at limit **
  10  norm          23.575        9.8393        .82491E-04    .33517E-03
  11  norm          1.6285        19.883        .33225E-03   -.79486E-04
  12  norm          3.9143        18.229        .20375E-03   -.85926E-05
  13  Prefactor     7.2420        5.2771        .12010E-03    .81408E-05
  14  Prefactor     3.4945        18.532        .21631E-03    .11037E-05
  15  norm          .10000E-03    56.121        .34550E-02** at limit **
  16  Prefactor     8.5027        79.361        .13745E-03   -.56242E-05
  17  norm          18.291        10.891        .93631E-04    .18456E-03
  18  Prefactor     19.815        17.257        .89984E-04   -.17688E-05
  19  Prefactor     38.340        27.865        .64725E-04    .20551E-04
  20  Prefactor     1.9700        363.97        .30002E-03   -.12959E-04
  21  Prefactor     11.633        5.7694        .11519E-03   -.10857E-04
  22  Prefactor     29.690        18.574        .73530E-04   -.17626E-04
  23  norm          .10000E-03    1.4381        .84791E-03** at limit **
  24  Prefactor     8.3954        4.7097        .11369E-03    .17699E-04
  25  Normalizat    .86319        .22049        .25034E-03   -.21530E-03
  26  Prefactor     .78574        .22549        .28354E-03    .12053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100044
  Prefactor  = 120.825
  Prefactor  = 0.211166
  Prefactor  = 0.0001
  norm       = 4.25977
  Prefactor  = 37.9577
  norm       = 0.901903
  Prefactor  = 6.44976
  norm       = 0.0001
  norm       = 23.5747
  norm       = 1.62854
  norm       = 3.91433
  Prefactor  = 7.24201
  Prefactor  = 3.49447
  norm       = 0.0001
  Prefactor  = 8.50273
  norm       = 18.2906
  Prefactor  = 19.8153
  Prefactor  = 38.3396
  Prefactor  = 1.97
  Prefactor  = 11.6331
  Prefactor  = 29.6904
  norm       = 0.0001
  Prefactor  = 8.39538
  Normalizat = 0.863189
  Prefactor  = 0.785738
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.636     FROM HESSE     STATUS=OK           444 CALLS     4520 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    22.911        .10737       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     120.83        107.61        .73238E-05   -1.3505    
   3  Prefactor     .21117        30.090        .13099E-03   -1.5616    
   4  Prefactor     .10000E-03    3.6743        .27016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2598        6.0295        .75263E-05   -1.5295    
   6  Prefactor     37.958        35.104        .13010E-04   -1.4475    
   7  norm          .90190        2.0032        .71285E-04   -1.5518    
   8  Prefactor     6.4498        20.487        .63267E-05   -1.5200    
   9  norm          .10000E-03    6.8657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.575        9.8060        .32996E-05   -1.4737    
  11  norm          1.6285        19.744        .13290E-04   -1.5453    
  12  norm          3.9143        18.192        .81501E-05   -1.5312    
  13  Prefactor     7.2420        5.2753        .48040E-05   -1.5170    
  14  Prefactor     3.4945        18.510        .86525E-05   -1.5334    
  15  norm          .10000E-03    57.499        .13820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5027        79.301        .54981E-05   -1.5125    
  17  norm          18.291        10.840        .37452E-05   -1.4852    
  18  Prefactor     19.815        17.255        .35993E-05   -1.4817    
  19  Prefactor     38.340        27.860        .25890E-05   -1.4469    
  20  Prefactor     1.9700        363.49        .12001E-04   -1.5427    
  21  Prefactor     11.633        5.7682        .46075E-05   -1.5026    
  22  Prefactor     29.690        18.569        .29412E-05   -1.4618    
  23  norm          .10000E-03    1.4382        .16958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.3954        4.7093        .45477E-05   -1.5128    
  25  Normalizat    .86319        .22060        .10014E-04   -.97766    
  26  Prefactor     .78574        .22546        .11342E-04   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74909e-09
Minuit parameter uncertainties:
  1  0.00201311
  2  107.782
  3  5.04278
  4  7.39209e-06
  5  6.03036
  6  35.1235
  7  2.00338
  8  20.509
  9  2.23262e-05
  10  9.80666
  11  11.3451
  12  16.8853
  13  5.27566
  14  16.0926
  15  0.000181234
  16  52.0245
  17  10.8409
  18  17.2589
  19  27.8699
  20  53.8526
  21  5.76847
  22  18.573
  23  1.58971e-06
  24  4.70949
  25  0.220829
  26  0.225723
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.982e+01  1.726e+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:  7.857e-01  2.257e-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:  8.632e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.60
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.14e-05

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) = 5255.31184579
delta logL = 0.324387105607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5255.28099704
delta logL = 0.35523585679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.840       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8801       1.0000          .0000       10.000    
     3 'Normalizat'    .88316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77226       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=   5255.281     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.840        36.168        .20093E-02   -.19663E-02
   2  Index         1.8800        .85936        .19345       -.13408E-04
   3  Normalizat    .88318        .17625        .44686E-01    .11806E-04
   4  Prefactor     .77220        .19033        .64608E-01    .14758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8399
  Index      = 1.88004
  Normalizat = 0.883182
  Prefactor  = 0.772201
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.281     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.840        22.913        .80374E-04   -1.4711    
   2  Index         1.8800        .63377        .96720E-02   -.67384    
   3  Normalizat    .88318        .20099        .24795E-03   -.97054    
   4  Prefactor     .77220        .21810        .28580E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20182e-09
Minuit parameter uncertainties:
  1  22.9213
  2  0.636586
  3  0.20116
  4  0.218341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725813': 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) = 5255.28099696
delta logL = 0.355235933579

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.484e+01  2.292e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.880e+00  6.366e-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:  7.722e-01  2.183e-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:  8.832e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.31
Ra Dec: 202.693 29.554
Photon Index (Free Index): 1.88 +/- 0.64
Photon Flux (Free Index): 2.30e-08 +/- 2.97e-08
Energy Flux (Free Index): 2.18e-05 +/- 2.76e-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/725813/cmap_HighResolution_646012801_646272001_4FGL_J1330.7+2933_daily_bin1569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='2.18e-05', photon_flux_error='3.69e-08', dlogl='3.55e-01', energy_flux='1.31e-05', photon_flux2='2.30e-08', job_status='DONE', time_completed='2021-09-08 01:12:07.560367', photon_index_error2='0.64', photon_index2='1.88', ts='4.60', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='2.76e-05', EG='0.86', time_epoch_completed='1631088727.56', return_code='0', job_id='725813', GAL2='0.77', EG2='0.88', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.97e-08', ts2='5.31', photon_index='2.45' WHERE bin_id='1569' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 725813: <4FGL_J1330.7+2933_daily_bin1569> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1569> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 00:55:46 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:57:24 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:57:24 2021
Terminated at Wed Sep  8 01:12:08 2021
Results reported at Wed Sep  8 01:12:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1569 202.693 29.5536 646012801 646272001 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 :                                   638.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            982 sec.

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

