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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1195
RA = 202.693, Dec = 29.5536
tmin = 549072001, tmax = 549331201
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='724206', job_status='RUN', time_executed='2021-09-08 00:52:53.088322', time_epoch_executed='1631087573.09' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724206

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724206/ft1_4FGL_J1330.7+2933_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724206/ft2_4FGL_J1330.7+2933_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724206/ft1_4FGL_J1330.7+2933_daily_bin1195.fits outfile=/scratch/kocevski/724206/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1195.fits ra=202.693 dec=29.5536 rad=12.0 tmin=549072001.0 tmax=549331201.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.44
user 2.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724206/ft2_4FGL_J1330.7+2933_daily_bin1195.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/724206/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1195.fits evtable="EVENTS" outfile="/scratch/kocevski/724206/ft1_filtered_4FGL_J1330.7+2933_daily_bin1195.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724206/ft1_filtered_4FGL_J1330.7+2933_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/724206/ft2_4FGL_J1330.7+2933_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/724206/ltcube_549072001_549331201_4FGL_J1330.7+2933_daily_bin1195.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/724206/ft2_4FGL_J1330.7+2933_daily_bin1195.fits
.....................!
real 13.89
user 13.57
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724206/ft1_filtered_4FGL_J1330.7+2933_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/724206/ft2_4FGL_J1330.7+2933_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/724206/ltcube_549072001_549331201_4FGL_J1330.7+2933_daily_bin1195.fits outfile=/scratch/kocevski/724206/expmap_549072001_549331201_4FGL_J1330.7+2933_daily_bin1195.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/724206/ltcube_549072001_549331201_4FGL_J1330.7+2933_daily_bin1195.fits
.....................!
real 158.69
user 154.04
sys 4.25

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/724206/ft1_filtered_4FGL_J1330.7+2933_daily_bin1195.fits scfile=/scratch/kocevski/724206/ft2_4FGL_J1330.7+2933_daily_bin1195.fits outfile=/scratch/kocevski/724206/cmap_549072001_549331201_4FGL_J1330.7+2933_daily_bin1195.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.50
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724206/ft1_filtered_4FGL_J1330.7+2933_daily_bin1195.fits scfile=/scratch/kocevski/724206/ft2_4FGL_J1330.7+2933_daily_bin1195.fits outfile=/scratch/kocevski/724206/cmap_HighResolution_549072001_549331201_4FGL_J1330.7+2933_daily_bin1195.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.51
user 0.33
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724206/ft1_filtered_4FGL_J1330.7+2933_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/724206/ft2_4FGL_J1330.7+2933_daily_bin1195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724206/Model_4FGL_J1330.7+2933_daily_bin1195.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/724206/ft1_filtered_4FGL_J1330.7+2933_daily_bin1195.fits.....................!
real 57.93
user 56.58
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1036       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6703       1.0000         .10000E-03   10000.    
     9 'norm      '    9.1676       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9961       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1526       1.0000         .10000E-03   10000.    
    12 'norm      '    16.075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0298       1.0000         .10000E-03   10000.    
    15 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .61846       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3595       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.391       1.0000         .10000E-03   10000.    
    23 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9396       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1942       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0412       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=   9658.285     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3126 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8396        .10683E-06** at limit **
   2  Prefactor     20.383        35.209       -.50448E-04   -.50279E-06
   3  Prefactor     7.9896        4.9545       -.84274E-07    .60296E-04
   4  Prefactor     .10000E-03    1.6164       -.68312E-07** at limit **
   5  norm          5.3090        3.7175        .26047E-05   -.11755E-03
   6  Prefactor     6.1014        15.596       -.91986E-06   -.42301E-04
   7  norm          .10000E-03    1.8340       -.33696E-07** at limit **
   8  Prefactor     6.6693        7.8041       -.12584E-05   -.12413E-02
   9  norm          9.1662        4.3058        .59856E-07    .31477E-04
  10  norm          2.9984        3.0119        .43521E-06   -.37071E-03
  11  norm          2.1488        5.0556       -.14699E-05   -.90864E-03
  12  norm          16.074        14.539       -.23577E-06    .85080E-04
  13  Prefactor     .10000E-03    1.0285       -.13540E-06** at limit **
  14  Prefactor     8.0237        8.4752       -.24387E-06    .33732E-05
  15  norm          .10000E-03    3.7999        .50417E-06** at limit **
  16  Prefactor     .10000E-03    8.9314        .55368E-06** at limit **
  17  norm          .61240        5.2555       -.23823E-05   -.37057E-04
  18  Prefactor     8.3642        10.157       -.89116E-06   -.25927E-04
  19  Prefactor     .10000E-03    35.207        .23094E-05** at limit **
  20  Prefactor     .10000E-03    15.498       -.10111E-05** at limit **
  21  Prefactor     .10000E-03    1.2076       -.10893E-06** at limit **
  22  Prefactor     20.391        19.054       -.98713E-06    .51873E-04
  23  norm          .10000E-03    2.2179       -.29093E-06** at limit **
  24  Prefactor     7.9405        4.1953       -.33935E-06   -.15315E-03
  25  Normalizat    1.1941        .14176        .12465E-05    .43086E-03
  26  Prefactor     1.0413        .15974        .11691E-05    .35367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.3833
  Prefactor  = 7.98962
  Prefactor  = 0.0001
  norm       = 5.30897
  Prefactor  = 6.10145
  norm       = 0.0001
  Prefactor  = 6.66927
  norm       = 9.16623
  norm       = 2.99838
  norm       = 2.14883
  norm       = 16.0743
  Prefactor  = 0.0001
  Prefactor  = 8.02367
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.612403
  Prefactor  = 8.3642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3912
  norm       = 0.0001
  Prefactor  = 7.9405
  Normalizat = 1.19409
  Prefactor  = 1.04133
 **********
 **   18 **HESSE 
 **********

 FCN=   9658.285     FROM HESSE     STATUS=OK           468 CALLS     3594 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8400        .16174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.383        35.035        .88645E-04   -1.4805    
   3  Prefactor     7.9896        4.9545        .14185E-03   -1.5143    
   4  Prefactor     .10000E-03    4.1353        .24194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3090        3.6943        .14314E-03   -1.5247    
   6  Prefactor     6.1014        15.497        .16251E-03   -1.5214    
   7  norm          .10000E-03    1.8918        .25976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6693        7.8058        .77685E-03   -1.5191    
   9  norm          9.1662        4.2743        .13198E-03   -1.5102    
  10  norm          2.9984        3.1939        .11884E-03   -1.5362    
  11  norm          2.1488        5.3740        .24005E-03   -1.5415    
  12  norm          16.074        14.528        .99895E-04   -1.4906    
  13  Prefactor     .10000E-03    3.2657        .18365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0237        8.2415        .14149E-03   -1.5141    
  15  norm          .10000E-03    3.8169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .61240        20.454        .41895E-02   -1.5551    
  18  Prefactor     8.3642        10.161        .13865E-03   -1.5129    
  19  Prefactor     .10000E-03    35.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.2199        .10541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.391        19.064        .88697E-04   -1.4805    
  23  norm          .10000E-03    7.4802        .28274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.9405        4.1829        .13990E-03   -1.5144    
  25  Normalizat    1.1941        .16971        .23271E-03   -.86786    
  26  Prefactor     1.0413        .19153        .28615E-03   -.91364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28064e-08
Minuit parameter uncertainties:
  1  1.88247e-07
  2  35.07
  3  4.95477
  4  3.42959e-05
  5  3.6945
  6  15.5077
  7  5.39284e-06
  8  7.807
  9  4.2744
  10  3.19408
  11  5.37523
  12  14.5316
  13  1.06118e-06
  14  8.24262
  15  2.30558e-05
  16  3.14131e-06
  17  7.08057
  18  10.1634
  19  7.73317e-05
  20  1.45188e-05
  21  4.49374e-06
  22  19.0695
  23  2.67647e-05
  24  4.18307
  25  0.16979
  26  0.191651
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  8.364e+00  1.016e+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.041e+00  1.917e-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.194e+00  1.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.79e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 5.52e-06 +/- 6.70e-06

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

Saving results to:
/scratch/kocevski/724206/likelihoodResults_549072001_549331201_4FGL_J1330.7+2933_daily_bin1195.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) = 9658.27654212
delta logL = 0.00821854704009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9658.2743295
delta logL = 0.0104311630221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1200       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3055       1.0000          .0000       10.000    
     3 'Normalizat'    1.1974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0389       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=   9658.274     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1200        362.03        .33179E-02   -.14079E-03
   2  Index         2.3055        5.9527        .24285        .49335E-04
   3  Normalizat    1.1974        .55152E-01    .52570E-01    .18109E-04
   4  Prefactor     1.0389        .50653E-01    .64758E-01    .26767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.11995
  Index      = 2.30545
  Normalizat = 1.19739
  Prefactor  = 1.03891
 **********
 **   18 **HESSE 
 **********

 FCN=   9658.274     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1200        12.246        .13271E-03   -1.5104    
   2  Index         2.3055        .99546        .12880E-01   -.56914    
   3  Normalizat    1.1974        .16526        .23243E-03   -.86684    
   4  Prefactor     1.0389        .19024        .28644E-03   -.91444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6272e-09
Minuit parameter uncertainties:
  1  12.2489
  2  1.00497
  3  0.165331
  4  0.190362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724206': 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) = 9658.2743295
delta logL = 0.0104311652995

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.120e+00  1.225e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.305e+00  1.005e+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.039e+00  1.904e-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.197e+00  1.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.31 +/- 1.00
Photon Flux (Free Index): 1.55e-08 +/- 2.50e-08
Energy Flux (Free Index): 5.81e-06 +/- 7.76e-06

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/724206/cmap_HighResolution_549072001_549331201_4FGL_J1330.7+2933_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', comment='SUCCESS', photon_flux='1.79e-08', energy_flux2='5.81e-06', photon_flux_error='2.17e-08', dlogl='1.04e-02', energy_flux='5.52e-06', photon_flux2='1.55e-08', job_status='DONE', time_completed='2021-09-08 01:05:54.261216', photon_index_error2='1.00', photon_index2='2.31', ts='1.07', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='7.14e-08', energy_flux_error2='7.76e-06', EG='1.19', time_epoch_completed='1631088354.26', return_code='0', job_id='724206', GAL2='1.04', EG2='1.20', return_code2='0', energy_flux_error='6.70e-06', photon_flux_error2='2.50e-08', ts2='1.09', photon_index='2.45' WHERE bin_id='1195' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:05:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 724206: <4FGL_J1330.7+2933_daily_bin1195> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1195> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 00:50:37 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:50:43 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:43 2021
Terminated at Wed Sep  8 01:05:55 2021
Results reported at Wed Sep  8 01:05:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1195 202.693 29.5536 549072001 549331201 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 :                                   774.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             316.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            918 sec.

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

