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


Performing analysis on: 4FGL_J1330.2+7002_monthly_bin118
RA = 202.573, Dec = 70.0406
tmin = 542851201, tmax = 545443201
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='276120', job_status='RUN', time_executed='2021-10-24 20:57:35.289743', time_epoch_executed='1635134255.29' WHERE source_name='4FGL J1330.2+7002' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276120

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276120/ft1_4FGL_J1330.2+7002_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276120/ft1_4FGL_J1330.2+7002_monthly_bin118.fits outfile=/scratch/kocevski/276120/ft1_filteredMKT_4FGL_J1330.2+7002_monthly_bin118.fits ra=202.573 dec=70.0406 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.61
user 17.94
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.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/276120/ft1_filteredMKT_4FGL_J1330.2+7002_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/276120/ft1_filtered_4FGL_J1330.2+7002_monthly_bin118.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.61
user 0.44
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276120/ft1_filtered_4FGL_J1330.2+7002_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/276120/ltcube_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.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/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.fits
.....................!
real 46.84
user 46.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276120/ft1_filtered_4FGL_J1330.2+7002_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/276120/ltcube_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.fits outfile=/scratch/kocevski/276120/expmap_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.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/276120/ltcube_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.fits
.....................!
real 191.14
user 186.37
sys 4.34

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/276120/ft1_filtered_4FGL_J1330.2+7002_monthly_bin118.fits scfile=/scratch/kocevski/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.fits outfile=/scratch/kocevski/276120/cmap_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.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.62
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276120/ft1_filtered_4FGL_J1330.2+7002_monthly_bin118.fits scfile=/scratch/kocevski/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.fits outfile=/scratch/kocevski/276120/cmap_HighResolution_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.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.62
user 0.45
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/276120/ft1_filtered_4FGL_J1330.2+7002_monthly_bin118.fits', '/scratch/kocevski/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.fits', expMap='/scratch/kocevski/276120/expmap_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.fits', expCube='/scratch/kocevski/276120/ltcube_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/276120/Model_4FGL_J1330.2+7002_monthly_bin118.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/276120/ft1_filtered_4FGL_J1330.2+7002_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/276120/ft2_4FGL_J1330.2+7002_monthly_bin118.fits
Exposure map: /scratch/kocevski/276120/expmap_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.fits
Exposure cube: /scratch/kocevski/276120/ltcube_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/276120/Model_4FGL_J1330.2+7002_monthly_bin118.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) = 129.342797993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    668.99       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .85784E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27915E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    69.825       1.0000         .10000E-03   10000.    
     8 'norm      '    36.263       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40547E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9319       1.0000         .10000E-03   10000.    
    11 'Prefactor '    151.02       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25977E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23390E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13811E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50987       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.255       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11200E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .38421       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=   124.4050     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     4134 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     668.75        667.67       -.88522E-04   -.42135E-04
   2  Prefactor     .10001E-03    125.54        .92049E-04** at limit **
   3  Prefactor     .10000E-03    783.41        .52053E-03** at limit **
   4  Prefactor     .10000E-03    279.02        .13011E-03** at limit **
   5  Prefactor     .10000E-03    1650.1        .11834E-02** at limit **
   6  Prefactor     .10000E-03    2200.7        .17196E-03** at limit **
   7  norm          69.857        111.31        .23256E-05   -.43951E-04
   8  norm          36.258        35.328       -.29366E-04    .39676E-04
   9  Prefactor     .10000E-03    2059.8        .22712E-03** at limit **
  10  Prefactor     .10905E-03    5329.8       -.59375E-01** at limit **
  11  Prefactor     151.86        559.61        .62532E-03    .43032E-05
  12  Prefactor     .10000E-03    693.96       -.62482E-04** at limit **
  13  Prefactor     .10000E-03    483.37       -.32819E-03** at limit **
  14  Prefactor     .10000E-03    338.62       -.12096E-03** at limit **
  15  Prefactor    10000.0        6550.0       -.50520E-03** at limit **
  16  Prefactor     .10000E-03    40.654        .91815E-07** at limit **
  17  Prefactor     .10011E-03    146.78       -.13612E-03** at limit **
  18  Prefactor    10000.0        8078.5        .10622E-02** at limit **
  19  Prefactor     .10000E-03    8590.4       -.26956E-02** at limit **
  20  Prefactor     .10000E-03    324.30       -.57260E-04** at limit **
  21  Prefactor     .10000E-03    96.956        .50546E-04** at limit **
  22  Prefactor     .10000E-03    92.257       -.18456E-04** at limit **
  23  Prefactor     .10000E-03    130.75        .67856E-04** at limit **
  24  Prefactor     .10000E-03    286.06        .10702E-03** at limit **
  25  Prefactor     15.277        56.499        .28407E-04    .67628E-04
  26  Prefactor     .10000E-03    109.04       -.91132E-04** at limit **
  27  Normalizat    .10000E-01    .19854       -.34394E-05** at limit **
  28  Prefactor     .38368        .44958       -.11307E-03    .20097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 668.745
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 69.8574
  norm       = 36.258
  Prefactor  = 0.0001
  Prefactor  = 0.000109048
  Prefactor  = 151.861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.00010011
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.2769
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.383683
 **********
 **   18 **HESSE 
 **********

 FCN=   124.4050     FROM HESSE     STATUS=OK           493 CALLS     4627 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     668.75        667.30        .80049E-04   -1.0476    
   2  Prefactor     .10001E-03    125.83        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    783.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    278.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1650.3        .18355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2200.7        .21420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          69.857        111.62        .48038E-04   -1.4034    
   8  norm          36.258        35.340        .57887E-04   -1.4503    
   9  Prefactor     .10000E-03    2059.8        .21257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10905E-03    5327.2        .67056E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     151.86        564.48        .16399E-03   -1.3237    
  12  Prefactor     .10000E-03    693.96        .19979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    483.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    338.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        6549.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.653        .69636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10011E-03    146.63        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        8078.4        .18351E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8590.4        .22622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    324.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    96.955        .10764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    92.261        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    130.75        .12507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    286.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.277        56.800        .10255E-03   -1.4926    
  26  Prefactor     .10000E-03    109.04        .11416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .19855        .15409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .38368        .45740        .20216E-03   -1.1765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50103e-09
Minuit parameter uncertainties:
  1  675.506
  2  0.0024347
  3  0.000136089
  4  0.00155911
  5  0.00178785
  6  8.54592e-05
  7  111.959
  8  35.3602
  9  2.34112e-05
  10  2.04558
  11  586.737
  12  3.54307e-05
  13  0.000225981
  14  5.89661e-05
  15  0.00235671
  16  8.74358e-06
  17  0.00805363
  18  0.00180544
  19  0.00247188
  20  2.74257e-05
  21  6.88205e-06
  22  0.000129866
  23  1.19743e-05
  24  0.00105162
  25  57.0018
  26  4.62548e-06
  27  4.90756e-06
  28  0.461841
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  3.543e-05  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:  3.837e-01  4.618e-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:  1.000e-02  4.908e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.573 70.041
Photon Flux Upper Limit: 2.41e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276120/likelihoodResults_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.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): 102
logL (Free Index) = 124.40505379
delta logL = -6.71378339234e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 124.405053808
delta logL = -6.73204228008e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96282E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9666       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38376       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.

 FCN=   124.4050     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      195 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    725.23        .90720E-02** at limit **
   2  Index         1.9226        5.5962        .50000        .44195E-06
   3  Normalizat    .10000E-01    .38616E-03    .69837E-01** at limit **
   4  Prefactor     .38367        .15671E-01    .38017E-01    .22604E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010005
  Index      = 1.92257
  Normalizat = 0.01
  Prefactor  = 0.38367
 **********
 **   18 **HESSE 
 **********

 FCN=   124.4050     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      224 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    6634.1        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9226        8.4488        .50000       -.66300    
   3  Normalizat    .10000E-01    .19457E-02    .15409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38367        .35099E-01    .20220E-03   -1.1765    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.84293e-08
Minuit parameter uncertainties:
  1  0.0270973
  2  1053.13
  3  7.81543e-08
  4  0.035101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276120': 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): 102
logL (Free Index) = 124.40504707
delta logL = 5.83800385812e-09

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  2.710e-02  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.923e+00  1.053e+03  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:  3.837e-01  3.510e-02  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:  1.000e-02  7.815e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.573 70.041

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/276120/cmap_HighResolution_542851201_545443201_4FGL_J1330.2+7002_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-01', job_status='DONE', photon_flux_upper_limit='2.41e-06', time_completed='2021-10-24 21:07:02.102683', job_id='276120', GAL2='0.38', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1635134822.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='5.84e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='118' AND source_name='4FGL J1330.2+7002' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 24 21:07:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 276120: <4FGL_J1330.2+7002_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1330.2+7002_monthly_bin118> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Oct 24 20:55:19 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 24 20:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 24 20:55:49 2021
Terminated at Sun Oct 24 21:07:02 2021
Results reported at Sun Oct 24 21:07:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_monthly_bin118 202.573 70.0406 542851201 545443201 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 :                                   491.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             235.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            703 sec.

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

