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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1339
RA = 202.573, Dec = 70.0406
tmin = 586396801, tmax = 586656001
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='654771', job_status='RUN', time_executed='2021-09-07 22:00:21.035538', time_epoch_executed='1631077221.04' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654771

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654771/ft1_4FGL_J1330.2+7002_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654771/ft1_4FGL_J1330.2+7002_daily_bin1339.fits outfile=/scratch/kocevski/654771/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1339.fits ra=202.573 dec=70.0406 rad=12.0 tmin=586396801.0 tmax=586656001.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.22
user 2.04
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.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/654771/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.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.46
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/654771/ltcube_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.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/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits
.....................!
real 10.42
user 9.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/654771/ltcube_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.fits outfile=/scratch/kocevski/654771/expmap_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.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/654771/ltcube_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.fits
.....................!
real 157.47
user 151.87
sys 5.04

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 229 point sources and 0 extended sources

Setting source of interest to:
4FGL J1330.2+7002 @ 202.573 70.0406

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.fits scfile=/scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits outfile=/scratch/kocevski/654771/cmap_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.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.573 yref=70.0406 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.fits scfile=/scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits outfile=/scratch/kocevski/654771/cmap_HighResolution_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.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.573 yref=70.0406 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.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/654771/Model_4FGL_J1330.2+7002_daily_bin1339.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/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.fits.....................!
real 44.33
user 43.10
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.fits', '/scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits', expMap='/scratch/kocevski/654771/expmap_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.fits', expCube='/scratch/kocevski/654771/ltcube_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/654771/Model_4FGL_J1330.2+7002_daily_bin1339.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.2+7002'

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  5.366e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/654771/ft1_filtered_4FGL_J1330.2+7002_daily_bin1339.fits
Spacecraft file(s): /scratch/kocevski/654771/ft2_4FGL_J1330.2+7002_daily_bin1339.fits
Exposure map: /scratch/kocevski/654771/expmap_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.fits
Exposure cube: /scratch/kocevski/654771/ltcube_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/654771/Model_4FGL_J1330.2+7002_daily_bin1339.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) = 5150.42583187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.468       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.443       1.0000         .10000E-03   10000.    
     8 'norm      '    5.8916       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58012E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.628       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14075E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.266       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0472       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56096E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.211       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.869       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .70498       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5150.414     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3451 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.574        19.097        .10073E-06   -.13450E-05
   2  Prefactor     .10000E-03    2.2149       -.10901E-07** at limit **
   3  Prefactor     12.749        26.005        .61006E-06   -.37390E-05
   4  Prefactor     .10000E-03    15.668        .20530E-06** at limit **
   5  Prefactor     24.467        20.496        .59861E-07   -.85918E-05
   6  Prefactor     .10000E-03    36.792        .31112E-06** at limit **
   7  norm          12.443        6.8406        .26848E-06   -.30909E-04
   8  norm          5.8937        4.1727        .63219E-07    .17885E-04
   9  Prefactor     .10000E-03    20.791        .62123E-06** at limit **
  10  Prefactor     .10000E-03    323.17        .71176E-05** at limit **
  11  Prefactor     .10000E-03    72.977       -.29174E-05** at limit **
  12  Prefactor     29.618        30.482       -.50517E-06   -.36278E-04
  13  Prefactor     .10000E-03    5.2953       -.48625E-08** at limit **
  14  Prefactor     .10000E-03    15.439        .38314E-06** at limit **
  15  Prefactor     14.288        9.5033        .38898E-07   -.49743E-04
  16  Prefactor     2.0460        7.3473        .16734E-06   -.69839E-06
  17  Prefactor     1.7744        41.996        .13819E-04    .78867E-05
  18  Prefactor     .10000E-03    11.650       -.18354E-07** at limit **
  19  Prefactor     .10000E-03    260.20       -.67597E-05** at limit **
  20  Prefactor     .10000E-03    73.050       -.31249E-05** at limit **
  21  Prefactor     .10000E-03    16.860       -.84729E-06** at limit **
  22  Prefactor     45.244        32.769        .65022E-06   -.59696E-05
  23  Prefactor     .10000E-03    35.382       -.13067E-05** at limit **
  24  Prefactor     48.842        63.300        .23978E-05   -.28939E-05
  25  Prefactor     .10000E-03    5.7941       -.44233E-07** at limit **
  26  Prefactor     .10000E-03    62.609        .56815E-05** at limit **
  27  Normalizat    .70496        .17443       -.35650E-06   -.69081E-04
  28  Prefactor     1.2337        .18306       -.80175E-06   -.49873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5739
  Prefactor  = 0.0001
  Prefactor  = 12.749
  Prefactor  = 0.0001
  Prefactor  = 24.4674
  Prefactor  = 0.0001
  norm       = 12.4425
  norm       = 5.89375
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 29.618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2876
  Prefactor  = 2.04604
  Prefactor  = 1.77442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.2442
  Prefactor  = 0.0001
  Prefactor  = 48.8422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.704956
  Prefactor  = 1.23371
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.414     FROM HESSE     STATUS=OK           511 CALLS     3962 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.574        19.097        .98376E-04   -1.4894    
   2  Prefactor     .10000E-03    2.2471        .10429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.749        25.999        .11222E-03   -1.4994    
   4  Prefactor     .10000E-03    15.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.467        20.535        .80981E-04   -1.4718    
   6  Prefactor     .10000E-03    36.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.443        6.8455        .11356E-03   -1.5002    
   8  norm          5.8937        4.1790        .11904E-03   -1.5222    
   9  Prefactor     .10000E-03    20.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    332.22        .37980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    73.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.618        30.486        .73606E-04   -1.4619    
  13  Prefactor     .10000E-03    5.4286        .31985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.288        9.4419        .10604E-03   -1.4952    
  16  Prefactor     2.0460        7.3307        .28896E-03   -1.5422    
  17  Prefactor     1.7744        42.076        .15736E-02   -1.5442    
  18  Prefactor     .10000E-03    11.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    260.32        .21099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    73.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.244        32.807        .59628E-04   -1.4362    
  23  Prefactor     .10000E-03    35.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     48.842        63.398        .57363E-04   -1.4309    
  25  Prefactor     .10000E-03    5.8044        .16872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    63.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .70496        .20185        .26331E-03   -1.0370    
  28  Prefactor     1.2337        .21231        .21927E-03   -.85300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15954e-11
Minuit parameter uncertainties:
  1  19.1035
  2  1.89175e-08
  3  26.0225
  4  1.66556e-06
  5  20.541
  6  9.84366e-06
  7  6.8459
  8  4.17919
  9  3.16921e-06
  10  0.00159002
  11  0.000105937
  12  30.5024
  13  4.14913e-06
  14  1.37703e-05
  15  9.4429
  16  7.33394
  17  17.2945
  18  1.00831e-06
  19  0.000229653
  20  4.76753e-05
  21  1.86462e-05
  22  32.8202
  23  1.30716e-05
  24  63.4856
  25  3.24231e-06
  26  0.000305725
  27  0.202063
  28  0.212461
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  2.962e+01  3.050e+01  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.234e+00  2.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  7.050e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 202.573 70.041
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.69e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.31e-05

TS (Fixed Index): 1.86
Ra Dec: 202.573 70.041
Photon Flux Upper Limit: 6.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654771/likelihoodResults_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.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) = 5150.4125022
delta logL = 0.00137492640624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5150.41158992
delta logL = 0.00228721148414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.988       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0111       1.0000          .0000       10.000    
     3 'Normalizat'    .70420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+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=   5150.412     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      265 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.003        40.084        .75727E-04    .33989E-04
   2  Index         2.0108        .69598        .71682E-02    .35519E-03
   3  Normalizat    .70421        .19358        .26344E-03   -.85059E-04
   4  Prefactor     1.2341        .20824        .21924E-03   -.78965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.0027
  Index      = 2.01083
  Normalizat = 0.704208
  Prefactor  = 1.23408
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.412     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.003        38.089        .15145E-04   -1.4649    
   2  Index         2.0108        .66171        .14336E-02   -.64080    
   3  Normalizat    .70421        .19367        .10537E-04   -1.0373    
   4  Prefactor     1.2341        .20836        .43848E-04   -.85289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41477e-11
Minuit parameter uncertainties:
  1  38.1216
  2  0.664757
  3  0.193859
  4  0.208503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654771': 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) = 5150.41158982
delta logL = 0.00228730607614

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  2.800e+01  3.812e+01  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  2.011e+00  6.648e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.234e+00  2.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  7.042e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 202.573 70.041
Photon Index (Free Index): 2.01 +/- 0.66
Photon Flux (Free Index): 1.76e-08 +/- 2.07e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.72e-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/654771/cmap_HighResolution_586396801_586656001_4FGL_J1330.2+7002_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', comment='SUCCESS', photon_flux='1.69e-08', energy_flux2='1.18e-05', photon_flux_error='1.74e-08', dlogl='2.29e-03', energy_flux='1.27e-05', photon_flux2='1.76e-08', job_status='DONE', time_completed='2021-09-07 22:12:10.482598', photon_index_error2='0.66', photon_index2='2.01', ts='1.86', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='6.49e-08', energy_flux_error2='1.72e-05', EG='0.70', time_epoch_completed='1631077930.48', return_code='0', job_id='654771', GAL2='1.23', EG2='0.70', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.07e-08', ts2='1.86', photon_index='1.97' WHERE bin_id='1339' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 22:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 654771: <4FGL_J1330.2+7002_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1339> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 21:55:37 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:56:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 21:56:41 2021
Terminated at Tue Sep  7 22:12:10 2021
Results reported at Tue Sep  7 22:12:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1339 202.573 70.0406 586396801 586656001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.2+7002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.51 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            993 sec.

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

