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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1212
RA = 202.693, Dec = 29.5536
tmin = 553478401, tmax = 553737601
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='724231', job_status='RUN', time_executed='2021-09-08 00:51:01.587848', time_epoch_executed='1631087461.59' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1212'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724231/ft1_4FGL_J1330.7+2933_daily_bin1212.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724231/ft2_4FGL_J1330.7+2933_daily_bin1212.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724231/ft1_4FGL_J1330.7+2933_daily_bin1212.fits outfile=/scratch/kocevski/724231/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1212.fits ra=202.693 dec=29.5536 rad=12.0 tmin=553478401.0 tmax=553737601.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 2.65
user 2.44
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724231/ft1_filtered_4FGL_J1330.7+2933_daily_bin1212.fits" evtable="EVENTS" scfile=/scratch/kocevski/724231/ft2_4FGL_J1330.7+2933_daily_bin1212.fits sctable="SC_DATA" outfile=/scratch/kocevski/724231/ltcube_553478401_553737601_4FGL_J1330.7+2933_daily_bin1212.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/724231/ft2_4FGL_J1330.7+2933_daily_bin1212.fits
.....................!
real 17.06
user 16.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724231/ft1_filtered_4FGL_J1330.7+2933_daily_bin1212.fits evtable="EVENTS" scfile=/scratch/kocevski/724231/ft2_4FGL_J1330.7+2933_daily_bin1212.fits sctable="SC_DATA" expcube=/scratch/kocevski/724231/ltcube_553478401_553737601_4FGL_J1330.7+2933_daily_bin1212.fits outfile=/scratch/kocevski/724231/expmap_553478401_553737601_4FGL_J1330.7+2933_daily_bin1212.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/724231/ltcube_553478401_553737601_4FGL_J1330.7+2933_daily_bin1212.fits
.....................!
real 194.53
user 188.62
sys 5.37

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/724231/ft1_filtered_4FGL_J1330.7+2933_daily_bin1212.fits scfile=/scratch/kocevski/724231/ft2_4FGL_J1330.7+2933_daily_bin1212.fits outfile=/scratch/kocevski/724231/cmap_553478401_553737601_4FGL_J1330.7+2933_daily_bin1212.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/724231/ft1_filtered_4FGL_J1330.7+2933_daily_bin1212.fits scfile=/scratch/kocevski/724231/ft2_4FGL_J1330.7+2933_daily_bin1212.fits outfile=/scratch/kocevski/724231/cmap_HighResolution_553478401_553737601_4FGL_J1330.7+2933_daily_bin1212.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/724231/ft1_filtered_4FGL_J1330.7+2933_daily_bin1212.fits evtable="EVENTS" scfile=/scratch/kocevski/724231/ft2_4FGL_J1330.7+2933_daily_bin1212.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724231/Model_4FGL_J1330.7+2933_daily_bin1212.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/724231/ft1_filtered_4FGL_J1330.7+2933_daily_bin1212.fits.....................!
real 65.96
user 64.35
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    61.346       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7890       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5154       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7514       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .37420E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2829       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9344       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8561       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.370       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.186       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.221       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8857       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0395       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=   8770.363     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     3110 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2803       -.70161E-06** at limit **
   2  Prefactor     61.353        65.688        .68936E-05    .63964E-04
   3  Prefactor     .10000E-03    2.2979       -.61666E-07** at limit **
   4  Prefactor     4.7885        4.1624       -.34646E-07   -.91383E-04
   5  norm          1.5155        3.1947       -.73055E-06   -.34881E-03
   6  Prefactor     .10000E-03    6.7500       -.26745E-06** at limit **
   7  norm          1.7513        1.5136        .60736E-06   -.46307E-02
   8  Prefactor     .10000E-03    4.7259        .12461E-05** at limit **
   9  norm          .10000E-03    1.5940        .38454E-06** at limit **
  10  norm          2.2814        3.6931       -.10870E-05   -.46451E-03
  11  norm          1.9351        5.2285       -.64692E-06   -.32616E-03
  12  norm          .10000E-03    9.0157        .34905E-05** at limit **
  13  Prefactor     .10000E-03    .92654        .10314E-06** at limit **
  14  Prefactor     3.8549        9.2029        .89811E-06   -.12820E-04
  15  norm          .10000E-03    .98763       -.37442E-07** at limit **
  16  Prefactor     56.360        36.567       -.88904E-05   -.21275E-03
  17  norm          .10000E-03    1.3314       -.35452E-07** at limit **
  18  Prefactor     10.186        9.0940        .60027E-07   -.10201E-05
  19  Prefactor     .10000E-03    3.8646       -.17649E-07** at limit **
  20  Prefactor     43.222        53.736        .17814E-05    .12849E-04
  21  Prefactor     .10000E-03    1.5261        .49259E-07** at limit **
  22  Prefactor     .10000E-03    10.284       -.29009E-05** at limit **
  23  norm          .10000E-03    2.3229       -.61532E-06** at limit **
  24  Prefactor     4.8860        3.2846        .21276E-06   -.20035E-02
  25  Normalizat    1.0731        .14548        .42058E-06    .29582E-04
  26  Prefactor     1.0395        .16226       -.18526E-06    .86775E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 61.3531
  Prefactor  = 0.0001
  Prefactor  = 4.78848
  norm       = 1.51548
  Prefactor  = 0.0001
  norm       = 1.75128
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.28142
  norm       = 1.9351
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85492
  norm       = 0.0001
  Prefactor  = 56.3599
  norm       = 0.0001
  Prefactor  = 10.1863
  Prefactor  = 0.0001
  Prefactor  = 43.2222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.886
  Normalizat = 1.07312
  Prefactor  = 1.03951
 **********
 **   18 **HESSE 
 **********

 FCN=   8770.363     FROM HESSE     STATUS=OK           456 CALLS     3566 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.353        65.442        .51229E-04   -1.4140    
   3  Prefactor     .10000E-03    2.3074        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7885        4.1542        .17220E-03   -1.5270    
   5  norm          1.5155        3.1447        .22297E-03   -1.5462    
   6  Prefactor     .10000E-03    6.7603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7513        2.7275        .93232E-03   -1.5443    
   8  Prefactor     .10000E-03    4.7450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.517        .22783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2814        3.6237        .15898E-03   -1.5406    
  11  norm          1.9351        5.1496        .25446E-03   -1.5430    
  12  norm          .10000E-03    9.0541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .94028        .87919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8549        9.1343        .20550E-03   -1.5315    
  15  norm          .10000E-03    .98990        .90885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     56.360        36.775        .26715E-03   -1.4205    
  17  norm          .10000E-03    1.3350        .10552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.186        9.0966        .12555E-03   -1.5070    
  19  Prefactor     .10000E-03    3.8677        .17980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.222        54.119        .60979E-04   -1.4392    
  21  Prefactor     .10000E-03    1.5506        .11288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.3986        .27490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.8860        3.4470        .70260E-03   -1.5266    
  25  Normalizat    1.0731        .17828        .22494E-03   -.90620    
  26  Prefactor     1.0395        .19746        .26403E-03   -.91424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0875e-08
Minuit parameter uncertainties:
  1  8.75435e-06
  2  65.5187
  3  2.10294e-06
  4  4.15441
  5  3.14506
  6  1.35069e-05
  7  2.72767
  8  1.5394e-05
  9  0.000135204
  10  3.62401
  11  5.15078
  12  4.55504e-05
  13  1.57643e-05
  14  9.13764
  15  7.60985e-07
  16  36.7893
  17  7.7513e-07
  18  9.09788
  19  6.16238e-07
  20  54.1808
  21  4.34223e-07
  22  4.55952e-05
  23  0.000153043
  24  3.44715
  25  0.178376
  26  0.197594
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.019e+01  9.098e+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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.040e+00  1.976e-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.073e+00  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 6.72e-06 +/- 6.00e-06

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

Saving results to:
/scratch/kocevski/724231/likelihoodResults_553478401_553737601_4FGL_J1330.7+2933_daily_bin1212.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) = 8769.73980758
delta logL = 0.623520949477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8769.60981964
delta logL = 0.753508892341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.524       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7711       1.0000          .0000       10.000    
     3 'Normalizat'    1.0862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0283       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=   8769.610     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.524        25.867        .24632E-02   -.23000E-02
   2  Index         1.7711        .80821        .20668       -.48966E-04
   3  Normalizat    1.0863        .14008        .38590E-01    .62868E-03
   4  Prefactor     1.0282        .16212        .59962E-01    .11624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5237
  Index      = 1.7711
  Normalizat = 1.08627
  Prefactor  = 1.02825
 **********
 **   18 **HESSE 
 **********

 FCN=   8769.610     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.524        13.707        .98529E-04   -1.4895    
   2  Index         1.7711        .50183        .10190E-01   -.70204    
   3  Normalizat    1.0863        .16769        .22370E-03   -.90194    
   4  Prefactor     1.0282        .19452        .26517E-03   -.91794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10914e-09
Minuit parameter uncertainties:
  1  13.7096
  2  0.503285
  3  0.167768
  4  0.194649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724231': 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) = 8769.60981963
delta logL = 0.753508905274

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.652e+01  1.371e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.771e+00  5.033e-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:  1.028e+00  1.946e-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.086e+00  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 202.693 29.554
Photon Index (Free Index): 1.77 +/- 0.50
Photon Flux (Free Index): 1.35e-08 +/- 1.41e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/724231/cmap_HighResolution_553478401_553737601_4FGL_J1330.7+2933_daily_bin1212.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.77e-05', photon_flux_error='1.95e-08', dlogl='7.54e-01', energy_flux='6.72e-06', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-09-08 01:05:38.634448', photon_index_error2='0.50', photon_index2='1.77', ts='2.28', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='6.90e-08', energy_flux_error2='2.16e-05', EG='1.07', time_epoch_completed='1631088338.63', return_code='0', job_id='724231', GAL2='1.03', EG2='1.09', return_code2='0', energy_flux_error='6.00e-06', photon_flux_error2='1.41e-08', ts2='3.79', photon_index='2.45' WHERE bin_id='1212' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:05:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 724231: <4FGL_J1330.7+2933_daily_bin1212> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1212 202.693 29.5536 553478401 553737601 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 :                                   872.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            900 sec.

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

