/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 6 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 = 7391
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1630.7+5221_daily_bin123
RA = 247.682, Dec = 52.3543
tmin = 271209601, tmax = 271468801
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='618190', job_status='RUN', time_executed='2021-09-14 17:41:45.715573', time_epoch_executed='1631666505.72' WHERE source_name='4FGL J1630.7+5221' and cadence='daily' and bin_id='123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/618190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/618190/ft1_4FGL_J1630.7+5221_daily_bin123.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/618190/ft1_4FGL_J1630.7+5221_daily_bin123.fits outfile=/scratch/kocevski/618190/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin123.fits ra=247.682 dec=52.3543 rad=12.0 tmin=271209601.0 tmax=271468801.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 1.61
user 1.43
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.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/618190/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin123.fits evtable="EVENTS" outfile="/scratch/kocevski/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.fits" evtable="EVENTS" scfile=/scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits sctable="SC_DATA" outfile=/scratch/kocevski/618190/ltcube_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.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/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits
.....................!
real 14.91
user 14.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits sctable="SC_DATA" expcube=/scratch/kocevski/618190/ltcube_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.fits outfile=/scratch/kocevski/618190/expmap_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.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/618190/ltcube_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.fits
.....................!
real 191.43
user 185.82
sys 4.41

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

Setting source of interest to:
4FGL J1630.7+5221 @ 247.682 52.3543

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.fits scfile=/scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits outfile=/scratch/kocevski/618190/cmap_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.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=247.682 yref=52.3543 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.fits scfile=/scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits outfile=/scratch/kocevski/618190/cmap_HighResolution_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.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=247.682 yref=52.3543 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/618190/Model_4FGL_J1630.7+5221_daily_bin123.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/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.fits.....................!
real 50.54
user 49.05
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.fits', '/scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits', expMap='/scratch/kocevski/618190/expmap_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.fits', expCube='/scratch/kocevski/618190/ltcube_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/618190/Model_4FGL_J1630.7+5221_daily_bin123.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1630.7+5221'

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  9.141e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.947e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/618190/ft1_filtered_4FGL_J1630.7+5221_daily_bin123.fits
Spacecraft file(s): /scratch/kocevski/618190/ft2_4FGL_J1630.7+5221_daily_bin123.fits
Exposure map: /scratch/kocevski/618190/expmap_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.fits
Exposure cube: /scratch/kocevski/618190/ltcube_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/618190/Model_4FGL_J1630.7+5221_daily_bin123.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) = 5798.3845902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9075       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.371       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.087       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6278       1.0000         .10000E-03   10000.    
    10 'norm      '    32.509       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    30.039       1.0000         .10000E-03   10000.    
    15 'norm      '    .11118E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4911       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3347       1.0000         .10000E-03   10000.    
    20 'norm      '    .32907       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4349       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.5708       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    79.828       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4232       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .61341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5798.376     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     4607 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9073        3.6348        .76315E-07   -.83626E-04
   2  Prefactor     .10000E-03    1.9067        .15815E-07** at limit **
   3  norm          7.1410        5.3743        .37246E-07   -.43440E-04
   4  Prefactor     .10000E-03    10.588        .25102E-06** at limit **
   5  Prefactor     55.319        99.438        .70932E-05    .17703E-03
   6  Prefactor     16.088        9.2012       -.48289E-07    .37698E-03
   7  Prefactor     .10000E-03    37.370       -.39833E-05** at limit **
   8  Prefactor     2.8796        7.9547        .68833E-05   -.32660E-03
   9  Prefactor     8.6273        5.2213        .87878E-06   -.43920E-04
  10  norm          32.516        20.950       -.11536E-05   -.79853E-04
  11  norm          .10000E-03    4.8147        .75461E-08** at limit **
  12  Prefactor     .10000E-03    3.3404        .72915E-07** at limit **
  13  Prefactor     .10000E-03    1.7447        .11384E-06** at limit **
  14  norm          30.040        39.046       -.45171E-06   -.18673E-04
  15  norm          .10000E-03    31.927        .97955E-06** at limit **
  16  Prefactor     1.4925        4.9678        .29639E-06   -.21769E-03
  17  Prefactor     1.7680        3.3757        .38413E-06    .90598E-05
  18  Prefactor     .10000E-03    4.5975        .13783E-05** at limit **
  19  Prefactor     4.3291        13.816        .40383E-05   -.22933E-04
  20  norm          .32966        1.2706       -.17888E-06   -.44905E-03
  21  Prefactor     5.4352        8.0901        .21872E-05   -.16157E-03
  22  norm          .10000E-03    .35860        .79083E-08** at limit **
  23  Prefactor     .10000E-03    2.6990        .15351E-06** at limit **
  24  Prefactor     .10000E-03    3.8181        .91458E-07** at limit **
  25  norm          4.5708        2.7558        .30059E-06   -.19136E-03
  26  Prefactor     .10000E-03    2.9920        .13392E-06** at limit **
  27  Prefactor     .10000E-03    28.689        .37634E-05** at limit **
  28  norm          .10000E-03    4.2425       -.19706E-06** at limit **
  29  Prefactor     .10000E-03    4.4453       -.58630E-06** at limit **
  30  Prefactor     79.811        82.472        .46124E-05    .71389E-04
  31  Prefactor     .10000E-03    62.542        .19816E-05** at limit **
  32  Normalizat    1.4234        .20408       -.11805E-05    .88093E-04
  33  Prefactor     .61314        .17697       -.27021E-05   -.25878E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.90731
  Prefactor  = 0.0001
  norm       = 7.141
  Prefactor  = 0.0001
  Prefactor  = 55.3193
  Prefactor  = 16.0878
  Prefactor  = 0.000100002
  Prefactor  = 2.87956
  Prefactor  = 8.62733
  norm       = 32.5156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.0396
  norm       = 0.000100001
  Prefactor  = 1.49253
  Prefactor  = 1.76798
  Prefactor  = 0.000100003
  Prefactor  = 4.32912
  norm       = 0.329664
  Prefactor  = 5.43524
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.57078
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.8108
  Prefactor  = 0.0001
  Normalizat = 1.42345
  Prefactor  = 0.613135
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.376     FROM HESSE     STATUS=OK           693 CALLS     5300 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9073        3.6360        .95450E-04   -1.5145    
   2  Prefactor     .10000E-03    1.9083        .10268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1410        5.3781        .14846E-03   -1.5173    
   4  Prefactor     .10000E-03    10.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.319        100.65        .53907E-04   -1.4219    
   6  Prefactor     16.088        9.1616        .99859E-04   -1.4906    
   7  Prefactor     .10000E-03    37.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8796        8.0820        .11958E-02   -1.5369    
   9  Prefactor     8.6273        5.2345        .64073E-03   -1.5120    
  10  norm          32.516        20.937        .70278E-04   -1.4567    
  11  norm          .10000E-03    4.8148        .16319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.7418        .26272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7474        .98222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          30.040        38.995        .73103E-04   -1.4611    
  15  norm          .10000E-03    33.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4925        4.4627        .23736E-03   -1.5464    
  17  Prefactor     1.7680        3.3506        .18249E-03   -1.5442    
  18  Prefactor     .10000E-03    18.387        .31156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3291        13.805        .96738E-03   -1.5292    
  20  norm          .32966        1.3937        .12026E-02   -1.5593    
  21  Prefactor     5.4352        7.8472        .86182E-03   -1.5242    
  22  norm          .10000E-03    .37298        .88875E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7053        .12218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.8261        .14531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.5708        2.7503        .46486E-03   -1.5280    
  26  Prefactor     .10000E-03    3.0517        .12859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.2777        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.4852        .15661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     79.811        82.490        .44950E-04   -1.3919    
  31  Prefactor     .10000E-03    62.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4234        .24301        .22868E-03   -.79953    
  33  Prefactor     .61314        .20931        .30501E-03   -1.0704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3835e-09
Minuit parameter uncertainties:
  1  3.6361
  2  2.15311e-06
  3  5.37851
  4  2.65052e-05
  5  100.964
  6  9.1624
  7  0.000553539
  8  8.08503
  9  5.23476
  10  20.9413
  11  1.01289e-06
  12  3.97617e-05
  13  5.93138e-06
  14  39.0279
  15  0.00040811
  16  4.46366
  17  3.35096
  18  0.000482636
  19  13.8151
  20  1.35551
  21  7.84872
  22  8.70379e-07
  23  8.42652e-06
  24  8.04692e-06
  25  2.75035
  26  1.1453e-05
  27  0.000443277
  28  4.76662e-06
  29  7.63372e-05
  30  82.6083
  31  0.000329557
  32  0.243212
  33  0.209573
Done.

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

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  3.252e+01  2.094e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.947e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  6.131e-01  2.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.423e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.03
Ra Dec: 247.682 52.354
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.61e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5797.92324266
delta logL = 0.452430927061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5797.9000127
delta logL = 0.475660890171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.223       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4263       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5797.900     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      223 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.180        19.783        .18853E-02   -.51317E-05
   2  alpha         1.4252        .40797        .33465       -.27906E-04
   3  Normalizat    1.4359        .19149        .51552E-01   -.11333E-05
   4  Prefactor     .61187        .17596        .69039E-01    .24290E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.1802
  alpha      = 1.42521
  Normalizat = 1.43587
  Prefactor  = 0.611866
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.900     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.180        23.107        .75412E-04   -1.4646    
   2  alpha         1.4252        .52117        .13466E-01   -.44440    
   3  Normalizat    1.4359        .22422        .22792E-03   -.79597    
   4  Prefactor     .61187        .20594        .30555E-03   -1.0709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41752e-12
Minuit parameter uncertainties:
  1  23.1146
  2  0.525913
  3  0.224379
  4  0.206198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/618190': 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) = 5797.9000082
delta logL = 0.475665383199

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  2.818e+01  2.311e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.425e+00  5.259e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  6.119e-01  2.062e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.436e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.97
Ra Dec: 247.682 52.354
Photon Index (Free Index): 1.43 +/- 0.53
Photon Flux (Free Index): 1.79e-08 +/- 1.79e-08
Energy Flux (Free Index): 4.94e-05 +/- 5.26e-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/618190/cmap_HighResolution_271209601_271468801_4FGL_J1630.7+5221_daily_bin123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='4.94e-05', photon_flux_error='2.24e-08', dlogl='4.76e-01', energy_flux='2.49e-05', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-14 17:56:41.391394', photon_index_error2='0.53', photon_index2='1.43', ts='15.03', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='5.26e-05', EG='1.42', time_epoch_completed='1631667401.39', return_code='0', job_id='618190', GAL2='0.61', EG2='1.44', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='1.79e-08', ts2='15.97', photon_index='1.95' WHERE bin_id='123' AND source_name='4FGL J1630.7+5221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 17:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 618190: <4FGL_J1630.7+5221_daily_bin123> in cluster <slac> Done

Job <4FGL_J1630.7+5221_daily_bin123> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 14 17:40:21 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 17:41:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 17:41:30 2021
Terminated at Tue Sep 14 17:56:42 2021
Results reported at Tue Sep 14 17:56:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1630.7+5221_daily_bin123 247.682 52.3543 271209601 271468801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1630.7+5221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   891.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            981 sec.

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

